conductor-node 11.6.14 → 11.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "11.6.14",
3
+ "version": "11.7.0",
4
4
  "description": "QuickBooks Desktop API for Node.js and TypeScript",
5
5
  "keywords": [
6
6
  "QuickBooks",
@@ -36,7 +36,7 @@
36
36
  "prepublishOnly": "pnpm jest"
37
37
  },
38
38
  "dependencies": {
39
- "axios": "^1.7.4"
39
+ "axios": "^1.7.7"
40
40
  },
41
41
  "devDependencies": {
42
42
  "axios-mock-adapter": "^1.22.0",
@@ -7,7 +7,7 @@ class BaseIntegration {
7
7
  }
8
8
  /** Not intended for public use. */
9
9
  async sendRequest(endUserId, integrationSlug, payload) {
10
- const { data } = await this.httpClient.post(`/end_users/${endUserId}/request/${integrationSlug}`, payload);
10
+ const { data } = await this.httpClient.post(`/end-users/${endUserId}/request/${integrationSlug}`, payload);
11
11
  return data;
12
12
  }
13
13
  }
@@ -8,6 +8,10 @@ export interface AuthSession {
8
8
  * The object's type. This will always be "auth_session".
9
9
  */
10
10
  readonly objectType: "auth_session";
11
+ /**
12
+ * The date and time when this object was created.
13
+ */
14
+ readonly createdAt: string;
11
15
  /**
12
16
  * The ID of the EndUser for whom to create an IntegrationConnection.
13
17
  */
@@ -29,7 +33,7 @@ export interface AuthSession {
29
33
  */
30
34
  readonly expiresAt: string;
31
35
  /**
32
- * The URL to which Conductor will redirect the end-user to return to your app
36
+ * The URL to which Conductor will redirect the user to return to your app
33
37
  * after they complete the authentication flow. If `undefined`, their browser
34
38
  * tab will close instead.
35
39
  */
@@ -59,7 +63,7 @@ export interface AuthSessionCreateInput {
59
63
  readonly redirectUrl?: string;
60
64
  }
61
65
  export default class AuthSessionsResource extends BaseResource {
62
- protected readonly ROUTE = "/auth_sessions";
66
+ protected readonly ROUTE = "/auth-sessions";
63
67
  /**
64
68
  * Creates an AuthSession. Pass the returned session’s `authFlowUrl` to the
65
69
  * client for your end-user to launch the IntegrationConnection authentication
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const BaseResource_1 = __importDefault(require("../resources/BaseResource"));
7
7
  class AuthSessionsResource extends BaseResource_1.default {
8
- ROUTE = "/auth_sessions";
8
+ ROUTE = "/auth-sessions";
9
9
  /**
10
10
  * Creates an AuthSession. Pass the returned session’s `authFlowUrl` to the
11
11
  * client for your end-user to launch the IntegrationConnection authentication
@@ -1,5 +1,5 @@
1
1
  import BaseResource from "../resources/BaseResource";
2
- import type { IntegrationSlug } from "../resources/IntegrationConnectionsResource";
2
+ import type { IntegrationConnection, IntegrationSlug } from "../resources/IntegrationConnectionsResource";
3
3
  import type { ApiListResponse } from "../resources/base";
4
4
  export interface EndUser {
5
5
  /**
@@ -13,24 +13,28 @@ export interface EndUser {
13
13
  */
14
14
  readonly objectType: "end_user";
15
15
  /**
16
- * Your end-user's company name that will be shown elsewhere in Conductor.
16
+ * The time at which the object was created.
17
+ */
18
+ readonly createdAt: string;
19
+ /**
20
+ * The EndUser's company name that will be shown elsewhere in Conductor.
17
21
  */
18
22
  readonly companyName: string;
19
23
  /**
20
- * A unique identifier for your end-user from your system. Maps users between
21
- * your database and Conductor. Must be unique for each user. If you have only
22
- * one user, you may use any string value.
24
+ * The EndUser's unique identifier from your system. Maps users between your
25
+ * database and Conductor. Must be unique for each user. If you have only one
26
+ * user, you may use any string value.
23
27
  */
24
28
  readonly sourceId: string;
25
29
  /**
26
- * Your end-user's email address for identification purposes. Setting this
27
- * field will not cause any emails to be sent.
30
+ * The EndUser's email address for identification purposes. Setting this field
31
+ * will not cause any emails to be sent.
28
32
  */
29
33
  readonly email: string;
30
34
  /**
31
- * The time at which the object was created.
35
+ * The EndUser's IntegrationConnections.
32
36
  */
33
- readonly createdAt: string;
37
+ readonly integrationConnections: IntegrationConnection[];
34
38
  }
35
39
  export type EndUserCreateInput = Pick<EndUser, "companyName" | "email" | "sourceId">;
36
40
  export interface EndUserPingOutput {
@@ -40,7 +44,7 @@ export interface EndUserPingOutput {
40
44
  readonly duration: number;
41
45
  }
42
46
  export default class EndUsersResource extends BaseResource {
43
- protected readonly ROUTE = "/end_users";
47
+ protected readonly ROUTE = "/end-users";
44
48
  /**
45
49
  * Returns a list of your EndUsers.
46
50
  */
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const BaseResource_1 = __importDefault(require("../resources/BaseResource"));
7
7
  class EndUsersResource extends BaseResource_1.default {
8
- ROUTE = "/end_users";
8
+ ROUTE = "/end-users";
9
9
  /**
10
10
  * Returns a list of your EndUsers.
11
11
  */
@@ -10,6 +10,10 @@ export interface IntegrationConnection {
10
10
  * The object's type. This will always be "integration_connection".
11
11
  */
12
12
  readonly objectType: "integration_connection";
13
+ /**
14
+ * The time at which the object was created.
15
+ */
16
+ readonly createdAt: string;
13
17
  /**
14
18
  * The ID of the EndUser who owns this IntegrationConnection.
15
19
  */
@@ -20,15 +24,15 @@ export interface IntegrationConnection {
20
24
  */
21
25
  readonly integrationSlug: IntegrationSlug;
22
26
  /**
23
- * The time at which the object was created.
27
+ * The date and time of your last API request to this IntegrationConnection.
24
28
  */
25
- readonly createdAt: string;
29
+ readonly lastRequestAt: string | null;
26
30
  }
27
31
  export interface IntegrationConnectionPingOutput {
28
32
  readonly duration: number;
29
33
  }
30
34
  export default class IntegrationConnectionsResource extends BaseResource {
31
- protected readonly ROUTE = "/integration_connections";
35
+ protected readonly ROUTE = "/integration-connections";
32
36
  /**
33
37
  * Returns a list of all IntegrationConnections of all your EndUsers.
34
38
  */
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const BaseResource_1 = __importDefault(require("../resources/BaseResource"));
7
7
  class IntegrationConnectionsResource extends BaseResource_1.default {
8
- ROUTE = "/integration_connections";
8
+ ROUTE = "/integration-connections";
9
9
  /**
10
10
  * Returns a list of all IntegrationConnections of all your EndUsers.
11
11
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "11.6.14",
3
+ "version": "11.7.0",
4
4
  "description": "QuickBooks Desktop API for Node.js and TypeScript",
5
5
  "keywords": [
6
6
  "QuickBooks",
@@ -36,7 +36,7 @@
36
36
  "prepublishOnly": "pnpm jest"
37
37
  },
38
38
  "dependencies": {
39
- "axios": "^1.7.4"
39
+ "axios": "^1.7.7"
40
40
  },
41
41
  "devDependencies": {
42
42
  "axios-mock-adapter": "^1.22.0",