conductor-node 10.4.0 → 10.4.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
@@ -60,7 +60,7 @@ Creates a new integration-connection.
60
60
  ```ts
61
61
  const newQbdConnection = await conductor.integrationConnections.create({
62
62
  // The identifier of the third-party platform to integrate.
63
- integrationKey: "quickbooks-desktop",
63
+ integrationSlug: "quickbooks-desktop",
64
64
  // Your end-user's unique ID in your product's database. Must be
65
65
  // distinct from your other connections for the same integration.
66
66
  endUserSourceId: "1234-abcd",
@@ -78,7 +78,7 @@ The response looks like the following:
78
78
  // ❗ Save this `id` to your database for executing requests to this
79
79
  // end-user's integration in the future.
80
80
  id: 'int_conn_1234abcd',
81
- integrationKey: 'quickbooks-desktop',
81
+ integrationSlug: 'quickbooks-desktop',
82
82
  endUserSourceId: "1234-abcd",
83
83
  endUserEmail: 'danny@constructionco.com',
84
84
  endUserCompanyName: 'Construction Corp',
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "10.4.0",
3
+ "version": "10.4.1",
4
4
  "description": "Easily integrate the entire QuickBooks Desktop API using fully-typed async TypeScript",
5
5
  "keywords": [
6
6
  "QuickBooks Desktop",
@@ -1,5 +1,5 @@
1
1
  import type { EndUser } from "../resources/EndUsersResource";
2
- import type { IntegrationConnection, IntegrationKey } from "../resources/IntegrationConnectionsResource";
2
+ import type { IntegrationConnection, IntegrationSlug } from "../resources/IntegrationConnectionsResource";
3
3
  import type { AxiosInstance } from "axios";
4
4
  export default abstract class BaseIntegration {
5
5
  protected readonly httpClient: AxiosInstance;
@@ -10,5 +10,5 @@ export default abstract class BaseIntegration {
10
10
  */
11
11
  protected sendRequestDeprecated(id: IntegrationConnection["id"], payload: Record<string, unknown>): Promise<object>;
12
12
  /** Not intended for public use. */
13
- protected sendRequest(endUserId: EndUser["id"], integrationKey: IntegrationKey, payload: Record<string, unknown>): Promise<object>;
13
+ protected sendRequest(endUserId: EndUser["id"], integrationSlug: IntegrationSlug, payload: Record<string, unknown>): Promise<object>;
14
14
  }
@@ -14,8 +14,8 @@ class BaseIntegration {
14
14
  return data;
15
15
  }
16
16
  /** Not intended for public use. */
17
- async sendRequest(endUserId, integrationKey, payload) {
18
- const { data } = await this.httpClient.post(`/end-users/${endUserId}/send-request/${integrationKey}`, payload);
17
+ async sendRequest(endUserId, integrationSlug, payload) {
18
+ const { data } = await this.httpClient.post(`/end-users/${endUserId}/send-request/${integrationSlug}`, payload);
19
19
  return data;
20
20
  }
21
21
  }
@@ -1,5 +1,5 @@
1
1
  import BaseResource from "../resources/BaseResource";
2
- import type { IntegrationKey } from "../resources/IntegrationConnectionsResource";
2
+ import type { IntegrationSlug } from "../resources/IntegrationConnectionsResource";
3
3
  export interface EndUser {
4
4
  /**
5
5
  * The unique identifier for the object.
@@ -52,9 +52,9 @@ export default class EndUsersResource extends BaseResource {
52
52
  * in your app's UI.
53
53
  *
54
54
  * @param endUserId The ID of the end-user to ping.
55
- * @param integrationKey The integration key for the integration-connection to
56
- * ping.
55
+ * @param integrationSlug The integration identifier for the
56
+ * integration-connection to ping.
57
57
  * @returns The ping result with the duration in milliseconds.
58
58
  */
59
- ping(endUserId: EndUser["id"], integrationKey: IntegrationKey): Promise<EndUserPingOutput>;
59
+ ping(endUserId: EndUser["id"], integrationSlug: IntegrationSlug): Promise<EndUserPingOutput>;
60
60
  }
@@ -38,12 +38,12 @@ class EndUsersResource extends BaseResource_1.default {
38
38
  * in your app's UI.
39
39
  *
40
40
  * @param endUserId The ID of the end-user to ping.
41
- * @param integrationKey The integration key for the integration-connection to
42
- * ping.
41
+ * @param integrationSlug The integration identifier for the
42
+ * integration-connection to ping.
43
43
  * @returns The ping result with the duration in milliseconds.
44
44
  */
45
- async ping(endUserId, integrationKey) {
46
- const { data } = await this.httpClient.get(`${this.ROUTE}/${endUserId}/ping/${integrationKey}`);
45
+ async ping(endUserId, integrationSlug) {
46
+ const { data } = await this.httpClient.get(`${this.ROUTE}/${endUserId}/ping/${integrationSlug}`);
47
47
  return data;
48
48
  }
49
49
  }
@@ -1,7 +1,7 @@
1
1
  import BaseResource from "../resources/BaseResource";
2
2
  import IntegrationConnectionAuthSessionsResource from "../resources/IntegrationConnectionAuthSessionsResource";
3
3
  import type { AxiosInstance } from "axios";
4
- export type IntegrationKey = "quickbooks-desktop";
4
+ export type IntegrationSlug = "quickbooks-desktop";
5
5
  export interface IntegrationConnection {
6
6
  /**
7
7
  * The unique identifier for the object.
@@ -15,7 +15,7 @@ export interface IntegrationConnection {
15
15
  * The identifier of the third-party platform to integrate (e.g.,
16
16
  * "quickbooks-desktop").
17
17
  */
18
- integrationKey: IntegrationKey;
18
+ integrationSlug: IntegrationSlug;
19
19
  /**
20
20
  * The time at which the object was created.
21
21
  */
@@ -30,7 +30,7 @@ export interface IntegrationConnectionCreateOldInput {
30
30
  * The identifier of the third-party platform to integrate (e.g.,
31
31
  * "quickbooks-desktop").
32
32
  */
33
- integrationKey: IntegrationKey;
33
+ integrationSlug: IntegrationSlug;
34
34
  /**
35
35
  * Your end-user's unique ID in your product's database. Must be distinct from
36
36
  * your other connections for the same integration.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "10.4.0",
3
+ "version": "10.4.1",
4
4
  "description": "Easily integrate the entire QuickBooks Desktop API using fully-typed async TypeScript",
5
5
  "keywords": [
6
6
  "QuickBooks Desktop",