conductor-node 7.4.9 → 7.4.11
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 +1 -1
- package/dist/src/Client.js +1 -1
- package/dist/src/graphql/codegenConfig.js +0 -1
- package/dist/src/integrations/qbd/qbdTypes.d.ts +21 -21
- package/dist/src/{environment.d.ts → utils/environment.d.ts} +1 -2
- package/dist/src/{environment.js → utils/environment.js} +0 -4
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/Client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Environment } from "./environment";
|
|
2
1
|
import type { GraphqlCreateIntegrationConnectionInput, GraphqlCreateIntegrationConnectionMutation, GraphqlGetConnectionStatusQuery, GraphqlGetConnectionStatusQueryVariables, GraphqlGetIntegrationConnectionQuery, GraphqlGetIntegrationConnectionQueryVariables, GraphqlGetIntegrationConnectionsQuery, GraphqlSendIntegrationRequestInput, GraphqlSendIntegrationRequestMutation } from "./graphql/__generated__/operationTypes";
|
|
3
2
|
import QbdIntegration from "./integrations/qbd/QbdIntegration";
|
|
3
|
+
import type { Environment } from "./utils/environment";
|
|
4
4
|
export interface ClientOptions {
|
|
5
5
|
/** Log each request and response. */
|
|
6
6
|
readonly verbose?: boolean;
|
package/dist/src/Client.js
CHANGED
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const package_json_1 = __importDefault(require("./../package.json"));
|
|
7
|
-
const environment_1 = require("./environment");
|
|
8
7
|
const operationTypes_1 = require("./graphql/__generated__/operationTypes");
|
|
9
8
|
const QbdIntegration_1 = __importDefault(require("./integrations/qbd/QbdIntegration"));
|
|
9
|
+
const environment_1 = require("./utils/environment");
|
|
10
10
|
const chalk_1 = __importDefault(require("chalk"));
|
|
11
11
|
const graphql_request_1 = require("graphql-request");
|
|
12
12
|
const node_child_process_1 = require("node:child_process");
|
|
@@ -14,7 +14,6 @@ const codegenConfig = {
|
|
|
14
14
|
{
|
|
15
15
|
add: {
|
|
16
16
|
content: [
|
|
17
|
-
"/* eslint-disable eslint-comments/disable-enable-pair -- Auto-generated */",
|
|
18
17
|
"/* eslint-disable eslint-comments/no-unlimited-disable -- Auto-generated */",
|
|
19
18
|
"/* eslint-disable -- Auto-generated */",
|
|
20
19
|
].join("\n"),
|
|
@@ -416,9 +416,9 @@ export interface BillAdd {
|
|
|
416
416
|
/** A list of `IExpenseLine` objects, each representing one line in this expense. */
|
|
417
417
|
ExpenseLineAdd?: ExpenseLineAdd | ExpenseLineAdd[];
|
|
418
418
|
/** An `ItemLine` is used to track any portion of a transaction that represents the purchase of an “item.” If `ItemLineAdd` does not specify an `Amount`, `Cost`, or `Quantity`, then QuickBooks will calculate `Amount` based on a `Quantity` of 1 and the suggested `Cost`. */
|
|
419
|
-
ItemLineAdd?: ItemLineAdd;
|
|
419
|
+
ItemLineAdd?: ItemLineAdd | ItemLineAdd[];
|
|
420
420
|
/** Refers to items that are grouped together in QuickBooks for fast entry. */
|
|
421
|
-
ItemGroupLineAdd?: ItemGroupLineAdd;
|
|
421
|
+
ItemGroupLineAdd?: ItemGroupLineAdd | ItemGroupLineAdd[];
|
|
422
422
|
}
|
|
423
423
|
export interface BillAddress {
|
|
424
424
|
/** The first line of an address. */
|
|
@@ -519,9 +519,9 @@ export interface BillMod {
|
|
|
519
519
|
/** Set `ClearItemLines` to true to clear all the item lines. To modify individual lines, use `ItemLineMod`. */
|
|
520
520
|
ClearItemLines?: boolean;
|
|
521
521
|
/** An `ItemLine` is used to track any portion of a transaction that represents the purchase of an “item.” If `ItemLineAdd` does not specify an `Amount`, `Cost`, or `Quantity`, then QuickBooks will calculate `Amount` based on a `Quantity` of 1 and the suggested `Cost`. */
|
|
522
|
-
ItemLineMod?: ItemLineMod;
|
|
522
|
+
ItemLineMod?: ItemLineMod | ItemLineMod[];
|
|
523
523
|
/** Refers to items that are grouped together in QuickBooks for fast entry. */
|
|
524
|
-
ItemGroupLineMod?: ItemGroupLineMod;
|
|
524
|
+
ItemGroupLineMod?: ItemGroupLineMod | ItemGroupLineMod[];
|
|
525
525
|
}
|
|
526
526
|
export interface BillModRq {
|
|
527
527
|
BillMod: BillMod;
|
|
@@ -781,7 +781,7 @@ export interface BillRet {
|
|
|
781
781
|
|
|
782
782
|
Note (especially relevant to `CheckAdd` requests): When `RefNumber` is left blank in an SDK transaction add request (that is, or ), the `RefNumber` will be left blank in QuickBooks. This behavior is new as of QBFC3. It used to select the next sequential reference number since the last one used by QuickBooks, as though no `RefNumber` had been provided. This is especially relevant to `CheckAdd` requests because with the current behavior, you will not know the number until the check is printed. */
|
|
783
783
|
RefNumber?: string;
|
|
784
|
-
/** If `IsPending` is set to true, the bill has not been completed or in draft version. */
|
|
784
|
+
/** If `IsPending` is set to true, the bill has not been completed or in draft version. `IsPending` is supported from QB Desktop 2023 version 3 (USA & Canada) and SDK 16.0. */
|
|
785
785
|
IsPending?: boolean;
|
|
786
786
|
/** Refers to the payment terms associated with this entity. (This will be an item on the `DateDrivenTerms` or `StandardTerms` list.) If a `TermsRef` aggregate includes both `FullName` and `ListID`, `FullName` will be ignored. */
|
|
787
787
|
TermsRef?: TermsRef;
|
|
@@ -806,9 +806,9 @@ export interface BillRet {
|
|
|
806
806
|
/** A list of `IExpenseLine` objects, each representing one line in this expense. */
|
|
807
807
|
ExpenseLineRet?: ExpenseLineRet | ExpenseLineRet[];
|
|
808
808
|
/** An `ItemLine` is used to track any portion of a transaction that represents the purchase of an “item.” If `ItemLineAdd` does not specify an `Amount`, `Cost`, or `Quantity`, then QuickBooks will calculate `Amount` based on a `Quantity` of 1 and the suggested `Cost`. */
|
|
809
|
-
ItemLineRet?: ItemLineRet;
|
|
809
|
+
ItemLineRet?: ItemLineRet | ItemLineRet[];
|
|
810
810
|
/** Refers to items that are grouped together in QuickBooks for fast entry. */
|
|
811
|
-
ItemGroupLineRet?: ItemGroupLineRet;
|
|
811
|
+
ItemGroupLineRet?: ItemGroupLineRet | ItemGroupLineRet[];
|
|
812
812
|
/** Indicates the amount that is still owed. `AmountDue` minus any credits or discounts equals the `OpenAmount`. */
|
|
813
813
|
OpenAmount?: string;
|
|
814
814
|
/** A list of `IDataExtRet` objects, each of which represents a field that has been added to QuickBooks as a data extension. */
|
|
@@ -869,9 +869,9 @@ export interface CheckAdd {
|
|
|
869
869
|
/** A list of `IExpenseLine` objects, each representing one line in this expense. */
|
|
870
870
|
ExpenseLineAdd?: ExpenseLineAdd | ExpenseLineAdd[];
|
|
871
871
|
/** An `ItemLine` is used to track any portion of a transaction that represents the purchase of an “item.” If `ItemLineAdd` does not specify an `Amount`, `Cost`, or `Quantity`, then QuickBooks will calculate `Amount` based on a `Quantity` of 1 and the suggested `Cost`. */
|
|
872
|
-
ItemLineAdd?: ItemLineAdd;
|
|
872
|
+
ItemLineAdd?: ItemLineAdd | ItemLineAdd[];
|
|
873
873
|
/** Refers to items that are grouped together in QuickBooks for fast entry. */
|
|
874
|
-
ItemGroupLineAdd?: ItemGroupLineAdd;
|
|
874
|
+
ItemGroupLineAdd?: ItemGroupLineAdd | ItemGroupLineAdd[];
|
|
875
875
|
}
|
|
876
876
|
export interface CheckAddRq {
|
|
877
877
|
CheckAdd: CheckAdd;
|
|
@@ -916,9 +916,9 @@ export interface CheckMod {
|
|
|
916
916
|
/** Set `ClearItemLines` to true to clear all the item lines. To modify individual lines, use `ItemLineMod`. */
|
|
917
917
|
ClearItemLines?: boolean;
|
|
918
918
|
/** An `ItemLine` is used to track any portion of a transaction that represents the purchase of an “item.” If `ItemLineAdd` does not specify an `Amount`, `Cost`, or `Quantity`, then QuickBooks will calculate `Amount` based on a `Quantity` of 1 and the suggested `Cost`. */
|
|
919
|
-
ItemLineMod?: ItemLineMod;
|
|
919
|
+
ItemLineMod?: ItemLineMod | ItemLineMod[];
|
|
920
920
|
/** Refers to items that are grouped together in QuickBooks for fast entry. */
|
|
921
|
-
ItemGroupLineMod?: ItemGroupLineMod;
|
|
921
|
+
ItemGroupLineMod?: ItemGroupLineMod | ItemGroupLineMod[];
|
|
922
922
|
}
|
|
923
923
|
export interface CheckModRq {
|
|
924
924
|
CheckMod: CheckMod;
|
|
@@ -997,7 +997,7 @@ export interface CheckRet {
|
|
|
997
997
|
Address?: Address;
|
|
998
998
|
/** The address expressed as an address block of `Addr1` through `Addr5`, depending on the number of lines in the original request that created the address. */
|
|
999
999
|
AddressBlock?: AddressBlock;
|
|
1000
|
-
/** If `IsPending` is set to true, the check has not been completed or in draft version. */
|
|
1000
|
+
/** If `IsPending` is set to true, the check has not been completed or in draft version. `IsPending` is supported from QB Desktop 2023 version 3 (USA & Canada) and SDK 16.0. */
|
|
1001
1001
|
IsPending?: boolean;
|
|
1002
1002
|
/** If `IsToBePrinted` is set to true, this transaction is on a list of forms to be printed later. The user can then choose to print all these forms at once. Notice that setting this field to true does not actually perform the printing. Only the QuickBooks user can do that from within QuickBooks. This cannot be done from the SDK. Setting this field to false does not prevent the QuickBooks user from printing the transaction later. It simply results in the transaction NOT being placed in the list of transactions to be printed. */
|
|
1003
1003
|
IsToBePrinted?: boolean;
|
|
@@ -1012,9 +1012,9 @@ export interface CheckRet {
|
|
|
1012
1012
|
/** A list of `IExpenseLine` objects, each representing one line in this expense. */
|
|
1013
1013
|
ExpenseLineRet?: ExpenseLineRet | ExpenseLineRet[];
|
|
1014
1014
|
/** An `ItemLine` is used to track any portion of a transaction that represents the purchase of an “item.” If `ItemLineAdd` does not specify an `Amount`, `Cost`, or `Quantity`, then QuickBooks will calculate `Amount` based on a `Quantity` of 1 and the suggested `Cost`. */
|
|
1015
|
-
ItemLineRet?: ItemLineRet;
|
|
1015
|
+
ItemLineRet?: ItemLineRet | ItemLineRet[];
|
|
1016
1016
|
/** Refers to items that are grouped together in QuickBooks for fast entry. */
|
|
1017
|
-
ItemGroupLineRet?: ItemGroupLineRet;
|
|
1017
|
+
ItemGroupLineRet?: ItemGroupLineRet | ItemGroupLineRet[];
|
|
1018
1018
|
/** A list of `IDataExtRet` objects, each of which represents a field that has been added to QuickBooks as a data extension. */
|
|
1019
1019
|
DataExtRet?: DataExtRet | DataExtRet[];
|
|
1020
1020
|
}
|
|
@@ -2592,7 +2592,7 @@ export interface ItemLineAdd {
|
|
|
2592
2592
|
SerialNumber?: string;
|
|
2593
2593
|
/** The lot number of the asset. */
|
|
2594
2594
|
LotNumber?: string;
|
|
2595
|
-
/** The expiration date of the inventory serial/lot number. Expiration `Date` is supported from QB Desktop 2023 (USA & Canada) and SDK 16.0. */
|
|
2595
|
+
/** The expiration date of the inventory serial/lot number. Expiration `Date` is supported from QB Desktop 2023 version 3 (USA & Canada) and SDK 16.0. */
|
|
2596
2596
|
ExpirationDateForSerialLotNumber?: string;
|
|
2597
2597
|
/** A descriptive text field. */
|
|
2598
2598
|
Desc?: string;
|
|
@@ -2648,7 +2648,7 @@ export interface ItemLineMod {
|
|
|
2648
2648
|
SerialNumber?: string;
|
|
2649
2649
|
/** The lot number of the asset. */
|
|
2650
2650
|
LotNumber?: string;
|
|
2651
|
-
/** The expiration date of the inventory serial/lot number. Expiration `Date` is supported from QB Desktop 2023 (USA & Canada) and SDK 16.0. */
|
|
2651
|
+
/** The expiration date of the inventory serial/lot number. Expiration `Date` is supported from QB Desktop 2023 version 3 (USA & Canada) and SDK 16.0. */
|
|
2652
2652
|
ExpirationDateForSerialLotNumber?: string;
|
|
2653
2653
|
/** A descriptive text field. */
|
|
2654
2654
|
Desc?: string;
|
|
@@ -2704,7 +2704,7 @@ export interface ItemLineRet {
|
|
|
2704
2704
|
SerialNumber?: string;
|
|
2705
2705
|
/** The lot number of the asset. */
|
|
2706
2706
|
LotNumber?: string;
|
|
2707
|
-
/** The expiration date of the inventory serial/lot number. Expiration `Date` is supported from QB Desktop 2023 (USA & Canada) and SDK 16.0. */
|
|
2707
|
+
/** The expiration date of the inventory serial/lot number. Expiration `Date` is supported from QB Desktop 2023 version 3 (USA & Canada) and SDK 16.0. */
|
|
2708
2708
|
ExpirationDateForSerialLotNumber?: string;
|
|
2709
2709
|
/** A descriptive text field. */
|
|
2710
2710
|
Desc?: string;
|
|
@@ -2954,9 +2954,9 @@ export interface JournalEntryAdd {
|
|
|
2954
2954
|
/** Allows for the attachment of a user defined GUID value. */
|
|
2955
2955
|
ExternalGUID?: string;
|
|
2956
2956
|
/** If no amount is included in the first debit line (or credit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that `JournalEntry` object will fail XML validation. */
|
|
2957
|
-
JournalDebitLine?: JournalDebitLine;
|
|
2957
|
+
JournalDebitLine?: JournalDebitLine | JournalDebitLine[];
|
|
2958
2958
|
/** If no amount is included in the first credit line (or debit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that `JournalEntry` object will fail XML validation. */
|
|
2959
|
-
JournalCreditLine?: JournalCreditLine;
|
|
2959
|
+
JournalCreditLine?: JournalCreditLine | JournalCreditLine[];
|
|
2960
2960
|
}
|
|
2961
2961
|
export interface JournalEntryAddRq {
|
|
2962
2962
|
JournalEntryAdd: JournalEntryAdd;
|
|
@@ -3057,9 +3057,9 @@ export interface JournalEntryRet {
|
|
|
3057
3057
|
/** Allows for the attachment of a user defined GUID value. */
|
|
3058
3058
|
ExternalGUID?: string;
|
|
3059
3059
|
/** If no amount is included in the first debit line (or credit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that `JournalEntry` object will fail XML validation. */
|
|
3060
|
-
JournalDebitLine?: JournalDebitLine;
|
|
3060
|
+
JournalDebitLine?: JournalDebitLine | JournalDebitLine[];
|
|
3061
3061
|
/** If no amount is included in the first credit line (or debit line) of a journal entry in the QuickBooks user interface, then subsequent SDK queries on that `JournalEntry` object will fail XML validation. */
|
|
3062
|
-
JournalCreditLine?: JournalCreditLine;
|
|
3062
|
+
JournalCreditLine?: JournalCreditLine | JournalCreditLine[];
|
|
3063
3063
|
/** A list of `IDataExtRet` objects, each of which represents a field that has been added to QuickBooks as a data extension. */
|
|
3064
3064
|
DataExtRet?: DataExtRet | DataExtRet[];
|
|
3065
3065
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export type Environment = "development" | "production" | "
|
|
1
|
+
export type Environment = "development" | "production" | "test";
|
|
2
2
|
export declare const currentEnvironment: {
|
|
3
3
|
name: Environment;
|
|
4
4
|
isTest: boolean;
|
|
5
5
|
isDevelopment: boolean;
|
|
6
|
-
isStaging: boolean;
|
|
7
6
|
isProduction: boolean;
|
|
8
7
|
};
|
|
9
8
|
export declare function getServerUrlForEnvironment(environment: Environment): string;
|
|
@@ -6,7 +6,6 @@ exports.currentEnvironment = {
|
|
|
6
6
|
name: currentEnvironmentName,
|
|
7
7
|
isTest: currentEnvironmentName === "test",
|
|
8
8
|
isDevelopment: currentEnvironmentName === "development",
|
|
9
|
-
isStaging: currentEnvironmentName === "staging",
|
|
10
9
|
isProduction: currentEnvironmentName === "production",
|
|
11
10
|
};
|
|
12
11
|
function getServerUrlForEnvironment(environment) {
|
|
@@ -18,9 +17,6 @@ function getServerUrlForEnvironment(environment) {
|
|
|
18
17
|
case "development": {
|
|
19
18
|
return "https://conductor.ngrok.io";
|
|
20
19
|
}
|
|
21
|
-
case "staging": {
|
|
22
|
-
return "https://staging.api.conductor.is";
|
|
23
|
-
}
|
|
24
20
|
case "production": {
|
|
25
21
|
return "https://production.api.conductor.is";
|
|
26
22
|
}
|
package/package.json
CHANGED