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.
Files changed (56) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/resources/qbd/bills.d.ts +45 -45
  4. package/resources/qbd/checks.d.ts +45 -45
  5. package/resources/qbd/credit-card-charges.d.ts +45 -45
  6. package/resources/qbd/credit-card-credits.d.ts +45 -45
  7. package/resources/qbd/index.d.ts +2 -0
  8. package/resources/qbd/index.d.ts.map +1 -1
  9. package/resources/qbd/index.js +8 -2
  10. package/resources/qbd/index.js.map +1 -1
  11. package/resources/qbd/index.mjs +2 -0
  12. package/resources/qbd/index.mjs.map +1 -1
  13. package/resources/qbd/inventory-assembly-items.d.ts +10 -7
  14. package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
  15. package/resources/qbd/inventory-assembly-items.js.map +1 -1
  16. package/resources/qbd/inventory-assembly-items.mjs.map +1 -1
  17. package/resources/qbd/inventory-items.d.ts +8 -6
  18. package/resources/qbd/inventory-items.d.ts.map +1 -1
  19. package/resources/qbd/inventory-items.js.map +1 -1
  20. package/resources/qbd/inventory-items.mjs.map +1 -1
  21. package/resources/qbd/item-groups.d.ts +490 -0
  22. package/resources/qbd/item-groups.d.ts.map +1 -0
  23. package/resources/qbd/item-groups.js +58 -0
  24. package/resources/qbd/item-groups.js.map +1 -0
  25. package/resources/qbd/item-groups.mjs +53 -0
  26. package/resources/qbd/item-groups.mjs.map +1 -0
  27. package/resources/qbd/item-receipts.d.ts +45 -45
  28. package/resources/qbd/item-sites.d.ts +227 -0
  29. package/resources/qbd/item-sites.d.ts.map +1 -0
  30. package/resources/qbd/item-sites.js +36 -0
  31. package/resources/qbd/item-sites.js.map +1 -0
  32. package/resources/qbd/item-sites.mjs +31 -0
  33. package/resources/qbd/item-sites.mjs.map +1 -0
  34. package/resources/qbd/qbd.d.ts +8 -0
  35. package/resources/qbd/qbd.d.ts.map +1 -1
  36. package/resources/qbd/qbd.js +10 -0
  37. package/resources/qbd/qbd.js.map +1 -1
  38. package/resources/qbd/qbd.mjs +10 -0
  39. package/resources/qbd/qbd.mjs.map +1 -1
  40. package/resources/qbd/vendor-credits.d.ts +45 -45
  41. package/src/resources/qbd/bills.ts +45 -45
  42. package/src/resources/qbd/checks.ts +45 -45
  43. package/src/resources/qbd/credit-card-charges.ts +45 -45
  44. package/src/resources/qbd/credit-card-credits.ts +45 -45
  45. package/src/resources/qbd/index.ts +16 -0
  46. package/src/resources/qbd/inventory-assembly-items.ts +10 -7
  47. package/src/resources/qbd/inventory-items.ts +8 -6
  48. package/src/resources/qbd/item-groups.ts +621 -0
  49. package/src/resources/qbd/item-receipts.ts +45 -45
  50. package/src/resources/qbd/item-sites.ts +302 -0
  51. package/src/resources/qbd/qbd.ts +42 -0
  52. package/src/resources/qbd/vendor-credits.ts +45 -45
  53. package/src/version.ts +1 -1
  54. package/version.d.ts +1 -1
  55. package/version.js +1 -1
  56. package/version.mjs +1 -1
@@ -0,0 +1,490 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import { CursorPage, type CursorPageParams } from "../../pagination.js";
4
+ export declare class ItemGroups extends APIResource {
5
+ /**
6
+ * Creates a new item group.
7
+ */
8
+ create(params: ItemGroupCreateParams, options?: Core.RequestOptions): Core.APIPromise<ItemGroup>;
9
+ /**
10
+ * Retrieves an item group by ID.
11
+ */
12
+ retrieve(id: string, params: ItemGroupRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<ItemGroup>;
13
+ /**
14
+ * Updates an existing item group.
15
+ */
16
+ update(id: string, params: ItemGroupUpdateParams, options?: Core.RequestOptions): Core.APIPromise<ItemGroup>;
17
+ /**
18
+ * Returns a list of item groups. Use the `cursor` parameter to paginate through
19
+ * the results.
20
+ */
21
+ list(params: ItemGroupListParams, options?: Core.RequestOptions): Core.PagePromise<ItemGroupsCursorPage, ItemGroup>;
22
+ }
23
+ export declare class ItemGroupsCursorPage extends CursorPage<ItemGroup> {
24
+ }
25
+ export interface ItemGroup {
26
+ /**
27
+ * The unique identifier assigned by QuickBooks to this item group. This ID is
28
+ * unique across all item groups but not across different QuickBooks object types.
29
+ */
30
+ id: string;
31
+ /**
32
+ * The item group's barcode.
33
+ */
34
+ barcode: string | null;
35
+ /**
36
+ * The date and time when this item group was created, in ISO 8601 format
37
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
38
+ * in QuickBooks.
39
+ */
40
+ createdAt: string;
41
+ /**
42
+ * The custom fields for the item group object, added as user-defined data
43
+ * extensions, not included in the standard QuickBooks object.
44
+ */
45
+ customFields: Array<ItemGroup.CustomField>;
46
+ /**
47
+ * The item group's description that will appear on sales forms that include this
48
+ * item.
49
+ */
50
+ description: string | null;
51
+ /**
52
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
53
+ * this object in your external system. This field is immutable and can only be set
54
+ * during object creation.
55
+ */
56
+ externalId: string | null;
57
+ /**
58
+ * Indicates whether this item group is active. Inactive objects are typically
59
+ * hidden from views and reports in QuickBooks. Defaults to `true`.
60
+ */
61
+ isActive: boolean;
62
+ /**
63
+ * The item lines in this item group.
64
+ */
65
+ lines: Array<ItemGroup.Line>;
66
+ /**
67
+ * The case-insensitive unique name of this item group, unique across all item
68
+ * groups.
69
+ *
70
+ * **NOTE**: Item groups do not have a `fullName` field because they are not
71
+ * hierarchical objects, which is why `name` is unique for them but not for objects
72
+ * that have parents.
73
+ */
74
+ name: string;
75
+ /**
76
+ * The type of object. This value is always `"qbd_item_group"`.
77
+ */
78
+ objectType: 'qbd_item_group';
79
+ /**
80
+ * The current QuickBooks-assigned revision number of this item group object, which
81
+ * changes each time the object is modified. When updating this object, you must
82
+ * provide the most recent `revisionNumber` to ensure you're working with the
83
+ * latest data; otherwise, the update will return an error.
84
+ */
85
+ revisionNumber: string;
86
+ /**
87
+ * Indicates whether the individual items in this item group and their separate
88
+ * amounts appear on printed forms.
89
+ */
90
+ shouldPrintItemsInGroup: boolean;
91
+ /**
92
+ * The type of special item for this item group.
93
+ */
94
+ specialItemType: 'finance_charge' | 'reimbursable_expense_group' | 'reimbursable_expense_subtotal' | null;
95
+ /**
96
+ * The unit-of-measure set associated with this item group, which consists of a
97
+ * base unit and related units.
98
+ */
99
+ unitOfMeasureSet: ItemGroup.UnitOfMeasureSet | null;
100
+ /**
101
+ * The date and time when this item group was last updated, in ISO 8601 format
102
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
103
+ * in QuickBooks.
104
+ */
105
+ updatedAt: string;
106
+ }
107
+ export declare namespace ItemGroup {
108
+ interface CustomField {
109
+ /**
110
+ * The name of the custom field, unique for the specified `ownerId`. For public
111
+ * custom fields, this name is visible as a label in the QuickBooks UI.
112
+ */
113
+ name: string;
114
+ /**
115
+ * The identifier of the owner of the custom field, which QuickBooks internally
116
+ * calls a "data extension". For public custom fields visible in the UI, such as
117
+ * those added by the QuickBooks user, this is always "0". For private custom
118
+ * fields that are only visible to the application that created them, this is a
119
+ * valid GUID identifying the owning application. Internally, Conductor always
120
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
121
+ * objects.
122
+ */
123
+ ownerId: string;
124
+ /**
125
+ * The data type of this custom field.
126
+ */
127
+ type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
128
+ /**
129
+ * The value of this custom field. The maximum length depends on the field's data
130
+ * type.
131
+ */
132
+ value: string;
133
+ }
134
+ interface Line {
135
+ /**
136
+ * The item associated with this item group line. This can refer to any good or
137
+ * service that the business buys or sells, including item types such as a service
138
+ * item, inventory item, or special calculation item like a discount item or
139
+ * sales-tax item.
140
+ */
141
+ item: Line.Item | null;
142
+ /**
143
+ * The quantity of the item group associated with this item group line. This field
144
+ * cannot be cleared.
145
+ *
146
+ * **NOTE**: Do not use this field if the associated item group is a discount item
147
+ * group.
148
+ */
149
+ quantity: number | null;
150
+ /**
151
+ * The unit-of-measure used for the `quantity` in this item group line. Must be a
152
+ * valid unit within the item's available units of measure.
153
+ */
154
+ unitOfMeasure: string | null;
155
+ }
156
+ namespace Line {
157
+ /**
158
+ * The item associated with this item group line. This can refer to any good or
159
+ * service that the business buys or sells, including item types such as a service
160
+ * item, inventory item, or special calculation item like a discount item or
161
+ * sales-tax item.
162
+ */
163
+ interface Item {
164
+ /**
165
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
166
+ * across all objects of the same type, but not across different QuickBooks object
167
+ * types.
168
+ */
169
+ id: string | null;
170
+ /**
171
+ * The fully-qualified unique name for this object, formed by combining the names
172
+ * of its parent objects with its own `name`, separated by colons. Not
173
+ * case-sensitive.
174
+ */
175
+ fullName: string | null;
176
+ }
177
+ }
178
+ /**
179
+ * The unit-of-measure set associated with this item group, which consists of a
180
+ * base unit and related units.
181
+ */
182
+ interface UnitOfMeasureSet {
183
+ /**
184
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
185
+ * across all objects of the same type, but not across different QuickBooks object
186
+ * types.
187
+ */
188
+ id: string | null;
189
+ /**
190
+ * The fully-qualified unique name for this object, formed by combining the names
191
+ * of its parent objects with its own `name`, separated by colons. Not
192
+ * case-sensitive.
193
+ */
194
+ fullName: string | null;
195
+ }
196
+ }
197
+ export interface ItemGroupCreateParams {
198
+ /**
199
+ * Body param: The case-insensitive unique name of this item group, unique across
200
+ * all item groups.
201
+ *
202
+ * **NOTE**: Item groups do not have a `fullName` field because they are not
203
+ * hierarchical objects, which is why `name` is unique for them but not for objects
204
+ * that have parents.
205
+ *
206
+ * Maximum length: 31 characters.
207
+ */
208
+ name: string;
209
+ /**
210
+ * Body param: Indicates whether the individual items in this item group and their
211
+ * separate amounts appear on printed forms.
212
+ */
213
+ shouldPrintItemsInGroup: boolean;
214
+ /**
215
+ * Header param: The ID of the EndUser to receive this request (e.g.,
216
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
217
+ */
218
+ conductorEndUserId: string;
219
+ /**
220
+ * Body param: The item group's barcode.
221
+ */
222
+ barcode?: ItemGroupCreateParams.Barcode;
223
+ /**
224
+ * Body param: The item group's description that will appear on sales forms that
225
+ * include this item.
226
+ */
227
+ description?: string;
228
+ /**
229
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
230
+ * for tracking this object in your external system. This field is immutable and
231
+ * can only be set during object creation.
232
+ *
233
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
234
+ * QuickBooks will return an error.
235
+ */
236
+ externalId?: string;
237
+ /**
238
+ * Body param: Indicates whether this item group is active. Inactive objects are
239
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
240
+ */
241
+ isActive?: boolean;
242
+ /**
243
+ * Body param: The item lines in this item group.
244
+ */
245
+ lines?: Array<ItemGroupCreateParams.Line>;
246
+ /**
247
+ * Body param: The unit-of-measure set associated with this item group, which
248
+ * consists of a base unit and related units.
249
+ */
250
+ unitOfMeasureSetId?: string;
251
+ }
252
+ export declare namespace ItemGroupCreateParams {
253
+ /**
254
+ * The item group's barcode.
255
+ */
256
+ interface Barcode {
257
+ /**
258
+ * Indicates whether to allow the barcode to be overridden.
259
+ */
260
+ allowOverride?: boolean;
261
+ /**
262
+ * Indicates whether to assign the barcode even if it is already used.
263
+ */
264
+ assignEvenIfUsed?: boolean;
265
+ /**
266
+ * The item's barcode value.
267
+ */
268
+ value?: string;
269
+ }
270
+ interface Line {
271
+ /**
272
+ * The item associated with this item group line. This can refer to any good or
273
+ * service that the business buys or sells, including item types such as a service
274
+ * item, inventory item, or special calculation item like a discount item or
275
+ * sales-tax item.
276
+ */
277
+ itemId?: string;
278
+ /**
279
+ * The quantity of the item group associated with this item group line. This field
280
+ * cannot be cleared.
281
+ *
282
+ * **NOTE**: Do not use this field if the associated item group is a discount item
283
+ * group.
284
+ */
285
+ quantity?: number;
286
+ /**
287
+ * The unit-of-measure used for the `quantity` in this item group line. Must be a
288
+ * valid unit within the item's available units of measure.
289
+ */
290
+ unitOfMeasure?: string;
291
+ }
292
+ }
293
+ export interface ItemGroupRetrieveParams {
294
+ /**
295
+ * The ID of the EndUser to receive this request (e.g.,
296
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
297
+ */
298
+ conductorEndUserId: string;
299
+ }
300
+ export interface ItemGroupUpdateParams {
301
+ /**
302
+ * Body param: The current QuickBooks-assigned revision number of the item group
303
+ * object you are updating, which you can get by fetching the object first. Provide
304
+ * the most recent `revisionNumber` to ensure you're working with the latest data;
305
+ * otherwise, the update will return an error.
306
+ */
307
+ revisionNumber: string;
308
+ /**
309
+ * Header param: The ID of the EndUser to receive this request (e.g.,
310
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
311
+ */
312
+ conductorEndUserId: string;
313
+ /**
314
+ * Body param: The item group's barcode.
315
+ */
316
+ barcode?: ItemGroupUpdateParams.Barcode;
317
+ /**
318
+ * Body param: When `true`, removes all existing item lines associated with this
319
+ * item group. To modify or add individual item lines, use the field `itemLines`
320
+ * instead.
321
+ */
322
+ clearItemLines?: boolean;
323
+ /**
324
+ * Body param: The item group's description that will appear on sales forms that
325
+ * include this item.
326
+ */
327
+ description?: string;
328
+ /**
329
+ * Body param: Indicates whether to allow changing the item group's unit-of-measure
330
+ * set (using the `unitOfMeasureSetId` field) when the base unit of the new
331
+ * unit-of-measure set does not match that of the currently assigned set. Without
332
+ * setting this field to `true` in this scenario, the request will fail with an
333
+ * error; hence, this field is equivalent to accepting the warning prompt in the
334
+ * QuickBooks UI.
335
+ *
336
+ * NOTE: Changing the base unit requires you to update the item's
337
+ * quantities-on-hand and cost to reflect the new unit; otherwise, these values
338
+ * will be inaccurate. Alternatively, consider creating a new item with the desired
339
+ * unit-of-measure set and deactivating the old item.
340
+ */
341
+ forceUnitOfMeasureChange?: boolean;
342
+ /**
343
+ * Body param: Indicates whether this item group is active. Inactive objects are
344
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
345
+ */
346
+ isActive?: boolean;
347
+ /**
348
+ * Body param: The item lines in this item group.
349
+ */
350
+ lines?: Array<ItemGroupUpdateParams.Line>;
351
+ /**
352
+ * Body param: The case-insensitive unique name of this item group, unique across
353
+ * all item groups.
354
+ *
355
+ * **NOTE**: Item groups do not have a `fullName` field because they are not
356
+ * hierarchical objects, which is why `name` is unique for them but not for objects
357
+ * that have parents.
358
+ *
359
+ * Maximum length: 31 characters.
360
+ */
361
+ name?: string;
362
+ /**
363
+ * Body param: Indicates whether the individual items in this item group and their
364
+ * separate amounts appear on printed forms.
365
+ */
366
+ shouldPrintItemsInGroup?: boolean;
367
+ /**
368
+ * Body param: The unit-of-measure set associated with this item group, which
369
+ * consists of a base unit and related units.
370
+ */
371
+ unitOfMeasureSetId?: string;
372
+ }
373
+ export declare namespace ItemGroupUpdateParams {
374
+ /**
375
+ * The item group's barcode.
376
+ */
377
+ interface Barcode {
378
+ /**
379
+ * Indicates whether to allow the barcode to be overridden.
380
+ */
381
+ allowOverride?: boolean;
382
+ /**
383
+ * Indicates whether to assign the barcode even if it is already used.
384
+ */
385
+ assignEvenIfUsed?: boolean;
386
+ /**
387
+ * The item's barcode value.
388
+ */
389
+ value?: string;
390
+ }
391
+ interface Line {
392
+ /**
393
+ * The item associated with this item group line. This can refer to any good or
394
+ * service that the business buys or sells, including item types such as a service
395
+ * item, inventory item, or special calculation item like a discount item or
396
+ * sales-tax item.
397
+ */
398
+ itemId?: string;
399
+ /**
400
+ * The quantity of the item group associated with this item group line. This field
401
+ * cannot be cleared.
402
+ *
403
+ * **NOTE**: Do not use this field if the associated item group is a discount item
404
+ * group.
405
+ */
406
+ quantity?: number;
407
+ /**
408
+ * The unit-of-measure used for the `quantity` in this item group line. Must be a
409
+ * valid unit within the item's available units of measure.
410
+ */
411
+ unitOfMeasure?: string;
412
+ }
413
+ }
414
+ export interface ItemGroupListParams extends CursorPageParams {
415
+ /**
416
+ * Header param: The ID of the EndUser to receive this request (e.g.,
417
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
418
+ */
419
+ conductorEndUserId: string;
420
+ /**
421
+ * Query param: Filter for specific item groups by their QuickBooks-assigned unique
422
+ * identifier(s).
423
+ *
424
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
425
+ * query parameters for this request.
426
+ *
427
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
428
+ * request will return an error.
429
+ */
430
+ ids?: Array<string>;
431
+ /**
432
+ * Query param: Filter for item groups whose `name` contains this substring,
433
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
434
+ * `nameStartsWith` or `nameEndsWith`.
435
+ */
436
+ nameContains?: string;
437
+ /**
438
+ * Query param: Filter for item groups whose `name` ends with this substring,
439
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
440
+ * `nameContains` or `nameStartsWith`.
441
+ */
442
+ nameEndsWith?: string;
443
+ /**
444
+ * Query param: Filter for item groups whose `name` is alphabetically greater than
445
+ * or equal to this value.
446
+ */
447
+ nameFrom?: string;
448
+ /**
449
+ * Query param: Filter for specific item groups by their name(s), case-insensitive.
450
+ * Like `id`, `name` is a unique identifier for an item group.
451
+ *
452
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
453
+ * query parameters for this request.
454
+ *
455
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
456
+ * request will return an error.
457
+ */
458
+ names?: Array<string>;
459
+ /**
460
+ * Query param: Filter for item groups whose `name` starts with this substring,
461
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
462
+ * `nameContains` or `nameEndsWith`.
463
+ */
464
+ nameStartsWith?: string;
465
+ /**
466
+ * Query param: Filter for item groups whose `name` is alphabetically less than or
467
+ * equal to this value.
468
+ */
469
+ nameTo?: string;
470
+ /**
471
+ * Query param: Filter for item groups that are active, inactive, or both.
472
+ */
473
+ status?: 'active' | 'all' | 'inactive';
474
+ /**
475
+ * Query param: Filter for item groups updated on or after this date and time, in
476
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
477
+ * the time is assumed to be 00:00:00 of that day.
478
+ */
479
+ updatedAfter?: string;
480
+ /**
481
+ * Query param: Filter for item groups updated on or before this date and time, in
482
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
483
+ * the time is assumed to be 23:59:59 of that day.
484
+ */
485
+ updatedBefore?: string;
486
+ }
487
+ export declare namespace ItemGroups {
488
+ export { type ItemGroup as ItemGroup, ItemGroupsCursorPage as ItemGroupsCursorPage, type ItemGroupCreateParams as ItemGroupCreateParams, type ItemGroupRetrieveParams as ItemGroupRetrieveParams, type ItemGroupUpdateParams as ItemGroupUpdateParams, type ItemGroupListParams as ItemGroupListParams, };
489
+ }
490
+ //# sourceMappingURL=item-groups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item-groups.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/item-groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAErE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;IAShG;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;IAQ7B;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;IAS7B;;;OAGG;IACH,IAA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CACH"}
@@ -0,0 +1,58 @@
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.ItemGroupsCursorPage = exports.ItemGroups = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ const pagination_1 = require("../../pagination.js");
7
+ class ItemGroups extends resource_1.APIResource {
8
+ /**
9
+ * Creates a new item group.
10
+ */
11
+ create(params, options) {
12
+ const { conductorEndUserId, ...body } = params;
13
+ return this._client.post('/quickbooks-desktop/item-groups', {
14
+ body,
15
+ ...options,
16
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
17
+ });
18
+ }
19
+ /**
20
+ * Retrieves an item group by ID.
21
+ */
22
+ retrieve(id, params, options) {
23
+ const { conductorEndUserId } = params;
24
+ return this._client.get(`/quickbooks-desktop/item-groups/${id}`, {
25
+ ...options,
26
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
27
+ });
28
+ }
29
+ /**
30
+ * Updates an existing item group.
31
+ */
32
+ update(id, params, options) {
33
+ const { conductorEndUserId, ...body } = params;
34
+ return this._client.post(`/quickbooks-desktop/item-groups/${id}`, {
35
+ body,
36
+ ...options,
37
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
38
+ });
39
+ }
40
+ /**
41
+ * Returns a list of item groups. Use the `cursor` parameter to paginate through
42
+ * the results.
43
+ */
44
+ list(params, options) {
45
+ const { conductorEndUserId, ...query } = params;
46
+ return this._client.getAPIList('/quickbooks-desktop/item-groups', ItemGroupsCursorPage, {
47
+ query,
48
+ ...options,
49
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
50
+ });
51
+ }
52
+ }
53
+ exports.ItemGroups = ItemGroups;
54
+ class ItemGroupsCursorPage extends pagination_1.CursorPage {
55
+ }
56
+ exports.ItemGroupsCursorPage = ItemGroupsCursorPage;
57
+ ItemGroups.ItemGroupsCursorPage = ItemGroupsCursorPage;
58
+ //# sourceMappingURL=item-groups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item-groups.js","sourceRoot":"","sources":["../../src/resources/qbd/item-groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,oDAAqE;AAErE,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,MAAM,CAAC,MAA6B,EAAE,OAA6B;QACjE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE;YAC1D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA+B,EAC/B,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAAE,EAAE,EAAE;YAC/D,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAA6B,EAC7B,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,EAAE;YAChE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,MAA2B,EAC3B,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iCAAiC,EAAE,oBAAoB,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AA3DD,gCA2DC;AAED,MAAa,oBAAqB,SAAQ,uBAAqB;CAAG;AAAlE,oDAAkE;AA8hBlE,UAAU,CAAC,oBAAoB,GAAG,oBAAoB,CAAC"}
@@ -0,0 +1,53 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ import { CursorPage } from "../../pagination.mjs";
4
+ export class ItemGroups extends APIResource {
5
+ /**
6
+ * Creates a new item group.
7
+ */
8
+ create(params, options) {
9
+ const { conductorEndUserId, ...body } = params;
10
+ return this._client.post('/quickbooks-desktop/item-groups', {
11
+ body,
12
+ ...options,
13
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
14
+ });
15
+ }
16
+ /**
17
+ * Retrieves an item group by ID.
18
+ */
19
+ retrieve(id, params, options) {
20
+ const { conductorEndUserId } = params;
21
+ return this._client.get(`/quickbooks-desktop/item-groups/${id}`, {
22
+ ...options,
23
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
24
+ });
25
+ }
26
+ /**
27
+ * Updates an existing item group.
28
+ */
29
+ update(id, params, options) {
30
+ const { conductorEndUserId, ...body } = params;
31
+ return this._client.post(`/quickbooks-desktop/item-groups/${id}`, {
32
+ body,
33
+ ...options,
34
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
35
+ });
36
+ }
37
+ /**
38
+ * Returns a list of item groups. Use the `cursor` parameter to paginate through
39
+ * the results.
40
+ */
41
+ list(params, options) {
42
+ const { conductorEndUserId, ...query } = params;
43
+ return this._client.getAPIList('/quickbooks-desktop/item-groups', ItemGroupsCursorPage, {
44
+ query,
45
+ ...options,
46
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
47
+ });
48
+ }
49
+ }
50
+ export class ItemGroupsCursorPage extends CursorPage {
51
+ }
52
+ ItemGroups.ItemGroupsCursorPage = ItemGroupsCursorPage;
53
+ //# sourceMappingURL=item-groups.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item-groups.mjs","sourceRoot":"","sources":["../../src/resources/qbd/item-groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,MAA6B,EAAE,OAA6B;QACjE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE;YAC1D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA+B,EAC/B,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAAE,EAAE,EAAE;YAC/D,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAA6B,EAC7B,OAA6B;QAE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