conductor-node 12.18.2 → 12.20.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 +17 -0
- package/package.json +1 -1
- package/resources/qbd/index.d.ts +2 -0
- package/resources/qbd/index.d.ts.map +1 -1
- package/resources/qbd/index.js +7 -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-items.d.ts +2 -3
- 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/other-charge-items.d.ts +933 -0
- package/resources/qbd/other-charge-items.d.ts.map +1 -0
- package/resources/qbd/other-charge-items.js +98 -0
- package/resources/qbd/other-charge-items.js.map +1 -0
- package/resources/qbd/other-charge-items.mjs +93 -0
- package/resources/qbd/other-charge-items.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 +9 -0
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +9 -0
- package/resources/qbd/qbd.mjs.map +1 -1
- package/resources/qbd/templates.d.ts +107 -0
- package/resources/qbd/templates.d.ts.map +1 -0
- package/resources/qbd/templates.js +27 -0
- package/resources/qbd/templates.js.map +1 -0
- package/resources/qbd/templates.mjs +23 -0
- package/resources/qbd/templates.mjs.map +1 -0
- package/src/resources/qbd/index.ts +10 -0
- package/src/resources/qbd/inventory-items.ts +2 -3
- package/src/resources/qbd/other-charge-items.ts +1113 -0
- package/src/resources/qbd/qbd.ts +36 -0
- package/src/resources/qbd/templates.ts +144 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class Templates extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Returns a list of templates. Use the `cursor` parameter to paginate through the
|
|
6
|
+
* results.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const templates = await conductor.qbd.templates.list({
|
|
11
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
list(params: TemplateListParams, options?: Core.RequestOptions): Core.APIPromise<TemplateListResponse>;
|
|
16
|
+
}
|
|
17
|
+
export interface Template {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier assigned by QuickBooks to this template. This ID is unique
|
|
20
|
+
* across all templates but not across different QuickBooks object types.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* The date and time when this template was created, in ISO 8601 format
|
|
25
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
|
|
26
|
+
* in QuickBooks.
|
|
27
|
+
*/
|
|
28
|
+
createdAt: string;
|
|
29
|
+
/**
|
|
30
|
+
* Indicates whether this template is active. Inactive objects are typically hidden
|
|
31
|
+
* from views and reports in QuickBooks. Defaults to `true`.
|
|
32
|
+
*/
|
|
33
|
+
isActive: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The case-insensitive unique name of this template, unique across all templates.
|
|
36
|
+
*
|
|
37
|
+
* **NOTE**: Templates do not have a `fullName` field because they are not
|
|
38
|
+
* hierarchical objects, which is why `name` is unique for them but not for objects
|
|
39
|
+
* that have parents.
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* The type of object. This value is always `"qbd_template"`.
|
|
44
|
+
*/
|
|
45
|
+
objectType: 'qbd_template';
|
|
46
|
+
/**
|
|
47
|
+
* The current QuickBooks-assigned revision number of this template object, which
|
|
48
|
+
* changes each time the object is modified. When updating this object, you must
|
|
49
|
+
* provide the most recent `revisionNumber` to ensure you're working with the
|
|
50
|
+
* latest data; otherwise, the update will return an error.
|
|
51
|
+
*/
|
|
52
|
+
revisionNumber: string;
|
|
53
|
+
/**
|
|
54
|
+
* The type of transaction that this template is used for.
|
|
55
|
+
*/
|
|
56
|
+
templateType: 'bill_payment' | 'build_assembly' | 'credit_memo' | 'estimate' | 'invoice' | 'payment_receipt' | 'purchase_order' | 'sales_order' | 'sales_receipt';
|
|
57
|
+
/**
|
|
58
|
+
* The date and time when this template was last updated, in ISO 8601 format
|
|
59
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
|
|
60
|
+
* in QuickBooks.
|
|
61
|
+
*/
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
}
|
|
64
|
+
export interface TemplateListResponse {
|
|
65
|
+
/**
|
|
66
|
+
* The array of templates.
|
|
67
|
+
*/
|
|
68
|
+
data: Array<Template>;
|
|
69
|
+
/**
|
|
70
|
+
* Indicates whether there are more objects to be fetched.
|
|
71
|
+
*/
|
|
72
|
+
hasMore: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The `nextCursor` is a pagination token returned in the response when you use the
|
|
75
|
+
* `limit` parameter in your request. To retrieve subsequent pages of results,
|
|
76
|
+
* include this token as the value of the `cursor` request parameter in your
|
|
77
|
+
* following API calls.
|
|
78
|
+
*
|
|
79
|
+
* **NOTE**: The `nextCursor` value remains constant throughout the pagination
|
|
80
|
+
* process for a specific list instance; continue to use the same `nextCursor`
|
|
81
|
+
* token in each request to fetch additional pages.
|
|
82
|
+
*/
|
|
83
|
+
nextCursor: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* The type of object. This value is always `"list"`.
|
|
86
|
+
*/
|
|
87
|
+
objectType: 'list';
|
|
88
|
+
/**
|
|
89
|
+
* The number of objects remaining to be fetched.
|
|
90
|
+
*/
|
|
91
|
+
remainingCount: number | null;
|
|
92
|
+
/**
|
|
93
|
+
* The endpoint URL where this list can be accessed.
|
|
94
|
+
*/
|
|
95
|
+
url: string;
|
|
96
|
+
}
|
|
97
|
+
export interface TemplateListParams {
|
|
98
|
+
/**
|
|
99
|
+
* The ID of the EndUser to receive this request (e.g.,
|
|
100
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
101
|
+
*/
|
|
102
|
+
conductorEndUserId: string;
|
|
103
|
+
}
|
|
104
|
+
export declare namespace Templates {
|
|
105
|
+
export { type Template as Template, type TemplateListResponse as TemplateListResponse, type TemplateListParams as TemplateListParams, };
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAOvG;AAED,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,cAAc,CAAC;IAE3B;;;;;OAKG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,EACR,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,gBAAgB,GAChB,aAAa,GACb,eAAe,CAAC;IAEpB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAEtB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;;;;;;OASG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Templates = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class Templates extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a list of templates. Use the `cursor` parameter to paginate through the
|
|
9
|
+
* results.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const templates = await conductor.qbd.templates.list({
|
|
14
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(params, options) {
|
|
19
|
+
const { conductorEndUserId } = params;
|
|
20
|
+
return this._client.get('/quickbooks-desktop/templates', {
|
|
21
|
+
...options,
|
|
22
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.Templates = Templates;
|
|
27
|
+
//# sourceMappingURL=templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/resources/qbd/templates.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAA0B,EAAE,OAA6B;QAC5D,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE;YACvD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,8BAmBC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class Templates extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Returns a list of templates. Use the `cursor` parameter to paginate through the
|
|
6
|
+
* results.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const templates = await conductor.qbd.templates.list({
|
|
11
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
list(params, options) {
|
|
16
|
+
const { conductorEndUserId } = params;
|
|
17
|
+
return this._client.get('/quickbooks-desktop/templates', {
|
|
18
|
+
...options,
|
|
19
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=templates.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.mjs","sourceRoot":"","sources":["../../src/resources/qbd/templates.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAA0B,EAAE,OAA6B;QAC5D,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE;YACvD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -254,6 +254,15 @@ export {
|
|
|
254
254
|
type NonInventoryItemUpdateParams,
|
|
255
255
|
type NonInventoryItemListParams,
|
|
256
256
|
} from "./non-inventory-items.js";
|
|
257
|
+
export {
|
|
258
|
+
OtherChargeItemsCursorPage,
|
|
259
|
+
OtherChargeItems,
|
|
260
|
+
type OtherChargeItem,
|
|
261
|
+
type OtherChargeItemCreateParams,
|
|
262
|
+
type OtherChargeItemRetrieveParams,
|
|
263
|
+
type OtherChargeItemUpdateParams,
|
|
264
|
+
type OtherChargeItemListParams,
|
|
265
|
+
} from "./other-charge-items.js";
|
|
257
266
|
export {
|
|
258
267
|
OtherNames,
|
|
259
268
|
type OtherName,
|
|
@@ -387,6 +396,7 @@ export {
|
|
|
387
396
|
type SubtotalItemUpdateParams,
|
|
388
397
|
type SubtotalItemListParams,
|
|
389
398
|
} from "./subtotal-items.js";
|
|
399
|
+
export { Templates, type Template, type TemplateListResponse, type TemplateListParams } from "./templates.js";
|
|
390
400
|
export {
|
|
391
401
|
TimeTrackingActivitiesCursorPage,
|
|
392
402
|
TimeTrackingActivities,
|
|
@@ -171,9 +171,8 @@ export interface InventoryItem {
|
|
|
171
171
|
/**
|
|
172
172
|
* The case-insensitive fully-qualified unique name of this inventory item, formed
|
|
173
173
|
* by combining the names of its hierarchical parent objects with its own `name`,
|
|
174
|
-
* separated by colons. For example, if an inventory item is under
|
|
175
|
-
*
|
|
176
|
-
* "Products:Electronics:Widgets".
|
|
174
|
+
* separated by colons. For example, if an inventory item is under "Kitchen" and
|
|
175
|
+
* has the `name` "Cabinet", its `fullName` would be "Kitchen:Cabinet".
|
|
177
176
|
*
|
|
178
177
|
* **NOTE**: Unlike `name`, `fullName` is guaranteed to be unique across all
|
|
179
178
|
* inventory item objects. However, `fullName` can still be arbitrarily changed by
|