conductor-node 12.0.2 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/resources/qbd/bills.d.ts +45 -45
- package/resources/qbd/checks.d.ts +45 -45
- package/resources/qbd/credit-card-charges.d.ts +45 -45
- package/resources/qbd/credit-card-credits.d.ts +45 -45
- package/resources/qbd/index.d.ts +2 -0
- package/resources/qbd/index.d.ts.map +1 -1
- package/resources/qbd/index.js +8 -2
- package/resources/qbd/index.js.map +1 -1
- package/resources/qbd/index.mjs +2 -0
- package/resources/qbd/index.mjs.map +1 -1
- package/resources/qbd/inventory-assembly-items.d.ts +10 -7
- package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
- package/resources/qbd/inventory-assembly-items.js.map +1 -1
- package/resources/qbd/inventory-assembly-items.mjs.map +1 -1
- package/resources/qbd/inventory-items.d.ts +8 -6
- package/resources/qbd/inventory-items.d.ts.map +1 -1
- package/resources/qbd/inventory-items.js.map +1 -1
- package/resources/qbd/inventory-items.mjs.map +1 -1
- package/resources/qbd/item-groups.d.ts +490 -0
- package/resources/qbd/item-groups.d.ts.map +1 -0
- package/resources/qbd/item-groups.js +58 -0
- package/resources/qbd/item-groups.js.map +1 -0
- package/resources/qbd/item-groups.mjs +53 -0
- package/resources/qbd/item-groups.mjs.map +1 -0
- package/resources/qbd/item-receipts.d.ts +45 -45
- package/resources/qbd/item-sites.d.ts +227 -0
- package/resources/qbd/item-sites.d.ts.map +1 -0
- package/resources/qbd/item-sites.js +36 -0
- package/resources/qbd/item-sites.js.map +1 -0
- package/resources/qbd/item-sites.mjs +31 -0
- package/resources/qbd/item-sites.mjs.map +1 -0
- package/resources/qbd/qbd.d.ts +8 -0
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js +10 -0
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +10 -0
- package/resources/qbd/qbd.mjs.map +1 -1
- package/resources/qbd/vendor-credits.d.ts +45 -45
- package/src/resources/qbd/bills.ts +45 -45
- package/src/resources/qbd/checks.ts +45 -45
- package/src/resources/qbd/credit-card-charges.ts +45 -45
- package/src/resources/qbd/credit-card-credits.ts +45 -45
- package/src/resources/qbd/index.ts +16 -0
- package/src/resources/qbd/inventory-assembly-items.ts +10 -7
- package/src/resources/qbd/inventory-items.ts +8 -6
- package/src/resources/qbd/item-groups.ts +621 -0
- package/src/resources/qbd/item-receipts.ts +45 -45
- package/src/resources/qbd/item-sites.ts +302 -0
- package/src/resources/qbd/qbd.ts +42 -0
- package/src/resources/qbd/vendor-credits.ts +45 -45
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -134,7 +134,7 @@ export interface ItemReceipt {
|
|
|
134
134
|
* bundled together because they are commonly purchased together or grouped for
|
|
135
135
|
* faster entry.
|
|
136
136
|
*/
|
|
137
|
-
|
|
137
|
+
itemGroupLines: Array<ItemReceipt.ItemGroupLine>;
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* The item receipt's item lines, each representing the purchase of a specific item
|
|
@@ -523,54 +523,54 @@ export namespace ItemReceipt {
|
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
|
|
526
|
-
export interface
|
|
526
|
+
export interface ItemGroupLine {
|
|
527
527
|
/**
|
|
528
|
-
* The unique identifier assigned by QuickBooks to this item line
|
|
528
|
+
* The unique identifier assigned by QuickBooks to this item group line. This ID is
|
|
529
529
|
* unique across all transaction line types.
|
|
530
530
|
*/
|
|
531
531
|
id: string;
|
|
532
532
|
|
|
533
533
|
/**
|
|
534
|
-
* The custom fields for the item line
|
|
534
|
+
* The custom fields for the item group line object, added as user-defined data
|
|
535
535
|
* extensions, not included in the standard QuickBooks object.
|
|
536
536
|
*/
|
|
537
|
-
customFields: Array<
|
|
537
|
+
customFields: Array<ItemGroupLine.CustomField>;
|
|
538
538
|
|
|
539
539
|
/**
|
|
540
|
-
* A description of this item line
|
|
540
|
+
* A description of this item group line.
|
|
541
541
|
*/
|
|
542
542
|
description: string | null;
|
|
543
543
|
|
|
544
544
|
/**
|
|
545
|
-
* The item line
|
|
545
|
+
* The item group line's item group, representing a predefined set of items bundled
|
|
546
546
|
* because they are commonly purchased together or grouped for faster entry.
|
|
547
547
|
*/
|
|
548
|
-
itemGroup:
|
|
548
|
+
itemGroup: ItemGroupLine.ItemGroup;
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
|
-
* The item line
|
|
551
|
+
* The item group line's item lines, each representing the purchase of a specific
|
|
552
552
|
* item or service.
|
|
553
553
|
*/
|
|
554
|
-
itemLines: Array<
|
|
554
|
+
itemLines: Array<ItemGroupLine.ItemLine>;
|
|
555
555
|
|
|
556
556
|
/**
|
|
557
|
-
* The type of object. This value is always `"
|
|
557
|
+
* The type of object. This value is always `"qbd_item_group_line"`.
|
|
558
558
|
*/
|
|
559
|
-
objectType: '
|
|
559
|
+
objectType: 'qbd_item_group_line';
|
|
560
560
|
|
|
561
561
|
/**
|
|
562
|
-
* Specifies an alternative unit-of-measure set when updating this item
|
|
563
|
-
*
|
|
562
|
+
* Specifies an alternative unit-of-measure set when updating this item group
|
|
563
|
+
* line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
|
|
564
564
|
* select units from a different set than the item's default unit-of-measure set,
|
|
565
565
|
* which remains unchanged on the item itself. The override applies only to this
|
|
566
566
|
* specific line. For example, you can sell an item typically measured in volume
|
|
567
567
|
* units using weight units in a specific transaction by specifying a different
|
|
568
568
|
* unit-of-measure set with this field.
|
|
569
569
|
*/
|
|
570
|
-
overrideUnitOfMeasureSet:
|
|
570
|
+
overrideUnitOfMeasureSet: ItemGroupLine.OverrideUnitOfMeasureSet | null;
|
|
571
571
|
|
|
572
572
|
/**
|
|
573
|
-
* The quantity of the item group associated with this item line
|
|
573
|
+
* The quantity of the item group associated with this item group line. This field
|
|
574
574
|
* cannot be cleared.
|
|
575
575
|
*
|
|
576
576
|
* **NOTE**: Do not use this field if the associated item group is a discount item
|
|
@@ -579,19 +579,19 @@ export namespace ItemReceipt {
|
|
|
579
579
|
quantity: number | null;
|
|
580
580
|
|
|
581
581
|
/**
|
|
582
|
-
* The total monetary amount of this item line
|
|
582
|
+
* The total monetary amount of this item group line, equivalent to the sum of the
|
|
583
583
|
* amounts in `lines`, represented as a decimal string.
|
|
584
584
|
*/
|
|
585
585
|
totalAmount: string;
|
|
586
586
|
|
|
587
587
|
/**
|
|
588
|
-
* The unit-of-measure used for the `quantity` in this item line
|
|
588
|
+
* The unit-of-measure used for the `quantity` in this item group line. Must be a
|
|
589
589
|
* valid unit within the item's available units of measure.
|
|
590
590
|
*/
|
|
591
591
|
unitOfMeasure: string | null;
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
-
export namespace
|
|
594
|
+
export namespace ItemGroupLine {
|
|
595
595
|
export interface CustomField {
|
|
596
596
|
/**
|
|
597
597
|
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
@@ -631,7 +631,7 @@ export namespace ItemReceipt {
|
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
/**
|
|
634
|
-
* The item line
|
|
634
|
+
* The item group line's item group, representing a predefined set of items bundled
|
|
635
635
|
* because they are commonly purchased together or grouped for faster entry.
|
|
636
636
|
*/
|
|
637
637
|
export interface ItemGroup {
|
|
@@ -1008,8 +1008,8 @@ export namespace ItemReceipt {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
1010
|
/**
|
|
1011
|
-
* Specifies an alternative unit-of-measure set when updating this item
|
|
1012
|
-
*
|
|
1011
|
+
* Specifies an alternative unit-of-measure set when updating this item group
|
|
1012
|
+
* line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
|
|
1013
1013
|
* select units from a different set than the item's default unit-of-measure set,
|
|
1014
1014
|
* which remains unchanged on the item itself. The override applies only to this
|
|
1015
1015
|
* specific line. For example, you can sell an item typically measured in volume
|
|
@@ -1618,7 +1618,7 @@ export interface ItemReceiptCreateParams {
|
|
|
1618
1618
|
* set of items bundled together because they are commonly purchased together or
|
|
1619
1619
|
* grouped for faster entry.
|
|
1620
1620
|
*/
|
|
1621
|
-
|
|
1621
|
+
itemGroupLines?: Array<ItemReceiptCreateParams.ItemGroupLine>;
|
|
1622
1622
|
|
|
1623
1623
|
/**
|
|
1624
1624
|
* Body param: The item receipt's item lines, each representing the purchase of a
|
|
@@ -1780,33 +1780,33 @@ export namespace ItemReceiptCreateParams {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
|
-
export interface
|
|
1783
|
+
export interface ItemGroupLine {
|
|
1784
1784
|
/**
|
|
1785
|
-
* The item line
|
|
1785
|
+
* The item group line's item group, representing a predefined set of items bundled
|
|
1786
1786
|
* because they are commonly purchased together or grouped for faster entry.
|
|
1787
1787
|
*/
|
|
1788
1788
|
itemGroupId: string;
|
|
1789
1789
|
|
|
1790
1790
|
/**
|
|
1791
|
-
* The custom fields for the item line
|
|
1791
|
+
* The custom fields for the item group line object, added as user-defined data
|
|
1792
1792
|
* extensions, not included in the standard QuickBooks object.
|
|
1793
1793
|
*/
|
|
1794
|
-
customFields?: Array<
|
|
1794
|
+
customFields?: Array<ItemGroupLine.CustomField>;
|
|
1795
1795
|
|
|
1796
1796
|
/**
|
|
1797
1797
|
* The site location where inventory for the item group associated with this item
|
|
1798
|
-
* line
|
|
1798
|
+
* group line is stored.
|
|
1799
1799
|
*/
|
|
1800
1800
|
inventorySiteId?: string;
|
|
1801
1801
|
|
|
1802
1802
|
/**
|
|
1803
1803
|
* The specific location (e.g., bin or shelf) within the inventory site where the
|
|
1804
|
-
* item group associated with this item line
|
|
1804
|
+
* item group associated with this item group line is stored.
|
|
1805
1805
|
*/
|
|
1806
1806
|
inventorySiteLocationId?: string;
|
|
1807
1807
|
|
|
1808
1808
|
/**
|
|
1809
|
-
* The quantity of the item group associated with this item line
|
|
1809
|
+
* The quantity of the item group associated with this item group line. This field
|
|
1810
1810
|
* cannot be cleared.
|
|
1811
1811
|
*
|
|
1812
1812
|
* **NOTE**: Do not use this field if the associated item group is a discount item
|
|
@@ -1815,13 +1815,13 @@ export namespace ItemReceiptCreateParams {
|
|
|
1815
1815
|
quantity?: number;
|
|
1816
1816
|
|
|
1817
1817
|
/**
|
|
1818
|
-
* The unit-of-measure used for the `quantity` in this item line
|
|
1818
|
+
* The unit-of-measure used for the `quantity` in this item group line. Must be a
|
|
1819
1819
|
* valid unit within the item's available units of measure.
|
|
1820
1820
|
*/
|
|
1821
1821
|
unitOfMeasure?: string;
|
|
1822
1822
|
}
|
|
1823
1823
|
|
|
1824
|
-
export namespace
|
|
1824
|
+
export namespace ItemGroupLine {
|
|
1825
1825
|
export interface CustomField {
|
|
1826
1826
|
/**
|
|
1827
1827
|
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
@@ -2161,7 +2161,7 @@ export interface ItemReceiptUpdateParams {
|
|
|
2161
2161
|
* 3. If you do not wish to modify any item group lines, omit this field entirely
|
|
2162
2162
|
* to keep them unchanged.
|
|
2163
2163
|
*/
|
|
2164
|
-
|
|
2164
|
+
itemGroupLines?: Array<ItemReceiptUpdateParams.ItemGroupLine>;
|
|
2165
2165
|
|
|
2166
2166
|
/**
|
|
2167
2167
|
* Body param: The item receipt's item lines, each representing the purchase of a
|
|
@@ -2296,29 +2296,29 @@ export namespace ItemReceiptUpdateParams {
|
|
|
2296
2296
|
salesTaxCodeId?: string;
|
|
2297
2297
|
}
|
|
2298
2298
|
|
|
2299
|
-
export interface
|
|
2299
|
+
export interface ItemGroupLine {
|
|
2300
2300
|
/**
|
|
2301
|
-
* The QuickBooks-assigned unique identifier of an existing item line
|
|
2301
|
+
* The QuickBooks-assigned unique identifier of an existing item group line you
|
|
2302
2302
|
* wish to retain or update.
|
|
2303
2303
|
*
|
|
2304
|
-
* **IMPORTANT**: Set this field to `-1` for new item
|
|
2304
|
+
* **IMPORTANT**: Set this field to `-1` for new item group lines you wish to add.
|
|
2305
2305
|
*/
|
|
2306
2306
|
id: string;
|
|
2307
2307
|
|
|
2308
2308
|
/**
|
|
2309
|
-
* The item line
|
|
2309
|
+
* The item group line's item group, representing a predefined set of items bundled
|
|
2310
2310
|
* because they are commonly purchased together or grouped for faster entry.
|
|
2311
2311
|
*/
|
|
2312
2312
|
itemGroupId?: string;
|
|
2313
2313
|
|
|
2314
2314
|
/**
|
|
2315
|
-
* The item line
|
|
2315
|
+
* The item group line's item lines, each representing the purchase of a specific
|
|
2316
2316
|
* item or service.
|
|
2317
2317
|
*
|
|
2318
2318
|
* **IMPORTANT**:
|
|
2319
2319
|
*
|
|
2320
2320
|
* 1. Including this array in your update request will **REPLACE** all existing
|
|
2321
|
-
* item lines for the item line
|
|
2321
|
+
* item lines for the item group line with this array. To keep any existing item
|
|
2322
2322
|
* lines, you must include them in this array even if they have not changed.
|
|
2323
2323
|
* **Any item lines not included will be removed.**
|
|
2324
2324
|
*
|
|
@@ -2327,11 +2327,11 @@ export namespace ItemReceiptUpdateParams {
|
|
|
2327
2327
|
* 3. If you do not wish to modify any item lines, omit this field entirely to keep
|
|
2328
2328
|
* them unchanged.
|
|
2329
2329
|
*/
|
|
2330
|
-
itemLines?: Array<
|
|
2330
|
+
itemLines?: Array<ItemGroupLine.ItemLine>;
|
|
2331
2331
|
|
|
2332
2332
|
/**
|
|
2333
|
-
* Specifies an alternative unit-of-measure set when updating this item
|
|
2334
|
-
*
|
|
2333
|
+
* Specifies an alternative unit-of-measure set when updating this item group
|
|
2334
|
+
* line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
|
|
2335
2335
|
* select units from a different set than the item's default unit-of-measure set,
|
|
2336
2336
|
* which remains unchanged on the item itself. The override applies only to this
|
|
2337
2337
|
* specific line. For example, you can sell an item typically measured in volume
|
|
@@ -2341,7 +2341,7 @@ export namespace ItemReceiptUpdateParams {
|
|
|
2341
2341
|
overrideUnitOfMeasureSetId?: string;
|
|
2342
2342
|
|
|
2343
2343
|
/**
|
|
2344
|
-
* The quantity of the item group associated with this item line
|
|
2344
|
+
* The quantity of the item group associated with this item group line. This field
|
|
2345
2345
|
* cannot be cleared.
|
|
2346
2346
|
*
|
|
2347
2347
|
* **NOTE**: Do not use this field if the associated item group is a discount item
|
|
@@ -2350,13 +2350,13 @@ export namespace ItemReceiptUpdateParams {
|
|
|
2350
2350
|
quantity?: number;
|
|
2351
2351
|
|
|
2352
2352
|
/**
|
|
2353
|
-
* The unit-of-measure used for the `quantity` in this item line
|
|
2353
|
+
* The unit-of-measure used for the `quantity` in this item group line. Must be a
|
|
2354
2354
|
* valid unit within the item's available units of measure.
|
|
2355
2355
|
*/
|
|
2356
2356
|
unitOfMeasure?: string;
|
|
2357
2357
|
}
|
|
2358
2358
|
|
|
2359
|
-
export namespace
|
|
2359
|
+
export namespace ItemGroupLine {
|
|
2360
2360
|
export interface ItemLine {
|
|
2361
2361
|
/**
|
|
2362
2362
|
* The QuickBooks-assigned unique identifier of an existing item line you wish to
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
6
|
+
|
|
7
|
+
export class ItemSites extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves an item site by ID.
|
|
10
|
+
*/
|
|
11
|
+
retrieve(
|
|
12
|
+
id: string,
|
|
13
|
+
params: ItemSiteRetrieveParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Core.APIPromise<ItemSite> {
|
|
16
|
+
const { conductorEndUserId } = params;
|
|
17
|
+
return this._client.get(`/quickbooks-desktop/item-sites/${id}`, {
|
|
18
|
+
...options,
|
|
19
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Returns a list of item sites. Use the `cursor` parameter to paginate through the
|
|
25
|
+
* results.
|
|
26
|
+
*/
|
|
27
|
+
list(
|
|
28
|
+
params: ItemSiteListParams,
|
|
29
|
+
options?: Core.RequestOptions,
|
|
30
|
+
): Core.PagePromise<ItemSitesCursorPage, ItemSite> {
|
|
31
|
+
const { conductorEndUserId, ...query } = params;
|
|
32
|
+
return this._client.getAPIList('/quickbooks-desktop/item-sites', ItemSitesCursorPage, {
|
|
33
|
+
query,
|
|
34
|
+
...options,
|
|
35
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class ItemSitesCursorPage extends CursorPage<ItemSite> {}
|
|
41
|
+
|
|
42
|
+
export interface ItemSite {
|
|
43
|
+
/**
|
|
44
|
+
* The unique identifier assigned by QuickBooks to this item site. This ID is
|
|
45
|
+
* unique across all item sites but not across different QuickBooks object types.
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The inventory level of this item site at which a new build assembly should
|
|
51
|
+
* begin. When the combined `quantityOnHand` and `quantityOnPurchaseOrders` drops
|
|
52
|
+
* below this point, QuickBooks flags the need to build additional units.
|
|
53
|
+
*/
|
|
54
|
+
assemblyBuildPoint: number | null;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The date and time when this item site was created, in ISO 8601 format
|
|
58
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
|
|
59
|
+
* in QuickBooks.
|
|
60
|
+
*/
|
|
61
|
+
createdAt: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The inventory assembly item associated with this item site. An inventory
|
|
65
|
+
* assembly item is assembled or manufactured from other inventory items, and the
|
|
66
|
+
* items and/or assemblies that make up the assembly are called components.
|
|
67
|
+
*/
|
|
68
|
+
inventoryAssemblyItem: ItemSite.InventoryAssemblyItem | null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The inventory item associated with this item site.
|
|
72
|
+
*/
|
|
73
|
+
inventoryItem: ItemSite.InventoryItem | null;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The site location where inventory for the item associated with this item site is
|
|
77
|
+
* stored.
|
|
78
|
+
*/
|
|
79
|
+
inventorySite: ItemSite.InventorySite | null;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The specific location (e.g., bin or shelf) within the inventory site where the
|
|
83
|
+
* item associated with this item site is stored.
|
|
84
|
+
*/
|
|
85
|
+
inventorySiteLocation: ItemSite.InventorySiteLocation | null;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The type of object. This value is always `"qbd_item_site"`.
|
|
89
|
+
*/
|
|
90
|
+
objectType: 'qbd_item_site';
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The number of units of this item site currently in inventory. `quantityOnHand`
|
|
94
|
+
* multiplied by `averageCost` equals `totalValue` for inventory item lists. To
|
|
95
|
+
* change the `quantityOnHand` for an item site, you must use an
|
|
96
|
+
* inventory-adjustment instead of updating the item site directly.
|
|
97
|
+
*/
|
|
98
|
+
quantityOnHand: number | null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The number of units of this item site that are currently on pending inventory
|
|
102
|
+
* transfer transactions.
|
|
103
|
+
*/
|
|
104
|
+
quantityOnPendingTransfers: number | null;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The number of units of this item site that are currently listed on outstanding
|
|
108
|
+
* purchase orders and have not yet been received.
|
|
109
|
+
*/
|
|
110
|
+
quantityOnPurchaseOrders: number | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The number of units of this item site that are currently listed on outstanding
|
|
114
|
+
* sales orders and have not yet been fulfilled or delivered to customers.
|
|
115
|
+
*/
|
|
116
|
+
quantityOnSalesOrders: number | null;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The number of units of this item site required by pending build transactions.
|
|
120
|
+
*/
|
|
121
|
+
quantityRequiredByPendingBuildTransactions: number | null;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The number of units of this item site that are scheduled to be built on pending
|
|
125
|
+
* build transactions.
|
|
126
|
+
*/
|
|
127
|
+
quantityToBeBuiltByPendingBuildTransactions: number | null;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The inventory level at which QuickBooks prompts you to reorder this item site.
|
|
131
|
+
*/
|
|
132
|
+
reorderLevel: number | null;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The current QuickBooks-assigned revision number of this item site object, which
|
|
136
|
+
* changes each time the object is modified. When updating this object, you must
|
|
137
|
+
* provide the most recent `revisionNumber` to ensure you're working with the
|
|
138
|
+
* latest data; otherwise, the update will return an error.
|
|
139
|
+
*/
|
|
140
|
+
revisionNumber: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* The date and time when this item site was last updated, in ISO 8601 format
|
|
144
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
|
|
145
|
+
* in QuickBooks.
|
|
146
|
+
*/
|
|
147
|
+
updatedAt: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export namespace ItemSite {
|
|
151
|
+
/**
|
|
152
|
+
* The inventory assembly item associated with this item site. An inventory
|
|
153
|
+
* assembly item is assembled or manufactured from other inventory items, and the
|
|
154
|
+
* items and/or assemblies that make up the assembly are called components.
|
|
155
|
+
*/
|
|
156
|
+
export interface InventoryAssemblyItem {
|
|
157
|
+
/**
|
|
158
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
159
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
160
|
+
* types.
|
|
161
|
+
*/
|
|
162
|
+
id: string | null;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
166
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
167
|
+
* case-sensitive.
|
|
168
|
+
*/
|
|
169
|
+
fullName: string | null;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The inventory item associated with this item site.
|
|
174
|
+
*/
|
|
175
|
+
export interface InventoryItem {
|
|
176
|
+
/**
|
|
177
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
178
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
179
|
+
* types.
|
|
180
|
+
*/
|
|
181
|
+
id: string | null;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
185
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
186
|
+
* case-sensitive.
|
|
187
|
+
*/
|
|
188
|
+
fullName: string | null;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The site location where inventory for the item associated with this item site is
|
|
193
|
+
* stored.
|
|
194
|
+
*/
|
|
195
|
+
export interface InventorySite {
|
|
196
|
+
/**
|
|
197
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
198
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
199
|
+
* types.
|
|
200
|
+
*/
|
|
201
|
+
id: string | null;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
205
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
206
|
+
* case-sensitive.
|
|
207
|
+
*/
|
|
208
|
+
fullName: string | null;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The specific location (e.g., bin or shelf) within the inventory site where the
|
|
213
|
+
* item associated with this item site is stored.
|
|
214
|
+
*/
|
|
215
|
+
export interface InventorySiteLocation {
|
|
216
|
+
/**
|
|
217
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
218
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
219
|
+
* types.
|
|
220
|
+
*/
|
|
221
|
+
id: string | null;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
225
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
226
|
+
* case-sensitive.
|
|
227
|
+
*/
|
|
228
|
+
fullName: string | null;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface ItemSiteRetrieveParams {
|
|
233
|
+
/**
|
|
234
|
+
* The ID of the EndUser to receive this request (e.g.,
|
|
235
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
236
|
+
*/
|
|
237
|
+
conductorEndUserId: string;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface ItemSiteListParams extends CursorPageParams {
|
|
241
|
+
/**
|
|
242
|
+
* Header param: The ID of the EndUser to receive this request (e.g.,
|
|
243
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
244
|
+
*/
|
|
245
|
+
conductorEndUserId: string;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Query param: Filter for specific item sites by their QuickBooks-assigned unique
|
|
249
|
+
* identifier(s).
|
|
250
|
+
*
|
|
251
|
+
* **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
|
|
252
|
+
* query parameters for this request.
|
|
253
|
+
*
|
|
254
|
+
* **NOTE**: If any of the values you specify in this parameter are not found, the
|
|
255
|
+
* request will return an error.
|
|
256
|
+
*/
|
|
257
|
+
ids?: Array<string>;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Query param: Filter for item sites for these items.
|
|
261
|
+
*/
|
|
262
|
+
itemIds?: Array<string>;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Query param: Filter for item sites that match this item type.
|
|
266
|
+
*/
|
|
267
|
+
itemType?:
|
|
268
|
+
| 'all_except_fixed_asset'
|
|
269
|
+
| 'assembly'
|
|
270
|
+
| 'discount'
|
|
271
|
+
| 'fixed_asset'
|
|
272
|
+
| 'inventory'
|
|
273
|
+
| 'inventory_and_assembly'
|
|
274
|
+
| 'non_inventory'
|
|
275
|
+
| 'other_charge'
|
|
276
|
+
| 'payment'
|
|
277
|
+
| 'sales'
|
|
278
|
+
| 'sales_tax'
|
|
279
|
+
| 'service';
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Query param: Filter for item sites at these sites. A site represents a physical
|
|
283
|
+
* location, such as a warehouse or store.
|
|
284
|
+
*/
|
|
285
|
+
siteIds?: Array<string>;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Query param: Filter for item sites that are active, inactive, or both.
|
|
289
|
+
*/
|
|
290
|
+
status?: 'active' | 'all' | 'inactive';
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
ItemSites.ItemSitesCursorPage = ItemSitesCursorPage;
|
|
294
|
+
|
|
295
|
+
export declare namespace ItemSites {
|
|
296
|
+
export {
|
|
297
|
+
type ItemSite as ItemSite,
|
|
298
|
+
ItemSitesCursorPage as ItemSitesCursorPage,
|
|
299
|
+
type ItemSiteRetrieveParams as ItemSiteRetrieveParams,
|
|
300
|
+
type ItemSiteListParams as ItemSiteListParams,
|
|
301
|
+
};
|
|
302
|
+
}
|
package/src/resources/qbd/qbd.ts
CHANGED
|
@@ -219,6 +219,16 @@ import {
|
|
|
219
219
|
Invoices,
|
|
220
220
|
InvoicesCursorPage,
|
|
221
221
|
} from './invoices';
|
|
222
|
+
import * as ItemGroupsAPI from './item-groups';
|
|
223
|
+
import {
|
|
224
|
+
ItemGroup,
|
|
225
|
+
ItemGroupCreateParams,
|
|
226
|
+
ItemGroupListParams,
|
|
227
|
+
ItemGroupRetrieveParams,
|
|
228
|
+
ItemGroupUpdateParams,
|
|
229
|
+
ItemGroups,
|
|
230
|
+
ItemGroupsCursorPage,
|
|
231
|
+
} from './item-groups';
|
|
222
232
|
import * as ItemReceiptsAPI from './item-receipts';
|
|
223
233
|
import {
|
|
224
234
|
ItemReceipt,
|
|
@@ -231,6 +241,14 @@ import {
|
|
|
231
241
|
ItemReceipts,
|
|
232
242
|
ItemReceiptsCursorPage,
|
|
233
243
|
} from './item-receipts';
|
|
244
|
+
import * as ItemSitesAPI from './item-sites';
|
|
245
|
+
import {
|
|
246
|
+
ItemSite,
|
|
247
|
+
ItemSiteListParams,
|
|
248
|
+
ItemSiteRetrieveParams,
|
|
249
|
+
ItemSites,
|
|
250
|
+
ItemSitesCursorPage,
|
|
251
|
+
} from './item-sites';
|
|
234
252
|
import * as JournalEntriesAPI from './journal-entries';
|
|
235
253
|
import {
|
|
236
254
|
JournalEntries,
|
|
@@ -465,7 +483,9 @@ export class Qbd extends APIResource {
|
|
|
465
483
|
inventoryItems: InventoryItemsAPI.InventoryItems = new InventoryItemsAPI.InventoryItems(this._client);
|
|
466
484
|
inventorySites: InventorySitesAPI.InventorySites = new InventorySitesAPI.InventorySites(this._client);
|
|
467
485
|
invoices: InvoicesAPI.Invoices = new InvoicesAPI.Invoices(this._client);
|
|
486
|
+
itemGroups: ItemGroupsAPI.ItemGroups = new ItemGroupsAPI.ItemGroups(this._client);
|
|
468
487
|
itemReceipts: ItemReceiptsAPI.ItemReceipts = new ItemReceiptsAPI.ItemReceipts(this._client);
|
|
488
|
+
itemSites: ItemSitesAPI.ItemSites = new ItemSitesAPI.ItemSites(this._client);
|
|
469
489
|
journalEntries: JournalEntriesAPI.JournalEntries = new JournalEntriesAPI.JournalEntries(this._client);
|
|
470
490
|
nonInventoryItems: NonInventoryItemsAPI.NonInventoryItems = new NonInventoryItemsAPI.NonInventoryItems(
|
|
471
491
|
this._client,
|
|
@@ -568,8 +588,12 @@ Qbd.InventoryItemsCursorPage = InventoryItemsCursorPage;
|
|
|
568
588
|
Qbd.InventorySites = InventorySites;
|
|
569
589
|
Qbd.Invoices = Invoices;
|
|
570
590
|
Qbd.InvoicesCursorPage = InvoicesCursorPage;
|
|
591
|
+
Qbd.ItemGroups = ItemGroups;
|
|
592
|
+
Qbd.ItemGroupsCursorPage = ItemGroupsCursorPage;
|
|
571
593
|
Qbd.ItemReceipts = ItemReceipts;
|
|
572
594
|
Qbd.ItemReceiptsCursorPage = ItemReceiptsCursorPage;
|
|
595
|
+
Qbd.ItemSites = ItemSites;
|
|
596
|
+
Qbd.ItemSitesCursorPage = ItemSitesCursorPage;
|
|
573
597
|
Qbd.JournalEntries = JournalEntries;
|
|
574
598
|
Qbd.JournalEntriesCursorPage = JournalEntriesCursorPage;
|
|
575
599
|
Qbd.NonInventoryItems = NonInventoryItems;
|
|
@@ -832,6 +856,16 @@ export declare namespace Qbd {
|
|
|
832
856
|
type InvoiceDeleteParams as InvoiceDeleteParams,
|
|
833
857
|
};
|
|
834
858
|
|
|
859
|
+
export {
|
|
860
|
+
ItemGroups as ItemGroups,
|
|
861
|
+
type ItemGroup as ItemGroup,
|
|
862
|
+
ItemGroupsCursorPage as ItemGroupsCursorPage,
|
|
863
|
+
type ItemGroupCreateParams as ItemGroupCreateParams,
|
|
864
|
+
type ItemGroupRetrieveParams as ItemGroupRetrieveParams,
|
|
865
|
+
type ItemGroupUpdateParams as ItemGroupUpdateParams,
|
|
866
|
+
type ItemGroupListParams as ItemGroupListParams,
|
|
867
|
+
};
|
|
868
|
+
|
|
835
869
|
export {
|
|
836
870
|
ItemReceipts as ItemReceipts,
|
|
837
871
|
type ItemReceipt as ItemReceipt,
|
|
@@ -844,6 +878,14 @@ export declare namespace Qbd {
|
|
|
844
878
|
type ItemReceiptDeleteParams as ItemReceiptDeleteParams,
|
|
845
879
|
};
|
|
846
880
|
|
|
881
|
+
export {
|
|
882
|
+
ItemSites as ItemSites,
|
|
883
|
+
type ItemSite as ItemSite,
|
|
884
|
+
ItemSitesCursorPage as ItemSitesCursorPage,
|
|
885
|
+
type ItemSiteRetrieveParams as ItemSiteRetrieveParams,
|
|
886
|
+
type ItemSiteListParams as ItemSiteListParams,
|
|
887
|
+
};
|
|
888
|
+
|
|
847
889
|
export {
|
|
848
890
|
JournalEntries as JournalEntries,
|
|
849
891
|
type JournalEntry as JournalEntry,
|