conductor-node 0.0.12 → 0.0.15

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.
Files changed (31) hide show
  1. package/dist/{Client.d.ts → src/Client.d.ts} +0 -0
  2. package/dist/{Client.js → src/Client.js} +0 -1
  3. package/dist/{qb → src/qb}/ClientQBD.d.ts +4 -1
  4. package/dist/{qb → src/qb}/ClientQBD.js +0 -1
  5. package/dist/{qb → src/qb}/qbXMLTypes/Account.d.ts +0 -0
  6. package/dist/{qb → src/qb}/qbXMLTypes/Account.js +0 -1
  7. package/dist/{qb → src/qb}/qbXMLTypes/Customer.d.ts +0 -0
  8. package/dist/{qb → src/qb}/qbXMLTypes/Customer.js +0 -1
  9. package/dist/{qb → src/qb}/qbXMLTypes/Employee.d.ts +0 -0
  10. package/dist/{qb → src/qb}/qbXMLTypes/Employee.js +0 -1
  11. package/dist/{qb → src/qb}/qbXMLTypes/Vendor.d.ts +0 -0
  12. package/dist/{qb → src/qb}/qbXMLTypes/Vendor.js +0 -1
  13. package/dist/{qb → src/qb}/qbXMLTypes/shared.d.ts +0 -0
  14. package/dist/{qb → src/qb}/qbXMLTypes/shared.js +0 -1
  15. package/package.json +6 -3
  16. package/dist/Client.js.map +0 -1
  17. package/dist/qb/ClientQBD.js.map +0 -1
  18. package/dist/qb/qbXMLTypes/Account.js.map +0 -1
  19. package/dist/qb/qbXMLTypes/Customer.js.map +0 -1
  20. package/dist/qb/qbXMLTypes/Employee.js.map +0 -1
  21. package/dist/qb/qbXMLTypes/Vendor.js.map +0 -1
  22. package/dist/qb/qbXMLTypes/shared.js.map +0 -1
  23. package/dist/tsconfig.tsbuildinfo +0 -1
  24. package/src/Client.ts +0 -17
  25. package/src/qb/ClientQBD.ts +0 -228
  26. package/src/qb/qbXMLTypes/Account.ts +0 -309
  27. package/src/qb/qbXMLTypes/Customer.ts +0 -193
  28. package/src/qb/qbXMLTypes/Employee.ts +0 -501
  29. package/src/qb/qbXMLTypes/Vendor.ts +0 -192
  30. package/src/qb/qbXMLTypes/shared.ts +0 -143
  31. package/tsconfig.json +0 -19
@@ -1,309 +0,0 @@
1
- import type {
2
- ActiveStatus,
3
- CurrencyFilter,
4
- CurrencyRef,
5
- DataExtRet,
6
- NameFilter,
7
- NameRangeFilter,
8
- ParentRef,
9
- SalesTaxCodeRef,
10
- } from "@conductor/client/qb/qbXMLTypes/shared";
11
-
12
- // https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/accountadd
13
- export interface AccountAddRq {
14
- AccountAdd: AccountAdd;
15
- IncludeRetElement?: string;
16
- }
17
-
18
- export interface AccountAddRs {
19
- // TODO: Confirm whether this is an array or not.
20
- AccountRet?: AccountRet;
21
- }
22
-
23
- export interface AccountAdd {
24
- /**
25
- * The case-insensitive name of a list object, not including the names of its
26
- * ancestors. Name must be unique, unless it is the Name of a “hierarchical”
27
- * list object. List objects in different hierarchies can have duplicate names
28
- * because their FullNames will still be unique. For example, two objects
29
- * could both have the Name kitchen, but they could have unique FullNames,
30
- * such as Job12:kitchen and Baker:kitchen. For built-in currencies, Name is
31
- * the internationally accepted currency name and is not editable.
32
- */
33
- Name: string;
34
- /**
35
- * If `IsActive` is `true`, this object is currently enabled for use by
36
- * QuickBooks. The default value is `true`.
37
- */
38
- IsActive?: boolean;
39
- /**
40
- * A reference to the list object that is one level above this one. For
41
- * example, an inventory item with the `FullName` of
42
- * `GermanCars:Mercedes-Benz:CL500I99AA` might have a parent object with the
43
- * `FullName` of `GermanCars:Mercedes-Benz`. In a request, if a `ParentRef`
44
- * aggregate includes both `FullName` and `ListID`, `FullName` will be
45
- * ignored.
46
- */
47
- ParentRef?: ParentRef;
48
- /**
49
- * The type of QuickBooks account. You cannot create or modify a non-posting
50
- * account through the SDK, because QuickBooks creates these accounts behind
51
- * the scenes. This means that you cannot send an AccountAdd request with an
52
- * AccountType of NonPosting.
53
- */
54
- AccountType: AccountType;
55
- /**
56
- * Account numbers appear in the QuickBooks chart of accounts, Account fields,
57
- * and reports and graphs. If the `IsUsingAccountNumber` preference is `false`
58
- * (that is, if the QuickBooks user has the account numbers Preference turned
59
- * off), you can still set account numbers through the SDK, but the numbers
60
- * will not be visible in the user interface.
61
- */
62
- AccountNumber?: string;
63
- /**
64
- * The bank account number or an identifying note about the account. If a
65
- * `BankNumber` exists in a QuickBooks company file, it will only be returned
66
- * to applications that have been granted permission to access sensitive data
67
- * and that are using SDK v2.0 or greater.
68
- */
69
- BankNumber?: string;
70
- /**
71
- * A descriptive text field.
72
- */
73
- Desc?: string;
74
- /**
75
- * The amount of money in, or the value of, this account as of
76
- * `OpenBalanceDate`. On a bank statement, the amount of money in the account
77
- * at the beginning of the statement period.
78
- */
79
- OpenBalance?: string;
80
- /**
81
- * The date when an opening balance was entered for this account.
82
- */
83
- OpenBalanceDate?: Date;
84
- /**
85
- * Each item on a sales form is assigned a sales-tax code that indicates
86
- * whether the item is taxable or non-taxable, and why. Two general codes,
87
- * which can be modified but not deleted, appear on the sales-tax code list by
88
- * default: `Non-taxable (Name = NON; Desc = Non-Taxable; IsTaxable = false)`,
89
- * `Taxable (Name = TAX; Desc = Taxable; IsTaxable = true)`. A sales-tax code
90
- * can be deleted only if it is no longer associated with any customer, item,
91
- * or transaction. If the “Do You Charge Sales Tax?” preference within
92
- * QuickBooks is set to No, QuickBooks will assign the default non-taxable
93
- * sales-tax code to all sales. A `SalesTaxCodeRef` aggregate refers to a
94
- * sales-tax code on the list. In a request, if a `SalesTaxCodeRef` aggregate
95
- * includes both FullName and `ListID`, FullName will be ignored. In a
96
- * Customer message, `SalesTaxCodeRef` refers to the sales-tax code that will
97
- * be used for items related to this customer. In an ItemInventory message,
98
- * `SalesTaxCodeRef` refers to the type of sales tax that will be charged for
99
- * this item, if it is a taxable item and if sales tax is set up within
100
- * QuickBooks.
101
- */
102
- SalesTaxCodeRef?: SalesTaxCodeRef;
103
- /**
104
- * An internal representation of the tax line associated with this account.
105
- */
106
- TaxLineID?: number;
107
- /**
108
- * The currency object contains all of the information needed by QuickBooks to
109
- * display and use. For built-in currencies, the name and currency code values
110
- * are internationally accepted values and thus are not editable. The comma
111
- * format is editable, as is the IsActive status. For user-defined currencies,
112
- * every value in the object is editable including name and currency code.
113
- * When used with PriceLevels, the CurrencyRef should only be used with “per
114
- * item” price levels.
115
- */
116
- CurrencyRef?: CurrencyRef;
117
- }
118
-
119
- // https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/accountquery
120
- // FIXME: This does not account for the use of "OR" and "may repeat" in the
121
- // XMLOps, which might indicate using an array.
122
- export interface AccountQueryRq {
123
- ListID?: string;
124
- FullName?: string;
125
- /**
126
- * Limits the number of objects that a query returns. (To get a count of how
127
- * many objects could possibly be returned, use the metaData query attribute.)
128
- * If you include a `MaxReturned` value, it must be at least 1.
129
- */
130
- MaxReturned?: number;
131
- /**
132
- * Used in filters to select list objects based on whether or not they are
133
- * currently enabled for use by QuickBooks. The default value is `ActiveOnly`,
134
- * which selects only list objects that are active.
135
- */
136
- ActiveStatus?: ActiveStatus;
137
- FromModifiedDate?: Date;
138
- ToModifiedDate?: Date;
139
- /**
140
- * Filters according to the object’s `Name`.
141
- */
142
- NameFilter?: NameFilter;
143
- /**
144
- * Filters according to the object’s `Name`.
145
- */
146
- NameRangeFilter?: NameRangeFilter;
147
- AccountType?: AccountType;
148
- CurrencyFilter?: CurrencyFilter;
149
- }
150
-
151
- export interface AccountQueryRs {
152
- // TODO: Confirm whether this is an array or not.
153
- AccountRet?: AccountRet;
154
- }
155
-
156
- export interface AccountRet {
157
- /**
158
- * Along with `FullName`, `ListID` is a way to identify a list object. When a
159
- * list object is added to QuickBooks through the SDK or through the
160
- * QuickBooks user interface, the server assigns it a `ListID`. A `ListID` is
161
- * not unique across lists, but it is unique across each particular type of
162
- * list. For example, two customers could not have the same `ListID`, and a
163
- * customer could not have the same `ListID` as an employee (because Customer
164
- * and Employee are both name lists). But a customer could have the same
165
- * `ListID` as a non-inventory item.
166
- */
167
- ListID: string;
168
- /**
169
- * Time the object was created.
170
- */
171
- TimeCreated: string;
172
- /**
173
- * Time the object was last modified.
174
- */
175
- TimeModified: string;
176
- /**
177
- * A number that the server generates and assigns to this object. Every time
178
- * the object is changed, the server will change its `EditSequence` value.
179
- * When you try to modify a list object, you must provide its `EditSequence`.
180
- * The server compares the `EditSequence` you provide with the `EditSequence`
181
- * in memory to make sure you are dealing with the latest copy of the object.
182
- * If you are not, the server will reject the request and return an error.
183
- * Because `EditSequence` is only used to check whether two objects match,
184
- * there is no reason to interpret its value.
185
- */
186
- EditSequence: string;
187
- /**
188
- * The case-insensitive name of a list object, not including the names of its
189
- * ancestors. `Name` must be unique, unless it is the `Name` of a
190
- * “hierarchical” list object. List objects in different hierarchies can have
191
- * duplicate names because their `FullNames` will still be unique. For
192
- * example, two objects could both have the `Name` kitchen, but they could
193
- * have unique `FullNames`, such as Job12:kitchen and Baker:kitchen. For
194
- * built-in currencies, `Name` is the internationally accepted currency name
195
- * and is not editable.
196
- */
197
- Name: string;
198
- /**
199
- * `FullName` (along with `ListID`) is a way to identify a list object. The
200
- * `FullName` is the name prefixed by the names of each ancestor, for example
201
- * `Jones:Kitchen:Cabinets`. `FullName` values are not case-sensitive.
202
- */
203
- FullName: string;
204
- /**
205
- * If `IsActive` is true, this object is currently enabled for use by
206
- * QuickBooks. The default value is `true`.
207
- */
208
- IsActive?: boolean;
209
- /**
210
- * A reference to the list object that is one level above this one. For
211
- * example, an inventory item with the `FullName` of
212
- * `GermanCars:Mercedes-Benz:CL500I99AA` might have a parent object with the
213
- * `FullName` of `GermanCars:Mercedes-Benz`. In a request, if a `ParentRef`
214
- * aggregate includes both `FullName` and `ListID`, `FullName` will be
215
- * ignored.
216
- */
217
- ParentRef?: ParentRef;
218
- /**
219
- * The number of ancestors. For example, The customer job with `Name =
220
- * carpets` and `FullName = Jones:Building2:carpets` would have a sublevel of
221
- * 2.
222
- */
223
- Sublevel: number;
224
- /**
225
- * The type of QuickBooks account. You cannot create or modify a non-posting
226
- * account through the SDK, because QuickBooks creates these accounts behind
227
- * the scenes. This means that you cannot send an `AccountAdd` request with an
228
- * `AccountType` of `NonPosting`.
229
- */
230
- AccountType: AccountType;
231
- /**
232
- * If `SpecialAccountType` returns a value, then QuickBooks automatically
233
- * created this account when it was needed. Some special accounts cannot be
234
- * overridden, because QuickBooks uses them exclusively for special purposes.
235
- */
236
- SpecialAccountType?: SpecialAccountType;
237
- /**
238
- * Indicates whether the account is used for tax.
239
- */
240
- IsTaxAccount?: boolean;
241
- /**
242
- * Account numbers appear in the QuickBooks chart of accounts, `Account`
243
- * fields, and reports and graphs. If the `IsUsingAccountNumber` preference is
244
- * false (that is, if the QuickBooks user has the account numbers Preference
245
- * turned off), you can still set account numbers through the SDK, but the
246
- * numbers will not be visible in the user interface.
247
- */
248
- AccountNumber?: string;
249
- BankNumber?: string;
250
- Desc?: string;
251
- Balance?: string;
252
- TotalBalance?: string;
253
- SalesTaxCodeRef?: SalesTaxCodeRef;
254
- TaxLineInfoRet?: {
255
- TaxLineID: number;
256
- TaxLineName?: string;
257
- };
258
- CashFlowClassification?: CashFlowClassification;
259
- CurrencyRef?: CurrencyRef;
260
- DataExtRet?: DataExtRet;
261
- }
262
-
263
- type AccountType =
264
- | "AccountsPayable"
265
- | "AccountsReceivable"
266
- | "Bank"
267
- | "CostOfGoodsSold"
268
- | "CreditCard"
269
- | "Equity"
270
- | "Expense"
271
- | "FixedAsset"
272
- | "Income"
273
- | "LongTermLiability"
274
- | "NonPosting"
275
- | "OtherAsset"
276
- | "OtherCurrentAsset"
277
- | "OtherCurrentLiability"
278
- | "OtherExpense"
279
- | "OtherIncome";
280
-
281
- type SpecialAccountType =
282
- | "AccountsPayable"
283
- | "AccountsReceivable"
284
- | "CondenseItemAdjustmentExpenses"
285
- | "CostOfGoodsSold"
286
- | "DirectDepositLiabilities"
287
- | "Estimates"
288
- | "ExchangeGainLoss"
289
- | "InventoryAssets"
290
- | "ItemReceiptAccount"
291
- | "OpeningBalanceEquity"
292
- | "PayrollExpenses"
293
- | "PayrollLiabilities"
294
- | "PettyCash"
295
- | "PurchaseOrders"
296
- | "ReconciliationDifferences"
297
- | "RetainedEarnings"
298
- | "SalesOrders"
299
- | "SalesTaxPayable"
300
- | "UncategorizedExpenses"
301
- | "UncategorizedIncome"
302
- | "UndepositedFunds";
303
-
304
- type CashFlowClassification =
305
- | "Financing"
306
- | "Investing"
307
- | "None"
308
- | "NotApplicable"
309
- | "Operating";
@@ -1,193 +0,0 @@
1
- import type {
2
- ActiveStatus,
3
- AdditionalContactRef,
4
- AdditionalNotesRet,
5
- ClassFilter,
6
- ClassRef,
7
- ContactsRet,
8
- CurrencyFilter,
9
- CurrencyRef,
10
- DataExtRet,
11
- NameFilter,
12
- NameRangeFilter,
13
- ParentRef,
14
- SalesTaxCodeRef,
15
- SalesTaxCountry,
16
- ShipAddress,
17
- TermsRef,
18
- TotalBalanceFilter,
19
- } from "@conductor/client/qb/qbXMLTypes/shared";
20
-
21
- export interface CustomerQueryRq {
22
- ListID?: string;
23
- FullName?: string;
24
- MaxReturned?: number;
25
- ActiveStatus?: ActiveStatus;
26
- FromModifiedDate?: Date;
27
- ToModifiedDate?: Date;
28
- NameFilter?: NameFilter;
29
- NameRangeFilter?: NameRangeFilter;
30
- TotalBalanceFilter?: TotalBalanceFilter;
31
- CurrencyFilter?: CurrencyFilter;
32
- ClassFilter?: ClassFilter;
33
- IncludeRetElement?: string;
34
- OwnerID?: string;
35
- }
36
-
37
- export interface CustomerQueryRs {
38
- CustomerRet?: CustomerRet;
39
- }
40
-
41
- export interface CustomerRet {
42
- ListID: string;
43
- TimeCreated: Date;
44
- TimeModified: Date;
45
- EditSequence: string;
46
- Name: string;
47
- FullName: string;
48
- IsActive?: boolean;
49
- ClassRef?: ClassRef;
50
- ParentRef?: ParentRef;
51
- Sublevel: number;
52
- CompanyName?: string;
53
- Salutation?: string;
54
- FirstName?: string;
55
- MiddleName?: string;
56
- LastName?: string;
57
- JobTitle?: string;
58
- BillAddress?: BillAddress;
59
- BillAddressBlock?: BillAddressBlock;
60
- ShipAddress?: ShipAddress;
61
- ShipAddressBlock?: ShipAddressBlock;
62
- ShipToAddress?: ShipToAddress;
63
- Phone?: string;
64
- AltPhone?: string;
65
- Fax?: string;
66
- Email?: string;
67
- Cc?: string;
68
- Contact?: string;
69
- AltContact?: string;
70
- AdditionalContactRef?: AdditionalContactRef;
71
- ContactsRet?: ContactsRet;
72
- CustomerTypeRef?: CustomerTypeRef;
73
- TermsRef?: TermsRef;
74
- SalesRepRef?: SalesRepRef;
75
- Balance?: string;
76
- TotalBalance?: string;
77
- SalesTaxCodeRef?: SalesTaxCodeRef;
78
- ItemSalesTaxRef?: ItemSalesTaxRef;
79
- SalesTaxCountry?: SalesTaxCountry;
80
- ResaleNumber?: string;
81
- AccountNumber?: string;
82
- CreditLimit?: string;
83
- PreferredPaymentMethodRef?: PreferredPaymentMethodRef;
84
- CreditCardInfo?: CreditCardInfo;
85
- JobStatus?: JobStatus;
86
- JobStartDate?: Date;
87
- JobProjectedEndDate?: Date;
88
- JobEndDate?: Date;
89
- JobDesc?: string;
90
- JobTypeRef?: JobTypeRef;
91
- Notes?: string;
92
- AdditionalNotesRet?: AdditionalNotesRet;
93
- PreferredDeliveryMethod?: PreferredDeliveryMethod;
94
- PriceLevelRef?: PriceLevelRef;
95
- ExternalGUID?: string;
96
- TaxRegistrationNumber?: string;
97
- CurrencyRef?: CurrencyRef;
98
- DataExtRet?: DataExtRet;
99
- }
100
-
101
- interface BillAddress {
102
- Addr1?: string;
103
- Addr2?: string;
104
- Addr3?: string;
105
- Addr4?: string;
106
- Addr5?: string;
107
- City?: string;
108
- State?: string;
109
- PostalCode?: string;
110
- Country?: string;
111
- Note?: string;
112
- }
113
-
114
- interface BillAddressBlock {
115
- Addr1?: string;
116
- Addr2?: string;
117
- Addr3?: string;
118
- Addr4?: string;
119
- Addr5?: string;
120
- }
121
-
122
- interface ShipAddressBlock {
123
- Addr1?: string;
124
- Addr2?: string;
125
- Addr3?: string;
126
- Addr4?: string;
127
- Addr5?: string;
128
- }
129
-
130
- interface ShipToAddress {
131
- Addr1?: string;
132
- Addr2?: string;
133
- Addr3?: string;
134
- Addr4?: string;
135
- Addr5?: string;
136
- City?: string;
137
- State?: string;
138
- PostalCode?: string;
139
- Country?: string;
140
- Note?: string;
141
- DefaultShipTo?: boolean;
142
- }
143
-
144
- interface CustomerTypeRef {
145
- ListID?: string;
146
- FullName?: string;
147
- }
148
-
149
- interface SalesRepRef {
150
- ListID?: string;
151
- FullName?: string;
152
- }
153
-
154
- interface ItemSalesTaxRef {
155
- ListID?: string;
156
- FullName?: string;
157
- }
158
-
159
- interface PreferredPaymentMethodRef {
160
- ListID?: string;
161
- FullName?: string;
162
- }
163
-
164
- interface CreditCardInfo {
165
- CreditCardNumber?: string;
166
- ExpirationMonth?: number;
167
- ExpirationYear?: number;
168
- NameOnCard?: string;
169
- CreditCardAddress?: string;
170
- CreditCardPostalCode?: string;
171
- }
172
-
173
- // Default is "None"
174
- type JobStatus =
175
- | "Awarded"
176
- | "Closed"
177
- | "InProgress"
178
- | "None"
179
- | "NotAwarded"
180
- | "Pending";
181
-
182
- interface JobTypeRef {
183
- ListID?: string;
184
- FullName?: string;
185
- }
186
-
187
- // Default is "None"
188
- type PreferredDeliveryMethod = "Email" | "Fax" | "None";
189
-
190
- interface PriceLevelRef {
191
- ListID?: string;
192
- FullName?: string;
193
- }