conductor-node 11.8.0 → 11.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/dist/package.json +1 -1
- package/dist/src/Client.d.ts +0 -2
- package/dist/src/Client.js +0 -3
- package/dist/src/integrations/BaseIntegration.d.ts +1 -1
- package/dist/src/resources/EndUsersResource.d.ts +1 -2
- package/dist/src/resources/{IntegrationConnectionsResource.d.ts → types.d.ts} +4 -11
- package/package.json +1 -1
- package/dist/src/resources/IntegrationConnectionsResource.js +0 -17
- package/dist/src/resources/base.d.ts +0 -5
- /package/dist/src/resources/{base.js → types.js} +0 -0
package/dist/package.json
CHANGED
package/dist/src/Client.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import QbdIntegration from "./integrations/qbd/QbdIntegration";
|
|
2
2
|
import AuthSessionsResource from "./resources/AuthSessionsResource";
|
|
3
3
|
import EndUsersResource from "./resources/EndUsersResource";
|
|
4
|
-
import IntegrationConnectionsResource from "./resources/IntegrationConnectionsResource";
|
|
5
4
|
export interface ClientOptions {
|
|
6
5
|
/**
|
|
7
6
|
* Enables logging each request, response, and error.
|
|
@@ -10,7 +9,6 @@ export interface ClientOptions {
|
|
|
10
9
|
}
|
|
11
10
|
export default class Client {
|
|
12
11
|
readonly endUsers: EndUsersResource;
|
|
13
|
-
readonly integrationConnections: IntegrationConnectionsResource;
|
|
14
12
|
readonly authSessions: AuthSessionsResource;
|
|
15
13
|
/**
|
|
16
14
|
* Executes any QuickBooks Desktop (QBD) API against the specified EndUser.
|
package/dist/src/Client.js
CHANGED
|
@@ -9,12 +9,10 @@ const errorHandling_1 = require("./interceptors/errorHandling");
|
|
|
9
9
|
const logging_1 = require("./interceptors/logging");
|
|
10
10
|
const AuthSessionsResource_1 = __importDefault(require("./resources/AuthSessionsResource"));
|
|
11
11
|
const EndUsersResource_1 = __importDefault(require("./resources/EndUsersResource"));
|
|
12
|
-
const IntegrationConnectionsResource_1 = __importDefault(require("./resources/IntegrationConnectionsResource"));
|
|
13
12
|
const checkForUpdates_1 = require("./utils/checkForUpdates");
|
|
14
13
|
const axios_1 = __importDefault(require("axios"));
|
|
15
14
|
class Client {
|
|
16
15
|
endUsers;
|
|
17
|
-
integrationConnections;
|
|
18
16
|
authSessions;
|
|
19
17
|
/**
|
|
20
18
|
* Executes any QuickBooks Desktop (QBD) API against the specified EndUser.
|
|
@@ -25,7 +23,6 @@ class Client {
|
|
|
25
23
|
(0, checkForUpdates_1.checkForUpdates)();
|
|
26
24
|
this.httpClient = this.createHttpClient(apiKey, verbose);
|
|
27
25
|
this.endUsers = new EndUsersResource_1.default(this.httpClient);
|
|
28
|
-
this.integrationConnections = new IntegrationConnectionsResource_1.default(this.httpClient);
|
|
29
26
|
this.authSessions = new AuthSessionsResource_1.default(this.httpClient);
|
|
30
27
|
this.qbd = new QbdIntegration_1.default(this.httpClient);
|
|
31
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EndUser } from "../resources/EndUsersResource";
|
|
2
|
-
import type { IntegrationSlug } from "../resources/
|
|
2
|
+
import type { IntegrationSlug } from "../resources/types";
|
|
3
3
|
import type { AxiosInstance } from "axios";
|
|
4
4
|
export default abstract class BaseIntegration {
|
|
5
5
|
protected readonly httpClient: AxiosInstance;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import BaseResource from "../resources/BaseResource";
|
|
2
|
-
import type { IntegrationConnection, IntegrationSlug } from "../resources/
|
|
3
|
-
import type { ApiListResponse } from "../resources/base";
|
|
2
|
+
import type { ApiListResponse, IntegrationConnection, IntegrationSlug } from "../resources/types";
|
|
4
3
|
export interface EndUser {
|
|
5
4
|
/**
|
|
6
5
|
* The unique identifier for this EndUser. You must save this value to your
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import BaseResource from "../resources/BaseResource";
|
|
2
|
-
import type { ApiListResponse } from "../resources/base";
|
|
3
1
|
export type IntegrationSlug = "quickbooks_desktop";
|
|
4
2
|
export interface IntegrationConnection {
|
|
5
3
|
/**
|
|
@@ -28,13 +26,8 @@ export interface IntegrationConnection {
|
|
|
28
26
|
*/
|
|
29
27
|
readonly lastRequestAt: string | null;
|
|
30
28
|
}
|
|
31
|
-
export interface
|
|
32
|
-
readonly
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
protected readonly ROUTE = "/integration-connections";
|
|
36
|
-
/**
|
|
37
|
-
* Returns a list of all IntegrationConnections of all your EndUsers.
|
|
38
|
-
*/
|
|
39
|
-
list(): Promise<ApiListResponse<IntegrationConnection>>;
|
|
29
|
+
export interface ApiListResponse<T> {
|
|
30
|
+
readonly url: string;
|
|
31
|
+
readonly objectType: "list";
|
|
32
|
+
readonly data: T[];
|
|
40
33
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const BaseResource_1 = __importDefault(require("../resources/BaseResource"));
|
|
7
|
-
class IntegrationConnectionsResource extends BaseResource_1.default {
|
|
8
|
-
ROUTE = "/integration-connections";
|
|
9
|
-
/**
|
|
10
|
-
* Returns a list of all IntegrationConnections of all your EndUsers.
|
|
11
|
-
*/
|
|
12
|
-
async list() {
|
|
13
|
-
const { data } = await this.httpClient.get(this.ROUTE);
|
|
14
|
-
return data;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.default = IntegrationConnectionsResource;
|
|
File without changes
|