ledgercrossing 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,248 @@
1
+ /**
2
+ * A small, strict XML reader for QuickBooks' qbXML replies: elements,
3
+ * attributes, text, CDATA, comments, processing instructions and the standard
4
+ * entities. A DOCTYPE is refused (qbXML never has one, and it is the door for
5
+ * entity tricks). Not a general-purpose XML parser.
6
+ */
7
+ declare class XmlParseError extends Error {
8
+ readonly position: number;
9
+ constructor(message: string, position: number);
10
+ }
11
+ declare class XmlElement {
12
+ readonly name: string;
13
+ readonly attributes: Readonly<Record<string, string>>;
14
+ /** Direct text content, entities decoded; "" for an element that only holds other elements. */
15
+ text: string;
16
+ readonly children: XmlElement[];
17
+ constructor(name: string, attributes?: Readonly<Record<string, string>>);
18
+ /** The first direct child with this name. */
19
+ find(name: string): XmlElement | undefined;
20
+ /** Every direct child with this name. */
21
+ findAll(name: string): XmlElement[];
22
+ /** The text of the first direct child with this name, or undefined when there is none. */
23
+ findText(name: string): string | undefined;
24
+ /** An attribute's value, or undefined. */
25
+ get(attribute: string): string | undefined;
26
+ }
27
+ declare function parseXml(xml: string): XmlElement;
28
+
29
+ /** One response inside the reply, e.g. a CustomerQueryRs. */
30
+ interface QbResponse {
31
+ /** The element name, e.g. "CustomerQueryRs". */
32
+ readonly name: string;
33
+ /** QuickBooks' statusCode: 0 is OK, 1 is "no match" for a query. */
34
+ readonly statusCode: number;
35
+ /** "Info", "Warn" or "Error". */
36
+ readonly statusSeverity: string;
37
+ readonly statusMessage: string;
38
+ readonly requestId: string | undefined;
39
+ /** The response element itself, for anything not covered here. */
40
+ readonly element: XmlElement;
41
+ /** True unless QuickBooks marked this response as an error. */
42
+ readonly ok: boolean;
43
+ /** The returned records: child elements whose names end in "Ret" (CustomerRet, InvoiceRet, ReportRet, ...). */
44
+ records(): XmlElement[];
45
+ }
46
+ /**
47
+ * QuickBooks' answer to a qbXML request. `String(reply)` and `reply.raw` give
48
+ * QuickBooks' own XML. A QuickBooks error inside a reply is not thrown on its
49
+ * own: with onError="continueOnError" a mix of results is normal. Call
50
+ * `raiseForStatus()` to throw on any error.
51
+ */
52
+ declare class Reply {
53
+ readonly raw: string;
54
+ /** The parsed document, or null when the XML was not readable. */
55
+ readonly root: XmlElement | null;
56
+ readonly responses: readonly QbResponse[];
57
+ constructor(raw: string);
58
+ /** True when the XML was readable and no response is an error. */
59
+ get ok(): boolean;
60
+ /** Every returned record across all responses, in order. */
61
+ records(): XmlElement[];
62
+ /** Throw QuickBooksStatusError if any response is an error; else return this reply. */
63
+ raiseForStatus(): this;
64
+ toString(): string;
65
+ }
66
+
67
+ interface ErrorDetails {
68
+ /** The HTTP status, or undefined when no answer arrived. */
69
+ status?: number;
70
+ /** LedgerCrossing's machine-readable code, e.g. "QB_OPEN_TIMEOUT", "QB_NOT_RESPONDING" or an HRESULT. */
71
+ code?: string;
72
+ /** Seconds to wait before trying again (from Retry-After). */
73
+ retryAfter?: number;
74
+ /** The parsed JSON body, when there was one. */
75
+ body?: Record<string, unknown>;
76
+ /** The response headers, lower-cased names. */
77
+ headers?: Record<string, string>;
78
+ cause?: unknown;
79
+ }
80
+ /**
81
+ * Base class for every error this package throws. Branch on the class (or on
82
+ * `status` and `code`); the wording of `message` is for people and may change.
83
+ */
84
+ declare class LedgerCrossingError extends Error {
85
+ readonly status: number | undefined;
86
+ readonly code: string | undefined;
87
+ readonly retryAfter: number | undefined;
88
+ readonly body: Record<string, unknown> | undefined;
89
+ readonly headers: Record<string, string>;
90
+ constructor(message: string, details?: ErrorDetails);
91
+ }
92
+ /** LedgerCrossing could not be reached (refused, DNS, TLS, reset). */
93
+ declare class NetworkError extends LedgerCrossingError {
94
+ }
95
+ /**
96
+ * No answer arrived within `timeoutMs`. The request may still run in
97
+ * QuickBooks: LedgerCrossing never abandons a request it has started. Don't
98
+ * resend an add without checking first.
99
+ */
100
+ declare class RequestTimeoutError extends NetworkError {
101
+ }
102
+ /** 400: a malformed request, an unbounded query, an event-subscription request, or a company file the current mode rejects. */
103
+ declare class BadRequestError extends LedgerCrossingError {
104
+ }
105
+ /** 401: the API key is missing or wrong. */
106
+ declare class AuthenticationError extends LedgerCrossingError {
107
+ }
108
+ /**
109
+ * 403: refused. `refusedAtDoor` is true when LedgerCrossing answered with no
110
+ * body: a request from a web page on another website, or, from the office
111
+ * network, Local network is off or the caller isn't on a private address or the
112
+ * allowlist. Otherwise `message` says which rule refused it.
113
+ */
114
+ declare class PermissionDeniedError extends LedgerCrossingError {
115
+ readonly refusedAtDoor: boolean;
116
+ constructor(message: string, details?: ErrorDetails & {
117
+ refusedAtDoor?: boolean;
118
+ });
119
+ }
120
+ /** 403: the request would change the books, and this connection is read-only (Internet connections, or the signed-in person). */
121
+ declare class ReadOnlyError extends PermissionDeniedError {
122
+ }
123
+ /** 404: the path isn't served (check the URL). */
124
+ declare class NotFoundError extends LedgerCrossingError {
125
+ }
126
+ /**
127
+ * 409: conflicts with QuickBooks' current state, e.g. the company file is in
128
+ * use, QuickBooks didn't open the file in time (QB_OPEN_TIMEOUT), or a
129
+ * QuickBooks window is waiting for a person (QB_START_BLOCKED).
130
+ */
131
+ declare class ConflictError extends LedgerCrossingError {
132
+ }
133
+ /** 429: the queue is full, the request waited too long, or too many wrong keys came from this address. Wait `retryAfter` seconds. */
134
+ declare class RateLimitError extends LedgerCrossingError {
135
+ readonly queueDepth: number | undefined;
136
+ constructor(message: string, details?: ErrorDetails & {
137
+ queueDepth?: number;
138
+ });
139
+ }
140
+ /** 500 (or another 5xx): a genuine fault. */
141
+ declare class ServerError extends LedgerCrossingError {
142
+ }
143
+ /** 503: QuickBooks is not responding (QB_NOT_RESPONDING) or LedgerCrossing is shutting down (SHUTTING_DOWN). Try again after `retryAfter` seconds. */
144
+ declare class UnavailableError extends ServerError {
145
+ }
146
+ /**
147
+ * QuickBooks answered, but at least one response has statusSeverity Error.
148
+ * Thrown only by Reply.raiseForStatus(). `responses` holds the failing ones;
149
+ * `code` is the first one's statusCode.
150
+ */
151
+ declare class QuickBooksStatusError extends LedgerCrossingError {
152
+ readonly responses: readonly QbResponse[];
153
+ constructor(message: string, details?: ErrorDetails & {
154
+ responses?: readonly QbResponse[];
155
+ });
156
+ }
157
+
158
+ /** LedgerCrossing on this computer. */
159
+ declare const DEFAULT_URL = "http://localhost:8284";
160
+ /** The qbXML version the helpers send; every QuickBooks Desktop from 2014 on accepts it. */
161
+ declare const QBXML_VERSION = "13.0";
162
+ interface LedgerCrossingOptions {
163
+ /**
164
+ * Where LedgerCrossing listens. The default is this computer. From another
165
+ * office computer use `http://<machine-name>:8284` (Local network on, plus the
166
+ * key); from anywhere else, your LedgerCrossing Remote address (the key, with
167
+ * "Allow the API key" on).
168
+ */
169
+ url?: string;
170
+ /** The API key from Settings > Allowed Connections. Not needed on the QuickBooks computer itself. */
171
+ apiKey?: string;
172
+ /**
173
+ * Milliseconds to wait for an answer. Requests queue behind each other and
174
+ * QuickBooks can take a while to open a company file, so the default is
175
+ * generous (300000).
176
+ */
177
+ timeoutMs?: number;
178
+ /** A fetch implementation, for tests or proxies. Defaults to the global fetch. */
179
+ fetch?: typeof globalThis.fetch;
180
+ }
181
+ interface QbXmlOptions {
182
+ /**
183
+ * Full Windows path to the .qbw file. Only when LedgerCrossing's QuickBooks
184
+ * File page says the caller names the file in each request.
185
+ */
186
+ companyFile?: string;
187
+ /** 0 single-user, 1 multi-user, 2 don't care (the default). */
188
+ openMode?: 0 | 1 | 2;
189
+ /** Cancels waiting for the answer (the request may still run in QuickBooks). */
190
+ signal?: AbortSignal;
191
+ }
192
+ /** A date as a Date (its local calendar date) or "YYYY-MM-DD". */
193
+ type DateLike = Date | string;
194
+ interface CustomersOptions {
195
+ maxReturned?: number;
196
+ companyFile?: string;
197
+ }
198
+ interface InvoicesOptions {
199
+ fromDate?: DateLike;
200
+ toDate?: DateLike;
201
+ maxReturned?: number;
202
+ includeLineItems?: boolean;
203
+ companyFile?: string;
204
+ }
205
+ interface ProfitAndLossOptions {
206
+ fromDate: DateLike;
207
+ toDate: DateLike;
208
+ /** "Accrual" or "Cash"; the company's preference when omitted. */
209
+ basis?: "Accrual" | "Cash";
210
+ companyFile?: string;
211
+ }
212
+ type Health = {
213
+ success: boolean;
214
+ status: string;
215
+ } & Record<string, unknown>;
216
+ /** A client for LedgerCrossing's HTTP API (`/api/v1/qbxml`). */
217
+ declare class LedgerCrossing {
218
+ #private;
219
+ readonly url: string;
220
+ readonly timeoutMs: number;
221
+ constructor(options?: LedgerCrossingOptions);
222
+ /**
223
+ * Send a qbXML request to QuickBooks and return its answer.
224
+ * A QuickBooks error inside the reply (statusSeverity="Error") is not thrown;
225
+ * call `reply.raiseForStatus()` for that. Throws a LedgerCrossingError subclass
226
+ * for each refusal or failure.
227
+ */
228
+ qbxml(xml: string, options?: QbXmlOptions): Promise<Reply>;
229
+ /**
230
+ * GET /health: whether LedgerCrossing is up. Needs no key. On the QuickBooks
231
+ * computer the answer includes the version and QuickBooks' state; from
232
+ * elsewhere it is only `{ success: true, status: "ok" }`.
233
+ */
234
+ health(options?: {
235
+ signal?: AbortSignal;
236
+ }): Promise<Health>;
237
+ /** Up to `maxReturned` (default 100) active customers (CustomerQuery). */
238
+ customers(options?: CustomersOptions): Promise<Reply>;
239
+ /** Up to `maxReturned` (default 100) invoices, optionally by transaction date (InvoiceQuery). */
240
+ invoices(options?: InvoicesOptions): Promise<Reply>;
241
+ /** The standard Profit & Loss report for a period (GeneralSummaryReportQuery). */
242
+ profitAndLoss(options: ProfitAndLossOptions): Promise<Reply>;
243
+ }
244
+
245
+ /** This package's version (kept equal to package.json by a test). */
246
+ declare const VERSION = "0.1.0";
247
+
248
+ export { AuthenticationError, BadRequestError, ConflictError, type CustomersOptions, DEFAULT_URL, type DateLike, type ErrorDetails, type Health, type InvoicesOptions, LedgerCrossing, LedgerCrossingError, type LedgerCrossingOptions, NetworkError, NotFoundError, PermissionDeniedError, type ProfitAndLossOptions, QBXML_VERSION, type QbResponse, type QbXmlOptions, QuickBooksStatusError, RateLimitError, ReadOnlyError, Reply, RequestTimeoutError, ServerError, UnavailableError, VERSION, XmlElement, XmlParseError, parseXml };
@@ -0,0 +1,248 @@
1
+ /**
2
+ * A small, strict XML reader for QuickBooks' qbXML replies: elements,
3
+ * attributes, text, CDATA, comments, processing instructions and the standard
4
+ * entities. A DOCTYPE is refused (qbXML never has one, and it is the door for
5
+ * entity tricks). Not a general-purpose XML parser.
6
+ */
7
+ declare class XmlParseError extends Error {
8
+ readonly position: number;
9
+ constructor(message: string, position: number);
10
+ }
11
+ declare class XmlElement {
12
+ readonly name: string;
13
+ readonly attributes: Readonly<Record<string, string>>;
14
+ /** Direct text content, entities decoded; "" for an element that only holds other elements. */
15
+ text: string;
16
+ readonly children: XmlElement[];
17
+ constructor(name: string, attributes?: Readonly<Record<string, string>>);
18
+ /** The first direct child with this name. */
19
+ find(name: string): XmlElement | undefined;
20
+ /** Every direct child with this name. */
21
+ findAll(name: string): XmlElement[];
22
+ /** The text of the first direct child with this name, or undefined when there is none. */
23
+ findText(name: string): string | undefined;
24
+ /** An attribute's value, or undefined. */
25
+ get(attribute: string): string | undefined;
26
+ }
27
+ declare function parseXml(xml: string): XmlElement;
28
+
29
+ /** One response inside the reply, e.g. a CustomerQueryRs. */
30
+ interface QbResponse {
31
+ /** The element name, e.g. "CustomerQueryRs". */
32
+ readonly name: string;
33
+ /** QuickBooks' statusCode: 0 is OK, 1 is "no match" for a query. */
34
+ readonly statusCode: number;
35
+ /** "Info", "Warn" or "Error". */
36
+ readonly statusSeverity: string;
37
+ readonly statusMessage: string;
38
+ readonly requestId: string | undefined;
39
+ /** The response element itself, for anything not covered here. */
40
+ readonly element: XmlElement;
41
+ /** True unless QuickBooks marked this response as an error. */
42
+ readonly ok: boolean;
43
+ /** The returned records: child elements whose names end in "Ret" (CustomerRet, InvoiceRet, ReportRet, ...). */
44
+ records(): XmlElement[];
45
+ }
46
+ /**
47
+ * QuickBooks' answer to a qbXML request. `String(reply)` and `reply.raw` give
48
+ * QuickBooks' own XML. A QuickBooks error inside a reply is not thrown on its
49
+ * own: with onError="continueOnError" a mix of results is normal. Call
50
+ * `raiseForStatus()` to throw on any error.
51
+ */
52
+ declare class Reply {
53
+ readonly raw: string;
54
+ /** The parsed document, or null when the XML was not readable. */
55
+ readonly root: XmlElement | null;
56
+ readonly responses: readonly QbResponse[];
57
+ constructor(raw: string);
58
+ /** True when the XML was readable and no response is an error. */
59
+ get ok(): boolean;
60
+ /** Every returned record across all responses, in order. */
61
+ records(): XmlElement[];
62
+ /** Throw QuickBooksStatusError if any response is an error; else return this reply. */
63
+ raiseForStatus(): this;
64
+ toString(): string;
65
+ }
66
+
67
+ interface ErrorDetails {
68
+ /** The HTTP status, or undefined when no answer arrived. */
69
+ status?: number;
70
+ /** LedgerCrossing's machine-readable code, e.g. "QB_OPEN_TIMEOUT", "QB_NOT_RESPONDING" or an HRESULT. */
71
+ code?: string;
72
+ /** Seconds to wait before trying again (from Retry-After). */
73
+ retryAfter?: number;
74
+ /** The parsed JSON body, when there was one. */
75
+ body?: Record<string, unknown>;
76
+ /** The response headers, lower-cased names. */
77
+ headers?: Record<string, string>;
78
+ cause?: unknown;
79
+ }
80
+ /**
81
+ * Base class for every error this package throws. Branch on the class (or on
82
+ * `status` and `code`); the wording of `message` is for people and may change.
83
+ */
84
+ declare class LedgerCrossingError extends Error {
85
+ readonly status: number | undefined;
86
+ readonly code: string | undefined;
87
+ readonly retryAfter: number | undefined;
88
+ readonly body: Record<string, unknown> | undefined;
89
+ readonly headers: Record<string, string>;
90
+ constructor(message: string, details?: ErrorDetails);
91
+ }
92
+ /** LedgerCrossing could not be reached (refused, DNS, TLS, reset). */
93
+ declare class NetworkError extends LedgerCrossingError {
94
+ }
95
+ /**
96
+ * No answer arrived within `timeoutMs`. The request may still run in
97
+ * QuickBooks: LedgerCrossing never abandons a request it has started. Don't
98
+ * resend an add without checking first.
99
+ */
100
+ declare class RequestTimeoutError extends NetworkError {
101
+ }
102
+ /** 400: a malformed request, an unbounded query, an event-subscription request, or a company file the current mode rejects. */
103
+ declare class BadRequestError extends LedgerCrossingError {
104
+ }
105
+ /** 401: the API key is missing or wrong. */
106
+ declare class AuthenticationError extends LedgerCrossingError {
107
+ }
108
+ /**
109
+ * 403: refused. `refusedAtDoor` is true when LedgerCrossing answered with no
110
+ * body: a request from a web page on another website, or, from the office
111
+ * network, Local network is off or the caller isn't on a private address or the
112
+ * allowlist. Otherwise `message` says which rule refused it.
113
+ */
114
+ declare class PermissionDeniedError extends LedgerCrossingError {
115
+ readonly refusedAtDoor: boolean;
116
+ constructor(message: string, details?: ErrorDetails & {
117
+ refusedAtDoor?: boolean;
118
+ });
119
+ }
120
+ /** 403: the request would change the books, and this connection is read-only (Internet connections, or the signed-in person). */
121
+ declare class ReadOnlyError extends PermissionDeniedError {
122
+ }
123
+ /** 404: the path isn't served (check the URL). */
124
+ declare class NotFoundError extends LedgerCrossingError {
125
+ }
126
+ /**
127
+ * 409: conflicts with QuickBooks' current state, e.g. the company file is in
128
+ * use, QuickBooks didn't open the file in time (QB_OPEN_TIMEOUT), or a
129
+ * QuickBooks window is waiting for a person (QB_START_BLOCKED).
130
+ */
131
+ declare class ConflictError extends LedgerCrossingError {
132
+ }
133
+ /** 429: the queue is full, the request waited too long, or too many wrong keys came from this address. Wait `retryAfter` seconds. */
134
+ declare class RateLimitError extends LedgerCrossingError {
135
+ readonly queueDepth: number | undefined;
136
+ constructor(message: string, details?: ErrorDetails & {
137
+ queueDepth?: number;
138
+ });
139
+ }
140
+ /** 500 (or another 5xx): a genuine fault. */
141
+ declare class ServerError extends LedgerCrossingError {
142
+ }
143
+ /** 503: QuickBooks is not responding (QB_NOT_RESPONDING) or LedgerCrossing is shutting down (SHUTTING_DOWN). Try again after `retryAfter` seconds. */
144
+ declare class UnavailableError extends ServerError {
145
+ }
146
+ /**
147
+ * QuickBooks answered, but at least one response has statusSeverity Error.
148
+ * Thrown only by Reply.raiseForStatus(). `responses` holds the failing ones;
149
+ * `code` is the first one's statusCode.
150
+ */
151
+ declare class QuickBooksStatusError extends LedgerCrossingError {
152
+ readonly responses: readonly QbResponse[];
153
+ constructor(message: string, details?: ErrorDetails & {
154
+ responses?: readonly QbResponse[];
155
+ });
156
+ }
157
+
158
+ /** LedgerCrossing on this computer. */
159
+ declare const DEFAULT_URL = "http://localhost:8284";
160
+ /** The qbXML version the helpers send; every QuickBooks Desktop from 2014 on accepts it. */
161
+ declare const QBXML_VERSION = "13.0";
162
+ interface LedgerCrossingOptions {
163
+ /**
164
+ * Where LedgerCrossing listens. The default is this computer. From another
165
+ * office computer use `http://<machine-name>:8284` (Local network on, plus the
166
+ * key); from anywhere else, your LedgerCrossing Remote address (the key, with
167
+ * "Allow the API key" on).
168
+ */
169
+ url?: string;
170
+ /** The API key from Settings > Allowed Connections. Not needed on the QuickBooks computer itself. */
171
+ apiKey?: string;
172
+ /**
173
+ * Milliseconds to wait for an answer. Requests queue behind each other and
174
+ * QuickBooks can take a while to open a company file, so the default is
175
+ * generous (300000).
176
+ */
177
+ timeoutMs?: number;
178
+ /** A fetch implementation, for tests or proxies. Defaults to the global fetch. */
179
+ fetch?: typeof globalThis.fetch;
180
+ }
181
+ interface QbXmlOptions {
182
+ /**
183
+ * Full Windows path to the .qbw file. Only when LedgerCrossing's QuickBooks
184
+ * File page says the caller names the file in each request.
185
+ */
186
+ companyFile?: string;
187
+ /** 0 single-user, 1 multi-user, 2 don't care (the default). */
188
+ openMode?: 0 | 1 | 2;
189
+ /** Cancels waiting for the answer (the request may still run in QuickBooks). */
190
+ signal?: AbortSignal;
191
+ }
192
+ /** A date as a Date (its local calendar date) or "YYYY-MM-DD". */
193
+ type DateLike = Date | string;
194
+ interface CustomersOptions {
195
+ maxReturned?: number;
196
+ companyFile?: string;
197
+ }
198
+ interface InvoicesOptions {
199
+ fromDate?: DateLike;
200
+ toDate?: DateLike;
201
+ maxReturned?: number;
202
+ includeLineItems?: boolean;
203
+ companyFile?: string;
204
+ }
205
+ interface ProfitAndLossOptions {
206
+ fromDate: DateLike;
207
+ toDate: DateLike;
208
+ /** "Accrual" or "Cash"; the company's preference when omitted. */
209
+ basis?: "Accrual" | "Cash";
210
+ companyFile?: string;
211
+ }
212
+ type Health = {
213
+ success: boolean;
214
+ status: string;
215
+ } & Record<string, unknown>;
216
+ /** A client for LedgerCrossing's HTTP API (`/api/v1/qbxml`). */
217
+ declare class LedgerCrossing {
218
+ #private;
219
+ readonly url: string;
220
+ readonly timeoutMs: number;
221
+ constructor(options?: LedgerCrossingOptions);
222
+ /**
223
+ * Send a qbXML request to QuickBooks and return its answer.
224
+ * A QuickBooks error inside the reply (statusSeverity="Error") is not thrown;
225
+ * call `reply.raiseForStatus()` for that. Throws a LedgerCrossingError subclass
226
+ * for each refusal or failure.
227
+ */
228
+ qbxml(xml: string, options?: QbXmlOptions): Promise<Reply>;
229
+ /**
230
+ * GET /health: whether LedgerCrossing is up. Needs no key. On the QuickBooks
231
+ * computer the answer includes the version and QuickBooks' state; from
232
+ * elsewhere it is only `{ success: true, status: "ok" }`.
233
+ */
234
+ health(options?: {
235
+ signal?: AbortSignal;
236
+ }): Promise<Health>;
237
+ /** Up to `maxReturned` (default 100) active customers (CustomerQuery). */
238
+ customers(options?: CustomersOptions): Promise<Reply>;
239
+ /** Up to `maxReturned` (default 100) invoices, optionally by transaction date (InvoiceQuery). */
240
+ invoices(options?: InvoicesOptions): Promise<Reply>;
241
+ /** The standard Profit & Loss report for a period (GeneralSummaryReportQuery). */
242
+ profitAndLoss(options: ProfitAndLossOptions): Promise<Reply>;
243
+ }
244
+
245
+ /** This package's version (kept equal to package.json by a test). */
246
+ declare const VERSION = "0.1.0";
247
+
248
+ export { AuthenticationError, BadRequestError, ConflictError, type CustomersOptions, DEFAULT_URL, type DateLike, type ErrorDetails, type Health, type InvoicesOptions, LedgerCrossing, LedgerCrossingError, type LedgerCrossingOptions, NetworkError, NotFoundError, PermissionDeniedError, type ProfitAndLossOptions, QBXML_VERSION, type QbResponse, type QbXmlOptions, QuickBooksStatusError, RateLimitError, ReadOnlyError, Reply, RequestTimeoutError, ServerError, UnavailableError, VERSION, XmlElement, XmlParseError, parseXml };