conductor-node 9.7.0 → 9.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/README.md CHANGED
@@ -76,7 +76,6 @@ The response looks like the following:
76
76
  endUserSourceId: "1234-abcd",
77
77
  endUserEmail: 'danny@constructionco.com',
78
78
  endUserCompanyName: 'Construction Corp',
79
- lastHeartbeatAt: null
80
79
  }
81
80
  ```
82
81
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "9.7.0",
3
+ "version": "9.8.1",
4
4
  "description": "Easily integrate with the entire QuickBooks Desktop API with fully-typed async TypeScript",
5
5
  "author": "Danny Nemer <hi@DannyNemer.com>",
6
6
  "license": "MIT",
@@ -42,7 +42,6 @@ export type GraphqlIntegrationConnectionFragment = {
42
42
  endUserSourceId: string;
43
43
  endUserEmail: string;
44
44
  endUserCompanyName: string;
45
- lastHeartbeatAt: Date | null;
46
45
  };
47
46
  export type GraphqlGetIntegrationConnectionQueryVariables = Exact<{
48
47
  integrationConnectionId: Scalars["ID"];
@@ -54,7 +53,6 @@ export type GraphqlGetIntegrationConnectionQuery = {
54
53
  endUserSourceId: string;
55
54
  endUserEmail: string;
56
55
  endUserCompanyName: string;
57
- lastHeartbeatAt: Date | null;
58
56
  };
59
57
  };
60
58
  export type GraphqlGetIntegrationConnectionsQueryVariables = Exact<{
@@ -67,7 +65,6 @@ export type GraphqlGetIntegrationConnectionsQuery = {
67
65
  endUserSourceId: string;
68
66
  endUserEmail: string;
69
67
  endUserCompanyName: string;
70
- lastHeartbeatAt: Date | null;
71
68
  }>;
72
69
  };
73
70
  export type GraphqlCreateIntegrationConnectionMutationVariables = Exact<{
@@ -81,7 +78,6 @@ export type GraphqlCreateIntegrationConnectionMutation = {
81
78
  endUserSourceId: string;
82
79
  endUserEmail: string;
83
80
  endUserCompanyName: string;
84
- lastHeartbeatAt: Date | null;
85
81
  };
86
82
  };
87
83
  };
@@ -101,7 +97,7 @@ export type GraphqlSendIntegrationRequestMutation = {
101
97
  response: object;
102
98
  };
103
99
  };
104
- export declare const IntegrationConnectionFragmentDoc = "\n fragment IntegrationConnection on IntegrationConnection {\n id\n integrationKey\n endUserSourceId\n endUserEmail\n endUserCompanyName\n lastHeartbeatAt\n}\n ";
100
+ export declare const IntegrationConnectionFragmentDoc = "\n fragment IntegrationConnection on IntegrationConnection {\n id\n integrationKey\n endUserSourceId\n endUserEmail\n endUserCompanyName\n}\n ";
105
101
  export declare const GetIntegrationConnectionDocument: string;
106
102
  export declare const GetIntegrationConnectionsDocument: string;
107
103
  export declare const CreateIntegrationConnectionDocument: string;
@@ -8,7 +8,6 @@ exports.IntegrationConnectionFragmentDoc = `
8
8
  endUserSourceId
9
9
  endUserEmail
10
10
  endUserCompanyName
11
- lastHeartbeatAt
12
11
  }
13
12
  `;
14
13
  exports.GetIntegrationConnectionDocument = `
@@ -600,6 +600,42 @@ export default class QbdIntegration extends BaseIntegration {
600
600
  */
601
601
  query: (integrationConnectionId: string, params: QbdTypes.CreditMemoQueryRq) => Promise<NonNullable<QbdTypes.CreditMemoQueryRs["CreditMemoRet"]>>;
602
602
  };
603
+ currency: {
604
+ /**
605
+ * Adds a user-defined currency with the specified name and currency
606
+ * code.
607
+ *
608
+ * Currencies created by users are distinguished from the built-in QB
609
+ * currencies in the `CurrencyRet` object: they are identified as
610
+ * user-defined. User-defined currencies do not get their exchange rates
611
+ * updated automatically by QuickBooks. You’ll always need to manually
612
+ * update the exchange rates. However, other than this, these type of
613
+ * currencies function within QB in the same way as the built-in currencies.
614
+ * If you have not used a user-defined currency in a transaction, you can
615
+ * delete it using `ListDel`. You cannot delete the built-in QB currencies.
616
+ *
617
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CurrencyAdd
618
+ */
619
+ add: (integrationConnectionId: string, params: QbdTypes.CurrencyAddRq["CurrencyAdd"]) => Promise<NonNullable<QbdTypes.CurrencyAddRs["CurrencyRet"]>>;
620
+ /**
621
+ * Modifies an existing currency.
622
+ *
623
+ * This request is used primarily for changing the `IsActive` status of the
624
+ * built-in QuickBooks currencies. However, it can also be used to modify
625
+ * anything in user-defined currencies. When used on a built-in currency,
626
+ * this request cannot modify name or currency code, neither of which can be
627
+ * modified in the UI either.
628
+ *
629
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CurrencyMod
630
+ */
631
+ mod: (integrationConnectionId: string, params: QbdTypes.CurrencyModRq["CurrencyMod"]) => Promise<NonNullable<QbdTypes.CurrencyModRs["CurrencyRet"]>>;
632
+ /**
633
+ * Queries for built-in and user-defined currencies.
634
+ *
635
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CurrencyQuery
636
+ */
637
+ query: (integrationConnectionId: string, params: QbdTypes.CurrencyQueryRq) => Promise<NonNullable<QbdTypes.CurrencyQueryRs["CurrencyRet"]>>;
638
+ };
603
639
  customer: {
604
640
  /**
605
641
  * The customer list includes information about the QuickBooks user’s
@@ -1513,6 +1549,47 @@ export default class QbdIntegration extends BaseIntegration {
1513
1549
  */
1514
1550
  query: (integrationConnectionId: string, params: QbdTypes.JournalEntryQueryRq) => Promise<NonNullable<QbdTypes.JournalEntryQueryRs["JournalEntryRet"]>>;
1515
1551
  };
1552
+ lead: {
1553
+ /**
1554
+ * Adds a lead.
1555
+ *
1556
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/LeadAdd
1557
+ */
1558
+ add: (integrationConnectionId: string, params: QbdTypes.LeadAddRq["LeadAdd"]) => Promise<NonNullable<QbdTypes.LeadAddRs["LeadRet"]>>;
1559
+ /**
1560
+ * Modifies an existing lead.
1561
+ *
1562
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/LeadMod
1563
+ */
1564
+ mod: (integrationConnectionId: string, params: QbdTypes.LeadModRq["LeadMod"]) => Promise<NonNullable<QbdTypes.LeadModRs["LeadRet"]>>;
1565
+ /**
1566
+ * Queries for the specified lead or set of leads.
1567
+ *
1568
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/LeadQuery
1569
+ */
1570
+ query: (integrationConnectionId: string, params: QbdTypes.LeadQueryRq) => Promise<NonNullable<QbdTypes.LeadQueryRs["LeadRet"]>>;
1571
+ };
1572
+ otherName: {
1573
+ /**
1574
+ * Adds an other name. In QuickBooks, the “other names” list contains any
1575
+ * names that do not appear on customer, vendor, or employee lists.
1576
+ *
1577
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/OtherNameAdd
1578
+ */
1579
+ add: (integrationConnectionId: string, params: QbdTypes.OtherNameAddRq["OtherNameAdd"]) => Promise<NonNullable<QbdTypes.OtherNameAddRs["OtherNameRet"]>>;
1580
+ /**
1581
+ * Modifies an existing other name.
1582
+ *
1583
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/OtherNameMod
1584
+ */
1585
+ mod: (integrationConnectionId: string, params: QbdTypes.OtherNameModRq["OtherNameMod"]) => Promise<NonNullable<QbdTypes.OtherNameModRs["OtherNameRet"]>>;
1586
+ /**
1587
+ * Queries for the specified other name or set of other names.
1588
+ *
1589
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/OtherNameQuery
1590
+ */
1591
+ query: (integrationConnectionId: string, params: QbdTypes.OtherNameQueryRq) => Promise<NonNullable<QbdTypes.OtherNameQueryRs["OtherNameRet"]>>;
1592
+ };
1516
1593
  priceLevel: {
1517
1594
  /**
1518
1595
  * Adds a price level. You can use price levels to specify custom pricing
@@ -2040,6 +2117,26 @@ export default class QbdIntegration extends BaseIntegration {
2040
2117
  */
2041
2118
  query: (integrationConnectionId: string, params: QbdTypes.SalesTaxCodeQueryRq) => Promise<NonNullable<QbdTypes.SalesTaxCodeQueryRs["SalesTaxCodeRet"]>>;
2042
2119
  };
2120
+ salesTaxPaymentCheck: {
2121
+ /**
2122
+ * Adds a payment made for sales tax owed (for example, to a state sales tax authority).
2123
+ *
2124
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxPaymentCheckAdd
2125
+ */
2126
+ add: (integrationConnectionId: string, params: QbdTypes.SalesTaxPaymentCheckAddRq["SalesTaxPaymentCheckAdd"]) => Promise<NonNullable<QbdTypes.SalesTaxPaymentCheckAddRs["SalesTaxPaymentCheckRet"]>>;
2127
+ /**
2128
+ * Modifies an existing sales tax payment check.
2129
+ *
2130
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxPaymentCheckMod
2131
+ */
2132
+ mod: (integrationConnectionId: string, params: QbdTypes.SalesTaxPaymentCheckModRq["SalesTaxPaymentCheckMod"]) => Promise<NonNullable<QbdTypes.SalesTaxPaymentCheckModRs["SalesTaxPaymentCheckRet"]>>;
2133
+ /**
2134
+ * Queries for payments that have been made for sales tax owed (for example, to a state sales tax authority).
2135
+ *
2136
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxPaymentCheckQuery
2137
+ */
2138
+ query: (integrationConnectionId: string, params: QbdTypes.SalesTaxPaymentCheckQueryRq) => Promise<NonNullable<QbdTypes.SalesTaxPaymentCheckQueryRs["SalesTaxPaymentCheckRet"]>>;
2139
+ };
2043
2140
  timeTracking: {
2044
2141
  /**
2045
2142
  * The time-tracking transactions that are returned in this query include
@@ -2132,6 +2229,45 @@ export default class QbdIntegration extends BaseIntegration {
2132
2229
  */
2133
2230
  query: (integrationConnectionId: string, params: QbdTypes.TransferInventoryQueryRq) => Promise<NonNullable<QbdTypes.TransferInventoryQueryRs["TransferInventoryRet"]>>;
2134
2231
  };
2232
+ vehicle: {
2233
+ /**
2234
+ * Adds a vehicle to the vehicle list for use in `VehicleMileage` transactions. Each vehicle name must be unique.
2235
+ *
2236
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VehicleAdd
2237
+ */
2238
+ add: (integrationConnectionId: string, params: QbdTypes.VehicleAddRq["VehicleAdd"]) => Promise<NonNullable<QbdTypes.VehicleAddRs["VehicleRet"]>>;
2239
+ /**
2240
+ * Modifies a vehicle already in the vehicle list. Any modification,
2241
+ * including changing the name, will cause corresponding changes in existing
2242
+ * `VehicleMileage` transactions and in reports.
2243
+ *
2244
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VehicleMod
2245
+ */
2246
+ mod: (integrationConnectionId: string, params: QbdTypes.VehicleModRq["VehicleMod"]) => Promise<NonNullable<QbdTypes.VehicleModRs["VehicleRet"]>>;
2247
+ /**
2248
+ * Queries for the specified vehicle or set of vehicles.
2249
+ *
2250
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VehicleQuery
2251
+ */
2252
+ query: (integrationConnectionId: string, params: QbdTypes.VehicleQueryRq) => Promise<NonNullable<QbdTypes.VehicleQueryRs["VehicleRet"]>>;
2253
+ };
2254
+ vehicleMileage: {
2255
+ /**
2256
+ * Adds a vehicle mileage transaction. involving the specified vehicle for
2257
+ * the specified total miles or optionally for the QuickBooks calculated
2258
+ * total miles if you supply the odometer start and end.
2259
+ *
2260
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VehicleMileageAdd
2261
+ */
2262
+ add: (integrationConnectionId: string, params: QbdTypes.VehicleMileageAddRq["VehicleMileageAdd"]) => Promise<NonNullable<QbdTypes.VehicleMileageAddRs["VehicleMileageRet"]>>;
2263
+ /**
2264
+ * Queries for the specified vehicle mileage transaction or set of vehicle
2265
+ * mileage transactions.
2266
+ *
2267
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VehicleMileageQuery
2268
+ */
2269
+ query: (integrationConnectionId: string, params: QbdTypes.VehicleMileageQueryRq) => Promise<NonNullable<QbdTypes.VehicleMileageQueryRs["VehicleMileageRet"]>>;
2270
+ };
2135
2271
  vendor: {
2136
2272
  /**
2137
2273
  * Adds a vendor.
@@ -2262,12 +2398,5 @@ export default class QbdIntegration extends BaseIntegration {
2262
2398
  */
2263
2399
  query: (integrationConnectionId: string, params: QbdTypes.WorkersCompCodeQueryRq) => Promise<NonNullable<QbdTypes.WorkersCompCodeQueryRs["WorkersCompCodeRet"]>>;
2264
2400
  };
2265
- /**
2266
- * Send any QBXML request to QuickBooks Desktop.
2267
- *
2268
- * Available APIs:
2269
- * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop
2270
- */
2271
- sendRequest(integrationConnectionId: string, requestObject: object): Promise<object>;
2272
2401
  private sendRequestWrapper;
2273
2402
  }
@@ -605,6 +605,42 @@ class QbdIntegration extends BaseIntegration_1.default {
605
605
  */
606
606
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CreditMemoQueryRq: params }, "CreditMemoQueryRs", "CreditMemoRet"),
607
607
  };
608
+ currency = {
609
+ /**
610
+ * Adds a user-defined currency with the specified name and currency
611
+ * code.
612
+ *
613
+ * Currencies created by users are distinguished from the built-in QB
614
+ * currencies in the `CurrencyRet` object: they are identified as
615
+ * user-defined. User-defined currencies do not get their exchange rates
616
+ * updated automatically by QuickBooks. You’ll always need to manually
617
+ * update the exchange rates. However, other than this, these type of
618
+ * currencies function within QB in the same way as the built-in currencies.
619
+ * If you have not used a user-defined currency in a transaction, you can
620
+ * delete it using `ListDel`. You cannot delete the built-in QB currencies.
621
+ *
622
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CurrencyAdd
623
+ */
624
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CurrencyAddRq: { CurrencyAdd: params } }, "CurrencyAddRs", "CurrencyRet"),
625
+ /**
626
+ * Modifies an existing currency.
627
+ *
628
+ * This request is used primarily for changing the `IsActive` status of the
629
+ * built-in QuickBooks currencies. However, it can also be used to modify
630
+ * anything in user-defined currencies. When used on a built-in currency,
631
+ * this request cannot modify name or currency code, neither of which can be
632
+ * modified in the UI either.
633
+ *
634
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CurrencyMod
635
+ */
636
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CurrencyModRq: { CurrencyMod: params } }, "CurrencyModRs", "CurrencyRet"),
637
+ /**
638
+ * Queries for built-in and user-defined currencies.
639
+ *
640
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/CurrencyQuery
641
+ */
642
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { CurrencyQueryRq: params }, "CurrencyQueryRs", "CurrencyRet"),
643
+ };
608
644
  customer = {
609
645
  /**
610
646
  * The customer list includes information about the QuickBooks user’s
@@ -1518,6 +1554,47 @@ class QbdIntegration extends BaseIntegration_1.default {
1518
1554
  */
1519
1555
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { JournalEntryQueryRq: params }, "JournalEntryQueryRs", "JournalEntryRet"),
1520
1556
  };
1557
+ lead = {
1558
+ /**
1559
+ * Adds a lead.
1560
+ *
1561
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/LeadAdd
1562
+ */
1563
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { LeadAddRq: { LeadAdd: params } }, "LeadAddRs", "LeadRet"),
1564
+ /**
1565
+ * Modifies an existing lead.
1566
+ *
1567
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/LeadMod
1568
+ */
1569
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { LeadModRq: { LeadMod: params } }, "LeadModRs", "LeadRet"),
1570
+ /**
1571
+ * Queries for the specified lead or set of leads.
1572
+ *
1573
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/LeadQuery
1574
+ */
1575
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { LeadQueryRq: params }, "LeadQueryRs", "LeadRet"),
1576
+ };
1577
+ otherName = {
1578
+ /**
1579
+ * Adds an other name. In QuickBooks, the “other names” list contains any
1580
+ * names that do not appear on customer, vendor, or employee lists.
1581
+ *
1582
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/OtherNameAdd
1583
+ */
1584
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { OtherNameAddRq: { OtherNameAdd: params } }, "OtherNameAddRs", "OtherNameRet"),
1585
+ /**
1586
+ * Modifies an existing other name.
1587
+ *
1588
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/OtherNameMod
1589
+ */
1590
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { OtherNameModRq: { OtherNameMod: params } }, "OtherNameModRs", "OtherNameRet"),
1591
+ /**
1592
+ * Queries for the specified other name or set of other names.
1593
+ *
1594
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/OtherNameQuery
1595
+ */
1596
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { OtherNameQueryRq: params }, "OtherNameQueryRs", "OtherNameRet"),
1597
+ };
1521
1598
  priceLevel = {
1522
1599
  /**
1523
1600
  * Adds a price level. You can use price levels to specify custom pricing
@@ -2045,6 +2122,26 @@ class QbdIntegration extends BaseIntegration_1.default {
2045
2122
  */
2046
2123
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesTaxCodeQueryRq: params }, "SalesTaxCodeQueryRs", "SalesTaxCodeRet"),
2047
2124
  };
2125
+ salesTaxPaymentCheck = {
2126
+ /**
2127
+ * Adds a payment made for sales tax owed (for example, to a state sales tax authority).
2128
+ *
2129
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxPaymentCheckAdd
2130
+ */
2131
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesTaxPaymentCheckAddRq: { SalesTaxPaymentCheckAdd: params } }, "SalesTaxPaymentCheckAddRs", "SalesTaxPaymentCheckRet"),
2132
+ /**
2133
+ * Modifies an existing sales tax payment check.
2134
+ *
2135
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxPaymentCheckMod
2136
+ */
2137
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesTaxPaymentCheckModRq: { SalesTaxPaymentCheckMod: params } }, "SalesTaxPaymentCheckModRs", "SalesTaxPaymentCheckRet"),
2138
+ /**
2139
+ * Queries for payments that have been made for sales tax owed (for example, to a state sales tax authority).
2140
+ *
2141
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/SalesTaxPaymentCheckQuery
2142
+ */
2143
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { SalesTaxPaymentCheckQueryRq: params }, "SalesTaxPaymentCheckQueryRs", "SalesTaxPaymentCheckRet"),
2144
+ };
2048
2145
  timeTracking = {
2049
2146
  /**
2050
2147
  * The time-tracking transactions that are returned in this query include
@@ -2137,6 +2234,45 @@ class QbdIntegration extends BaseIntegration_1.default {
2137
2234
  */
2138
2235
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { TransferInventoryQueryRq: params }, "TransferInventoryQueryRs", "TransferInventoryRet"),
2139
2236
  };
2237
+ vehicle = {
2238
+ /**
2239
+ * Adds a vehicle to the vehicle list for use in `VehicleMileage` transactions. Each vehicle name must be unique.
2240
+ *
2241
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VehicleAdd
2242
+ */
2243
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { VehicleAddRq: { VehicleAdd: params } }, "VehicleAddRs", "VehicleRet"),
2244
+ /**
2245
+ * Modifies a vehicle already in the vehicle list. Any modification,
2246
+ * including changing the name, will cause corresponding changes in existing
2247
+ * `VehicleMileage` transactions and in reports.
2248
+ *
2249
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VehicleMod
2250
+ */
2251
+ mod: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { VehicleModRq: { VehicleMod: params } }, "VehicleModRs", "VehicleRet"),
2252
+ /**
2253
+ * Queries for the specified vehicle or set of vehicles.
2254
+ *
2255
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VehicleQuery
2256
+ */
2257
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { VehicleQueryRq: params }, "VehicleQueryRs", "VehicleRet"),
2258
+ };
2259
+ vehicleMileage = {
2260
+ /**
2261
+ * Adds a vehicle mileage transaction. involving the specified vehicle for
2262
+ * the specified total miles or optionally for the QuickBooks calculated
2263
+ * total miles if you supply the odometer start and end.
2264
+ *
2265
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VehicleMileageAdd
2266
+ */
2267
+ add: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { VehicleMileageAddRq: { VehicleMileageAdd: params } }, "VehicleMileageAddRs", "VehicleMileageRet"),
2268
+ /**
2269
+ * Queries for the specified vehicle mileage transaction or set of vehicle
2270
+ * mileage transactions.
2271
+ *
2272
+ * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/VehicleMileageQuery
2273
+ */
2274
+ query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { VehicleMileageQueryRq: params }, "VehicleMileageQueryRs", "VehicleMileageRet"),
2275
+ };
2140
2276
  vendor = {
2141
2277
  /**
2142
2278
  * Adds a vendor.
@@ -2267,20 +2403,11 @@ class QbdIntegration extends BaseIntegration_1.default {
2267
2403
  */
2268
2404
  query: async (integrationConnectionId, params) => this.sendRequestWrapper(integrationConnectionId, { WorkersCompCodeQueryRq: params }, "WorkersCompCodeQueryRs", "WorkersCompCodeRet"),
2269
2405
  };
2270
- /**
2271
- * Send any QBXML request to QuickBooks Desktop.
2272
- *
2273
- * Available APIs:
2274
- * https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop
2275
- */
2276
- async sendRequest(integrationConnectionId, requestObject) {
2277
- return this.sendIntegrationRequest({
2278
- integrationConnectionId,
2279
- requestObject,
2280
- });
2281
- }
2282
2406
  async sendRequestWrapper(integrationConnectionId, params, responseWrapperKey, responseBodyKey) {
2283
- const response = (await this.sendRequest(integrationConnectionId, params));
2407
+ const response = (await this.sendIntegrationRequest({
2408
+ integrationConnectionId,
2409
+ requestObject: params,
2410
+ }));
2284
2411
  const responseBody = response[responseWrapperKey]?.[responseBodyKey];
2285
2412
  if (responseBody === undefined) {
2286
2413
  throw new error_1.ConductorIntegrationError({