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.
Files changed (39) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +1 -1
  3. package/resources/qbd/index.d.ts +2 -0
  4. package/resources/qbd/index.d.ts.map +1 -1
  5. package/resources/qbd/index.js +7 -2
  6. package/resources/qbd/index.js.map +1 -1
  7. package/resources/qbd/index.mjs +2 -0
  8. package/resources/qbd/index.mjs.map +1 -1
  9. package/resources/qbd/inventory-items.d.ts +2 -3
  10. package/resources/qbd/inventory-items.d.ts.map +1 -1
  11. package/resources/qbd/inventory-items.js.map +1 -1
  12. package/resources/qbd/inventory-items.mjs.map +1 -1
  13. package/resources/qbd/other-charge-items.d.ts +933 -0
  14. package/resources/qbd/other-charge-items.d.ts.map +1 -0
  15. package/resources/qbd/other-charge-items.js +98 -0
  16. package/resources/qbd/other-charge-items.js.map +1 -0
  17. package/resources/qbd/other-charge-items.mjs +93 -0
  18. package/resources/qbd/other-charge-items.mjs.map +1 -0
  19. package/resources/qbd/qbd.d.ts +8 -0
  20. package/resources/qbd/qbd.d.ts.map +1 -1
  21. package/resources/qbd/qbd.js +9 -0
  22. package/resources/qbd/qbd.js.map +1 -1
  23. package/resources/qbd/qbd.mjs +9 -0
  24. package/resources/qbd/qbd.mjs.map +1 -1
  25. package/resources/qbd/templates.d.ts +107 -0
  26. package/resources/qbd/templates.d.ts.map +1 -0
  27. package/resources/qbd/templates.js +27 -0
  28. package/resources/qbd/templates.js.map +1 -0
  29. package/resources/qbd/templates.mjs +23 -0
  30. package/resources/qbd/templates.mjs.map +1 -0
  31. package/src/resources/qbd/index.ts +10 -0
  32. package/src/resources/qbd/inventory-items.ts +2 -3
  33. package/src/resources/qbd/other-charge-items.ts +1113 -0
  34. package/src/resources/qbd/qbd.ts +36 -0
  35. package/src/resources/qbd/templates.ts +144 -0
  36. package/src/version.ts +1 -1
  37. package/version.d.ts +1 -1
  38. package/version.js +1 -1
  39. package/version.mjs +1 -1
@@ -283,6 +283,16 @@ import {
283
283
  NonInventoryItems,
284
284
  NonInventoryItemsCursorPage,
285
285
  } from "./non-inventory-items.js";
286
+ import * as OtherChargeItemsAPI from "./other-charge-items.js";
287
+ import {
288
+ OtherChargeItem,
289
+ OtherChargeItemCreateParams,
290
+ OtherChargeItemListParams,
291
+ OtherChargeItemRetrieveParams,
292
+ OtherChargeItemUpdateParams,
293
+ OtherChargeItems,
294
+ OtherChargeItemsCursorPage,
295
+ } from "./other-charge-items.js";
286
296
  import * as OtherNamesAPI from "./other-names.js";
287
297
  import {
288
298
  OtherName,
@@ -430,6 +440,8 @@ import {
430
440
  SubtotalItems,
431
441
  SubtotalItemsCursorPage,
432
442
  } from "./subtotal-items.js";
443
+ import * as TemplatesAPI from "./templates.js";
444
+ import { Template, TemplateListParams, TemplateListResponse, Templates } from "./templates.js";
433
445
  import * as TimeTrackingActivitiesAPI from "./time-tracking-activities.js";
434
446
  import {
435
447
  TimeTrackingActivities,
@@ -522,6 +534,9 @@ export class Qbd extends APIResource {
522
534
  nonInventoryItems: NonInventoryItemsAPI.NonInventoryItems = new NonInventoryItemsAPI.NonInventoryItems(
523
535
  this._client,
524
536
  );
537
+ otherChargeItems: OtherChargeItemsAPI.OtherChargeItems = new OtherChargeItemsAPI.OtherChargeItems(
538
+ this._client,
539
+ );
525
540
  otherNames: OtherNamesAPI.OtherNames = new OtherNamesAPI.OtherNames(this._client);
526
541
  paymentMethods: PaymentMethodsAPI.PaymentMethods = new PaymentMethodsAPI.PaymentMethods(this._client);
527
542
  payrollWageItems: PayrollWageItemsAPI.PayrollWageItems = new PayrollWageItemsAPI.PayrollWageItems(
@@ -540,6 +555,7 @@ export class Qbd extends APIResource {
540
555
  serviceItems: ServiceItemsAPI.ServiceItems = new ServiceItemsAPI.ServiceItems(this._client);
541
556
  standardTerms: StandardTermsAPI.StandardTerms = new StandardTermsAPI.StandardTerms(this._client);
542
557
  subtotalItems: SubtotalItemsAPI.SubtotalItems = new SubtotalItemsAPI.SubtotalItems(this._client);
558
+ templates: TemplatesAPI.Templates = new TemplatesAPI.Templates(this._client);
543
559
  timeTrackingActivities: TimeTrackingActivitiesAPI.TimeTrackingActivities =
544
560
  new TimeTrackingActivitiesAPI.TimeTrackingActivities(this._client);
545
561
  transactions: TransactionsAPI.Transactions = new TransactionsAPI.Transactions(this._client);
@@ -640,6 +656,8 @@ Qbd.JournalEntries = JournalEntries;
640
656
  Qbd.JournalEntriesCursorPage = JournalEntriesCursorPage;
641
657
  Qbd.NonInventoryItems = NonInventoryItems;
642
658
  Qbd.NonInventoryItemsCursorPage = NonInventoryItemsCursorPage;
659
+ Qbd.OtherChargeItems = OtherChargeItems;
660
+ Qbd.OtherChargeItemsCursorPage = OtherChargeItemsCursorPage;
643
661
  Qbd.OtherNames = OtherNames;
644
662
  Qbd.PaymentMethods = PaymentMethods;
645
663
  Qbd.PayrollWageItems = PayrollWageItems;
@@ -662,6 +680,7 @@ Qbd.ServiceItemsCursorPage = ServiceItemsCursorPage;
662
680
  Qbd.StandardTerms = StandardTerms;
663
681
  Qbd.SubtotalItems = SubtotalItems;
664
682
  Qbd.SubtotalItemsCursorPage = SubtotalItemsCursorPage;
683
+ Qbd.Templates = Templates;
665
684
  Qbd.TimeTrackingActivities = TimeTrackingActivities;
666
685
  Qbd.TimeTrackingActivitiesCursorPage = TimeTrackingActivitiesCursorPage;
667
686
  Qbd.Transactions = Transactions;
@@ -964,6 +983,16 @@ export declare namespace Qbd {
964
983
  type NonInventoryItemListParams as NonInventoryItemListParams,
965
984
  };
966
985
 
986
+ export {
987
+ OtherChargeItems as OtherChargeItems,
988
+ type OtherChargeItem as OtherChargeItem,
989
+ OtherChargeItemsCursorPage as OtherChargeItemsCursorPage,
990
+ type OtherChargeItemCreateParams as OtherChargeItemCreateParams,
991
+ type OtherChargeItemRetrieveParams as OtherChargeItemRetrieveParams,
992
+ type OtherChargeItemUpdateParams as OtherChargeItemUpdateParams,
993
+ type OtherChargeItemListParams as OtherChargeItemListParams,
994
+ };
995
+
967
996
  export {
968
997
  OtherNames as OtherNames,
969
998
  type OtherName as OtherName,
@@ -1111,6 +1140,13 @@ export declare namespace Qbd {
1111
1140
  type SubtotalItemListParams as SubtotalItemListParams,
1112
1141
  };
1113
1142
 
1143
+ export {
1144
+ Templates as Templates,
1145
+ type Template as Template,
1146
+ type TemplateListResponse as TemplateListResponse,
1147
+ type TemplateListParams as TemplateListParams,
1148
+ };
1149
+
1114
1150
  export {
1115
1151
  TimeTrackingActivities as TimeTrackingActivities,
1116
1152
  type TimeTrackingActivity as TimeTrackingActivity,
@@ -0,0 +1,144 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from "../../resource.js";
4
+ import * as Core from "../../core.js";
5
+
6
+ export class Templates extends 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: TemplateListParams, options?: Core.RequestOptions): Core.APIPromise<TemplateListResponse> {
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
+
27
+ export interface Template {
28
+ /**
29
+ * The unique identifier assigned by QuickBooks to this template. This ID is unique
30
+ * across all templates but not across different QuickBooks object types.
31
+ */
32
+ id: string;
33
+
34
+ /**
35
+ * The date and time when this template was created, in ISO 8601 format
36
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
37
+ * in QuickBooks.
38
+ */
39
+ createdAt: string;
40
+
41
+ /**
42
+ * Indicates whether this template is active. Inactive objects are typically hidden
43
+ * from views and reports in QuickBooks. Defaults to `true`.
44
+ */
45
+ isActive: boolean;
46
+
47
+ /**
48
+ * The case-insensitive unique name of this template, unique across all templates.
49
+ *
50
+ * **NOTE**: Templates do not have a `fullName` field because they are not
51
+ * hierarchical objects, which is why `name` is unique for them but not for objects
52
+ * that have parents.
53
+ */
54
+ name: string;
55
+
56
+ /**
57
+ * The type of object. This value is always `"qbd_template"`.
58
+ */
59
+ objectType: 'qbd_template';
60
+
61
+ /**
62
+ * The current QuickBooks-assigned revision number of this template object, which
63
+ * changes each time the object is modified. When updating this object, you must
64
+ * provide the most recent `revisionNumber` to ensure you're working with the
65
+ * latest data; otherwise, the update will return an error.
66
+ */
67
+ revisionNumber: string;
68
+
69
+ /**
70
+ * The type of transaction that this template is used for.
71
+ */
72
+ templateType:
73
+ | 'bill_payment'
74
+ | 'build_assembly'
75
+ | 'credit_memo'
76
+ | 'estimate'
77
+ | 'invoice'
78
+ | 'payment_receipt'
79
+ | 'purchase_order'
80
+ | 'sales_order'
81
+ | 'sales_receipt';
82
+
83
+ /**
84
+ * The date and time when this template was last updated, in ISO 8601 format
85
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
86
+ * in QuickBooks.
87
+ */
88
+ updatedAt: string;
89
+ }
90
+
91
+ export interface TemplateListResponse {
92
+ /**
93
+ * The array of templates.
94
+ */
95
+ data: Array<Template>;
96
+
97
+ /**
98
+ * Indicates whether there are more objects to be fetched.
99
+ */
100
+ hasMore: boolean;
101
+
102
+ /**
103
+ * The `nextCursor` is a pagination token returned in the response when you use the
104
+ * `limit` parameter in your request. To retrieve subsequent pages of results,
105
+ * include this token as the value of the `cursor` request parameter in your
106
+ * following API calls.
107
+ *
108
+ * **NOTE**: The `nextCursor` value remains constant throughout the pagination
109
+ * process for a specific list instance; continue to use the same `nextCursor`
110
+ * token in each request to fetch additional pages.
111
+ */
112
+ nextCursor: string | null;
113
+
114
+ /**
115
+ * The type of object. This value is always `"list"`.
116
+ */
117
+ objectType: 'list';
118
+
119
+ /**
120
+ * The number of objects remaining to be fetched.
121
+ */
122
+ remainingCount: number | null;
123
+
124
+ /**
125
+ * The endpoint URL where this list can be accessed.
126
+ */
127
+ url: string;
128
+ }
129
+
130
+ export interface TemplateListParams {
131
+ /**
132
+ * The ID of the EndUser to receive this request (e.g.,
133
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
134
+ */
135
+ conductorEndUserId: string;
136
+ }
137
+
138
+ export declare namespace Templates {
139
+ export {
140
+ type Template as Template,
141
+ type TemplateListResponse as TemplateListResponse,
142
+ type TemplateListParams as TemplateListParams,
143
+ };
144
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '12.18.2'; // x-release-please-version
1
+ export const VERSION = '12.20.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "12.18.2";
1
+ export declare const VERSION = "12.20.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '12.18.2'; // x-release-please-version
4
+ exports.VERSION = '12.20.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '12.18.2'; // x-release-please-version
1
+ export const VERSION = '12.20.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map