conductor-node 12.0.0-beta.9 → 12.0.1
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/CHANGELOG.md +193 -0
- package/README.md +3 -4
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts.map +1 -1
- package/core.js +5 -2
- package/core.js.map +1 -1
- package/core.mjs +6 -3
- package/core.mjs.map +1 -1
- package/index.d.mts +4 -4
- package/index.d.ts +4 -4
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +8 -29
- package/pagination.js +1 -1
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -1
- package/pagination.mjs.map +1 -1
- package/resources/auth-sessions.d.ts +1 -1
- package/resources/auth-sessions.js +1 -1
- package/resources/auth-sessions.mjs +1 -1
- package/resources/end-users.d.ts +1 -13
- package/resources/end-users.d.ts.map +1 -1
- package/resources/end-users.js +0 -8
- package/resources/end-users.js.map +1 -1
- package/resources/end-users.mjs +0 -8
- package/resources/end-users.mjs.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/qbd/account-tax-lines.d.ts +48 -0
- package/resources/qbd/account-tax-lines.d.ts.map +1 -0
- package/resources/qbd/account-tax-lines.js +21 -0
- package/resources/qbd/account-tax-lines.js.map +1 -0
- package/resources/qbd/account-tax-lines.mjs +17 -0
- package/resources/qbd/account-tax-lines.mjs.map +1 -0
- package/resources/qbd/accounts.d.ts +9 -3
- package/resources/qbd/accounts.d.ts.map +1 -1
- package/resources/qbd/bill-check-payments.d.ts +4 -4
- package/resources/qbd/bill-credit-card-payments.d.ts +4 -4
- package/resources/qbd/bills.d.ts +7 -8
- package/resources/qbd/bills.d.ts.map +1 -1
- package/resources/qbd/bills.js.map +1 -1
- package/resources/qbd/bills.mjs.map +1 -1
- package/resources/qbd/checks.d.ts +4 -4
- package/resources/qbd/company.d.ts +354 -0
- package/resources/qbd/company.d.ts.map +1 -0
- package/resources/qbd/company.js +22 -0
- package/resources/qbd/company.js.map +1 -0
- package/resources/qbd/company.mjs +18 -0
- package/resources/qbd/company.mjs.map +1 -0
- package/resources/qbd/credit-card-charges.d.ts +4 -4
- package/resources/qbd/credit-card-credits.d.ts +4 -4
- package/resources/qbd/credit-memos.d.ts +4 -4
- package/resources/qbd/customers.d.ts +2 -2
- package/resources/qbd/customers.d.ts.map +1 -1
- package/resources/qbd/employees.d.ts +17 -6
- package/resources/qbd/employees.d.ts.map +1 -1
- package/resources/qbd/employees.js.map +1 -1
- package/resources/qbd/employees.mjs.map +1 -1
- package/resources/qbd/estimates.d.ts +4 -4
- package/resources/qbd/index.d.ts +7 -1
- package/resources/qbd/index.d.ts.map +1 -1
- package/resources/qbd/index.js +16 -2
- package/resources/qbd/index.js.map +1 -1
- package/resources/qbd/index.mjs +6 -0
- package/resources/qbd/index.mjs.map +1 -1
- package/resources/qbd/inventory-adjustments.d.ts +4 -4
- package/resources/qbd/invoices.d.ts +4 -4
- package/resources/qbd/item-receipts.d.ts +2336 -0
- package/resources/qbd/item-receipts.d.ts.map +1 -0
- package/resources/qbd/item-receipts.js +69 -0
- package/resources/qbd/item-receipts.js.map +1 -0
- package/resources/qbd/item-receipts.mjs +64 -0
- package/resources/qbd/item-receipts.mjs.map +1 -0
- package/resources/qbd/journal-entries.d.ts +4 -4
- package/resources/qbd/preferences.d.ts +591 -0
- package/resources/qbd/preferences.d.ts.map +1 -0
- package/resources/qbd/preferences.js +21 -0
- package/resources/qbd/preferences.js.map +1 -0
- package/resources/qbd/preferences.mjs +17 -0
- package/resources/qbd/preferences.mjs.map +1 -0
- package/resources/qbd/price-levels.d.ts +454 -0
- package/resources/qbd/price-levels.d.ts.map +1 -0
- package/resources/qbd/price-levels.js +54 -0
- package/resources/qbd/price-levels.js.map +1 -0
- package/resources/qbd/price-levels.mjs +50 -0
- package/resources/qbd/price-levels.mjs.map +1 -0
- package/resources/qbd/purchase-orders.d.ts +4 -4
- package/resources/qbd/qbd.d.ts +52 -0
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js +39 -0
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +39 -0
- package/resources/qbd/qbd.mjs.map +1 -1
- package/resources/qbd/receive-payments.d.ts +4 -4
- package/resources/qbd/sales-orders.d.ts +4 -4
- package/resources/qbd/sales-receipts.d.ts +4 -4
- package/resources/qbd/sales-representatives.d.ts +4 -0
- package/resources/qbd/sales-representatives.d.ts.map +1 -1
- package/resources/qbd/time-tracking-activities.d.ts +4 -4
- package/resources/qbd/transactions.d.ts +310 -0
- package/resources/qbd/transactions.d.ts.map +1 -0
- package/resources/qbd/transactions.js +40 -0
- package/resources/qbd/transactions.js.map +1 -0
- package/resources/qbd/transactions.mjs +35 -0
- package/resources/qbd/transactions.mjs.map +1 -0
- package/resources/qbd/transfers.d.ts +4 -4
- package/resources/qbd/vendor-credits.d.ts +4 -4
- package/resources/qbd/vendors.d.ts +6 -6
- package/resources/qbd/vendors.d.ts.map +1 -1
- package/resources/qbd.d.ts +2 -0
- package/resources/qbd.d.ts.map +1 -0
- package/resources/qbd.js +19 -0
- package/resources/qbd.js.map +1 -0
- package/resources/qbd.mjs +3 -0
- package/resources/qbd.mjs.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/_shims/index.d.ts +2 -0
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +5 -1
- package/src/core.ts +9 -4
- package/src/index.ts +6 -4
- package/src/pagination.ts +1 -1
- package/src/resources/auth-sessions.ts +1 -1
- package/src/resources/end-users.ts +0 -21
- package/src/resources/index.ts +1 -2
- package/src/resources/qbd/account-tax-lines.ts +70 -0
- package/src/resources/qbd/accounts.ts +9 -3
- package/src/resources/qbd/bill-check-payments.ts +4 -4
- package/src/resources/qbd/bill-credit-card-payments.ts +4 -4
- package/src/resources/qbd/bills.ts +7 -8
- package/src/resources/qbd/checks.ts +4 -4
- package/src/resources/qbd/company.ts +466 -0
- package/src/resources/qbd/credit-card-charges.ts +4 -4
- package/src/resources/qbd/credit-card-credits.ts +4 -4
- package/src/resources/qbd/credit-memos.ts +4 -4
- package/src/resources/qbd/customers.ts +2 -2
- package/src/resources/qbd/employees.ts +18 -6
- package/src/resources/qbd/estimates.ts +4 -4
- package/src/resources/qbd/index.ts +36 -1
- package/src/resources/qbd/inventory-adjustments.ts +4 -4
- package/src/resources/qbd/invoices.ts +4 -4
- package/src/resources/qbd/item-receipts.ts +2783 -0
- package/src/resources/qbd/journal-entries.ts +4 -4
- package/src/resources/qbd/preferences.ts +684 -0
- package/src/resources/qbd/price-levels.ts +561 -0
- package/src/resources/qbd/purchase-orders.ts +4 -4
- package/src/resources/qbd/qbd.ts +144 -0
- package/src/resources/qbd/receive-payments.ts +4 -4
- package/src/resources/qbd/sales-orders.ts +4 -4
- package/src/resources/qbd/sales-receipts.ts +4 -4
- package/src/resources/qbd/sales-representatives.ts +4 -0
- package/src/resources/qbd/time-tracking-activities.ts +4 -4
- package/src/resources/qbd/transactions.ts +439 -0
- package/src/resources/qbd/transfers.ts +4 -4
- package/src/resources/qbd/vendor-credits.ts +4 -4
- package/src/resources/qbd/vendors.ts +6 -6
- package/src/resources/qbd.ts +3 -0
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qbd.d.ts","sourceRoot":"","sources":["../src/resources/qbd.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAC"}
|
package/resources/qbd.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("./qbd/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=qbd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qbd.js","sourceRoot":"","sources":["../src/resources/qbd.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,iDAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qbd.mjs","sourceRoot":"","sources":["../src/resources/qbd.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
package/resources.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
18
|
+
//# sourceMappingURL=resources.js.map
|
package/resources.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAkC"}
|
package/resources.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
package/src/_shims/index.d.ts
CHANGED
|
@@ -79,3 +79,5 @@ export function fileFromPath(path: string, options?: FileFromPathOptions): Promi
|
|
|
79
79
|
export function fileFromPath(path: string, filename?: string, options?: FileFromPathOptions): Promise<File>;
|
|
80
80
|
|
|
81
81
|
export function isFsReadStream(value: any): value is FsReadStream;
|
|
82
|
+
|
|
83
|
+
export const init: () => void;
|
package/src/_shims/index.js
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
const shims = require('./registry');
|
|
5
5
|
const auto = require('conductor-node/_shims/auto/runtime');
|
|
6
|
-
|
|
6
|
+
exports.init = () => {
|
|
7
|
+
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
|
|
8
|
+
};
|
|
7
9
|
for (const property of Object.keys(shims)) {
|
|
8
10
|
Object.defineProperty(exports, property, {
|
|
9
11
|
get() {
|
|
@@ -11,3 +13,5 @@ for (const property of Object.keys(shims)) {
|
|
|
11
13
|
},
|
|
12
14
|
});
|
|
13
15
|
}
|
|
16
|
+
|
|
17
|
+
exports.init();
|
package/src/_shims/index.mjs
CHANGED
|
@@ -3,5 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as shims from './registry.mjs';
|
|
5
5
|
import * as auto from "./auto/runtime";
|
|
6
|
-
|
|
6
|
+
export const init = () => {
|
|
7
|
+
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
|
|
8
|
+
};
|
|
7
9
|
export * from './registry.mjs';
|
|
10
|
+
|
|
11
|
+
init();
|
package/src/core.ts
CHANGED
|
@@ -16,7 +16,12 @@ import {
|
|
|
16
16
|
type RequestInit,
|
|
17
17
|
type Response,
|
|
18
18
|
type HeadersInit,
|
|
19
|
+
init,
|
|
19
20
|
} from './_shims/index';
|
|
21
|
+
|
|
22
|
+
// try running side effects outside of _shims/index to workaround https://github.com/vercel/next.js/issues/76881
|
|
23
|
+
init();
|
|
24
|
+
|
|
20
25
|
export { type Response };
|
|
21
26
|
import { BlobLike, isBlobLike, isMultipartBody } from './uploads';
|
|
22
27
|
export {
|
|
@@ -48,8 +53,8 @@ async function defaultParseResponse<T>(props: APIResponseProps): Promise<T> {
|
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
const contentType = response.headers.get('content-type');
|
|
51
|
-
const
|
|
52
|
-
|
|
56
|
+
const mediaType = contentType?.split(';')[0]?.trim();
|
|
57
|
+
const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json');
|
|
53
58
|
if (isJSON) {
|
|
54
59
|
const json = await response.json();
|
|
55
60
|
|
|
@@ -366,7 +371,7 @@ export abstract class APIClient {
|
|
|
366
371
|
getHeader(headers, 'x-stainless-timeout') === undefined &&
|
|
367
372
|
options.timeout
|
|
368
373
|
) {
|
|
369
|
-
reqHeaders['x-stainless-timeout'] = String(options.timeout);
|
|
374
|
+
reqHeaders['x-stainless-timeout'] = String(Math.trunc(options.timeout / 1000));
|
|
370
375
|
}
|
|
371
376
|
|
|
372
377
|
this.validateHeaders(reqHeaders, headers);
|
|
@@ -395,7 +400,7 @@ export abstract class APIClient {
|
|
|
395
400
|
!headers ? {}
|
|
396
401
|
: Symbol.iterator in headers ?
|
|
397
402
|
Object.fromEntries(Array.from(headers as Iterable<string[]>).map((header) => [...header]))
|
|
398
|
-
: { ...headers }
|
|
403
|
+
: { ...(headers as any as Record<string, string>) }
|
|
399
404
|
);
|
|
400
405
|
}
|
|
401
406
|
|
package/src/index.ts
CHANGED
|
@@ -16,10 +16,9 @@ import {
|
|
|
16
16
|
EndUserListResponse,
|
|
17
17
|
EndUserPassthroughParams,
|
|
18
18
|
EndUserPassthroughResponse,
|
|
19
|
-
EndUserPingResponse,
|
|
20
19
|
EndUsers,
|
|
21
20
|
} from './resources/end-users';
|
|
22
|
-
import { Qbd } from './resources/qbd/qbd';
|
|
21
|
+
import { Qbd, QbdHealthCheckParams, QbdHealthCheckResponse } from './resources/qbd/qbd';
|
|
23
22
|
|
|
24
23
|
export interface ClientOptions {
|
|
25
24
|
/**
|
|
@@ -199,12 +198,15 @@ export declare namespace Conductor {
|
|
|
199
198
|
type EndUserListResponse as EndUserListResponse,
|
|
200
199
|
type EndUserDeleteResponse as EndUserDeleteResponse,
|
|
201
200
|
type EndUserPassthroughResponse as EndUserPassthroughResponse,
|
|
202
|
-
type EndUserPingResponse as EndUserPingResponse,
|
|
203
201
|
type EndUserCreateParams as EndUserCreateParams,
|
|
204
202
|
type EndUserPassthroughParams as EndUserPassthroughParams,
|
|
205
203
|
};
|
|
206
204
|
|
|
207
|
-
export {
|
|
205
|
+
export {
|
|
206
|
+
Qbd as Qbd,
|
|
207
|
+
type QbdHealthCheckResponse as QbdHealthCheckResponse,
|
|
208
|
+
type QbdHealthCheckParams as QbdHealthCheckParams,
|
|
209
|
+
};
|
|
208
210
|
}
|
|
209
211
|
|
|
210
212
|
export { toFile, fileFromPath } from './uploads';
|
package/src/pagination.ts
CHANGED
|
@@ -7,7 +7,7 @@ export class AuthSessions extends APIResource {
|
|
|
7
7
|
/**
|
|
8
8
|
* To launch the authentication flow, create an auth session and pass the returned
|
|
9
9
|
* session's `authFlowUrl` to the client for your end-user to visit in their
|
|
10
|
-
* browser.
|
|
10
|
+
* browser. Demo: https://connect.conductor.is/qbd/demo
|
|
11
11
|
*/
|
|
12
12
|
create(body: AuthSessionCreateParams, options?: Core.RequestOptions): Core.APIPromise<AuthSession> {
|
|
13
13
|
return this._client.post('/auth-sessions', { body, ...options });
|
|
@@ -44,19 +44,6 @@ export class EndUsers extends APIResource {
|
|
|
44
44
|
): Core.APIPromise<EndUserPassthroughResponse> {
|
|
45
45
|
return this._client.post(`/end-users/${id}/passthrough/${integrationSlug}`, { body, ...options });
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Checks whether the specified integration connection can connect and process
|
|
50
|
-
* requests end-to-end. This is useful for showing a "connection status" indicator
|
|
51
|
-
* in your app.
|
|
52
|
-
*/
|
|
53
|
-
ping(
|
|
54
|
-
id: string,
|
|
55
|
-
integrationSlug: 'quickbooks_desktop',
|
|
56
|
-
options?: Core.RequestOptions,
|
|
57
|
-
): Core.APIPromise<EndUserPingResponse> {
|
|
58
|
-
return this._client.get(`/end-users/${id}/ping/${integrationSlug}`, options);
|
|
59
|
-
}
|
|
60
47
|
}
|
|
61
48
|
|
|
62
49
|
export interface EndUser {
|
|
@@ -174,13 +161,6 @@ export interface EndUserDeleteResponse {
|
|
|
174
161
|
*/
|
|
175
162
|
export type EndUserPassthroughResponse = Record<string, unknown>;
|
|
176
163
|
|
|
177
|
-
export interface EndUserPingResponse {
|
|
178
|
-
/**
|
|
179
|
-
* The time, in milliseconds, that it took to ping the connection.
|
|
180
|
-
*/
|
|
181
|
-
duration: number;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
164
|
export interface EndUserCreateParams {
|
|
185
165
|
/**
|
|
186
166
|
* The end-user's company name that will be shown elsewhere in Conductor.
|
|
@@ -209,7 +189,6 @@ export declare namespace EndUsers {
|
|
|
209
189
|
type EndUserListResponse as EndUserListResponse,
|
|
210
190
|
type EndUserDeleteResponse as EndUserDeleteResponse,
|
|
211
191
|
type EndUserPassthroughResponse as EndUserPassthroughResponse,
|
|
212
|
-
type EndUserPingResponse as EndUserPingResponse,
|
|
213
192
|
type EndUserCreateParams as EndUserCreateParams,
|
|
214
193
|
type EndUserPassthroughParams as EndUserPassthroughParams,
|
|
215
194
|
};
|
package/src/resources/index.ts
CHANGED
|
@@ -7,8 +7,7 @@ export {
|
|
|
7
7
|
type EndUserListResponse,
|
|
8
8
|
type EndUserDeleteResponse,
|
|
9
9
|
type EndUserPassthroughResponse,
|
|
10
|
-
type EndUserPingResponse,
|
|
11
10
|
type EndUserCreateParams,
|
|
12
11
|
type EndUserPassthroughParams,
|
|
13
12
|
} from './end-users';
|
|
14
|
-
export { Qbd } from './qbd/qbd';
|
|
13
|
+
export { Qbd, type QbdHealthCheckResponse, type QbdHealthCheckParams } from './qbd/qbd';
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
|
|
6
|
+
export class AccountTaxLines extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a list of account tax lines. NOTE: QuickBooks Desktop does not support
|
|
9
|
+
* pagination for account tax lines; hence, there is no `cursor` parameter. Users
|
|
10
|
+
* typically have few account tax lines.
|
|
11
|
+
*/
|
|
12
|
+
list(
|
|
13
|
+
params: AccountTaxLineListParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Core.APIPromise<AccountTaxLineListResponse> {
|
|
16
|
+
const { conductorEndUserId } = params;
|
|
17
|
+
return this._client.get('/quickbooks-desktop/account-tax-lines', {
|
|
18
|
+
...options,
|
|
19
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface AccountTaxLine {
|
|
25
|
+
/**
|
|
26
|
+
* The identifier of the tax line associated with this account tax line. You can
|
|
27
|
+
* see a list of all available values for this field by calling the endpoint for
|
|
28
|
+
* account tax lines.
|
|
29
|
+
*/
|
|
30
|
+
taxLineId: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The name of the tax line associated with this account tax line, as it appears on
|
|
34
|
+
* the tax form.
|
|
35
|
+
*/
|
|
36
|
+
taxLineName: string | null;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface AccountTaxLineListResponse {
|
|
40
|
+
/**
|
|
41
|
+
* The array of account tax lines.
|
|
42
|
+
*/
|
|
43
|
+
data: Array<AccountTaxLine>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The type of object. This value is always `"list"`.
|
|
47
|
+
*/
|
|
48
|
+
objectType: 'list';
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The endpoint URL where this list can be accessed.
|
|
52
|
+
*/
|
|
53
|
+
url: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface AccountTaxLineListParams {
|
|
57
|
+
/**
|
|
58
|
+
* The ID of the EndUser to receive this request (e.g.,
|
|
59
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
60
|
+
*/
|
|
61
|
+
conductorEndUserId: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export declare namespace AccountTaxLines {
|
|
65
|
+
export {
|
|
66
|
+
type AccountTaxLine as AccountTaxLine,
|
|
67
|
+
type AccountTaxLineListResponse as AccountTaxLineListResponse,
|
|
68
|
+
type AccountTaxLineListParams as AccountTaxLineListParams,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -381,7 +381,9 @@ export namespace Account {
|
|
|
381
381
|
*/
|
|
382
382
|
export interface TaxLineDetails {
|
|
383
383
|
/**
|
|
384
|
-
* The identifier of the tax line associated with this account.
|
|
384
|
+
* The identifier of the tax line associated with this account. You can see a list
|
|
385
|
+
* of all available values for this field by calling the endpoint for account tax
|
|
386
|
+
* lines.
|
|
385
387
|
*/
|
|
386
388
|
taxLineId: number;
|
|
387
389
|
|
|
@@ -521,7 +523,9 @@ export interface AccountCreateParams {
|
|
|
521
523
|
salesTaxCodeId?: string;
|
|
522
524
|
|
|
523
525
|
/**
|
|
524
|
-
* Body param: The identifier of the tax line associated with this account.
|
|
526
|
+
* Body param: The identifier of the tax line associated with this account. You can
|
|
527
|
+
* see a list of all available values for this field by calling the endpoint for
|
|
528
|
+
* account tax lines.
|
|
525
529
|
*/
|
|
526
530
|
taxLineId?: number;
|
|
527
531
|
}
|
|
@@ -653,7 +657,9 @@ export interface AccountUpdateParams {
|
|
|
653
657
|
salesTaxCodeId?: string;
|
|
654
658
|
|
|
655
659
|
/**
|
|
656
|
-
* Body param: The identifier of the tax line associated with this account.
|
|
660
|
+
* Body param: The identifier of the tax line associated with this account. You can
|
|
661
|
+
* see a list of all available values for this field by calling the endpoint for
|
|
662
|
+
* account tax lines.
|
|
657
663
|
*/
|
|
658
664
|
taxLineId?: number;
|
|
659
665
|
}
|
|
@@ -1030,14 +1030,14 @@ export interface BillCheckPaymentListParams extends CursorPageParams {
|
|
|
1030
1030
|
refNumberTo?: string;
|
|
1031
1031
|
|
|
1032
1032
|
/**
|
|
1033
|
-
* Query param: Filter for bill check payments
|
|
1034
|
-
* ISO 8601 format (YYYY-MM-DD).
|
|
1033
|
+
* Query param: Filter for bill check payments whose `date` field is on or after
|
|
1034
|
+
* this date, in ISO 8601 format (YYYY-MM-DD).
|
|
1035
1035
|
*/
|
|
1036
1036
|
transactionDateFrom?: string;
|
|
1037
1037
|
|
|
1038
1038
|
/**
|
|
1039
|
-
* Query param: Filter for bill check payments
|
|
1040
|
-
* ISO 8601 format (YYYY-MM-DD).
|
|
1039
|
+
* Query param: Filter for bill check payments whose `date` field is on or before
|
|
1040
|
+
* this date, in ISO 8601 format (YYYY-MM-DD).
|
|
1041
1041
|
*/
|
|
1042
1042
|
transactionDateTo?: string;
|
|
1043
1043
|
|
|
@@ -796,14 +796,14 @@ export interface BillCreditCardPaymentListParams extends CursorPageParams {
|
|
|
796
796
|
refNumberTo?: string;
|
|
797
797
|
|
|
798
798
|
/**
|
|
799
|
-
* Query param: Filter for bill credit card payments
|
|
800
|
-
* in ISO 8601 format (YYYY-MM-DD).
|
|
799
|
+
* Query param: Filter for bill credit card payments whose `date` field is on or
|
|
800
|
+
* after this date, in ISO 8601 format (YYYY-MM-DD).
|
|
801
801
|
*/
|
|
802
802
|
transactionDateFrom?: string;
|
|
803
803
|
|
|
804
804
|
/**
|
|
805
|
-
* Query param: Filter for bill credit card payments
|
|
806
|
-
* date, in ISO 8601 format (YYYY-MM-DD).
|
|
805
|
+
* Query param: Filter for bill credit card payments whose `date` field is on or
|
|
806
|
+
* before this date, in ISO 8601 format (YYYY-MM-DD).
|
|
807
807
|
*/
|
|
808
808
|
transactionDateTo?: string;
|
|
809
809
|
|
|
@@ -1705,10 +1705,9 @@ export interface BillCreateParams {
|
|
|
1705
1705
|
itemLines?: Array<BillCreateParams.ItemLine>;
|
|
1706
1706
|
|
|
1707
1707
|
/**
|
|
1708
|
-
* Body param: IDs of existing
|
|
1709
|
-
*
|
|
1710
|
-
*
|
|
1711
|
-
* link individual lines in a transaction, instead use the field
|
|
1708
|
+
* Body param: IDs of existing purchase orders that you wish to link to this bill.
|
|
1709
|
+
* Note that this links entire transactions, not individual transaction lines. If
|
|
1710
|
+
* you want to link individual lines in a transaction, instead use the field
|
|
1712
1711
|
* `linkToTransactionLine` on this bill's lines, if available.
|
|
1713
1712
|
*
|
|
1714
1713
|
* Transactions can only be linked when creating this bill and cannot be unlinked
|
|
@@ -2984,14 +2983,14 @@ export interface BillListParams extends CursorPageParams {
|
|
|
2984
2983
|
refNumberTo?: string;
|
|
2985
2984
|
|
|
2986
2985
|
/**
|
|
2987
|
-
* Query param: Filter for bills
|
|
2988
|
-
* (YYYY-MM-DD).
|
|
2986
|
+
* Query param: Filter for bills whose `date` field is on or after this date, in
|
|
2987
|
+
* ISO 8601 format (YYYY-MM-DD).
|
|
2989
2988
|
*/
|
|
2990
2989
|
transactionDateFrom?: string;
|
|
2991
2990
|
|
|
2992
2991
|
/**
|
|
2993
|
-
* Query param: Filter for bills
|
|
2994
|
-
* (YYYY-MM-DD).
|
|
2992
|
+
* Query param: Filter for bills whose `date` field is on or before this date, in
|
|
2993
|
+
* ISO 8601 format (YYYY-MM-DD).
|
|
2995
2994
|
*/
|
|
2996
2995
|
transactionDateTo?: string;
|
|
2997
2996
|
|
|
@@ -2953,14 +2953,14 @@ export interface CheckListParams extends CursorPageParams {
|
|
|
2953
2953
|
refNumberTo?: string;
|
|
2954
2954
|
|
|
2955
2955
|
/**
|
|
2956
|
-
* Query param: Filter for checks
|
|
2957
|
-
* (YYYY-MM-DD).
|
|
2956
|
+
* Query param: Filter for checks whose `date` field is on or after this date, in
|
|
2957
|
+
* ISO 8601 format (YYYY-MM-DD).
|
|
2958
2958
|
*/
|
|
2959
2959
|
transactionDateFrom?: string;
|
|
2960
2960
|
|
|
2961
2961
|
/**
|
|
2962
|
-
* Query param: Filter for checks
|
|
2963
|
-
* format (YYYY-MM-DD).
|
|
2962
|
+
* Query param: Filter for checks whose `date` field is on or before this date, in
|
|
2963
|
+
* ISO 8601 format (YYYY-MM-DD).
|
|
2964
2964
|
*/
|
|
2965
2965
|
transactionDateTo?: string;
|
|
2966
2966
|
|