conductor-node 7.4.1 → 7.4.4

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.4.1",
3
+ "version": "7.4.4",
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",
@@ -25,7 +25,7 @@ function getServerUrlForEnvironment(environment) {
25
25
  return "https://production.api.conductor.is";
26
26
  }
27
27
  default: {
28
- throw new Error(`Invalid environment`);
28
+ throw new Error("Invalid environment");
29
29
  }
30
30
  }
31
31
  }
@@ -24,8 +24,7 @@ export type Scalars = {
24
24
  JSONObject: object;
25
25
  };
26
26
  export type GraphqlConnectionStatusResult = {
27
- devErrorMessage: Maybe<Scalars["String"]>;
28
- endUserErrorMessage: Maybe<Scalars["String"]>;
27
+ error: Maybe<GraphqlUserError>;
29
28
  isConnected: Scalars["Boolean"];
30
29
  };
31
30
  export type GraphqlCreateIntegrationConnectionInput = {
@@ -78,6 +77,10 @@ export type GraphqlSendIntegrationRequestInput = {
78
77
  export type GraphqlSendIntegrationRequestResult = {
79
78
  response: Scalars["JSONObject"];
80
79
  };
80
+ export type GraphqlUserError = {
81
+ devMessage: Scalars["String"];
82
+ endUserMessage: Scalars["String"];
83
+ };
81
84
  export type GraphqlIntegrationConnectionFragment = {
82
85
  id: string;
83
86
  integrationKey: string;
@@ -116,8 +119,10 @@ export type GraphqlGetConnectionStatusQuery = {
116
119
  integrationConnection: {
117
120
  connectionStatus: {
118
121
  isConnected: boolean;
119
- devErrorMessage: string | null;
120
- endUserErrorMessage: string | null;
122
+ error: {
123
+ devMessage: string;
124
+ endUserMessage: string;
125
+ } | null;
121
126
  };
122
127
  };
123
128
  };
@@ -148,7 +153,7 @@ export type GraphqlSendIntegrationRequestMutation = {
148
153
  export declare const IntegrationConnectionFragmentDoc = "\n fragment IntegrationConnection on IntegrationConnection {\n id\n integrationKey\n endUserEmail\n endUserCompanyName\n lastHeartbeatAt\n}\n ";
149
154
  export declare const GetIntegrationConnectionDocument: string;
150
155
  export declare const GetIntegrationConnectionsDocument: string;
151
- 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 ";
156
+ export declare const GetConnectionStatusDocument = "\n query getConnectionStatus($integrationConnectionId: ID!) {\n integrationConnection(id: $integrationConnectionId) {\n connectionStatus {\n isConnected\n error {\n devMessage\n endUserMessage\n }\n }\n }\n}\n ";
152
157
  export declare const CreateIntegrationConnectionDocument: string;
153
158
  export declare const SendIntegrationRequestDocument = "\n mutation sendIntegrationRequest($input: SendIntegrationRequestInput!) {\n sendIntegrationRequest(input: $input) {\n response\n }\n}\n ";
154
159
  export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
@@ -29,8 +29,10 @@ exports.GetConnectionStatusDocument = `
29
29
  integrationConnection(id: $integrationConnectionId) {
30
30
  connectionStatus {
31
31
  isConnected
32
- devErrorMessage
33
- endUserErrorMessage
32
+ error {
33
+ devMessage
34
+ endUserMessage
35
+ }
34
36
  }
35
37
  }
36
38
  }
@@ -2593,7 +2593,7 @@ export interface ItemLineAdd {
2593
2593
  /** The lot number of the asset. */
2594
2594
  LotNumber?: string;
2595
2595
  /** The expiration date of the inventory serial/lot number. Expiration `Date` is supported from QB Desktop 2023 (USA & Canada) and SDK 16.0. */
2596
- ExpirationDateForSerialLotNumber: string;
2596
+ ExpirationDateForSerialLotNumber?: string;
2597
2597
  /** A descriptive text field. */
2598
2598
  Desc?: string;
2599
2599
  /** `QuantityFor` transactions: If an item line add on a transaction request specifies `Quantity` and `Amount` but not `Rate`, QuickBooks will use `Quantity` and `Amount` to calculate `Rate`. Likewise, if a request specifies `Quantity` and `Rate` but not `Amount`, QuickBooks will calculate the `Amount`. If a transaction add request includes a reference to an `ItemDiscount` item, do not include a `Quantity` element as well, or you will get an error. For Item requests: `Quantity` indicates how many of this item there are. */
@@ -2705,7 +2705,7 @@ export interface ItemLineRet {
2705
2705
  /** The lot number of the asset. */
2706
2706
  LotNumber?: string;
2707
2707
  /** The expiration date of the inventory serial/lot number. Expiration `Date` is supported from QB Desktop 2023 (USA & Canada) and SDK 16.0. */
2708
- ExpirationDateForSerialLotNumber: string;
2708
+ ExpirationDateForSerialLotNumber?: string;
2709
2709
  /** A descriptive text field. */
2710
2710
  Desc?: string;
2711
2711
  /** `QuantityFor` transactions: If an item line add on a transaction request specifies `Quantity` and `Amount` but not `Rate`, QuickBooks will use `Quantity` and `Amount` to calculate `Rate`. Likewise, if a request specifies `Quantity` and `Rate` but not `Amount`, QuickBooks will calculate the `Amount`. If a transaction add request includes a reference to an `ItemDiscount` item, do not include a `Quantity` element as well, or you will get an error. For Item requests: `Quantity` indicates how many of this item there are. */
@@ -0,0 +1,2 @@
1
+ export declare const CONDUCTOR_TEST_API_KEY = "063d95bc-a6f7-4b4b-841d-8007648a3112";
2
+ export declare const CONDUCTOR_TEST_QBD_CONNECTION_ID = "49ee2e46-ec5a-40a0-8c37-43913994b2a9";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONDUCTOR_TEST_QBD_CONNECTION_ID = exports.CONDUCTOR_TEST_API_KEY = void 0;
4
+ exports.CONDUCTOR_TEST_API_KEY = "063d95bc-a6f7-4b4b-841d-8007648a3112";
5
+ exports.CONDUCTOR_TEST_QBD_CONNECTION_ID = "49ee2e46-ec5a-40a0-8c37-43913994b2a9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "7.4.1",
3
+ "version": "7.4.4",
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",