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.
Files changed (258) hide show
  1. package/CHANGELOG.md +38 -2
  2. package/README.md +188 -5
  3. package/client.js +660 -0
  4. package/index.d.ts +211 -1
  5. package/index.js +5 -1
  6. package/index.mjs +2 -0
  7. package/operations/account.d.ts +263 -0
  8. package/operations/account.js +50 -0
  9. package/operations/account_tax_line_info.d.ts +31 -0
  10. package/operations/account_tax_line_info.js +26 -0
  11. package/operations/aging_report.d.ts +100 -0
  12. package/operations/aging_report.js +26 -0
  13. package/operations/alert.d.ts +118 -0
  14. package/operations/alert.js +50 -0
  15. package/operations/ar_refund_credit_card.d.ts +201 -0
  16. package/operations/ar_refund_credit_card.js +38 -0
  17. package/operations/bar_code.d.ts +40 -0
  18. package/operations/bar_code.js +26 -0
  19. package/operations/bill.d.ts +612 -0
  20. package/operations/bill.js +50 -0
  21. package/operations/bill_payment_check.d.ts +276 -0
  22. package/operations/bill_payment_check.js +50 -0
  23. package/operations/bill_payment_credit_card.d.ts +178 -0
  24. package/operations/bill_payment_credit_card.js +38 -0
  25. package/operations/bill_to_pay.d.ts +54 -0
  26. package/operations/bill_to_pay.js +26 -0
  27. package/operations/billing_rate.d.ts +159 -0
  28. package/operations/billing_rate.js +38 -0
  29. package/operations/budget_summary_report.d.ts +71 -0
  30. package/operations/budget_summary_report.js +26 -0
  31. package/operations/build_assembly.d.ts +264 -0
  32. package/operations/build_assembly.js +50 -0
  33. package/operations/charge.d.ts +330 -0
  34. package/operations/charge.js +50 -0
  35. package/operations/check.d.ts +394 -0
  36. package/operations/check.js +50 -0
  37. package/operations/class.d.ts +170 -0
  38. package/operations/class.js +50 -0
  39. package/operations/cleared_status.d.ts +43 -0
  40. package/operations/cleared_status.js +26 -0
  41. package/operations/client.d.ts +254 -0
  42. package/operations/company.d.ts +36 -0
  43. package/operations/company.js +26 -0
  44. package/operations/company_activity.d.ts +32 -0
  45. package/operations/company_activity.js +26 -0
  46. package/operations/credit_card_charge.d.ts +280 -0
  47. package/operations/credit_card_charge.js +50 -0
  48. package/operations/credit_card_credit.d.ts +280 -0
  49. package/operations/credit_card_credit.js +50 -0
  50. package/operations/credit_memo.d.ts +642 -0
  51. package/operations/credit_memo.js +50 -0
  52. package/operations/currency.d.ts +195 -0
  53. package/operations/currency.js +50 -0
  54. package/operations/custom_detail_report.d.ts +108 -0
  55. package/operations/custom_detail_report.js +26 -0
  56. package/operations/custom_summary_report.d.ts +119 -0
  57. package/operations/custom_summary_report.js +26 -0
  58. package/operations/customer.d.ts +639 -0
  59. package/operations/customer.js +50 -0
  60. package/operations/customer_msg.d.ts +121 -0
  61. package/operations/customer_msg.js +38 -0
  62. package/operations/customer_type.d.ts +127 -0
  63. package/operations/customer_type.js +38 -0
  64. package/operations/data_event_recovery_info.d.ts +61 -0
  65. package/operations/data_event_recovery_info.js +38 -0
  66. package/operations/data_ext.d.ts +197 -0
  67. package/operations/data_ext.js +50 -0
  68. package/operations/data_ext_def.d.ts +173 -0
  69. package/operations/data_ext_def.js +62 -0
  70. package/operations/date_driven_terms.d.ts +141 -0
  71. package/operations/date_driven_terms.js +38 -0
  72. package/operations/deposit.d.ts +402 -0
  73. package/operations/deposit.js +50 -0
  74. package/operations/employee.d.ts +683 -0
  75. package/operations/employee.js +50 -0
  76. package/operations/employee_default.d.ts +133 -0
  77. package/operations/employee_default.js +38 -0
  78. package/operations/entity.d.ts +96 -0
  79. package/operations/entity.js +26 -0
  80. package/operations/estimate.d.ts +590 -0
  81. package/operations/estimate.js +50 -0
  82. package/operations/form1099_category_account_mapping.d.ts +89 -0
  83. package/operations/form1099_category_account_mapping.js +38 -0
  84. package/operations/general_detail_report.d.ts +108 -0
  85. package/operations/general_detail_report.js +26 -0
  86. package/operations/general_summary_report.d.ts +115 -0
  87. package/operations/general_summary_report.js +26 -0
  88. package/operations/host.d.ts +43 -0
  89. package/operations/host.js +26 -0
  90. package/operations/index.js +397 -0
  91. package/operations/inventory_adjustment.d.ts +389 -0
  92. package/operations/inventory_adjustment.js +50 -0
  93. package/operations/inventory_site.d.ts +247 -0
  94. package/operations/inventory_site.js +50 -0
  95. package/operations/invoice.d.ts +682 -0
  96. package/operations/invoice.js +50 -0
  97. package/operations/item.d.ts +100 -0
  98. package/operations/item.js +26 -0
  99. package/operations/item_assemblies_can_build.d.ts +41 -0
  100. package/operations/item_assemblies_can_build.js +26 -0
  101. package/operations/item_discount.d.ts +256 -0
  102. package/operations/item_discount.js +50 -0
  103. package/operations/item_fixed_asset.d.ts +382 -0
  104. package/operations/item_fixed_asset.js +50 -0
  105. package/operations/item_group.d.ts +236 -0
  106. package/operations/item_group.js +50 -0
  107. package/operations/item_inventory.d.ts +350 -0
  108. package/operations/item_inventory.js +50 -0
  109. package/operations/item_inventory_assembly.d.ts +368 -0
  110. package/operations/item_inventory_assembly.js +50 -0
  111. package/operations/item_non_inventory.d.ts +264 -0
  112. package/operations/item_non_inventory.js +50 -0
  113. package/operations/item_other_charge.d.ts +244 -0
  114. package/operations/item_other_charge.js +50 -0
  115. package/operations/item_payment.d.ts +220 -0
  116. package/operations/item_payment.js +50 -0
  117. package/operations/item_receipt.d.ts +362 -0
  118. package/operations/item_receipt.js +50 -0
  119. package/operations/item_sales_tax.d.ts +228 -0
  120. package/operations/item_sales_tax.js +50 -0
  121. package/operations/item_sales_tax_group.d.ts +192 -0
  122. package/operations/item_sales_tax_group.js +50 -0
  123. package/operations/item_service.d.ts +256 -0
  124. package/operations/item_service.js +50 -0
  125. package/operations/item_sites.d.ts +81 -0
  126. package/operations/item_sites.js +26 -0
  127. package/operations/item_subtotal.d.ts +188 -0
  128. package/operations/item_subtotal.js +50 -0
  129. package/operations/job_report.d.ts +99 -0
  130. package/operations/job_report.js +26 -0
  131. package/operations/job_type.d.ts +127 -0
  132. package/operations/job_type.js +38 -0
  133. package/operations/journal_entry.d.ts +339 -0
  134. package/operations/journal_entry.js +50 -0
  135. package/operations/lead.d.ts +291 -0
  136. package/operations/lead.js +50 -0
  137. package/operations/list.d.ts +39 -0
  138. package/operations/list.js +26 -0
  139. package/operations/list_deleted.d.ts +44 -0
  140. package/operations/list_deleted.js +26 -0
  141. package/operations/list_display.d.ts +65 -0
  142. package/operations/list_display.js +38 -0
  143. package/operations/list_merge.d.ts +58 -0
  144. package/operations/list_merge.js +26 -0
  145. package/operations/other_name.d.ts +280 -0
  146. package/operations/other_name.js +50 -0
  147. package/operations/paycheck.d.ts +82 -0
  148. package/operations/paycheck.js +26 -0
  149. package/operations/payment_method.d.ts +131 -0
  150. package/operations/payment_method.js +38 -0
  151. package/operations/payroll_detail_report.d.ts +97 -0
  152. package/operations/payroll_detail_report.js +26 -0
  153. package/operations/payroll_item.d.ts +83 -0
  154. package/operations/payroll_item.js +26 -0
  155. package/operations/payroll_item_addition.d.ts +95 -0
  156. package/operations/payroll_item_addition.js +38 -0
  157. package/operations/payroll_item_company_contribution.d.ts +105 -0
  158. package/operations/payroll_item_company_contribution.js +38 -0
  159. package/operations/payroll_item_deduction.d.ts +101 -0
  160. package/operations/payroll_item_deduction.js +38 -0
  161. package/operations/payroll_item_direct_deposit.d.ts +65 -0
  162. package/operations/payroll_item_direct_deposit.js +38 -0
  163. package/operations/payroll_item_non_wage.d.ts +92 -0
  164. package/operations/payroll_item_non_wage.js +26 -0
  165. package/operations/payroll_item_tax.d.ts +108 -0
  166. package/operations/payroll_item_tax.js +38 -0
  167. package/operations/payroll_item_wage.d.ts +169 -0
  168. package/operations/payroll_item_wage.js +50 -0
  169. package/operations/payroll_item_workers_compensation.d.ts +77 -0
  170. package/operations/payroll_item_workers_compensation.js +38 -0
  171. package/operations/payroll_last_period.d.ts +31 -0
  172. package/operations/payroll_last_period.js +26 -0
  173. package/operations/payroll_liability_adjustment.d.ts +137 -0
  174. package/operations/payroll_liability_adjustment.js +38 -0
  175. package/operations/payroll_liability_check.d.ts +82 -0
  176. package/operations/payroll_liability_check.js +26 -0
  177. package/operations/payroll_prior_payment.d.ts +126 -0
  178. package/operations/payroll_prior_payment.js +38 -0
  179. package/operations/payroll_summary_report.d.ts +107 -0
  180. package/operations/payroll_summary_report.js +26 -0
  181. package/operations/payroll_year_to_date_adjustment.d.ts +156 -0
  182. package/operations/payroll_year_to_date_adjustment.js +38 -0
  183. package/operations/preferences.d.ts +64 -0
  184. package/operations/preferences.js +38 -0
  185. package/operations/price_level.d.ts +234 -0
  186. package/operations/price_level.js +50 -0
  187. package/operations/purchase_order.d.ts +620 -0
  188. package/operations/purchase_order.js +50 -0
  189. package/operations/qb_command_exec.d.ts +49 -0
  190. package/operations/qb_command_exec.js +26 -0
  191. package/operations/receive_payment.d.ts +450 -0
  192. package/operations/receive_payment.js +50 -0
  193. package/operations/receive_payment_to_deposit.d.ts +36 -0
  194. package/operations/receive_payment_to_deposit.js +26 -0
  195. package/operations/sales_order.d.ts +612 -0
  196. package/operations/sales_order.js +50 -0
  197. package/operations/sales_receipt.d.ts +650 -0
  198. package/operations/sales_receipt.js +50 -0
  199. package/operations/sales_rep.d.ts +170 -0
  200. package/operations/sales_rep.js +50 -0
  201. package/operations/sales_tax_code.d.ts +194 -0
  202. package/operations/sales_tax_code.js +50 -0
  203. package/operations/sales_tax_payable.d.ts +42 -0
  204. package/operations/sales_tax_payable.js +26 -0
  205. package/operations/sales_tax_payment_check.d.ts +254 -0
  206. package/operations/sales_tax_payment_check.js +50 -0
  207. package/operations/sales_tax_return.d.ts +35 -0
  208. package/operations/sales_tax_return.js +26 -0
  209. package/operations/sales_tax_return_line.d.ts +36 -0
  210. package/operations/sales_tax_return_line.js +26 -0
  211. package/operations/ship_method.d.ts +121 -0
  212. package/operations/ship_method.js +38 -0
  213. package/operations/special_account.d.ts +40 -0
  214. package/operations/special_account.js +26 -0
  215. package/operations/special_item.d.ts +44 -0
  216. package/operations/special_item.js +26 -0
  217. package/operations/standard_terms.d.ts +133 -0
  218. package/operations/standard_terms.js +38 -0
  219. package/operations/template.d.ts +36 -0
  220. package/operations/template.js +26 -0
  221. package/operations/terms.d.ts +90 -0
  222. package/operations/terms.js +26 -0
  223. package/operations/time_report.d.ts +84 -0
  224. package/operations/time_report.js +26 -0
  225. package/operations/time_tracking.d.ts +214 -0
  226. package/operations/time_tracking.js +50 -0
  227. package/operations/to_do.d.ts +254 -0
  228. package/operations/to_do.js +50 -0
  229. package/operations/transaction.d.ts +244 -0
  230. package/operations/transaction.js +26 -0
  231. package/operations/transfer.d.ts +178 -0
  232. package/operations/transfer.js +50 -0
  233. package/operations/transfer_inventory.d.ts +290 -0
  234. package/operations/transfer_inventory.js +50 -0
  235. package/operations/txn.d.ts +39 -0
  236. package/operations/txn.js +26 -0
  237. package/operations/txn_deleted.d.ts +44 -0
  238. package/operations/txn_deleted.js +26 -0
  239. package/operations/txn_display.d.ts +69 -0
  240. package/operations/txn_display.js +38 -0
  241. package/operations/txn_void.d.ts +39 -0
  242. package/operations/txn_void.js +26 -0
  243. package/operations/types.d.ts +1259 -0
  244. package/operations/unit_of_measure_set.d.ts +168 -0
  245. package/operations/unit_of_measure_set.js +38 -0
  246. package/operations/vehicle.d.ts +168 -0
  247. package/operations/vehicle.js +50 -0
  248. package/operations/vehicle_mileage.d.ts +147 -0
  249. package/operations/vehicle_mileage.js +38 -0
  250. package/operations/vendor.d.ts +541 -0
  251. package/operations/vendor.js +50 -0
  252. package/operations/vendor_credit.d.ts +365 -0
  253. package/operations/vendor_credit.js +50 -0
  254. package/operations/vendor_type.d.ts +127 -0
  255. package/operations/vendor_type.js +38 -0
  256. package/operations/workers_comp_code.d.ts +199 -0
  257. package/operations/workers_comp_code.js +50 -0
  258. package/package.json +14 -4
@@ -0,0 +1,382 @@
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, AccountFilter, BarCodeItemDiscount, CurrencyRef, NameFilter, NameRangeFilter } from "./types";
5
+
6
+ /** QuickBooks item fixed asset operations: `qube.itemFixedAsset.<action>(connectionId, params, { webhookUrl })`. */
7
+ export declare class ItemFixedAsset {
8
+ constructor(client: Client);
9
+ /**
10
+ * Create item fixed asset: `POST /connections/{connection_id}/item-fixed-assets`, queued for QuickBooks.
11
+ *
12
+ * The answer comes to `webhookUrl` as one webhook.
13
+ * Params go in the JSON body.
14
+ *
15
+ * Fields: `acquired_as` (required), `asset_account_ref`, `asset_desc`, `asset_number`, `bar_code`, `class_ref`, `cost_basis`, `external_guid`, `fixed_asset_sales_info`, `include_ret_element`, `is_active`, `location`, `name` (required), `notes`, `po_number`, `purchase_cost`, `purchase_date` (required), `purchase_desc` (required), `request_id`, `serial_number`, `vendor_or_payee_name`, `warranty_exp_date`, `year_end_accumulated_depreciation`, `year_end_book_value`.
16
+ *
17
+ * Resolves to the queued request.
18
+ * @see https://docs.qubesync.com/api-reference/v2/item-fixed-assets/create-item-fixed-asset
19
+ */
20
+ create(connectionId: string, params: ItemFixedAssetCreateParams, options: OperationOptions): Promise<QueuedRequest>;
21
+ /**
22
+ * List item fixed assets: `GET /connections/{connection_id}/item-fixed-assets`, queued for QuickBooks.
23
+ *
24
+ * QuickBooks answers in pages: each page comes to `webhookUrl` as its own webhook.
25
+ * Params go in the query string.
26
+ *
27
+ * Fields: `active_status`, `class_filter`, `from_modified_date`, `full_name`, `include_ret_element`, `iterator`, `list_id`, `max_returned`, `meta_data`, `name_filter`, `name_range_filter`, `owner_id`, `request_id`, `to_modified_date`.
28
+ *
29
+ * Resolves to the queued request.
30
+ * @see https://docs.qubesync.com/api-reference/v2/item-fixed-assets/list-item-fixed-assets
31
+ */
32
+ query(connectionId: string, params: ItemFixedAssetQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
33
+ /**
34
+ * Update item fixed asset: `PUT /connections/{connection_id}/item-fixed-assets`, queued for QuickBooks.
35
+ *
36
+ * The answer comes to `webhookUrl` as one webhook.
37
+ * Params go in the JSON body.
38
+ *
39
+ * Fields: `acquired_as`, `asset_account_ref`, `asset_desc`, `asset_number`, `bar_code`, `class_ref`, `cost_basis`, `edit_sequence` (required), `fixed_asset_sales_info_mod`, `include_ret_element`, `is_active`, `list_id` (required), `location`, `name`, `notes`, `po_number`, `purchase_cost`, `purchase_date`, `purchase_desc`, `request_id`, `serial_number`, `vendor_or_payee_name`, `warranty_exp_date`, `year_end_accumulated_depreciation`, `year_end_book_value`.
40
+ *
41
+ * Resolves to the queued request.
42
+ * @see https://docs.qubesync.com/api-reference/v2/item-fixed-assets/update-item-fixed-asset
43
+ */
44
+ update(connectionId: string, params: ItemFixedAssetUpdateParams, options: OperationOptions): Promise<QueuedRequest>;
45
+ }
46
+
47
+ /**
48
+ * The params of `item_fixed_asset.create`: Create item fixed asset.
49
+ */
50
+ export interface ItemFixedAssetCreateParams {
51
+ /**
52
+ * Indicates whether this item was new or used when the business acquired it.
53
+ */
54
+ acquired_as: "New" | "Old";
55
+ /**
56
+ * Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
57
+ */
58
+ asset_account_ref?: CurrencyRef;
59
+ /**
60
+ * Description of the asset—maker, brand, and so on.
61
+ */
62
+ asset_desc?: string;
63
+ /**
64
+ * The number used by the QuickBooks Fixed Asset Manager to identify this asset.
65
+ */
66
+ asset_number?: string;
67
+ /**
68
+ * Barcode reference information.
69
+ */
70
+ bar_code?: BarCodeItemDiscount;
71
+ /**
72
+ * Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.
73
+ */
74
+ class_ref?: CurrencyRef;
75
+ /**
76
+ * The total cost of the fixed asset. This can include the cost of improvements or repairs. This amount is used to figure depreciation.
77
+ */
78
+ cost_basis?: number;
79
+ /**
80
+ * Allows for the attachment of a user defined GUID value.
81
+ */
82
+ external_guid?: string;
83
+ /**
84
+ * Sales information, if this fixed asset was sold.
85
+ */
86
+ fixed_asset_sales_info?: FixedAssetSalesInfo;
87
+ include_ret_element?: Array<"AcquiredAs" | "AssetAccountRef" | "AssetDesc" | "AssetNumber" | "BarCodeValue" | "ClassRef" | "CostBasis" | "DataExtRet" | "EditSequence" | "ExternalGUID" | "FixedAssetSalesInfo" | "IsActive" | "ListID" | "Location" | "Name" | "Notes" | "OwnerID" | "PONumber" | "PurchaseCost" | "PurchaseDate" | "PurchaseDesc" | "SerialNumber" | "TimeCreated" | "TimeModified" | "TxnID" | "TxnNumber" | "VendorOrPayeeName" | "WarrantyExpDate" | "YearEndAccumulatedDepreciation" | "YearEndBookValue">;
88
+ /**
89
+ * If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.
90
+ */
91
+ is_active?: boolean;
92
+ /**
93
+ * Where the asset is located or has been placed into service.
94
+ */
95
+ location?: string;
96
+ /**
97
+ * Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.
98
+ */
99
+ name: string;
100
+ /**
101
+ * Additional information.
102
+ */
103
+ notes?: string;
104
+ /**
105
+ * Purchase order number.
106
+ */
107
+ po_number?: string;
108
+ /**
109
+ * Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.
110
+ */
111
+ purchase_cost?: number;
112
+ /**
113
+ * The date when this asset was purchased.
114
+ *
115
+ * Format: date.
116
+ */
117
+ purchase_date: string;
118
+ /**
119
+ * Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.
120
+ */
121
+ purchase_desc: string;
122
+ /**
123
+ * 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`.
124
+ */
125
+ request_id?: string;
126
+ /**
127
+ * The serial number of the asset.
128
+ */
129
+ serial_number?: string;
130
+ /**
131
+ * The name of the vendor from whom this asset was purchased.
132
+ */
133
+ vendor_or_payee_name?: string;
134
+ /**
135
+ * The date when the warranty for this asset expires.
136
+ *
137
+ * Format: date.
138
+ */
139
+ warranty_exp_date?: string;
140
+ /**
141
+ * The amount the fixed asset has lost in value since it was purchased, as of the end of the year.
142
+ */
143
+ year_end_accumulated_depreciation?: number;
144
+ /**
145
+ * A reasonable estimate of the sales value of the fixed asset, as of the end of the year.
146
+ */
147
+ year_end_book_value?: number;
148
+ }
149
+
150
+ /**
151
+ * The params of `item_fixed_asset.query`: List item fixed assets.
152
+ */
153
+ export interface ItemFixedAssetQueryParams {
154
+ /**
155
+ * 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.
156
+ *
157
+ * Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
158
+ */
159
+ active_status?: "ActiveOnly" | "All" | "InactiveOnly";
160
+ /**
161
+ * Filters according to the object’s class.
162
+ *
163
+ * Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
164
+ */
165
+ class_filter?: AccountFilter;
166
+ /**
167
+ * 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.
168
+ *
169
+ * Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
170
+ *
171
+ * Format: date-time.
172
+ */
173
+ from_modified_date?: string;
174
+ /**
175
+ * `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.
176
+ *
177
+ * Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
178
+ */
179
+ full_name?: string[];
180
+ include_ret_element?: Array<"AcquiredAs" | "AssetAccountRef" | "AssetDesc" | "AssetNumber" | "BarCodeValue" | "ClassRef" | "CostBasis" | "DataExtRet" | "EditSequence" | "ExternalGUID" | "FixedAssetSalesInfo" | "IsActive" | "ListID" | "Location" | "Name" | "Notes" | "PONumber" | "PurchaseCost" | "PurchaseDate" | "PurchaseDesc" | "SerialNumber" | "TimeCreated" | "TimeModified" | "VendorOrPayeeName" | "WarrantyExpDate" | "YearEndAccumulatedDepreciation" | "YearEndBookValue">;
181
+ /**
182
+ * Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.
183
+ */
184
+ iterator?: boolean;
185
+ /**
186
+ * `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`.
187
+ *
188
+ * Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
189
+ */
190
+ list_id?: string[];
191
+ /**
192
+ * 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.
193
+ *
194
+ * The page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.
195
+ *
196
+ * Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
197
+ *
198
+ * Minimum 1.
199
+ */
200
+ max_returned?: number;
201
+ /**
202
+ * 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.
203
+ */
204
+ meta_data?: "MetaDataAndResponseData" | "MetaDataOnly" | "NoMetaData";
205
+ /**
206
+ * Filters according to the object’s Name.
207
+ *
208
+ * Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
209
+ */
210
+ name_filter?: NameFilter;
211
+ /**
212
+ * Filters according to the object’s Name.
213
+ *
214
+ * Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
215
+ */
216
+ name_range_filter?: NameRangeFilter;
217
+ /**
218
+ * `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.
219
+ */
220
+ owner_id?: string[];
221
+ /**
222
+ * 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`.
223
+ */
224
+ request_id?: string;
225
+ /**
226
+ * 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).
227
+ *
228
+ * Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
229
+ *
230
+ * Format: date-time.
231
+ */
232
+ to_modified_date?: string;
233
+ }
234
+
235
+ /**
236
+ * The params of `item_fixed_asset.update`: Update item fixed asset.
237
+ */
238
+ export interface ItemFixedAssetUpdateParams {
239
+ /**
240
+ * Indicates whether this item was new or used when the business acquired it.
241
+ */
242
+ acquired_as?: "New" | "Old";
243
+ /**
244
+ * Refers to the account QuickBooks uses to track the current value of the company’s inventory. (The AccountType of this account will be FixedAsset, OtherAsset, or OtherCurrentAsset.) In a request, if an `asset_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
245
+ */
246
+ asset_account_ref?: CurrencyRef;
247
+ /**
248
+ * Description of the asset—maker, brand, and so on.
249
+ */
250
+ asset_desc?: string;
251
+ /**
252
+ * The number used by the QuickBooks Fixed Asset Manager to identify this asset.
253
+ */
254
+ asset_number?: string;
255
+ /**
256
+ * Barcode reference information.
257
+ */
258
+ bar_code?: BarCodeItemDiscount;
259
+ /**
260
+ * Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.
261
+ */
262
+ class_ref?: CurrencyRef;
263
+ /**
264
+ * The total cost of the fixed asset. This can include the cost of improvements or repairs. This amount is used to figure depreciation.
265
+ */
266
+ cost_basis?: number;
267
+ /**
268
+ * `edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.
269
+ */
270
+ edit_sequence: string;
271
+ /**
272
+ * Sales information, if this fixed asset was sold.
273
+ */
274
+ fixed_asset_sales_info_mod?: FixedAssetSalesInfoMod;
275
+ include_ret_element?: Array<"AcquiredAs" | "AssetAccountRef" | "AssetDesc" | "AssetNumber" | "BarCodeValue" | "ClassRef" | "CostBasis" | "DataExtRet" | "EditSequence" | "ExternalGUID" | "FixedAssetSalesInfo" | "IsActive" | "ListID" | "Location" | "Name" | "Notes" | "OwnerID" | "PONumber" | "PurchaseCost" | "PurchaseDate" | "PurchaseDesc" | "SerialNumber" | "TimeCreated" | "TimeModified" | "TxnID" | "TxnNumber" | "VendorOrPayeeName" | "WarrantyExpDate" | "YearEndAccumulatedDepreciation" | "YearEndBookValue">;
276
+ /**
277
+ * If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.
278
+ */
279
+ is_active?: boolean;
280
+ /**
281
+ * `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`.
282
+ */
283
+ list_id: string;
284
+ /**
285
+ * Where the asset is located or has been placed into service.
286
+ */
287
+ location?: string;
288
+ /**
289
+ * Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.
290
+ */
291
+ name?: string;
292
+ /**
293
+ * Additional information.
294
+ */
295
+ notes?: string;
296
+ /**
297
+ * Purchase order number.
298
+ */
299
+ po_number?: string;
300
+ /**
301
+ * Amount that the QuickBooks user expects to pay when ordering or buying this item, or the amount that was actually paid for this item.
302
+ */
303
+ purchase_cost?: number;
304
+ /**
305
+ * The date when this asset was purchased.
306
+ *
307
+ * Format: date.
308
+ */
309
+ purchase_date?: string;
310
+ /**
311
+ * Description that appears in the Description column of checks, bills, credit card charges, and item receipts (when an item is reordered). For a fixed asset, a description of the item as it was when it was purchased.
312
+ */
313
+ purchase_desc?: string;
314
+ /**
315
+ * 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`.
316
+ */
317
+ request_id?: string;
318
+ /**
319
+ * The serial number of the asset.
320
+ */
321
+ serial_number?: string;
322
+ /**
323
+ * The name of the vendor from whom this asset was purchased.
324
+ */
325
+ vendor_or_payee_name?: string;
326
+ /**
327
+ * The date when the warranty for this asset expires.
328
+ *
329
+ * Format: date.
330
+ */
331
+ warranty_exp_date?: string;
332
+ /**
333
+ * The amount the fixed asset has lost in value since it was purchased, as of the end of the year.
334
+ */
335
+ year_end_accumulated_depreciation?: number;
336
+ /**
337
+ * A reasonable estimate of the sales value of the fixed asset, as of the end of the year.
338
+ */
339
+ year_end_book_value?: number;
340
+ }
341
+
342
+ export interface FixedAssetSalesInfo {
343
+ /**
344
+ * Date when a fixed asset was sold.
345
+ *
346
+ * Format: date.
347
+ */
348
+ sales_date: string;
349
+ /**
350
+ * Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).
351
+ */
352
+ sales_desc: string;
353
+ /**
354
+ * Any expenses that were incurred during the sale of a fixed asset.
355
+ */
356
+ sales_expense?: number;
357
+ /**
358
+ * Price charged for this item.
359
+ */
360
+ sales_price?: number;
361
+ }
362
+
363
+ export interface FixedAssetSalesInfoMod {
364
+ /**
365
+ * Date when a fixed asset was sold.
366
+ *
367
+ * Format: date.
368
+ */
369
+ sales_date?: string;
370
+ /**
371
+ * Appears in the Description column of a sales form when the QuickBooks user sells this item. For a fixed asset, describes the sale of the asset (for accounting purposes).
372
+ */
373
+ sales_desc?: string;
374
+ /**
375
+ * Any expenses that were incurred during the sale of a fixed asset.
376
+ */
377
+ sales_expense?: number;
378
+ /**
379
+ * Price charged for this item.
380
+ */
381
+ sales_price?: number;
382
+ }
@@ -0,0 +1,50 @@
1
+ // Generated from operations.json by scripts/generate-operations.js: don't edit.
2
+ "use strict";
3
+
4
+ /** QuickBooks item fixed asset operations. Types: item_fixed_asset.d.ts. */
5
+ class ItemFixedAsset {
6
+ #client;
7
+
8
+ /** @param {import("../index").Client} client */
9
+ constructor(client) {
10
+ this.#client = client;
11
+ }
12
+
13
+ /**
14
+ * Create item fixed asset.
15
+ * @param {string} connectionId
16
+ * @param {import("./item_fixed_asset").ItemFixedAssetCreateParams} params
17
+ * @param {import("./types").OperationOptions} options
18
+ * @returns {Promise<import("./types").QueuedRequest>}
19
+ * @see https://docs.qubesync.com/api-reference/v2/item-fixed-assets/create-item-fixed-asset
20
+ */
21
+ create(connectionId, params, options) {
22
+ return this.#client.queue("item_fixed_asset.create", connectionId, params, options);
23
+ }
24
+
25
+ /**
26
+ * List item fixed assets (answers in pages, one webhook each).
27
+ * @param {string} connectionId
28
+ * @param {import("./item_fixed_asset").ItemFixedAssetQueryParams} params
29
+ * @param {import("./types").OperationOptions} options
30
+ * @returns {Promise<import("./types").QueuedRequest>}
31
+ * @see https://docs.qubesync.com/api-reference/v2/item-fixed-assets/list-item-fixed-assets
32
+ */
33
+ query(connectionId, params, options) {
34
+ return this.#client.queue("item_fixed_asset.query", connectionId, params, options);
35
+ }
36
+
37
+ /**
38
+ * Update item fixed asset.
39
+ * @param {string} connectionId
40
+ * @param {import("./item_fixed_asset").ItemFixedAssetUpdateParams} params
41
+ * @param {import("./types").OperationOptions} options
42
+ * @returns {Promise<import("./types").QueuedRequest>}
43
+ * @see https://docs.qubesync.com/api-reference/v2/item-fixed-assets/update-item-fixed-asset
44
+ */
45
+ update(connectionId, params, options) {
46
+ return this.#client.queue("item_fixed_asset.update", connectionId, params, options);
47
+ }
48
+ }
49
+
50
+ module.exports = { ItemFixedAsset };
@@ -0,0 +1,236 @@
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, BarCodeItemDiscount, CurrencyRef, NameFilter, NameRangeFilter } from "./types";
5
+
6
+ /** QuickBooks item group operations: `qube.itemGroup.<action>(connectionId, params, { webhookUrl })`. */
7
+ export declare class ItemGroup {
8
+ constructor(client: Client);
9
+ /**
10
+ * Create item group: `POST /connections/{connection_id}/item-groups`, queued for QuickBooks.
11
+ *
12
+ * The answer comes to `webhookUrl` as one webhook.
13
+ * Params go in the JSON body.
14
+ *
15
+ * Fields: `bar_code`, `external_guid`, `include_ret_element`, `is_active`, `is_print_items_in_group`, `item_desc`, `item_group_line`, `name` (required), `request_id`, `unit_of_measure_set_ref`.
16
+ *
17
+ * Resolves to the queued request.
18
+ * @see https://docs.qubesync.com/api-reference/v2/item-groups/create-item-group
19
+ */
20
+ create(connectionId: string, params: ItemGroupCreateParams, options: OperationOptions): Promise<QueuedRequest>;
21
+ /**
22
+ * List item groups: `GET /connections/{connection_id}/item-groups`, queued for QuickBooks.
23
+ *
24
+ * QuickBooks answers in pages: each page comes to `webhookUrl` as its own webhook.
25
+ * Params go in the query string.
26
+ *
27
+ * Fields: `active_status`, `from_modified_date`, `full_name`, `include_ret_element`, `iterator`, `list_id`, `max_returned`, `meta_data`, `name_filter`, `name_range_filter`, `owner_id`, `request_id`, `to_modified_date`.
28
+ *
29
+ * Resolves to the queued request.
30
+ * @see https://docs.qubesync.com/api-reference/v2/item-groups/list-item-groups
31
+ */
32
+ query(connectionId: string, params: ItemGroupQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
33
+ /**
34
+ * Update item group: `PUT /connections/{connection_id}/item-groups`, queued for QuickBooks.
35
+ *
36
+ * The answer comes to `webhookUrl` as one webhook.
37
+ * Params go in the JSON body.
38
+ *
39
+ * Fields: `bar_code`, `clear_items_in_group`, `edit_sequence` (required), `force_uom_change`, `include_ret_element`, `is_active`, `is_print_items_in_group`, `item_desc`, `item_group_line`, `list_id` (required), `name`, `request_id`, `unit_of_measure_set_ref`.
40
+ *
41
+ * Resolves to the queued request.
42
+ * @see https://docs.qubesync.com/api-reference/v2/item-groups/update-item-group
43
+ */
44
+ update(connectionId: string, params: ItemGroupUpdateParams, options: OperationOptions): Promise<QueuedRequest>;
45
+ }
46
+
47
+ /**
48
+ * The params of `item_group.create`: Create item group.
49
+ */
50
+ export interface ItemGroupCreateParams {
51
+ /**
52
+ * Barcode reference information.
53
+ */
54
+ bar_code?: BarCodeItemDiscount;
55
+ /**
56
+ * Allows for the attachment of a user defined GUID value.
57
+ */
58
+ external_guid?: string;
59
+ include_ret_element?: Array<"BarCodeValue" | "DataExtRet" | "EditSequence" | "ExternalGUID" | "IsActive" | "IsPrintItemsInGroup" | "ItemDesc" | "ItemGroupLine" | "ListID" | "Name" | "OwnerID" | "SpecialItemType" | "TimeCreated" | "TimeModified" | "TxnID" | "TxnNumber" | "UnitOfMeasureSetRef">;
60
+ /**
61
+ * If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.
62
+ */
63
+ is_active?: boolean;
64
+ /**
65
+ * If true, a list of this group’s individual items their amounts will appear on printed forms.
66
+ */
67
+ is_print_items_in_group?: boolean;
68
+ /**
69
+ * The description that will appear on a sales form when the item is used.
70
+ */
71
+ item_desc?: string;
72
+ item_group_line?: ItemGroupLine[];
73
+ /**
74
+ * Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.
75
+ */
76
+ name: string;
77
+ /**
78
+ * 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`.
79
+ */
80
+ request_id?: string;
81
+ /**
82
+ * The unit of measure set consists of a base unit and 0-n related units.
83
+ */
84
+ unit_of_measure_set_ref?: CurrencyRef;
85
+ }
86
+
87
+ /**
88
+ * The params of `item_group.query`: List item groups.
89
+ */
90
+ export interface ItemGroupQueryParams {
91
+ /**
92
+ * 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.
93
+ *
94
+ * 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.
95
+ */
96
+ active_status?: "ActiveOnly" | "All" | "InactiveOnly";
97
+ /**
98
+ * 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.
99
+ *
100
+ * 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.
101
+ *
102
+ * Format: date-time.
103
+ */
104
+ from_modified_date?: string;
105
+ /**
106
+ * `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.
107
+ *
108
+ * 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.
109
+ */
110
+ full_name?: string[];
111
+ include_ret_element?: Array<"BarCodeValue" | "DataExtRet" | "EditSequence" | "ExternalGUID" | "IsActive" | "IsPrintItemsInGroup" | "ItemDesc" | "ItemGroupLine" | "ListID" | "Name" | "SpecialItemType" | "TimeCreated" | "TimeModified" | "UnitOfMeasureSetRef">;
112
+ /**
113
+ * Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.
114
+ */
115
+ iterator?: boolean;
116
+ /**
117
+ * `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`.
118
+ *
119
+ * 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.
120
+ */
121
+ list_id?: string[];
122
+ /**
123
+ * 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.
124
+ *
125
+ * The page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.
126
+ *
127
+ * 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.
128
+ *
129
+ * Minimum 1.
130
+ */
131
+ max_returned?: number;
132
+ /**
133
+ * 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.
134
+ */
135
+ meta_data?: "MetaDataAndResponseData" | "MetaDataOnly" | "NoMetaData";
136
+ /**
137
+ * Filters according to the object’s Name.
138
+ *
139
+ * 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.
140
+ */
141
+ name_filter?: NameFilter;
142
+ /**
143
+ * Filters according to the object’s Name.
144
+ *
145
+ * 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.
146
+ */
147
+ name_range_filter?: NameRangeFilter;
148
+ /**
149
+ * `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.
150
+ */
151
+ owner_id?: string[];
152
+ /**
153
+ * 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`.
154
+ */
155
+ request_id?: string;
156
+ /**
157
+ * 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).
158
+ *
159
+ * 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.
160
+ *
161
+ * Format: date-time.
162
+ */
163
+ to_modified_date?: string;
164
+ }
165
+
166
+ /**
167
+ * The params of `item_group.update`: Update item group.
168
+ */
169
+ export interface ItemGroupUpdateParams {
170
+ /**
171
+ * Barcode reference information.
172
+ */
173
+ bar_code?: BarCodeItemDiscount;
174
+ /**
175
+ * Set to true to clear all the items in this group.
176
+ *
177
+ * Choose at most one of: `clear_items_in_group`, or `item_group_line`.
178
+ */
179
+ clear_items_in_group?: boolean;
180
+ /**
181
+ * `edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.
182
+ */
183
+ edit_sequence: string;
184
+ /**
185
+ * By Default `force_uom_change` is false. However, in item Mod requests, you need to set the `force_uom_change` field to True if you are changing the UOM set and the base unit of the new set doesn’t match the base unit of the UOM set currently assigned to the item. This does the same thing as the user accepting the warning prompt in the UI.
186
+ */
187
+ force_uom_change?: boolean;
188
+ include_ret_element?: Array<"BarCodeValue" | "DataExtRet" | "EditSequence" | "ExternalGUID" | "IsActive" | "IsPrintItemsInGroup" | "ItemDesc" | "ItemGroupLine" | "ListID" | "Name" | "OwnerID" | "SpecialItemType" | "TimeCreated" | "TimeModified" | "TxnID" | "TxnNumber" | "UnitOfMeasureSetRef">;
189
+ /**
190
+ * If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.
191
+ */
192
+ is_active?: boolean;
193
+ /**
194
+ * If true, a list of this group’s individual items their amounts will appear on printed forms.
195
+ */
196
+ is_print_items_in_group?: boolean;
197
+ /**
198
+ * The description that will appear on a sales form when the item is used.
199
+ */
200
+ item_desc?: string;
201
+ /**
202
+ * Choose at most one of: `clear_items_in_group`, or `item_group_line`.
203
+ */
204
+ item_group_line?: ItemGroupLine[];
205
+ /**
206
+ * `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`.
207
+ */
208
+ list_id: string;
209
+ /**
210
+ * Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.
211
+ */
212
+ name?: string;
213
+ /**
214
+ * 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`.
215
+ */
216
+ request_id?: string;
217
+ /**
218
+ * The unit of measure set consists of a base unit and 0-n related units.
219
+ */
220
+ unit_of_measure_set_ref?: CurrencyRef;
221
+ }
222
+
223
+ export interface ItemGroupLine {
224
+ /**
225
+ * `item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.
226
+ */
227
+ item_ref?: CurrencyRef;
228
+ /**
229
+ * On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.
230
+ */
231
+ quantity?: number;
232
+ /**
233
+ * In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!
234
+ */
235
+ unit_of_measure?: string;
236
+ }