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.
Files changed (106) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +4 -4
  3. package/package.json +1 -1
  4. package/resources/qbd/index.d.ts +2 -1
  5. package/resources/qbd/index.d.ts.map +1 -1
  6. package/resources/qbd/index.js +3 -2
  7. package/resources/qbd/index.js.map +1 -1
  8. package/resources/qbd/index.mjs +2 -1
  9. package/resources/qbd/index.mjs.map +1 -1
  10. package/resources/qbd/other-names.d.ts +690 -0
  11. package/resources/qbd/other-names.d.ts.map +1 -0
  12. package/resources/qbd/other-names.js +88 -0
  13. package/resources/qbd/other-names.js.map +1 -0
  14. package/resources/qbd/other-names.mjs +84 -0
  15. package/resources/qbd/other-names.mjs.map +1 -0
  16. package/resources/qbd/payment-methods.d.ts +35 -13
  17. package/resources/qbd/payment-methods.d.ts.map +1 -1
  18. package/resources/qbd/payment-methods.js +7 -14
  19. package/resources/qbd/payment-methods.js.map +1 -1
  20. package/resources/qbd/payment-methods.mjs +6 -12
  21. package/resources/qbd/payment-methods.mjs.map +1 -1
  22. package/resources/qbd/qbd.d.ts +6 -2
  23. package/resources/qbd/qbd.d.ts.map +1 -1
  24. package/resources/qbd/qbd.js +4 -1
  25. package/resources/qbd/qbd.js.map +1 -1
  26. package/resources/qbd/qbd.mjs +5 -2
  27. package/resources/qbd/qbd.mjs.map +1 -1
  28. package/src/_shims/auto/runtime-bun.ts +1 -1
  29. package/src/_shims/auto/runtime-node.ts +1 -1
  30. package/src/_shims/auto/runtime.ts +1 -1
  31. package/src/_shims/auto/types-node.ts +1 -1
  32. package/src/_shims/bun-runtime.ts +2 -2
  33. package/src/_shims/index.d.ts +3 -3
  34. package/src/_shims/index.mjs +1 -1
  35. package/src/_shims/node-runtime.ts +3 -3
  36. package/src/_shims/registry.ts +1 -1
  37. package/src/_shims/web-runtime.ts +3 -3
  38. package/src/core.ts +5 -5
  39. package/src/error.ts +1 -1
  40. package/src/index.ts +13 -13
  41. package/src/internal/qs/formats.ts +1 -1
  42. package/src/internal/qs/index.ts +3 -3
  43. package/src/internal/qs/stringify.ts +3 -3
  44. package/src/internal/qs/utils.ts +2 -2
  45. package/src/pagination.ts +1 -1
  46. package/src/resource.ts +1 -1
  47. package/src/resources/auth-sessions.ts +2 -2
  48. package/src/resources/end-users.ts +3 -3
  49. package/src/resources/index.ts +3 -3
  50. package/src/resources/qbd/account-tax-lines.ts +2 -2
  51. package/src/resources/qbd/accounts.ts +2 -2
  52. package/src/resources/qbd/bill-check-payments.ts +3 -3
  53. package/src/resources/qbd/bill-credit-card-payments.ts +3 -3
  54. package/src/resources/qbd/bills.ts +3 -3
  55. package/src/resources/qbd/checks.ts +3 -3
  56. package/src/resources/qbd/classes.ts +2 -2
  57. package/src/resources/qbd/company.ts +2 -2
  58. package/src/resources/qbd/credit-card-charges.ts +3 -3
  59. package/src/resources/qbd/credit-card-credits.ts +3 -3
  60. package/src/resources/qbd/credit-memos.ts +3 -3
  61. package/src/resources/qbd/customers.ts +3 -3
  62. package/src/resources/qbd/date-driven-terms.ts +2 -2
  63. package/src/resources/qbd/discount-items.ts +3 -3
  64. package/src/resources/qbd/employees.ts +3 -3
  65. package/src/resources/qbd/estimates.ts +3 -3
  66. package/src/resources/qbd/index.ts +56 -47
  67. package/src/resources/qbd/inventory-adjustments.ts +2 -2
  68. package/src/resources/qbd/inventory-assembly-items.ts +3 -3
  69. package/src/resources/qbd/inventory-items.ts +3 -3
  70. package/src/resources/qbd/inventory-sites.ts +2 -2
  71. package/src/resources/qbd/invoices.ts +3 -3
  72. package/src/resources/qbd/item-groups.ts +3 -3
  73. package/src/resources/qbd/item-receipts.ts +3 -3
  74. package/src/resources/qbd/item-sites.ts +3 -3
  75. package/src/resources/qbd/journal-entries.ts +3 -3
  76. package/src/resources/qbd/non-inventory-items.ts +3 -3
  77. package/src/resources/qbd/other-names.ts +855 -0
  78. package/src/resources/qbd/payment-methods.ts +42 -18
  79. package/src/resources/qbd/payroll-wage-items.ts +3 -3
  80. package/src/resources/qbd/preferences.ts +2 -2
  81. package/src/resources/qbd/price-levels.ts +2 -2
  82. package/src/resources/qbd/purchase-orders.ts +3 -3
  83. package/src/resources/qbd/qbd.ts +116 -95
  84. package/src/resources/qbd/receive-payments.ts +3 -3
  85. package/src/resources/qbd/sales-orders.ts +3 -3
  86. package/src/resources/qbd/sales-receipts.ts +3 -3
  87. package/src/resources/qbd/sales-representatives.ts +2 -2
  88. package/src/resources/qbd/sales-tax-codes.ts +2 -2
  89. package/src/resources/qbd/sales-tax-items.ts +3 -3
  90. package/src/resources/qbd/service-items.ts +3 -3
  91. package/src/resources/qbd/standard-terms.ts +2 -2
  92. package/src/resources/qbd/subtotal-items.ts +3 -3
  93. package/src/resources/qbd/time-tracking-activities.ts +3 -3
  94. package/src/resources/qbd/transactions.ts +3 -3
  95. package/src/resources/qbd/transfers.ts +3 -3
  96. package/src/resources/qbd/vendor-credits.ts +3 -3
  97. package/src/resources/qbd/vendors.ts +3 -3
  98. package/src/resources/qbd.ts +1 -1
  99. package/src/resources.ts +1 -1
  100. package/src/shims/node.ts +3 -3
  101. package/src/shims/web.ts +3 -3
  102. package/src/uploads.ts +4 -4
  103. package/src/version.ts +1 -1
  104. package/version.d.ts +1 -1
  105. package/version.js +1 -1
  106. 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 '../../resource';
4
- import * as Core from '../../core';
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. Use the `cursor` parameter to paginate
56
- * through the results.
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
- * // Automatically fetches more pages as needed.
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.PagePromise<PaymentMethodsCursorPage, PaymentMethod> {
68
+ ): Core.APIPromise<PaymentMethodListResponse> {
72
69
  const { conductorEndUserId, ...query } = params;
73
- return this._client.getAPIList('/quickbooks-desktop/payment-methods', PaymentMethodsCursorPage, {
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 extends CursorPageParams {
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
- PaymentMethodsCursorPage as PaymentMethodsCursorPage,
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 '../../resource';
4
- import * as Core from '../../core';
5
- import { CursorPage, type CursorPageParams } from '../../pagination';
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 '../../resource';
4
- import * as Core from '../../core';
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 '../../resource';
4
- import * as Core from '../../core';
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 '../../resource';
4
- import * as Core from '../../core';
5
- import { CursorPage, type CursorPageParams } from '../../pagination';
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
  /**