conductor-node 12.5.0 → 12.6.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 +21 -0
- package/package.json +1 -1
- package/resources/auth-sessions.d.ts +8 -0
- package/resources/auth-sessions.d.ts.map +1 -1
- package/resources/auth-sessions.js +8 -0
- package/resources/auth-sessions.js.map +1 -1
- package/resources/auth-sessions.mjs +8 -0
- package/resources/auth-sessions.mjs.map +1 -1
- package/resources/end-users.d.ts +37 -0
- package/resources/end-users.d.ts.map +1 -1
- package/resources/end-users.js +28 -0
- package/resources/end-users.js.map +1 -1
- package/resources/end-users.mjs +28 -0
- package/resources/end-users.mjs.map +1 -1
- package/resources/qbd/account-tax-lines.d.ts +8 -0
- package/resources/qbd/account-tax-lines.d.ts.map +1 -1
- package/resources/qbd/account-tax-lines.js +8 -0
- package/resources/qbd/account-tax-lines.js.map +1 -1
- package/resources/qbd/account-tax-lines.mjs +8 -0
- package/resources/qbd/account-tax-lines.mjs.map +1 -1
- package/resources/qbd/accounts.d.ts +35 -0
- package/resources/qbd/accounts.d.ts.map +1 -1
- package/resources/qbd/accounts.js +35 -0
- package/resources/qbd/accounts.js.map +1 -1
- package/resources/qbd/accounts.mjs +35 -0
- package/resources/qbd/accounts.mjs.map +1 -1
- package/resources/qbd/bill-check-payments.d.ts +54 -0
- package/resources/qbd/bill-check-payments.d.ts.map +1 -1
- package/resources/qbd/bill-check-payments.js +54 -0
- package/resources/qbd/bill-check-payments.js.map +1 -1
- package/resources/qbd/bill-check-payments.mjs +54 -0
- package/resources/qbd/bill-check-payments.mjs.map +1 -1
- package/resources/qbd/bill-credit-card-payments.d.ts +42 -0
- package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -1
- package/resources/qbd/bill-credit-card-payments.js +42 -0
- package/resources/qbd/bill-credit-card-payments.js.map +1 -1
- package/resources/qbd/bill-credit-card-payments.mjs +42 -0
- package/resources/qbd/bill-credit-card-payments.mjs.map +1 -1
- package/resources/qbd/bills.d.ts +46 -0
- package/resources/qbd/bills.d.ts.map +1 -1
- package/resources/qbd/bills.js +46 -0
- package/resources/qbd/bills.js.map +1 -1
- package/resources/qbd/bills.mjs +46 -0
- package/resources/qbd/bills.mjs.map +1 -1
- package/resources/qbd/checks.d.ts +46 -0
- package/resources/qbd/checks.d.ts.map +1 -1
- package/resources/qbd/checks.js +46 -0
- package/resources/qbd/checks.js.map +1 -1
- package/resources/qbd/checks.mjs +46 -0
- package/resources/qbd/checks.mjs.map +1 -1
- package/resources/qbd/classes.d.ts +34 -0
- package/resources/qbd/classes.d.ts.map +1 -1
- package/resources/qbd/classes.js +34 -0
- package/resources/qbd/classes.js.map +1 -1
- package/resources/qbd/classes.mjs +34 -0
- package/resources/qbd/classes.mjs.map +1 -1
- package/resources/qbd/company.d.ts +7 -0
- package/resources/qbd/company.d.ts.map +1 -1
- package/resources/qbd/company.js +7 -0
- package/resources/qbd/company.js.map +1 -1
- package/resources/qbd/company.mjs +7 -0
- package/resources/qbd/company.mjs.map +1 -1
- package/resources/qbd/credit-card-charges.d.ts +50 -0
- package/resources/qbd/credit-card-charges.d.ts.map +1 -1
- package/resources/qbd/credit-card-charges.js +50 -0
- package/resources/qbd/credit-card-charges.js.map +1 -1
- package/resources/qbd/credit-card-charges.mjs +50 -0
- package/resources/qbd/credit-card-charges.mjs.map +1 -1
- package/resources/qbd/credit-card-credits.d.ts +50 -0
- package/resources/qbd/credit-card-credits.d.ts.map +1 -1
- package/resources/qbd/credit-card-credits.js +50 -0
- package/resources/qbd/credit-card-credits.js.map +1 -1
- package/resources/qbd/credit-card-credits.mjs +50 -0
- package/resources/qbd/credit-card-credits.mjs.map +1 -1
- package/resources/qbd/credit-memos.d.ts +46 -0
- package/resources/qbd/credit-memos.d.ts.map +1 -1
- package/resources/qbd/credit-memos.js +46 -0
- package/resources/qbd/credit-memos.js.map +1 -1
- package/resources/qbd/credit-memos.mjs +46 -0
- package/resources/qbd/credit-memos.mjs.map +1 -1
- package/resources/qbd/customers.d.ts +39 -2
- package/resources/qbd/customers.d.ts.map +1 -1
- package/resources/qbd/customers.js +37 -0
- package/resources/qbd/customers.js.map +1 -1
- package/resources/qbd/customers.mjs +37 -0
- package/resources/qbd/customers.mjs.map +1 -1
- package/resources/qbd/date-driven-terms.d.ts +27 -0
- package/resources/qbd/date-driven-terms.d.ts.map +1 -1
- package/resources/qbd/date-driven-terms.js +27 -0
- package/resources/qbd/date-driven-terms.js.map +1 -1
- package/resources/qbd/date-driven-terms.mjs +27 -0
- package/resources/qbd/date-driven-terms.mjs.map +1 -1
- package/resources/qbd/discount-items.d.ts +39 -0
- package/resources/qbd/discount-items.d.ts.map +1 -1
- package/resources/qbd/discount-items.js +39 -0
- package/resources/qbd/discount-items.js.map +1 -1
- package/resources/qbd/discount-items.mjs +39 -0
- package/resources/qbd/discount-items.mjs.map +1 -1
- package/resources/qbd/employees.d.ts +39 -3
- package/resources/qbd/employees.d.ts.map +1 -1
- package/resources/qbd/employees.js +36 -0
- package/resources/qbd/employees.js.map +1 -1
- package/resources/qbd/employees.mjs +36 -0
- package/resources/qbd/employees.mjs.map +1 -1
- package/resources/qbd/estimates.d.ts +46 -0
- package/resources/qbd/estimates.d.ts.map +1 -1
- package/resources/qbd/estimates.js +46 -0
- package/resources/qbd/estimates.js.map +1 -1
- package/resources/qbd/estimates.mjs +46 -0
- package/resources/qbd/estimates.mjs.map +1 -1
- package/resources/qbd/inventory-adjustments.d.ts +48 -0
- package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
- package/resources/qbd/inventory-adjustments.js +48 -0
- package/resources/qbd/inventory-adjustments.js.map +1 -1
- package/resources/qbd/inventory-adjustments.mjs +48 -0
- package/resources/qbd/inventory-adjustments.mjs.map +1 -1
- package/resources/qbd/inventory-assembly-items.d.ts +43 -0
- package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
- package/resources/qbd/inventory-assembly-items.js +43 -0
- package/resources/qbd/inventory-assembly-items.js.map +1 -1
- package/resources/qbd/inventory-assembly-items.mjs +43 -0
- package/resources/qbd/inventory-assembly-items.mjs.map +1 -1
- package/resources/qbd/inventory-items.d.ts +43 -0
- package/resources/qbd/inventory-items.d.ts.map +1 -1
- package/resources/qbd/inventory-items.js +43 -0
- package/resources/qbd/inventory-items.js.map +1 -1
- package/resources/qbd/inventory-items.mjs +43 -0
- package/resources/qbd/inventory-items.mjs.map +1 -1
- package/resources/qbd/inventory-sites.d.ts +37 -0
- package/resources/qbd/inventory-sites.d.ts.map +1 -1
- package/resources/qbd/inventory-sites.js +37 -0
- package/resources/qbd/inventory-sites.js.map +1 -1
- package/resources/qbd/inventory-sites.mjs +37 -0
- package/resources/qbd/inventory-sites.mjs.map +1 -1
- package/resources/qbd/invoices.d.ts +46 -0
- package/resources/qbd/invoices.d.ts.map +1 -1
- package/resources/qbd/invoices.js +46 -0
- package/resources/qbd/invoices.js.map +1 -1
- package/resources/qbd/invoices.mjs +46 -0
- package/resources/qbd/invoices.mjs.map +1 -1
- package/resources/qbd/item-groups.d.ts +38 -0
- package/resources/qbd/item-groups.d.ts.map +1 -1
- package/resources/qbd/item-groups.js +38 -0
- package/resources/qbd/item-groups.js.map +1 -1
- package/resources/qbd/item-groups.mjs +38 -0
- package/resources/qbd/item-groups.mjs.map +1 -1
- package/resources/qbd/item-receipts.d.ts +46 -0
- package/resources/qbd/item-receipts.d.ts.map +1 -1
- package/resources/qbd/item-receipts.js +46 -0
- package/resources/qbd/item-receipts.js.map +1 -1
- package/resources/qbd/item-receipts.mjs +46 -0
- package/resources/qbd/item-receipts.mjs.map +1 -1
- package/resources/qbd/item-sites.d.ts +18 -0
- package/resources/qbd/item-sites.d.ts.map +1 -1
- package/resources/qbd/item-sites.js +18 -0
- package/resources/qbd/item-sites.js.map +1 -1
- package/resources/qbd/item-sites.mjs +18 -0
- package/resources/qbd/item-sites.mjs.map +1 -1
- package/resources/qbd/journal-entries.d.ts +48 -0
- package/resources/qbd/journal-entries.d.ts.map +1 -1
- package/resources/qbd/journal-entries.js +48 -0
- package/resources/qbd/journal-entries.js.map +1 -1
- package/resources/qbd/journal-entries.mjs +48 -0
- package/resources/qbd/journal-entries.mjs.map +1 -1
- package/resources/qbd/non-inventory-items.d.ts +40 -0
- package/resources/qbd/non-inventory-items.d.ts.map +1 -1
- package/resources/qbd/non-inventory-items.js +40 -0
- package/resources/qbd/non-inventory-items.js.map +1 -1
- package/resources/qbd/non-inventory-items.mjs +40 -0
- package/resources/qbd/non-inventory-items.mjs.map +1 -1
- package/resources/qbd/payroll-wage-items.d.ts +30 -0
- package/resources/qbd/payroll-wage-items.d.ts.map +1 -1
- package/resources/qbd/payroll-wage-items.js +30 -0
- package/resources/qbd/payroll-wage-items.js.map +1 -1
- package/resources/qbd/payroll-wage-items.mjs +30 -0
- package/resources/qbd/payroll-wage-items.mjs.map +1 -1
- package/resources/qbd/preferences.d.ts +7 -0
- package/resources/qbd/preferences.d.ts.map +1 -1
- package/resources/qbd/preferences.js +7 -0
- package/resources/qbd/preferences.js.map +1 -1
- package/resources/qbd/preferences.mjs +7 -0
- package/resources/qbd/preferences.mjs.map +1 -1
- package/resources/qbd/price-levels.d.ts +34 -0
- package/resources/qbd/price-levels.d.ts.map +1 -1
- package/resources/qbd/price-levels.js +34 -0
- package/resources/qbd/price-levels.js.map +1 -1
- package/resources/qbd/price-levels.mjs +34 -0
- package/resources/qbd/price-levels.mjs.map +1 -1
- package/resources/qbd/purchase-orders.d.ts +49 -0
- package/resources/qbd/purchase-orders.d.ts.map +1 -1
- package/resources/qbd/purchase-orders.js +49 -0
- package/resources/qbd/purchase-orders.js.map +1 -1
- package/resources/qbd/purchase-orders.mjs +49 -0
- package/resources/qbd/purchase-orders.mjs.map +1 -1
- package/resources/qbd/qbd.d.ts +7 -0
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js +7 -0
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +7 -0
- package/resources/qbd/qbd.mjs.map +1 -1
- package/resources/qbd/receive-payments.d.ts +51 -0
- package/resources/qbd/receive-payments.d.ts.map +1 -1
- package/resources/qbd/receive-payments.js +51 -0
- package/resources/qbd/receive-payments.js.map +1 -1
- package/resources/qbd/receive-payments.mjs +51 -0
- package/resources/qbd/receive-payments.mjs.map +1 -1
- package/resources/qbd/sales-orders.d.ts +46 -0
- package/resources/qbd/sales-orders.d.ts.map +1 -1
- package/resources/qbd/sales-orders.js +46 -0
- package/resources/qbd/sales-orders.js.map +1 -1
- package/resources/qbd/sales-orders.mjs +46 -0
- package/resources/qbd/sales-orders.mjs.map +1 -1
- package/resources/qbd/sales-receipts.d.ts +47 -0
- package/resources/qbd/sales-receipts.d.ts.map +1 -1
- package/resources/qbd/sales-receipts.js +47 -0
- package/resources/qbd/sales-receipts.js.map +1 -1
- package/resources/qbd/sales-receipts.mjs +47 -0
- package/resources/qbd/sales-receipts.mjs.map +1 -1
- package/resources/qbd/sales-representatives.d.ts +39 -0
- package/resources/qbd/sales-representatives.d.ts.map +1 -1
- package/resources/qbd/sales-representatives.js +39 -0
- package/resources/qbd/sales-representatives.js.map +1 -1
- package/resources/qbd/sales-representatives.mjs +39 -0
- package/resources/qbd/sales-representatives.mjs.map +1 -1
- package/resources/qbd/sales-tax-codes.d.ts +36 -0
- package/resources/qbd/sales-tax-codes.d.ts.map +1 -1
- package/resources/qbd/sales-tax-codes.js +36 -0
- package/resources/qbd/sales-tax-codes.js.map +1 -1
- package/resources/qbd/sales-tax-codes.mjs +36 -0
- package/resources/qbd/sales-tax-codes.mjs.map +1 -1
- package/resources/qbd/sales-tax-items.d.ts +38 -0
- package/resources/qbd/sales-tax-items.d.ts.map +1 -1
- package/resources/qbd/sales-tax-items.js +38 -0
- package/resources/qbd/sales-tax-items.js.map +1 -1
- package/resources/qbd/sales-tax-items.mjs +38 -0
- package/resources/qbd/sales-tax-items.mjs.map +1 -1
- package/resources/qbd/service-items.d.ts +37 -0
- package/resources/qbd/service-items.d.ts.map +1 -1
- package/resources/qbd/service-items.js +37 -0
- package/resources/qbd/service-items.js.map +1 -1
- package/resources/qbd/service-items.mjs +37 -0
- package/resources/qbd/service-items.mjs.map +1 -1
- package/resources/qbd/standard-terms.d.ts +24 -0
- package/resources/qbd/standard-terms.d.ts.map +1 -1
- package/resources/qbd/standard-terms.js +24 -0
- package/resources/qbd/standard-terms.js.map +1 -1
- package/resources/qbd/standard-terms.mjs +24 -0
- package/resources/qbd/standard-terms.mjs.map +1 -1
- package/resources/qbd/subtotal-items.d.ts +38 -0
- package/resources/qbd/subtotal-items.d.ts.map +1 -1
- package/resources/qbd/subtotal-items.js +38 -0
- package/resources/qbd/subtotal-items.js.map +1 -1
- package/resources/qbd/subtotal-items.mjs +38 -0
- package/resources/qbd/subtotal-items.mjs.map +1 -1
- package/resources/qbd/time-tracking-activities.d.ts +53 -0
- package/resources/qbd/time-tracking-activities.d.ts.map +1 -1
- package/resources/qbd/time-tracking-activities.js +53 -0
- package/resources/qbd/time-tracking-activities.js.map +1 -1
- package/resources/qbd/time-tracking-activities.mjs +53 -0
- package/resources/qbd/time-tracking-activities.mjs.map +1 -1
- package/resources/qbd/transactions.d.ts +18 -0
- package/resources/qbd/transactions.d.ts.map +1 -1
- package/resources/qbd/transactions.js +18 -0
- package/resources/qbd/transactions.js.map +1 -1
- package/resources/qbd/transactions.mjs +18 -0
- package/resources/qbd/transactions.mjs.map +1 -1
- package/resources/qbd/transfers.d.ts +40 -0
- package/resources/qbd/transfers.d.ts.map +1 -1
- package/resources/qbd/transfers.js +40 -0
- package/resources/qbd/transfers.js.map +1 -1
- package/resources/qbd/transfers.mjs +40 -0
- package/resources/qbd/transfers.mjs.map +1 -1
- package/resources/qbd/vendor-credits.d.ts +47 -0
- package/resources/qbd/vendor-credits.d.ts.map +1 -1
- package/resources/qbd/vendor-credits.js +47 -0
- package/resources/qbd/vendor-credits.js.map +1 -1
- package/resources/qbd/vendor-credits.mjs +47 -0
- package/resources/qbd/vendor-credits.mjs.map +1 -1
- package/resources/qbd/vendors.d.ts +39 -2
- package/resources/qbd/vendors.d.ts.map +1 -1
- package/resources/qbd/vendors.js +37 -0
- package/resources/qbd/vendors.js.map +1 -1
- package/resources/qbd/vendors.mjs +37 -0
- package/resources/qbd/vendors.mjs.map +1 -1
- package/src/resources/auth-sessions.ts +8 -0
- package/src/resources/end-users.ts +37 -0
- package/src/resources/qbd/account-tax-lines.ts +8 -0
- package/src/resources/qbd/accounts.ts +35 -0
- package/src/resources/qbd/bill-check-payments.ts +54 -0
- package/src/resources/qbd/bill-credit-card-payments.ts +42 -0
- package/src/resources/qbd/bills.ts +46 -0
- package/src/resources/qbd/checks.ts +46 -0
- package/src/resources/qbd/classes.ts +34 -0
- package/src/resources/qbd/company.ts +7 -0
- package/src/resources/qbd/credit-card-charges.ts +50 -0
- package/src/resources/qbd/credit-card-credits.ts +50 -0
- package/src/resources/qbd/credit-memos.ts +46 -0
- package/src/resources/qbd/customers.ts +39 -2
- package/src/resources/qbd/date-driven-terms.ts +27 -0
- package/src/resources/qbd/discount-items.ts +39 -0
- package/src/resources/qbd/employees.ts +39 -3
- package/src/resources/qbd/estimates.ts +46 -0
- package/src/resources/qbd/inventory-adjustments.ts +48 -0
- package/src/resources/qbd/inventory-assembly-items.ts +43 -0
- package/src/resources/qbd/inventory-items.ts +43 -0
- package/src/resources/qbd/inventory-sites.ts +37 -0
- package/src/resources/qbd/invoices.ts +46 -0
- package/src/resources/qbd/item-groups.ts +38 -0
- package/src/resources/qbd/item-receipts.ts +46 -0
- package/src/resources/qbd/item-sites.ts +18 -0
- package/src/resources/qbd/journal-entries.ts +48 -0
- package/src/resources/qbd/non-inventory-items.ts +40 -0
- package/src/resources/qbd/payroll-wage-items.ts +30 -0
- package/src/resources/qbd/preferences.ts +7 -0
- package/src/resources/qbd/price-levels.ts +34 -0
- package/src/resources/qbd/purchase-orders.ts +49 -0
- package/src/resources/qbd/qbd.ts +7 -0
- package/src/resources/qbd/receive-payments.ts +51 -0
- package/src/resources/qbd/sales-orders.ts +46 -0
- package/src/resources/qbd/sales-receipts.ts +47 -0
- package/src/resources/qbd/sales-representatives.ts +39 -0
- package/src/resources/qbd/sales-tax-codes.ts +36 -0
- package/src/resources/qbd/sales-tax-items.ts +38 -0
- package/src/resources/qbd/service-items.ts +37 -0
- package/src/resources/qbd/standard-terms.ts +24 -0
- package/src/resources/qbd/subtotal-items.ts +38 -0
- package/src/resources/qbd/time-tracking-activities.ts +53 -0
- package/src/resources/qbd/transactions.ts +18 -0
- package/src/resources/qbd/transfers.ts +40 -0
- package/src/resources/qbd/vendor-credits.ts +47 -0
- package/src/resources/qbd/vendors.ts +39 -2
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -7,6 +7,18 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class InventoryAssemblyItems extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new inventory assembly item.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const inventoryAssemblyItem =
|
|
14
|
+
* await client.qbd.inventoryAssemblyItems.create({
|
|
15
|
+
* assetAccountId: '80000001-1234567890',
|
|
16
|
+
* cogsAccountId: '80000001-1234567890',
|
|
17
|
+
* incomeAccountId: '80000001-1234567890',
|
|
18
|
+
* name: 'Deluxe Kit',
|
|
19
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
10
22
|
*/
|
|
11
23
|
create(
|
|
12
24
|
params: InventoryAssemblyItemCreateParams,
|
|
@@ -22,6 +34,15 @@ export class InventoryAssemblyItems extends APIResource {
|
|
|
22
34
|
|
|
23
35
|
/**
|
|
24
36
|
* Retrieves an inventory assembly item by ID.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const inventoryAssemblyItem =
|
|
41
|
+
* await client.qbd.inventoryAssemblyItems.retrieve(
|
|
42
|
+
* '80000001-1234567890',
|
|
43
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
25
46
|
*/
|
|
26
47
|
retrieve(
|
|
27
48
|
id: string,
|
|
@@ -37,6 +58,18 @@ export class InventoryAssemblyItems extends APIResource {
|
|
|
37
58
|
|
|
38
59
|
/**
|
|
39
60
|
* Updates an existing inventory assembly item.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const inventoryAssemblyItem =
|
|
65
|
+
* await client.qbd.inventoryAssemblyItems.update(
|
|
66
|
+
* '80000001-1234567890',
|
|
67
|
+
* {
|
|
68
|
+
* revisionNumber: '1721172183',
|
|
69
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
70
|
+
* },
|
|
71
|
+
* );
|
|
72
|
+
* ```
|
|
40
73
|
*/
|
|
41
74
|
update(
|
|
42
75
|
id: string,
|
|
@@ -54,6 +87,16 @@ export class InventoryAssemblyItems extends APIResource {
|
|
|
54
87
|
/**
|
|
55
88
|
* Returns a list of inventory assembly items. Use the `cursor` parameter to
|
|
56
89
|
* paginate through the results.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* // Automatically fetches more pages as needed.
|
|
94
|
+
* for await (const inventoryAssemblyItem of client.qbd.inventoryAssemblyItems.list(
|
|
95
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
96
|
+
* )) {
|
|
97
|
+
* // ...
|
|
98
|
+
* }
|
|
99
|
+
* ```
|
|
57
100
|
*/
|
|
58
101
|
list(
|
|
59
102
|
params: InventoryAssemblyItemListParams,
|
|
@@ -7,6 +7,18 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class InventoryItems extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new inventory item.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const inventoryItem =
|
|
14
|
+
* await client.qbd.inventoryItems.create({
|
|
15
|
+
* assetAccountId: '80000001-1234567890',
|
|
16
|
+
* cogsAccountId: '80000001-1234567890',
|
|
17
|
+
* incomeAccountId: '80000001-1234567890',
|
|
18
|
+
* name: 'Cabinet',
|
|
19
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
10
22
|
*/
|
|
11
23
|
create(params: InventoryItemCreateParams, options?: Core.RequestOptions): Core.APIPromise<InventoryItem> {
|
|
12
24
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -19,6 +31,15 @@ export class InventoryItems extends APIResource {
|
|
|
19
31
|
|
|
20
32
|
/**
|
|
21
33
|
* Retrieves an inventory item by ID.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const inventoryItem =
|
|
38
|
+
* await client.qbd.inventoryItems.retrieve(
|
|
39
|
+
* '80000001-1234567890',
|
|
40
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
22
43
|
*/
|
|
23
44
|
retrieve(
|
|
24
45
|
id: string,
|
|
@@ -34,6 +55,18 @@ export class InventoryItems extends APIResource {
|
|
|
34
55
|
|
|
35
56
|
/**
|
|
36
57
|
* Updates an existing inventory item.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const inventoryItem =
|
|
62
|
+
* await client.qbd.inventoryItems.update(
|
|
63
|
+
* '80000001-1234567890',
|
|
64
|
+
* {
|
|
65
|
+
* revisionNumber: '1721172183',
|
|
66
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
67
|
+
* },
|
|
68
|
+
* );
|
|
69
|
+
* ```
|
|
37
70
|
*/
|
|
38
71
|
update(
|
|
39
72
|
id: string,
|
|
@@ -51,6 +84,16 @@ export class InventoryItems extends APIResource {
|
|
|
51
84
|
/**
|
|
52
85
|
* Returns a list of inventory items. Use the `cursor` parameter to paginate
|
|
53
86
|
* through the results.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* // Automatically fetches more pages as needed.
|
|
91
|
+
* for await (const inventoryItem of client.qbd.inventoryItems.list(
|
|
92
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
93
|
+
* )) {
|
|
94
|
+
* // ...
|
|
95
|
+
* }
|
|
96
|
+
* ```
|
|
54
97
|
*/
|
|
55
98
|
list(
|
|
56
99
|
params: InventoryItemListParams,
|
|
@@ -6,6 +6,15 @@ import * as Core from '../../core';
|
|
|
6
6
|
export class InventorySites extends APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new inventory site.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const inventorySite =
|
|
13
|
+
* await client.qbd.inventorySites.create({
|
|
14
|
+
* name: 'Stockroom',
|
|
15
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
9
18
|
*/
|
|
10
19
|
create(params: InventorySiteCreateParams, options?: Core.RequestOptions): Core.APIPromise<InventorySite> {
|
|
11
20
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -18,6 +27,15 @@ export class InventorySites extends APIResource {
|
|
|
18
27
|
|
|
19
28
|
/**
|
|
20
29
|
* Retrieves an inventory site by ID.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const inventorySite =
|
|
34
|
+
* await client.qbd.inventorySites.retrieve(
|
|
35
|
+
* '80000001-1234567890',
|
|
36
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
21
39
|
*/
|
|
22
40
|
retrieve(
|
|
23
41
|
id: string,
|
|
@@ -33,6 +51,18 @@ export class InventorySites extends APIResource {
|
|
|
33
51
|
|
|
34
52
|
/**
|
|
35
53
|
* Updates an existing inventory site.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const inventorySite =
|
|
58
|
+
* await client.qbd.inventorySites.update(
|
|
59
|
+
* '80000001-1234567890',
|
|
60
|
+
* {
|
|
61
|
+
* revisionNumber: '1721172183',
|
|
62
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
63
|
+
* },
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
36
66
|
*/
|
|
37
67
|
update(
|
|
38
68
|
id: string,
|
|
@@ -51,6 +81,13 @@ export class InventorySites extends APIResource {
|
|
|
51
81
|
* Returns a list of inventory sites. NOTE: QuickBooks Desktop does not support
|
|
52
82
|
* pagination for inventory sites; hence, there is no `cursor` parameter. Users
|
|
53
83
|
* typically have few inventory sites.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const inventorySites = await client.qbd.inventorySites.list(
|
|
88
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
89
|
+
* );
|
|
90
|
+
* ```
|
|
54
91
|
*/
|
|
55
92
|
list(
|
|
56
93
|
params: InventorySiteListParams,
|
|
@@ -7,6 +7,15 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class Invoices extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new invoice.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const invoice = await client.qbd.invoices.create({
|
|
14
|
+
* customerId: '80000001-1234567890',
|
|
15
|
+
* transactionDate: '2021-10-01',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(params: InvoiceCreateParams, options?: Core.RequestOptions): Core.APIPromise<Invoice> {
|
|
12
21
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -19,6 +28,14 @@ export class Invoices extends APIResource {
|
|
|
19
28
|
|
|
20
29
|
/**
|
|
21
30
|
* Retrieves an invoice by ID.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const invoice = await client.qbd.invoices.retrieve(
|
|
35
|
+
* '123ABC-1234567890',
|
|
36
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
22
39
|
*/
|
|
23
40
|
retrieve(
|
|
24
41
|
id: string,
|
|
@@ -34,6 +51,17 @@ export class Invoices extends APIResource {
|
|
|
34
51
|
|
|
35
52
|
/**
|
|
36
53
|
* Updates an existing invoice.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const invoice = await client.qbd.invoices.update(
|
|
58
|
+
* '123ABC-1234567890',
|
|
59
|
+
* {
|
|
60
|
+
* revisionNumber: '1721172183',
|
|
61
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
62
|
+
* },
|
|
63
|
+
* );
|
|
64
|
+
* ```
|
|
37
65
|
*/
|
|
38
66
|
update(id: string, params: InvoiceUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Invoice> {
|
|
39
67
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -47,6 +75,16 @@ export class Invoices extends APIResource {
|
|
|
47
75
|
/**
|
|
48
76
|
* Returns a list of invoices. Use the `cursor` parameter to paginate through the
|
|
49
77
|
* results.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* // Automatically fetches more pages as needed.
|
|
82
|
+
* for await (const invoice of client.qbd.invoices.list({
|
|
83
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
84
|
+
* })) {
|
|
85
|
+
* // ...
|
|
86
|
+
* }
|
|
87
|
+
* ```
|
|
50
88
|
*/
|
|
51
89
|
list(
|
|
52
90
|
params: InvoiceListParams,
|
|
@@ -63,6 +101,14 @@ export class Invoices extends APIResource {
|
|
|
63
101
|
/**
|
|
64
102
|
* Permanently deletes a an invoice. The deletion will fail if the invoice is
|
|
65
103
|
* currently in use or has any linked transactions that are in use.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* const invoice = await client.qbd.invoices.delete(
|
|
108
|
+
* '123ABC-1234567890',
|
|
109
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
110
|
+
* );
|
|
111
|
+
* ```
|
|
66
112
|
*/
|
|
67
113
|
delete(
|
|
68
114
|
id: string,
|
|
@@ -7,6 +7,15 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class ItemGroups extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new item group.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const itemGroup = await client.qbd.itemGroups.create({
|
|
14
|
+
* name: 'Office Supplies Bundle',
|
|
15
|
+
* shouldPrintItemsInGroup: true,
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(params: ItemGroupCreateParams, options?: Core.RequestOptions): Core.APIPromise<ItemGroup> {
|
|
12
21
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -19,6 +28,14 @@ export class ItemGroups extends APIResource {
|
|
|
19
28
|
|
|
20
29
|
/**
|
|
21
30
|
* Retrieves an item group by ID.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const itemGroup = await client.qbd.itemGroups.retrieve(
|
|
35
|
+
* '80000001-1234567890',
|
|
36
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
22
39
|
*/
|
|
23
40
|
retrieve(
|
|
24
41
|
id: string,
|
|
@@ -34,6 +51,17 @@ export class ItemGroups extends APIResource {
|
|
|
34
51
|
|
|
35
52
|
/**
|
|
36
53
|
* Updates an existing item group.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const itemGroup = await client.qbd.itemGroups.update(
|
|
58
|
+
* '80000001-1234567890',
|
|
59
|
+
* {
|
|
60
|
+
* revisionNumber: '1721172183',
|
|
61
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
62
|
+
* },
|
|
63
|
+
* );
|
|
64
|
+
* ```
|
|
37
65
|
*/
|
|
38
66
|
update(
|
|
39
67
|
id: string,
|
|
@@ -51,6 +79,16 @@ export class ItemGroups extends APIResource {
|
|
|
51
79
|
/**
|
|
52
80
|
* Returns a list of item groups. Use the `cursor` parameter to paginate through
|
|
53
81
|
* the results.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* // Automatically fetches more pages as needed.
|
|
86
|
+
* for await (const itemGroup of client.qbd.itemGroups.list({
|
|
87
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
88
|
+
* })) {
|
|
89
|
+
* // ...
|
|
90
|
+
* }
|
|
91
|
+
* ```
|
|
54
92
|
*/
|
|
55
93
|
list(
|
|
56
94
|
params: ItemGroupListParams,
|
|
@@ -7,6 +7,15 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class ItemReceipts extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new item receipt.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const itemReceipt = await client.qbd.itemReceipts.create({
|
|
14
|
+
* transactionDate: '2021-10-01',
|
|
15
|
+
* vendorId: '80000001-1234567890',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(params: ItemReceiptCreateParams, options?: Core.RequestOptions): Core.APIPromise<ItemReceipt> {
|
|
12
21
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -19,6 +28,14 @@ export class ItemReceipts extends APIResource {
|
|
|
19
28
|
|
|
20
29
|
/**
|
|
21
30
|
* Retrieves an item receipt by ID.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const itemReceipt = await client.qbd.itemReceipts.retrieve(
|
|
35
|
+
* '123ABC-1234567890',
|
|
36
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
22
39
|
*/
|
|
23
40
|
retrieve(
|
|
24
41
|
id: string,
|
|
@@ -34,6 +51,17 @@ export class ItemReceipts extends APIResource {
|
|
|
34
51
|
|
|
35
52
|
/**
|
|
36
53
|
* Updates an existing item receipt.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const itemReceipt = await client.qbd.itemReceipts.update(
|
|
58
|
+
* '123ABC-1234567890',
|
|
59
|
+
* {
|
|
60
|
+
* revisionNumber: '1721172183',
|
|
61
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
62
|
+
* },
|
|
63
|
+
* );
|
|
64
|
+
* ```
|
|
37
65
|
*/
|
|
38
66
|
update(
|
|
39
67
|
id: string,
|
|
@@ -51,6 +79,16 @@ export class ItemReceipts extends APIResource {
|
|
|
51
79
|
/**
|
|
52
80
|
* Returns a list of item receipts. Use the `cursor` parameter to paginate through
|
|
53
81
|
* the results.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* // Automatically fetches more pages as needed.
|
|
86
|
+
* for await (const itemReceipt of client.qbd.itemReceipts.list(
|
|
87
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
88
|
+
* )) {
|
|
89
|
+
* // ...
|
|
90
|
+
* }
|
|
91
|
+
* ```
|
|
54
92
|
*/
|
|
55
93
|
list(
|
|
56
94
|
params: ItemReceiptListParams,
|
|
@@ -67,6 +105,14 @@ export class ItemReceipts extends APIResource {
|
|
|
67
105
|
/**
|
|
68
106
|
* Permanently deletes a an item receipt. The deletion will fail if the item
|
|
69
107
|
* receipt is currently in use or has any linked transactions that are in use.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* const itemReceipt = await client.qbd.itemReceipts.delete(
|
|
112
|
+
* '123ABC-1234567890',
|
|
113
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
114
|
+
* );
|
|
115
|
+
* ```
|
|
70
116
|
*/
|
|
71
117
|
delete(
|
|
72
118
|
id: string,
|
|
@@ -7,6 +7,14 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class ItemSites extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Retrieves an item site by ID.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const itemSite = await client.qbd.itemSites.retrieve(
|
|
14
|
+
* '80000001-1234567890',
|
|
15
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
10
18
|
*/
|
|
11
19
|
retrieve(
|
|
12
20
|
id: string,
|
|
@@ -23,6 +31,16 @@ export class ItemSites extends APIResource {
|
|
|
23
31
|
/**
|
|
24
32
|
* Returns a list of item sites. Use the `cursor` parameter to paginate through the
|
|
25
33
|
* results.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* // Automatically fetches more pages as needed.
|
|
38
|
+
* for await (const itemSite of client.qbd.itemSites.list({
|
|
39
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
40
|
+
* })) {
|
|
41
|
+
* // ...
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
26
44
|
*/
|
|
27
45
|
list(
|
|
28
46
|
params: ItemSiteListParams,
|
|
@@ -7,6 +7,16 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class JournalEntries extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new journal entry.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const journalEntry = await client.qbd.journalEntries.create(
|
|
14
|
+
* {
|
|
15
|
+
* transactionDate: '2021-10-01',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* },
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
10
20
|
*/
|
|
11
21
|
create(params: JournalEntryCreateParams, options?: Core.RequestOptions): Core.APIPromise<JournalEntry> {
|
|
12
22
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -19,6 +29,15 @@ export class JournalEntries extends APIResource {
|
|
|
19
29
|
|
|
20
30
|
/**
|
|
21
31
|
* Retrieves a journal entry by ID.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const journalEntry =
|
|
36
|
+
* await client.qbd.journalEntries.retrieve(
|
|
37
|
+
* '123ABC-1234567890',
|
|
38
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
22
41
|
*/
|
|
23
42
|
retrieve(
|
|
24
43
|
id: string,
|
|
@@ -34,6 +53,17 @@ export class JournalEntries extends APIResource {
|
|
|
34
53
|
|
|
35
54
|
/**
|
|
36
55
|
* Updates an existing journal entry.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const journalEntry = await client.qbd.journalEntries.update(
|
|
60
|
+
* '123ABC-1234567890',
|
|
61
|
+
* {
|
|
62
|
+
* revisionNumber: '1721172183',
|
|
63
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
64
|
+
* },
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
37
67
|
*/
|
|
38
68
|
update(
|
|
39
69
|
id: string,
|
|
@@ -51,6 +81,16 @@ export class JournalEntries extends APIResource {
|
|
|
51
81
|
/**
|
|
52
82
|
* Returns a list of journal entries. Use the `cursor` parameter to paginate
|
|
53
83
|
* through the results.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* // Automatically fetches more pages as needed.
|
|
88
|
+
* for await (const journalEntry of client.qbd.journalEntries.list(
|
|
89
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
90
|
+
* )) {
|
|
91
|
+
* // ...
|
|
92
|
+
* }
|
|
93
|
+
* ```
|
|
54
94
|
*/
|
|
55
95
|
list(
|
|
56
96
|
params: JournalEntryListParams,
|
|
@@ -67,6 +107,14 @@ export class JournalEntries extends APIResource {
|
|
|
67
107
|
/**
|
|
68
108
|
* Permanently deletes a a journal entry. The deletion will fail if the journal
|
|
69
109
|
* entry is currently in use or has any linked transactions that are in use.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```ts
|
|
113
|
+
* const journalEntry = await client.qbd.journalEntries.delete(
|
|
114
|
+
* '123ABC-1234567890',
|
|
115
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
116
|
+
* );
|
|
117
|
+
* ```
|
|
70
118
|
*/
|
|
71
119
|
delete(
|
|
72
120
|
id: string,
|
|
@@ -7,6 +7,15 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class NonInventoryItems extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new non-inventory item.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const nonInventoryItem =
|
|
14
|
+
* await client.qbd.nonInventoryItems.create({
|
|
15
|
+
* name: 'Printer Ink Cartridge',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(
|
|
12
21
|
params: NonInventoryItemCreateParams,
|
|
@@ -22,6 +31,15 @@ export class NonInventoryItems extends APIResource {
|
|
|
22
31
|
|
|
23
32
|
/**
|
|
24
33
|
* Retrieves a non-inventory item by ID.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const nonInventoryItem =
|
|
38
|
+
* await client.qbd.nonInventoryItems.retrieve(
|
|
39
|
+
* '80000001-1234567890',
|
|
40
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
25
43
|
*/
|
|
26
44
|
retrieve(
|
|
27
45
|
id: string,
|
|
@@ -37,6 +55,18 @@ export class NonInventoryItems extends APIResource {
|
|
|
37
55
|
|
|
38
56
|
/**
|
|
39
57
|
* Updates an existing non-inventory item.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const nonInventoryItem =
|
|
62
|
+
* await client.qbd.nonInventoryItems.update(
|
|
63
|
+
* '80000001-1234567890',
|
|
64
|
+
* {
|
|
65
|
+
* revisionNumber: '1721172183',
|
|
66
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
67
|
+
* },
|
|
68
|
+
* );
|
|
69
|
+
* ```
|
|
40
70
|
*/
|
|
41
71
|
update(
|
|
42
72
|
id: string,
|
|
@@ -54,6 +84,16 @@ export class NonInventoryItems extends APIResource {
|
|
|
54
84
|
/**
|
|
55
85
|
* Returns a list of non-inventory items. Use the `cursor` parameter to paginate
|
|
56
86
|
* through the results.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* // Automatically fetches more pages as needed.
|
|
91
|
+
* for await (const nonInventoryItem of client.qbd.nonInventoryItems.list(
|
|
92
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
93
|
+
* )) {
|
|
94
|
+
* // ...
|
|
95
|
+
* }
|
|
96
|
+
* ```
|
|
57
97
|
*/
|
|
58
98
|
list(
|
|
59
99
|
params: NonInventoryItemListParams,
|
|
@@ -7,6 +7,17 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class PayrollWageItems extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new payroll wage item.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const payrollWageItem =
|
|
14
|
+
* await client.qbd.payrollWageItems.create({
|
|
15
|
+
* expenseAccountId: '80000001-1234567890',
|
|
16
|
+
* name: 'Regular Pay',
|
|
17
|
+
* wageType: 'hourly_regular',
|
|
18
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
10
21
|
*/
|
|
11
22
|
create(
|
|
12
23
|
params: PayrollWageItemCreateParams,
|
|
@@ -22,6 +33,15 @@ export class PayrollWageItems extends APIResource {
|
|
|
22
33
|
|
|
23
34
|
/**
|
|
24
35
|
* Retrieves a payroll wage item by ID.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const payrollWageItem =
|
|
40
|
+
* await client.qbd.payrollWageItems.retrieve(
|
|
41
|
+
* '80000001-1234567890',
|
|
42
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
25
45
|
*/
|
|
26
46
|
retrieve(
|
|
27
47
|
id: string,
|
|
@@ -38,6 +58,16 @@ export class PayrollWageItems extends APIResource {
|
|
|
38
58
|
/**
|
|
39
59
|
* Returns a list of payroll wage items. Use the `cursor` parameter to paginate
|
|
40
60
|
* through the results.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* // Automatically fetches more pages as needed.
|
|
65
|
+
* for await (const payrollWageItem of client.qbd.payrollWageItems.list(
|
|
66
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
67
|
+
* )) {
|
|
68
|
+
* // ...
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
41
71
|
*/
|
|
42
72
|
list(
|
|
43
73
|
params: PayrollWageItemListParams,
|
|
@@ -8,6 +8,13 @@ export class Preferences extends APIResource {
|
|
|
8
8
|
* Returns the preferences that the QuickBooks administrator has set for all users
|
|
9
9
|
* of the connected company file. Note that preferences cannot be modified through
|
|
10
10
|
* the API, only through the QuickBooks Desktop user interface.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const preferences = await client.qbd.preferences.retrieve({
|
|
15
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
11
18
|
*/
|
|
12
19
|
retrieve(params: PreferenceRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Preferences> {
|
|
13
20
|
const { conductorEndUserId } = params;
|