conductor-node 0.0.14 → 0.0.15

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.
File without changes
File without changes
@@ -2,6 +2,9 @@ import type { AccountAdd, AccountQueryRq, AccountRet } from "../qb/qbXMLTypes/Ac
2
2
  import type { CustomerQueryRq, CustomerRet } from "../qb/qbXMLTypes/Customer";
3
3
  import type { EmployeeAdd, EmployeeMod, EmployeeQueryRq, EmployeeRet } from "../qb/qbXMLTypes/Employee";
4
4
  import type { VendorQueryRq, VendorRet } from "../qb/qbXMLTypes/Vendor";
5
+ export interface QBXMLObj {
6
+ [apiName: string]: object;
7
+ }
5
8
  export default class ClientQBD {
6
9
  private readonly apiKey;
7
10
  private readonly verbose;
@@ -12,7 +15,7 @@ export default class ClientQBD {
12
15
  *
13
16
  * Available APIs: https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop
14
17
  */
15
- sendRequest(qbwcUsername: string, requestObj: object): Promise<object>;
18
+ sendRequest(qbwcUsername: string, requestObj: QBXMLObj): Promise<QBXMLObj>;
16
19
  /**
17
20
  * Perform the same activities as a user does in the QB New Account form,
18
21
  * which can be accessed in QB by selecting "Lists" → "Chart of Accounts" →
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Conductor API wrapper",
5
5
  "author": "Danny Nemer <hi@DannyNemer.com>",
6
6
  "license": "MIT",
7
- "main": "dist/Client.js",
8
- "types": "dist/Client.d.ts",
7
+ "main": "dist/src/Client.js",
8
+ "types": "dist/src/Client.d.ts",
9
9
  "files": [
10
- "dist/**/*.[jt]s"
10
+ "dist/src/**/*.[jt]s"
11
11
  ],
12
12
  "scripts": {
13
13
  "prepack": "yarn tsc && yarn tsc-alias",