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,169 @@
|
|
|
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, ClassRef, CurrencyRef, NameFilter, NameRangeFilter } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks payroll item wage operations: `qube.payrollItemWage.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class PayrollItemWage {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* Create payroll item wage: `POST /connections/{connection_id}/payroll-item-wages`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the JSON body.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `expense_account_ref` (required), `include_ret_element`, `is_active`, `name` (required), `request_id`, `wage_type` (required).
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-wages/create-payroll-item-wage
|
|
19
|
+
*/
|
|
20
|
+
create(connectionId: string, params: PayrollItemWageCreateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* List payroll item wages: `GET /connections/{connection_id}/payroll-item-wages`, queued for QuickBooks.
|
|
23
|
+
*
|
|
24
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
25
|
+
* Params go in the query string.
|
|
26
|
+
*
|
|
27
|
+
* Fields: `active_status`, `from_modified_date`, `full_name`, `include_ret_element`, `list_id`, `max_returned`, `meta_data`, `name_filter`, `name_range_filter`, `request_id`, `to_modified_date`.
|
|
28
|
+
*
|
|
29
|
+
* Resolves to the queued request.
|
|
30
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-wages/list-payroll-item-wages
|
|
31
|
+
*/
|
|
32
|
+
query(connectionId: string, params: PayrollItemWageQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
|
|
33
|
+
/**
|
|
34
|
+
* Update payroll item wage: `PUT /connections/{connection_id}/payroll-item-wages`, queued for QuickBooks.
|
|
35
|
+
*
|
|
36
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
37
|
+
* Params go in the JSON body.
|
|
38
|
+
*
|
|
39
|
+
* Fields: `edit_sequence` (required), `expense_account_ref`, `include_ret_element`, `is_active`, `list_id` (required), `name`, `overtime_multiplier`, `payroll_item_detail_type_value`, `rate`, `rate_percent`, `request_id`.
|
|
40
|
+
*
|
|
41
|
+
* Resolves to the queued request.
|
|
42
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-wages/update-payroll-item-wage
|
|
43
|
+
*/
|
|
44
|
+
update(connectionId: string, params: PayrollItemWageUpdateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The params of `payroll_item_wage.create`: Create payroll item wage.
|
|
49
|
+
*/
|
|
50
|
+
export interface PayrollItemWageCreateParams {
|
|
51
|
+
/**
|
|
52
|
+
* Refers to an expense account. If an `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
53
|
+
*/
|
|
54
|
+
expense_account_ref: CurrencyRef;
|
|
55
|
+
include_ret_element?: Array<"EditSequence" | "ExpenseAccountRef" | "IsActive" | "ListID" | "Name" | "OvertimeMultiplier" | "PayrollItemDetailTypeValue" | "Rate" | "RatePercent" | "TimeCreated" | "TimeModified" | "WageType">;
|
|
56
|
+
/**
|
|
57
|
+
* If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.
|
|
58
|
+
*/
|
|
59
|
+
is_active?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Description of the wage: for example, Regular Pay or Overtime Pay.
|
|
62
|
+
*/
|
|
63
|
+
name: string;
|
|
64
|
+
/**
|
|
65
|
+
* 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`.
|
|
66
|
+
*/
|
|
67
|
+
request_id?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The type of pay.
|
|
70
|
+
*/
|
|
71
|
+
wage_type: "Bonus" | "Commission" | "HourlyOvertime" | "HourlyRegular" | "HourlySick" | "HourlyVacation" | "SalaryRegular" | "SalarySick" | "SalaryVacation";
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The params of `payroll_item_wage.query`: List payroll item wages.
|
|
76
|
+
*/
|
|
77
|
+
export interface PayrollItemWageQueryParams {
|
|
78
|
+
/**
|
|
79
|
+
* Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.
|
|
80
|
+
*
|
|
81
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
82
|
+
*/
|
|
83
|
+
active_status?: "ActiveOnly" | "All" | "InactiveOnly";
|
|
84
|
+
/**
|
|
85
|
+
* Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.
|
|
86
|
+
*
|
|
87
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
88
|
+
*
|
|
89
|
+
* Format: date-time.
|
|
90
|
+
*/
|
|
91
|
+
from_modified_date?: string;
|
|
92
|
+
/**
|
|
93
|
+
* `full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
94
|
+
*
|
|
95
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
96
|
+
*/
|
|
97
|
+
full_name?: string[];
|
|
98
|
+
include_ret_element?: Array<"EditSequence" | "ExpenseAccountRef" | "IsActive" | "ListID" | "Name" | "OvertimeMultiplier" | "PayrollItemDetailTypeValue" | "Rate" | "RatePercent" | "TimeCreated" | "TimeModified" | "WageType">;
|
|
99
|
+
/**
|
|
100
|
+
* `list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list type, not globally across all lists. If both `full_name` and `list_id` are supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
101
|
+
*
|
|
102
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
103
|
+
*/
|
|
104
|
+
list_id?: string[];
|
|
105
|
+
/**
|
|
106
|
+
* Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.
|
|
107
|
+
*
|
|
108
|
+
* QuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.
|
|
109
|
+
*
|
|
110
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
111
|
+
*
|
|
112
|
+
* Minimum 1.
|
|
113
|
+
*/
|
|
114
|
+
max_returned?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.
|
|
117
|
+
*/
|
|
118
|
+
meta_data?: "MetaDataAndResponseData" | "MetaDataOnly" | "NoMetaData";
|
|
119
|
+
/**
|
|
120
|
+
* Filters according to the object’s Name.
|
|
121
|
+
*
|
|
122
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
123
|
+
*/
|
|
124
|
+
name_filter?: NameFilter;
|
|
125
|
+
/**
|
|
126
|
+
* Filters according to the object’s Name.
|
|
127
|
+
*
|
|
128
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
129
|
+
*/
|
|
130
|
+
name_range_filter?: NameRangeFilter;
|
|
131
|
+
/**
|
|
132
|
+
* 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`.
|
|
133
|
+
*/
|
|
134
|
+
request_id?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).
|
|
137
|
+
*
|
|
138
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
139
|
+
*
|
|
140
|
+
* Format: date-time.
|
|
141
|
+
*/
|
|
142
|
+
to_modified_date?: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The params of `payroll_item_wage.update`: Update payroll item wage.
|
|
147
|
+
*/
|
|
148
|
+
export interface PayrollItemWageUpdateParams {
|
|
149
|
+
edit_sequence: string;
|
|
150
|
+
expense_account_ref?: ClassRef;
|
|
151
|
+
include_ret_element?: Array<"EditSequence" | "ExpenseAccountRef" | "IsActive" | "ListID" | "Name" | "OvertimeMultiplier" | "PayrollItemDetailTypeValue" | "Rate" | "RatePercent" | "TimeCreated" | "TimeModified" | "WageType">;
|
|
152
|
+
is_active?: boolean;
|
|
153
|
+
list_id: string;
|
|
154
|
+
name?: string;
|
|
155
|
+
overtime_multiplier?: number;
|
|
156
|
+
payroll_item_detail_type_value?: number;
|
|
157
|
+
/**
|
|
158
|
+
* Choose at most one of: `rate`, or `rate_percent`.
|
|
159
|
+
*/
|
|
160
|
+
rate?: number;
|
|
161
|
+
/**
|
|
162
|
+
* Choose at most one of: `rate`, or `rate_percent`.
|
|
163
|
+
*/
|
|
164
|
+
rate_percent?: number;
|
|
165
|
+
/**
|
|
166
|
+
* 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`.
|
|
167
|
+
*/
|
|
168
|
+
request_id?: string;
|
|
169
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks payroll item wage operations. Types: payroll_item_wage.d.ts. */
|
|
5
|
+
class PayrollItemWage {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create payroll item wage.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./payroll_item_wage").PayrollItemWageCreateParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-wages/create-payroll-item-wage
|
|
20
|
+
*/
|
|
21
|
+
create(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("payroll_item_wage.create", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* List payroll item wages.
|
|
27
|
+
* @param {string} connectionId
|
|
28
|
+
* @param {import("./payroll_item_wage").PayrollItemWageQueryParams} params
|
|
29
|
+
* @param {import("./types").OperationOptions} options
|
|
30
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
31
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-wages/list-payroll-item-wages
|
|
32
|
+
*/
|
|
33
|
+
query(connectionId, params, options) {
|
|
34
|
+
return this.#client.queue("payroll_item_wage.query", connectionId, params, options);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Update payroll item wage.
|
|
39
|
+
* @param {string} connectionId
|
|
40
|
+
* @param {import("./payroll_item_wage").PayrollItemWageUpdateParams} params
|
|
41
|
+
* @param {import("./types").OperationOptions} options
|
|
42
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
43
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-wages/update-payroll-item-wage
|
|
44
|
+
*/
|
|
45
|
+
update(connectionId, params, options) {
|
|
46
|
+
return this.#client.queue("payroll_item_wage.update", connectionId, params, options);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = { PayrollItemWage };
|
|
@@ -0,0 +1,77 @@
|
|
|
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, ClassRef, LiabilityPaymentSchedule } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks payroll item workers compensation operations: `qube.payrollItemWorkersCompensation.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class PayrollItemWorkersCompensation {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* Create payroll item workers compensation: `POST /connections/{connection_id}/payroll-item-workers-compensations`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the JSON body.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `expense_account_ref` (required), `include_ret_element`, `is_active`, `is_tracked_by_cust_job`, `liability_account_ref` (required), `liability_payment_schedule`, `name` (required), `payment_template_ref` (required), `payroll_item_detail_type_value`, `request_id`, `vendor_account_number`, `vendor_ref`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-workers-compensations/create-payroll-item-workers-compensation
|
|
19
|
+
*/
|
|
20
|
+
create(connectionId: string, params: PayrollItemWorkersCompensationCreateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* Update payroll item workers compensation: `PUT /connections/{connection_id}/payroll-item-workers-compensations`, queued for QuickBooks.
|
|
23
|
+
*
|
|
24
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
25
|
+
* Params go in the JSON body.
|
|
26
|
+
*
|
|
27
|
+
* Fields: `edit_sequence` (required), `expense_account_ref`, `include_ret_element`, `is_active`, `is_tracked_by_cust_job`, `liability_account_ref`, `liability_payment_schedule`, `list_id` (required), `name`, `payment_template_ref`, `payroll_item_detail_type_value`, `request_id`, `vendor_account_number`, `vendor_ref`.
|
|
28
|
+
*
|
|
29
|
+
* Resolves to the queued request.
|
|
30
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-workers-compensations/update-payroll-item-workers-compensation
|
|
31
|
+
*/
|
|
32
|
+
update(connectionId: string, params: PayrollItemWorkersCompensationUpdateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The params of `payroll_item_workers_compensation.create`: Create payroll item workers compensation.
|
|
37
|
+
*/
|
|
38
|
+
export interface PayrollItemWorkersCompensationCreateParams {
|
|
39
|
+
expense_account_ref: ClassRef;
|
|
40
|
+
include_ret_element?: Array<"EditSequence" | "ExpenseAccountRef" | "IsActive" | "IsTrackedByCustJob" | "LiabilityAccountRef" | "LiabilityPaymentSchedule" | "ListID" | "Name" | "PaymentTemplateRef" | "PayrollItemDetailTypeValue" | "TimeCreated" | "TimeModified" | "VendorAccountNumber" | "VendorRef">;
|
|
41
|
+
is_active?: boolean;
|
|
42
|
+
is_tracked_by_cust_job?: boolean;
|
|
43
|
+
liability_account_ref: ClassRef;
|
|
44
|
+
liability_payment_schedule?: LiabilityPaymentSchedule;
|
|
45
|
+
name: string;
|
|
46
|
+
payment_template_ref: ClassRef;
|
|
47
|
+
payroll_item_detail_type_value?: number;
|
|
48
|
+
/**
|
|
49
|
+
* 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`.
|
|
50
|
+
*/
|
|
51
|
+
request_id?: string;
|
|
52
|
+
vendor_account_number?: string;
|
|
53
|
+
vendor_ref?: ClassRef;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The params of `payroll_item_workers_compensation.update`: Update payroll item workers compensation.
|
|
58
|
+
*/
|
|
59
|
+
export interface PayrollItemWorkersCompensationUpdateParams {
|
|
60
|
+
edit_sequence: string;
|
|
61
|
+
expense_account_ref?: ClassRef;
|
|
62
|
+
include_ret_element?: Array<"EditSequence" | "ExpenseAccountRef" | "IsActive" | "IsTrackedByCustJob" | "LiabilityAccountRef" | "LiabilityPaymentSchedule" | "ListID" | "Name" | "PaymentTemplateRef" | "PayrollItemDetailTypeValue" | "TimeCreated" | "TimeModified" | "VendorAccountNumber" | "VendorRef">;
|
|
63
|
+
is_active?: boolean;
|
|
64
|
+
is_tracked_by_cust_job?: boolean;
|
|
65
|
+
liability_account_ref?: ClassRef;
|
|
66
|
+
liability_payment_schedule?: LiabilityPaymentSchedule;
|
|
67
|
+
list_id: string;
|
|
68
|
+
name?: string;
|
|
69
|
+
payment_template_ref?: ClassRef;
|
|
70
|
+
payroll_item_detail_type_value?: number;
|
|
71
|
+
/**
|
|
72
|
+
* 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`.
|
|
73
|
+
*/
|
|
74
|
+
request_id?: string;
|
|
75
|
+
vendor_account_number?: string;
|
|
76
|
+
vendor_ref?: ClassRef;
|
|
77
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks payroll item workers compensation operations. Types: payroll_item_workers_compensation.d.ts. */
|
|
5
|
+
class PayrollItemWorkersCompensation {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create payroll item workers compensation.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./payroll_item_workers_compensation").PayrollItemWorkersCompensationCreateParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-workers-compensations/create-payroll-item-workers-compensation
|
|
20
|
+
*/
|
|
21
|
+
create(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("payroll_item_workers_compensation.create", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Update payroll item workers compensation.
|
|
27
|
+
* @param {string} connectionId
|
|
28
|
+
* @param {import("./payroll_item_workers_compensation").PayrollItemWorkersCompensationUpdateParams} params
|
|
29
|
+
* @param {import("./types").OperationOptions} options
|
|
30
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
31
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-workers-compensations/update-payroll-item-workers-compensation
|
|
32
|
+
*/
|
|
33
|
+
update(connectionId, params, options) {
|
|
34
|
+
return this.#client.queue("payroll_item_workers_compensation.update", connectionId, params, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
module.exports = { PayrollItemWorkersCompensation };
|
|
@@ -0,0 +1,31 @@
|
|
|
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 payroll last period operations: `qube.payrollLastPeriod.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class PayrollLastPeriod {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* List payroll last periods: `GET /connections/{connection_id}/payroll-last-periods`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the query string.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `request_id`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-last-periods/list-payroll-last-periods
|
|
19
|
+
*/
|
|
20
|
+
query(connectionId: string, params: PayrollLastPeriodQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The params of `payroll_last_period.query`: List payroll last periods.
|
|
25
|
+
*/
|
|
26
|
+
export interface PayrollLastPeriodQueryParams {
|
|
27
|
+
/**
|
|
28
|
+
* 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`.
|
|
29
|
+
*/
|
|
30
|
+
request_id?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks payroll last period operations. Types: payroll_last_period.d.ts. */
|
|
5
|
+
class PayrollLastPeriod {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* List payroll last periods.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./payroll_last_period").PayrollLastPeriodQueryParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-last-periods/list-payroll-last-periods
|
|
20
|
+
*/
|
|
21
|
+
query(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("payroll_last_period.query", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = { PayrollLastPeriod };
|
|
@@ -0,0 +1,137 @@
|
|
|
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, AccountFilterPaycheck, ClassRef, ModifiedDateRangeFilterPaycheck, PayrollDateRangeFilter, RefNumberFilterPaycheck, RefNumberRangeFilterPaycheck, TxnDateRangeFilterPaycheck } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks payroll liability adjustment operations: `qube.payrollLiabilityAdjustment.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class PayrollLiabilityAdjustment {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* Create payroll liability adjustment: `POST /connections/{connection_id}/payroll-liability-adjustments`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the JSON body.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `account_ref`, `class_ref`, `def_macro`, `employee_ref`, `include_ret_element`, `is_affecting_accounts` (required), `memo`, `payroll_date`, `payroll_liability_adjustment_line_add` (required), `ref_number`, `request_id`, `tax_table_version`, `txn_date`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-liability-adjustments/create-payroll-liability-adjustment
|
|
19
|
+
*/
|
|
20
|
+
create(connectionId: string, params: PayrollLiabilityAdjustmentCreateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* List payroll liability adjustments: `GET /connections/{connection_id}/payroll-liability-adjustments`, queued for QuickBooks.
|
|
23
|
+
*
|
|
24
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
25
|
+
* Params go in the query string.
|
|
26
|
+
*
|
|
27
|
+
* Fields: `account_filter`, `entity_filter`, `include_line_items`, `include_ret_element`, `max_returned`, `meta_data`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `request_id`, `txn_date_range_filter`, `txn_id`.
|
|
28
|
+
*
|
|
29
|
+
* Resolves to the queued request.
|
|
30
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-liability-adjustments/list-payroll-liability-adjustments
|
|
31
|
+
*/
|
|
32
|
+
query(connectionId: string, params: PayrollLiabilityAdjustmentQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The params of `payroll_liability_adjustment.create`: Create payroll liability adjustment.
|
|
37
|
+
*/
|
|
38
|
+
export interface PayrollLiabilityAdjustmentCreateParams {
|
|
39
|
+
account_ref?: ClassRef;
|
|
40
|
+
class_ref?: ClassRef;
|
|
41
|
+
def_macro?: string;
|
|
42
|
+
employee_ref?: ClassRef;
|
|
43
|
+
include_ret_element?: Array<"AccountRef" | "Amount" | "ClassRef" | "EditSequence" | "EmployeeRef" | "IsAffectingAccounts" | "Memo" | "PayrollDate" | "PayrollLiabilityAdjustmentLineRet" | "RefNumber" | "TaxTableVersion" | "TimeCreated" | "TimeModified" | "TxnDate" | "TxnID" | "TxnNumber">;
|
|
44
|
+
is_affecting_accounts: boolean;
|
|
45
|
+
memo?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Format: date.
|
|
48
|
+
*/
|
|
49
|
+
payroll_date?: string;
|
|
50
|
+
payroll_liability_adjustment_line_add: PayrollLiabilityAdjustmentLineAdd[];
|
|
51
|
+
ref_number?: string;
|
|
52
|
+
/**
|
|
53
|
+
* 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`.
|
|
54
|
+
*/
|
|
55
|
+
request_id?: string;
|
|
56
|
+
tax_table_version?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Format: date.
|
|
59
|
+
*/
|
|
60
|
+
txn_date?: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The params of `payroll_liability_adjustment.query`: List payroll liability adjustments.
|
|
65
|
+
*/
|
|
66
|
+
export interface PayrollLiabilityAdjustmentQueryParams {
|
|
67
|
+
/**
|
|
68
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
69
|
+
*/
|
|
70
|
+
account_filter?: AccountFilterPaycheck;
|
|
71
|
+
/**
|
|
72
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
73
|
+
*/
|
|
74
|
+
entity_filter?: AccountFilterPaycheck;
|
|
75
|
+
include_line_items?: boolean;
|
|
76
|
+
include_ret_element?: Array<"AccountRef" | "Amount" | "ClassRef" | "EditSequence" | "EmployeeRef" | "IsAffectingAccounts" | "Memo" | "PayrollDate" | "PayrollLiabilityAdjustmentLineRet" | "RefNumber" | "TaxTableVersion" | "TimeCreated" | "TimeModified" | "TxnDate" | "TxnID" | "TxnNumber">;
|
|
77
|
+
/**
|
|
78
|
+
* QuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.
|
|
79
|
+
*
|
|
80
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
81
|
+
*
|
|
82
|
+
* Minimum 1.
|
|
83
|
+
*/
|
|
84
|
+
max_returned?: number;
|
|
85
|
+
meta_data?: "MetaDataAndResponseData" | "MetaDataOnly" | "NoMetaData";
|
|
86
|
+
/**
|
|
87
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
88
|
+
*/
|
|
89
|
+
modified_date_range_filter?: ModifiedDateRangeFilterPaycheck;
|
|
90
|
+
/**
|
|
91
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
92
|
+
*/
|
|
93
|
+
payroll_date_range_filter?: PayrollDateRangeFilter;
|
|
94
|
+
/**
|
|
95
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
96
|
+
*/
|
|
97
|
+
ref_number?: string[];
|
|
98
|
+
/**
|
|
99
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
100
|
+
*/
|
|
101
|
+
ref_number_case_sensitive?: string[];
|
|
102
|
+
/**
|
|
103
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
104
|
+
*/
|
|
105
|
+
ref_number_filter?: RefNumberFilterPaycheck;
|
|
106
|
+
/**
|
|
107
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
108
|
+
*/
|
|
109
|
+
ref_number_range_filter?: RefNumberRangeFilterPaycheck;
|
|
110
|
+
/**
|
|
111
|
+
* 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`.
|
|
112
|
+
*/
|
|
113
|
+
request_id?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
116
|
+
*/
|
|
117
|
+
txn_date_range_filter?: TxnDateRangeFilterPaycheck;
|
|
118
|
+
/**
|
|
119
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `payroll_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
120
|
+
*/
|
|
121
|
+
txn_id?: string[];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface PayrollLiabilityAdjustmentLineAdd {
|
|
125
|
+
account_ref?: ClassRef;
|
|
126
|
+
amount?: number;
|
|
127
|
+
class_ref?: ClassRef;
|
|
128
|
+
company_paid_attribute?: "IsExpense" | "IsLiability" | "IsLiabilityAndExpense" | "NotApplicable";
|
|
129
|
+
experience_mod_rate_amount?: number;
|
|
130
|
+
income_subject_to_tax_amount?: number;
|
|
131
|
+
memo?: string;
|
|
132
|
+
other_account_ref?: ClassRef;
|
|
133
|
+
payroll_item_ref?: ClassRef;
|
|
134
|
+
wage_base_amount?: number;
|
|
135
|
+
workers_comp_amount?: number;
|
|
136
|
+
workers_comp_code_ref?: ClassRef;
|
|
137
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks payroll liability adjustment operations. Types: payroll_liability_adjustment.d.ts. */
|
|
5
|
+
class PayrollLiabilityAdjustment {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create payroll liability adjustment.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./payroll_liability_adjustment").PayrollLiabilityAdjustmentCreateParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-liability-adjustments/create-payroll-liability-adjustment
|
|
20
|
+
*/
|
|
21
|
+
create(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("payroll_liability_adjustment.create", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* List payroll liability adjustments.
|
|
27
|
+
* @param {string} connectionId
|
|
28
|
+
* @param {import("./payroll_liability_adjustment").PayrollLiabilityAdjustmentQueryParams} params
|
|
29
|
+
* @param {import("./types").OperationOptions} options
|
|
30
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
31
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-liability-adjustments/list-payroll-liability-adjustments
|
|
32
|
+
*/
|
|
33
|
+
query(connectionId, params, options) {
|
|
34
|
+
return this.#client.queue("payroll_liability_adjustment.query", connectionId, params, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
module.exports = { PayrollLiabilityAdjustment };
|