conductor-node 4.1.9 → 6.0.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.
- package/dist/{client/package.json → package.json} +5 -5
- package/dist/{client/src → src}/Client.d.ts +2 -2
- package/dist/{client/src → src}/Client.js +4 -4
- package/dist/{utils/src → src}/environment.d.ts +0 -0
- package/dist/{utils/src → src}/environment.js +0 -0
- package/dist/{client/src → src}/index.d.ts +0 -0
- package/dist/{client/src → src}/index.js +0 -0
- package/dist/{client/src → src}/integrations/BaseIntegration.d.ts +0 -0
- package/dist/{client/src → src}/integrations/BaseIntegration.js +0 -0
- package/dist/{client/src → src}/integrations/qbd/QbdIntegration.d.ts +0 -0
- package/dist/{client/src → src}/integrations/qbd/QbdIntegration.js +0 -0
- package/dist/{client/src → src}/integrations/qbd/qbdTypes.d.ts +0 -0
- package/dist/{client/src → src}/integrations/qbd/qbdTypes.js +0 -0
- package/dist/{client/src → src}/integrations/types.d.ts +0 -0
- package/dist/{client/src → src}/integrations/types.js +0 -0
- package/dist/{client/src → src}/testUtils.d.ts +0 -0
- package/dist/{client/src → src}/testUtils.js +0 -0
- package/package.json +5 -5
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "conductor-node",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
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",
|
|
7
7
|
"type": "commonjs",
|
|
8
|
-
"main": "dist/
|
|
9
|
-
"types": "dist/
|
|
8
|
+
"main": "dist/src/index.js",
|
|
9
|
+
"types": "dist/src/index.d.ts",
|
|
10
10
|
"files": [
|
|
11
|
-
"dist/**/*.[jt]s",
|
|
12
|
-
"dist/
|
|
11
|
+
"dist/src/**/*.[jt]s",
|
|
12
|
+
"dist/package.json"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
15
|
"prepack": "yarn tsc && yarn delete-compiled-tests && yarn tsc-alias --verbose",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Environment } from "./environment";
|
|
1
2
|
import QbdIntegration from "./integrations/qbd/QbdIntegration";
|
|
2
|
-
import type { Environment } from "../../utils/src/environment";
|
|
3
3
|
export interface ClientOptions {
|
|
4
4
|
/** Log each request and response. */
|
|
5
5
|
verbose?: boolean;
|
|
@@ -16,7 +16,7 @@ export default class Client {
|
|
|
16
16
|
private readonly gqlClient;
|
|
17
17
|
private readonly verbose;
|
|
18
18
|
constructor(apiKey: string, { verbose, serverEnvironment }?: ClientOptions);
|
|
19
|
-
|
|
19
|
+
getIntegrationConnectionById(integrationConnectionId: string): Promise<object>;
|
|
20
20
|
getIntegrationConnections(): Promise<object[]>;
|
|
21
21
|
logConnectionStatuses(): Promise<void>;
|
|
22
22
|
integrationRequest(integrationRequestParams: IntegrationRequestParams): Promise<object>;
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const package_json_1 = __importDefault(require("./../package.json"));
|
|
7
|
+
const environment_1 = require("./environment");
|
|
7
8
|
const QbdIntegration_1 = __importDefault(require("./integrations/qbd/QbdIntegration"));
|
|
8
|
-
const environment_1 = require("../../utils/src/environment");
|
|
9
9
|
const chalk_1 = __importDefault(require("chalk"));
|
|
10
10
|
const graphql_request_1 = require("graphql-request");
|
|
11
11
|
const node_child_process_1 = require("node:child_process");
|
|
@@ -27,9 +27,9 @@ class Client {
|
|
|
27
27
|
});
|
|
28
28
|
this.qbd = new QbdIntegration_1.default(this);
|
|
29
29
|
}
|
|
30
|
-
async
|
|
30
|
+
async getIntegrationConnectionById(integrationConnectionId) {
|
|
31
31
|
const data = await this.request(`#graphql
|
|
32
|
-
query
|
|
32
|
+
query GetIntegrationConnectionById($integrationConnectionId: ID!) {
|
|
33
33
|
integrationConnection(id: $integrationConnectionId) {
|
|
34
34
|
id
|
|
35
35
|
integration {
|
|
@@ -107,7 +107,7 @@ class Client {
|
|
|
107
107
|
if (error instanceof graphql_request_1.ClientError) {
|
|
108
108
|
const { response } = error;
|
|
109
109
|
if ([404, 502, 503].includes(response.status)) {
|
|
110
|
-
throw new Error(`The server returned a
|
|
110
|
+
throw new Error(`The server returned a ${response.status} error, which may indicate that the server is down. Please alert the Conductor team if this error persists.`);
|
|
111
111
|
}
|
|
112
112
|
const errorMessage = response.errors?.[0]?.message ??
|
|
113
113
|
// Though the property `ClientError.response.error` does *not* exist,
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "conductor-node",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
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",
|
|
7
7
|
"type": "commonjs",
|
|
8
|
-
"main": "dist/
|
|
9
|
-
"types": "dist/
|
|
8
|
+
"main": "dist/src/index.js",
|
|
9
|
+
"types": "dist/src/index.d.ts",
|
|
10
10
|
"files": [
|
|
11
|
-
"dist/**/*.[jt]s",
|
|
12
|
-
"dist/
|
|
11
|
+
"dist/src/**/*.[jt]s",
|
|
12
|
+
"dist/package.json"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
15
|
"prepack": "yarn tsc && yarn delete-compiled-tests && yarn tsc-alias --verbose",
|