conductor-node 7.3.4 → 7.3.5

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": "7.3.4",
3
+ "version": "7.3.5",
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",
@@ -14,9 +14,9 @@ export default class Client {
14
14
  private readonly graphqlClient;
15
15
  private readonly graphqlOperations;
16
16
  constructor(apiKey: string, { verbose, serverEnvironment }?: ClientOptions);
17
- getIntegrationConnection(integrationConnectionId: GraphqlGetIntegrationConnectionQueryVariables["integrationConnectionId"]): Promise<GraphqlGetIntegrationConnectionQuery["viewer"]["integrationConnection"]>;
18
- getIntegrationConnections(): Promise<GraphqlGetIntegrationConnectionsQuery["viewer"]["integrationConnections"]>;
19
- isIntegrationConnectionActive(integrationConnectionId: GraphqlIsIntegrationConnectionActiveQueryVariables["integrationConnectionId"], secondsSinceLastActive?: GraphqlIsIntegrationConnectionActiveQueryVariables["secondsSinceLastActive"]): Promise<GraphqlIsIntegrationConnectionActiveQuery["viewer"]["integrationConnection"]["isActive"]>;
17
+ getIntegrationConnection(integrationConnectionId: GraphqlGetIntegrationConnectionQueryVariables["integrationConnectionId"]): Promise<GraphqlGetIntegrationConnectionQuery["integrationConnection"]>;
18
+ getIntegrationConnections(): Promise<GraphqlGetIntegrationConnectionsQuery["integrationConnections"]>;
19
+ isIntegrationConnectionActive(integrationConnectionId: GraphqlIsIntegrationConnectionActiveQueryVariables["integrationConnectionId"], secondsSinceLastActive?: GraphqlIsIntegrationConnectionActiveQueryVariables["secondsSinceLastActive"]): Promise<GraphqlIsIntegrationConnectionActiveQuery["integrationConnection"]["isActive"]>;
20
20
  /**
21
21
  * Check whether we can successfully connect to the end-user's QBD instance.
22
22
  *
@@ -35,7 +35,7 @@ export default class Client {
35
35
  * the corresponding error message for the end-user; e.g., "Please ensure your
36
36
  * computer is on and QuickBooks Desktop is open".
37
37
  */
38
- getConnectionStatus(integrationConnectionId: GraphqlGetConnectionStatusQueryVariables["integrationConnectionId"]): Promise<GraphqlGetConnectionStatusQuery["viewer"]["integrationConnection"]["connectionStatus"]>;
38
+ getConnectionStatus(integrationConnectionId: GraphqlGetConnectionStatusQueryVariables["integrationConnectionId"]): Promise<GraphqlGetConnectionStatusQuery["integrationConnection"]["connectionStatus"]>;
39
39
  /**
40
40
  * Create a new integration connection.
41
41
  *
@@ -40,12 +40,12 @@ class Client {
40
40
  async getIntegrationConnection(integrationConnectionId) {
41
41
  return this.graphqlOperations
42
42
  .getIntegrationConnection({ integrationConnectionId })
43
- .then((result) => result.viewer.integrationConnection);
43
+ .then((result) => result.integrationConnection);
44
44
  }
45
45
  async getIntegrationConnections() {
46
46
  return this.graphqlOperations
47
47
  .getIntegrationConnections()
48
- .then((result) => result.viewer.integrationConnections);
48
+ .then((result) => result.integrationConnections);
49
49
  }
50
50
  async isIntegrationConnectionActive(integrationConnectionId, secondsSinceLastActive = 60) {
51
51
  return this.graphqlOperations
@@ -53,7 +53,7 @@ class Client {
53
53
  integrationConnectionId,
54
54
  secondsSinceLastActive,
55
55
  })
56
- .then((result) => result.viewer.integrationConnection.isActive);
56
+ .then((result) => result.integrationConnection.isActive);
57
57
  }
58
58
  /**
59
59
  * Check whether we can successfully connect to the end-user's QBD instance.
@@ -76,7 +76,7 @@ class Client {
76
76
  async getConnectionStatus(integrationConnectionId) {
77
77
  return this.graphqlOperations
78
78
  .getConnectionStatus({ integrationConnectionId })
79
- .then((result) => result.viewer.integrationConnection.connectionStatus);
79
+ .then((result) => result.integrationConnection.connectionStatus);
80
80
  }
81
81
  /**
82
82
  * Create a new integration connection.
@@ -73,7 +73,11 @@ export type GraphqlMutationSendIntegrationRequestArgs = {
73
73
  input: GraphqlSendIntegrationRequestInput;
74
74
  };
75
75
  export type GraphqlQuery = {
76
- viewer: GraphqlViewer;
76
+ integrationConnection: GraphqlIntegrationConnection;
77
+ integrationConnections: Array<GraphqlIntegrationConnection>;
78
+ };
79
+ export type GraphqlQueryIntegrationConnectionArgs = {
80
+ id: Scalars["ID"];
77
81
  };
78
82
  export type GraphqlSendIntegrationRequestInput = {
79
83
  integrationConnectionId: Scalars["ID"];
@@ -82,13 +86,6 @@ export type GraphqlSendIntegrationRequestInput = {
82
86
  export type GraphqlSendIntegrationRequestResult = {
83
87
  response: Scalars["JSONObject"];
84
88
  };
85
- export type GraphqlViewer = {
86
- integrationConnection: GraphqlIntegrationConnection;
87
- integrationConnections: Array<GraphqlIntegrationConnection>;
88
- };
89
- export type GraphqlViewerIntegrationConnectionArgs = {
90
- id: Scalars["ID"];
91
- };
92
89
  export type GraphqlIntegrationConnectionFragment = {
93
90
  id: string;
94
91
  integrationKey: string;
@@ -100,52 +97,44 @@ export type GraphqlGetIntegrationConnectionQueryVariables = Exact<{
100
97
  integrationConnectionId: Scalars["ID"];
101
98
  }>;
102
99
  export type GraphqlGetIntegrationConnectionQuery = {
103
- viewer: {
104
- integrationConnection: {
105
- id: string;
106
- integrationKey: string;
107
- endUserEmail: string;
108
- endUserCompanyName: string;
109
- lastHeartbeatAt: Date | null;
110
- };
100
+ integrationConnection: {
101
+ id: string;
102
+ integrationKey: string;
103
+ endUserEmail: string;
104
+ endUserCompanyName: string;
105
+ lastHeartbeatAt: Date | null;
111
106
  };
112
107
  };
113
108
  export type GraphqlGetIntegrationConnectionsQueryVariables = Exact<{
114
109
  [key: string]: never;
115
110
  }>;
116
111
  export type GraphqlGetIntegrationConnectionsQuery = {
117
- viewer: {
118
- integrationConnections: Array<{
119
- id: string;
120
- integrationKey: string;
121
- endUserEmail: string;
122
- endUserCompanyName: string;
123
- lastHeartbeatAt: Date | null;
124
- }>;
125
- };
112
+ integrationConnections: Array<{
113
+ id: string;
114
+ integrationKey: string;
115
+ endUserEmail: string;
116
+ endUserCompanyName: string;
117
+ lastHeartbeatAt: Date | null;
118
+ }>;
126
119
  };
127
120
  export type GraphqlIsIntegrationConnectionActiveQueryVariables = Exact<{
128
121
  integrationConnectionId: Scalars["ID"];
129
122
  secondsSinceLastActive: Scalars["Int"];
130
123
  }>;
131
124
  export type GraphqlIsIntegrationConnectionActiveQuery = {
132
- viewer: {
133
- integrationConnection: {
134
- isActive: boolean;
135
- };
125
+ integrationConnection: {
126
+ isActive: boolean;
136
127
  };
137
128
  };
138
129
  export type GraphqlGetConnectionStatusQueryVariables = Exact<{
139
130
  integrationConnectionId: Scalars["ID"];
140
131
  }>;
141
132
  export type GraphqlGetConnectionStatusQuery = {
142
- viewer: {
143
- integrationConnection: {
144
- connectionStatus: {
145
- isConnected: boolean;
146
- devErrorMessage: string | null;
147
- endUserErrorMessage: string | null;
148
- };
133
+ integrationConnection: {
134
+ connectionStatus: {
135
+ isConnected: boolean;
136
+ devErrorMessage: string | null;
137
+ endUserErrorMessage: string | null;
149
138
  };
150
139
  };
151
140
  };
@@ -176,8 +165,8 @@ export type GraphqlSendIntegrationRequestMutation = {
176
165
  export declare const IntegrationConnectionFragmentDoc = "\n fragment IntegrationConnection on IntegrationConnection {\n id\n integrationKey\n endUserEmail\n endUserCompanyName\n lastHeartbeatAt\n}\n ";
177
166
  export declare const GetIntegrationConnectionDocument: string;
178
167
  export declare const GetIntegrationConnectionsDocument: string;
179
- export declare const IsIntegrationConnectionActiveDocument = "\n query isIntegrationConnectionActive($integrationConnectionId: ID!, $secondsSinceLastActive: Int!) {\n viewer {\n integrationConnection(id: $integrationConnectionId) {\n isActive(secondsSinceLastActive: $secondsSinceLastActive)\n }\n }\n}\n ";
180
- export declare const GetConnectionStatusDocument = "\n query getConnectionStatus($integrationConnectionId: ID!) {\n viewer {\n integrationConnection(id: $integrationConnectionId) {\n connectionStatus {\n isConnected\n devErrorMessage\n endUserErrorMessage\n }\n }\n }\n}\n ";
168
+ export declare const IsIntegrationConnectionActiveDocument = "\n query isIntegrationConnectionActive($integrationConnectionId: ID!, $secondsSinceLastActive: Int!) {\n integrationConnection(id: $integrationConnectionId) {\n isActive(secondsSinceLastActive: $secondsSinceLastActive)\n }\n}\n ";
169
+ export declare const GetConnectionStatusDocument = "\n query getConnectionStatus($integrationConnectionId: ID!) {\n integrationConnection(id: $integrationConnectionId) {\n connectionStatus {\n isConnected\n devErrorMessage\n endUserErrorMessage\n }\n }\n}\n ";
181
170
  export declare const CreateIntegrationConnectionDocument: string;
182
171
  export declare const SendIntegrationRequestDocument = "\n mutation sendIntegrationRequest($input: SendIntegrationRequestInput!) {\n sendIntegrationRequest(input: $input) {\n response\n }\n}\n ";
183
172
  export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
@@ -12,40 +12,32 @@ exports.IntegrationConnectionFragmentDoc = `
12
12
  `;
13
13
  exports.GetIntegrationConnectionDocument = `
14
14
  query getIntegrationConnection($integrationConnectionId: ID!) {
15
- viewer {
16
- integrationConnection(id: $integrationConnectionId) {
17
- ...IntegrationConnection
18
- }
15
+ integrationConnection(id: $integrationConnectionId) {
16
+ ...IntegrationConnection
19
17
  }
20
18
  }
21
19
  ${exports.IntegrationConnectionFragmentDoc}`;
22
20
  exports.GetIntegrationConnectionsDocument = `
23
21
  query getIntegrationConnections {
24
- viewer {
25
- integrationConnections {
26
- ...IntegrationConnection
27
- }
22
+ integrationConnections {
23
+ ...IntegrationConnection
28
24
  }
29
25
  }
30
26
  ${exports.IntegrationConnectionFragmentDoc}`;
31
27
  exports.IsIntegrationConnectionActiveDocument = `
32
28
  query isIntegrationConnectionActive($integrationConnectionId: ID!, $secondsSinceLastActive: Int!) {
33
- viewer {
34
- integrationConnection(id: $integrationConnectionId) {
35
- isActive(secondsSinceLastActive: $secondsSinceLastActive)
36
- }
29
+ integrationConnection(id: $integrationConnectionId) {
30
+ isActive(secondsSinceLastActive: $secondsSinceLastActive)
37
31
  }
38
32
  }
39
33
  `;
40
34
  exports.GetConnectionStatusDocument = `
41
35
  query getConnectionStatus($integrationConnectionId: ID!) {
42
- viewer {
43
- integrationConnection(id: $integrationConnectionId) {
44
- connectionStatus {
45
- isConnected
46
- devErrorMessage
47
- endUserErrorMessage
48
- }
36
+ integrationConnection(id: $integrationConnectionId) {
37
+ connectionStatus {
38
+ isConnected
39
+ devErrorMessage
40
+ endUserErrorMessage
49
41
  }
50
42
  }
51
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "7.3.4",
3
+ "version": "7.3.5",
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",