conductor-node 12.7.0 → 12.8.1
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 +23 -0
- package/README.md +4 -4
- package/package.json +1 -1
- package/resources/qbd/index.d.ts +2 -1
- package/resources/qbd/index.d.ts.map +1 -1
- package/resources/qbd/index.js +3 -2
- package/resources/qbd/index.js.map +1 -1
- package/resources/qbd/index.mjs +2 -1
- package/resources/qbd/index.mjs.map +1 -1
- package/resources/qbd/other-names.d.ts +690 -0
- package/resources/qbd/other-names.d.ts.map +1 -0
- package/resources/qbd/other-names.js +88 -0
- package/resources/qbd/other-names.js.map +1 -0
- package/resources/qbd/other-names.mjs +84 -0
- package/resources/qbd/other-names.mjs.map +1 -0
- package/resources/qbd/payment-methods.d.ts +35 -13
- package/resources/qbd/payment-methods.d.ts.map +1 -1
- package/resources/qbd/payment-methods.js +7 -14
- package/resources/qbd/payment-methods.js.map +1 -1
- package/resources/qbd/payment-methods.mjs +6 -12
- package/resources/qbd/payment-methods.mjs.map +1 -1
- package/resources/qbd/qbd.d.ts +6 -2
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js +4 -1
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +5 -2
- package/resources/qbd/qbd.mjs.map +1 -1
- package/src/_shims/auto/runtime-bun.ts +1 -1
- package/src/_shims/auto/runtime-node.ts +1 -1
- package/src/_shims/auto/runtime.ts +1 -1
- package/src/_shims/auto/types-node.ts +1 -1
- package/src/_shims/bun-runtime.ts +2 -2
- package/src/_shims/index.d.ts +3 -3
- package/src/_shims/index.mjs +1 -1
- package/src/_shims/node-runtime.ts +3 -3
- package/src/_shims/registry.ts +1 -1
- package/src/_shims/web-runtime.ts +3 -3
- package/src/core.ts +5 -5
- package/src/error.ts +1 -1
- package/src/index.ts +13 -13
- package/src/internal/qs/formats.ts +1 -1
- package/src/internal/qs/index.ts +3 -3
- package/src/internal/qs/stringify.ts +3 -3
- package/src/internal/qs/utils.ts +2 -2
- package/src/pagination.ts +1 -1
- package/src/resource.ts +1 -1
- package/src/resources/auth-sessions.ts +2 -2
- package/src/resources/end-users.ts +3 -3
- package/src/resources/index.ts +3 -3
- package/src/resources/qbd/account-tax-lines.ts +2 -2
- package/src/resources/qbd/accounts.ts +2 -2
- package/src/resources/qbd/bill-check-payments.ts +3 -3
- package/src/resources/qbd/bill-credit-card-payments.ts +3 -3
- package/src/resources/qbd/bills.ts +3 -3
- package/src/resources/qbd/checks.ts +3 -3
- package/src/resources/qbd/classes.ts +2 -2
- package/src/resources/qbd/company.ts +2 -2
- package/src/resources/qbd/credit-card-charges.ts +3 -3
- package/src/resources/qbd/credit-card-credits.ts +3 -3
- package/src/resources/qbd/credit-memos.ts +3 -3
- package/src/resources/qbd/customers.ts +3 -3
- package/src/resources/qbd/date-driven-terms.ts +2 -2
- package/src/resources/qbd/discount-items.ts +3 -3
- package/src/resources/qbd/employees.ts +3 -3
- package/src/resources/qbd/estimates.ts +3 -3
- package/src/resources/qbd/index.ts +56 -47
- package/src/resources/qbd/inventory-adjustments.ts +2 -2
- package/src/resources/qbd/inventory-assembly-items.ts +3 -3
- package/src/resources/qbd/inventory-items.ts +3 -3
- package/src/resources/qbd/inventory-sites.ts +2 -2
- package/src/resources/qbd/invoices.ts +3 -3
- package/src/resources/qbd/item-groups.ts +3 -3
- package/src/resources/qbd/item-receipts.ts +3 -3
- package/src/resources/qbd/item-sites.ts +3 -3
- package/src/resources/qbd/journal-entries.ts +3 -3
- package/src/resources/qbd/non-inventory-items.ts +3 -3
- package/src/resources/qbd/other-names.ts +855 -0
- package/src/resources/qbd/payment-methods.ts +42 -18
- package/src/resources/qbd/payroll-wage-items.ts +3 -3
- package/src/resources/qbd/preferences.ts +2 -2
- package/src/resources/qbd/price-levels.ts +2 -2
- package/src/resources/qbd/purchase-orders.ts +3 -3
- package/src/resources/qbd/qbd.ts +116 -95
- package/src/resources/qbd/receive-payments.ts +3 -3
- package/src/resources/qbd/sales-orders.ts +3 -3
- package/src/resources/qbd/sales-receipts.ts +3 -3
- package/src/resources/qbd/sales-representatives.ts +2 -2
- package/src/resources/qbd/sales-tax-codes.ts +2 -2
- package/src/resources/qbd/sales-tax-items.ts +3 -3
- package/src/resources/qbd/service-items.ts +3 -3
- package/src/resources/qbd/standard-terms.ts +2 -2
- package/src/resources/qbd/subtotal-items.ts +3 -3
- package/src/resources/qbd/time-tracking-activities.ts +3 -3
- package/src/resources/qbd/transactions.ts +3 -3
- package/src/resources/qbd/transfers.ts +3 -3
- package/src/resources/qbd/vendor-credits.ts +3 -3
- package/src/resources/qbd/vendors.ts +3 -3
- package/src/resources/qbd.ts +1 -1
- package/src/resources.ts +1 -1
- package/src/shims/node.ts +3 -3
- package/src/shims/web.ts +3 -3
- package/src/uploads.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
5
|
-
import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import * as Core from "../../core.js";
|
|
6
5
|
|
|
7
6
|
export class PaymentMethods extends APIResource {
|
|
8
7
|
/**
|
|
@@ -52,25 +51,23 @@ export class PaymentMethods extends APIResource {
|
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
/**
|
|
55
|
-
* Returns a list of payment methods.
|
|
56
|
-
*
|
|
54
|
+
* Returns a list of payment methods. NOTE: QuickBooks Desktop does not support
|
|
55
|
+
* pagination for payment methods; hence, there is no `cursor` parameter. Users
|
|
56
|
+
* typically have few payment methods.
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* ```ts
|
|
60
|
-
*
|
|
61
|
-
* for await (const paymentMethod of client.qbd.paymentMethods.list(
|
|
60
|
+
* const paymentMethods = await client.qbd.paymentMethods.list(
|
|
62
61
|
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
63
|
-
* )
|
|
64
|
-
* // ...
|
|
65
|
-
* }
|
|
62
|
+
* );
|
|
66
63
|
* ```
|
|
67
64
|
*/
|
|
68
65
|
list(
|
|
69
66
|
params: PaymentMethodListParams,
|
|
70
67
|
options?: Core.RequestOptions,
|
|
71
|
-
): Core.
|
|
68
|
+
): Core.APIPromise<PaymentMethodListResponse> {
|
|
72
69
|
const { conductorEndUserId, ...query } = params;
|
|
73
|
-
return this._client.
|
|
70
|
+
return this._client.get('/quickbooks-desktop/payment-methods', {
|
|
74
71
|
query,
|
|
75
72
|
...options,
|
|
76
73
|
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
@@ -78,8 +75,6 @@ export class PaymentMethods extends APIResource {
|
|
|
78
75
|
}
|
|
79
76
|
}
|
|
80
77
|
|
|
81
|
-
export class PaymentMethodsCursorPage extends CursorPage<PaymentMethod> {}
|
|
82
|
-
|
|
83
78
|
export interface PaymentMethod {
|
|
84
79
|
/**
|
|
85
80
|
* The unique identifier assigned by QuickBooks to this payment method. This ID is
|
|
@@ -148,6 +143,23 @@ export interface PaymentMethod {
|
|
|
148
143
|
updatedAt: string;
|
|
149
144
|
}
|
|
150
145
|
|
|
146
|
+
export interface PaymentMethodListResponse {
|
|
147
|
+
/**
|
|
148
|
+
* The array of payment methods.
|
|
149
|
+
*/
|
|
150
|
+
data: Array<PaymentMethod>;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* The type of object. This value is always `"list"`.
|
|
154
|
+
*/
|
|
155
|
+
objectType: 'list';
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* The endpoint URL where this list can be accessed.
|
|
159
|
+
*/
|
|
160
|
+
url: string;
|
|
161
|
+
}
|
|
162
|
+
|
|
151
163
|
export interface PaymentMethodCreateParams {
|
|
152
164
|
/**
|
|
153
165
|
* Body param: The case-insensitive unique name of this payment method, unique
|
|
@@ -198,7 +210,7 @@ export interface PaymentMethodRetrieveParams {
|
|
|
198
210
|
conductorEndUserId: string;
|
|
199
211
|
}
|
|
200
212
|
|
|
201
|
-
export interface PaymentMethodListParams
|
|
213
|
+
export interface PaymentMethodListParams {
|
|
202
214
|
/**
|
|
203
215
|
* Header param: The ID of the EndUser to receive this request (e.g.,
|
|
204
216
|
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
@@ -217,6 +229,20 @@ export interface PaymentMethodListParams extends CursorPageParams {
|
|
|
217
229
|
*/
|
|
218
230
|
ids?: Array<string>;
|
|
219
231
|
|
|
232
|
+
/**
|
|
233
|
+
* Query param: The maximum number of objects to return.
|
|
234
|
+
*
|
|
235
|
+
* **IMPORTANT**: QuickBooks Desktop does not support cursor-based pagination for
|
|
236
|
+
* payment methods. This parameter will limit the response size, but you cannot
|
|
237
|
+
* fetch subsequent results using a cursor. For pagination, use the name-range
|
|
238
|
+
* parameters instead (e.g., `nameFrom=A&nameTo=B`).
|
|
239
|
+
*
|
|
240
|
+
* When this parameter is omitted, the endpoint returns all payment methods without
|
|
241
|
+
* limit, unlike paginated endpoints which default to 150 records. This is
|
|
242
|
+
* acceptable because payment methods typically have low record counts.
|
|
243
|
+
*/
|
|
244
|
+
limit?: number;
|
|
245
|
+
|
|
220
246
|
/**
|
|
221
247
|
* Query param: Filter for payment methods whose `name` contains this substring,
|
|
222
248
|
* case-insensitive. NOTE: If you use this parameter, you cannot also use
|
|
@@ -298,12 +324,10 @@ export interface PaymentMethodListParams extends CursorPageParams {
|
|
|
298
324
|
updatedBefore?: string;
|
|
299
325
|
}
|
|
300
326
|
|
|
301
|
-
PaymentMethods.PaymentMethodsCursorPage = PaymentMethodsCursorPage;
|
|
302
|
-
|
|
303
327
|
export declare namespace PaymentMethods {
|
|
304
328
|
export {
|
|
305
329
|
type PaymentMethod as PaymentMethod,
|
|
306
|
-
|
|
330
|
+
type PaymentMethodListResponse as PaymentMethodListResponse,
|
|
307
331
|
type PaymentMethodCreateParams as PaymentMethodCreateParams,
|
|
308
332
|
type PaymentMethodRetrieveParams as PaymentMethodRetrieveParams,
|
|
309
333
|
type PaymentMethodListParams as PaymentMethodListParams,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
5
|
-
import { CursorPage, type CursorPageParams } from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import * as Core from "../../core.js";
|
|
5
|
+
import { CursorPage, type CursorPageParams } from "../../pagination.js";
|
|
6
6
|
|
|
7
7
|
export class PayrollWageItems extends APIResource {
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import * as Core from "../../core.js";
|
|
5
5
|
|
|
6
6
|
export class Preferences extends APIResource {
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import * as Core from "../../core.js";
|
|
5
5
|
|
|
6
6
|
export class PriceLevels extends APIResource {
|
|
7
7
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
5
|
-
import { CursorPage, type CursorPageParams } from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import * as Core from "../../core.js";
|
|
5
|
+
import { CursorPage, type CursorPageParams } from "../../pagination.js";
|
|
6
6
|
|
|
7
7
|
export class PurchaseOrders extends APIResource {
|
|
8
8
|
/**
|