conductor-node 12.0.0-beta.1 → 12.0.0-beta.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/CHANGELOG.md +108 -0
- package/README.md +32 -27
- 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 +1 -1
- package/resources/auth-sessions.d.ts +11 -15
- package/resources/auth-sessions.d.ts.map +1 -1
- package/resources/auth-sessions.js +2 -8
- package/resources/auth-sessions.js.map +1 -1
- package/resources/auth-sessions.mjs +2 -8
- package/resources/auth-sessions.mjs.map +1 -1
- package/resources/end-users.d.ts +20 -32
- package/resources/end-users.d.ts.map +1 -1
- package/resources/end-users.js +4 -12
- package/resources/end-users.js.map +1 -1
- package/resources/end-users.mjs +4 -12
- 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/bill-check-payments.d.ts +4 -4
- package/resources/qbd/bill-credit-card-payments.d.ts +4 -4
- package/resources/qbd/bills.d.ts +4 -4
- package/resources/qbd/checks.d.ts +4 -4
- 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/employees.d.ts +76 -34
- 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 +3 -1
- package/resources/qbd/index.d.ts.map +1 -1
- package/resources/qbd/index.js +7 -1
- package/resources/qbd/index.js.map +1 -1
- package/resources/qbd/index.mjs +2 -0
- package/resources/qbd/index.mjs.map +1 -1
- package/resources/qbd/inventory-adjustments.d.ts +4 -4
- package/resources/qbd/inventory-assembly-items.d.ts +1 -1
- package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
- package/resources/qbd/inventory-items.d.ts +1 -1
- package/resources/qbd/inventory-items.d.ts.map +1 -1
- package/resources/qbd/invoices.d.ts +4 -4
- package/resources/qbd/journal-entries.d.ts +4 -4
- package/resources/qbd/purchase-orders.d.ts +4 -4
- package/resources/qbd/qbd.d.ts +36 -0
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js +25 -0
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +25 -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/time-tracking-activities.d.ts +485 -0
- package/resources/qbd/time-tracking-activities.d.ts.map +1 -0
- package/resources/qbd/time-tracking-activities.js +66 -0
- package/resources/qbd/time-tracking-activities.js.map +1 -0
- package/resources/qbd/time-tracking-activities.mjs +61 -0
- package/resources/qbd/time-tracking-activities.mjs.map +1 -0
- package/resources/qbd/transactions.d.ts +312 -0
- package/resources/qbd/transactions.d.ts.map +1 -0
- package/resources/qbd/transactions.js +41 -0
- package/resources/qbd/transactions.js.map +1 -0
- package/resources/qbd/transactions.mjs +36 -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 +4 -4
- package/src/index.ts +6 -4
- package/src/resources/auth-sessions.ts +11 -18
- package/src/resources/end-users.ts +19 -40
- package/src/resources/index.ts +1 -2
- 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 +4 -4
- package/src/resources/qbd/checks.ts +4 -4
- 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/employees.ts +76 -34
- package/src/resources/qbd/estimates.ts +4 -4
- package/src/resources/qbd/index.ts +19 -1
- package/src/resources/qbd/inventory-adjustments.ts +4 -4
- package/src/resources/qbd/inventory-assembly-items.ts +1 -1
- package/src/resources/qbd/inventory-items.ts +1 -1
- package/src/resources/qbd/invoices.ts +4 -4
- package/src/resources/qbd/journal-entries.ts +4 -4
- package/src/resources/qbd/purchase-orders.ts +4 -4
- package/src/resources/qbd/qbd.ts +92 -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/time-tracking-activities.ts +615 -0
- package/src/resources/qbd/transactions.ts +441 -0
- package/src/resources/qbd/transfers.ts +4 -4
- package/src/resources/qbd/vendor-credits.ts +4 -4
- package/src/resources/qbd/vendors.ts +4 -4
- 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
|
@@ -3348,14 +3348,14 @@ export interface InvoiceListParams extends CursorPageParams {
|
|
|
3348
3348
|
refNumberTo?: string;
|
|
3349
3349
|
|
|
3350
3350
|
/**
|
|
3351
|
-
* Query param: Filter for invoices
|
|
3352
|
-
* format (YYYY-MM-DD).
|
|
3351
|
+
* Query param: Filter for invoices whose `date` field is on or after this date, in
|
|
3352
|
+
* ISO 8601 format (YYYY-MM-DD).
|
|
3353
3353
|
*/
|
|
3354
3354
|
transactionDateFrom?: string;
|
|
3355
3355
|
|
|
3356
3356
|
/**
|
|
3357
|
-
* Query param: Filter for invoices
|
|
3358
|
-
* format (YYYY-MM-DD).
|
|
3357
|
+
* Query param: Filter for invoices whose `date` field is on or before this date,
|
|
3358
|
+
* in ISO 8601 format (YYYY-MM-DD).
|
|
3359
3359
|
*/
|
|
3360
3360
|
transactionDateTo?: string;
|
|
3361
3361
|
|
|
@@ -1001,14 +1001,14 @@ export interface JournalEntryListParams extends CursorPageParams {
|
|
|
1001
1001
|
refNumberTo?: string;
|
|
1002
1002
|
|
|
1003
1003
|
/**
|
|
1004
|
-
* Query param: Filter for journal entries
|
|
1005
|
-
* 8601 format (YYYY-MM-DD).
|
|
1004
|
+
* Query param: Filter for journal entries whose `date` field is on or after this
|
|
1005
|
+
* date, in ISO 8601 format (YYYY-MM-DD).
|
|
1006
1006
|
*/
|
|
1007
1007
|
transactionDateFrom?: string;
|
|
1008
1008
|
|
|
1009
1009
|
/**
|
|
1010
|
-
* Query param: Filter for journal entries
|
|
1011
|
-
* 8601 format (YYYY-MM-DD).
|
|
1010
|
+
* Query param: Filter for journal entries whose `date` field is on or before this
|
|
1011
|
+
* date, in ISO 8601 format (YYYY-MM-DD).
|
|
1012
1012
|
*/
|
|
1013
1013
|
transactionDateTo?: string;
|
|
1014
1014
|
|
|
@@ -2990,14 +2990,14 @@ export interface PurchaseOrderListParams extends CursorPageParams {
|
|
|
2990
2990
|
refNumberTo?: string;
|
|
2991
2991
|
|
|
2992
2992
|
/**
|
|
2993
|
-
* Query param: Filter for purchase orders
|
|
2994
|
-
* 8601 format (YYYY-MM-DD).
|
|
2993
|
+
* Query param: Filter for purchase orders whose `date` field is on or after this
|
|
2994
|
+
* date, in ISO 8601 format (YYYY-MM-DD).
|
|
2995
2995
|
*/
|
|
2996
2996
|
transactionDateFrom?: string;
|
|
2997
2997
|
|
|
2998
2998
|
/**
|
|
2999
|
-
* Query param: Filter for purchase orders
|
|
3000
|
-
* 8601 format (YYYY-MM-DD).
|
|
2999
|
+
* Query param: Filter for purchase orders whose `date` field is on or before this
|
|
3000
|
+
* date, in ISO 8601 format (YYYY-MM-DD).
|
|
3001
3001
|
*/
|
|
3002
3002
|
transactionDateTo?: string;
|
|
3003
3003
|
|
package/src/resources/qbd/qbd.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
4
5
|
import * as AccountsAPI from './accounts';
|
|
5
6
|
import {
|
|
6
7
|
Account,
|
|
@@ -347,6 +348,26 @@ import {
|
|
|
347
348
|
SubtotalItems,
|
|
348
349
|
SubtotalItemsCursorPage,
|
|
349
350
|
} from './subtotal-items';
|
|
351
|
+
import * as TimeTrackingActivitiesAPI from './time-tracking-activities';
|
|
352
|
+
import {
|
|
353
|
+
TimeTrackingActivities,
|
|
354
|
+
TimeTrackingActivitiesCursorPage,
|
|
355
|
+
TimeTrackingActivity,
|
|
356
|
+
TimeTrackingActivityCreateParams,
|
|
357
|
+
TimeTrackingActivityDeleteParams,
|
|
358
|
+
TimeTrackingActivityDeleteResponse,
|
|
359
|
+
TimeTrackingActivityListParams,
|
|
360
|
+
TimeTrackingActivityRetrieveParams,
|
|
361
|
+
TimeTrackingActivityUpdateParams,
|
|
362
|
+
} from './time-tracking-activities';
|
|
363
|
+
import * as TransactionsAPI from './transactions';
|
|
364
|
+
import {
|
|
365
|
+
Transaction,
|
|
366
|
+
TransactionListParams,
|
|
367
|
+
TransactionRetrieveParams,
|
|
368
|
+
Transactions,
|
|
369
|
+
TransactionsCursorPage,
|
|
370
|
+
} from './transactions';
|
|
350
371
|
import * as TransfersAPI from './transfers';
|
|
351
372
|
import {
|
|
352
373
|
Transfer,
|
|
@@ -427,9 +448,51 @@ export class Qbd extends APIResource {
|
|
|
427
448
|
serviceItems: ServiceItemsAPI.ServiceItems = new ServiceItemsAPI.ServiceItems(this._client);
|
|
428
449
|
standardTerms: StandardTermsAPI.StandardTerms = new StandardTermsAPI.StandardTerms(this._client);
|
|
429
450
|
subtotalItems: SubtotalItemsAPI.SubtotalItems = new SubtotalItemsAPI.SubtotalItems(this._client);
|
|
451
|
+
timeTrackingActivities: TimeTrackingActivitiesAPI.TimeTrackingActivities =
|
|
452
|
+
new TimeTrackingActivitiesAPI.TimeTrackingActivities(this._client);
|
|
453
|
+
transactions: TransactionsAPI.Transactions = new TransactionsAPI.Transactions(this._client);
|
|
430
454
|
transfers: TransfersAPI.Transfers = new TransfersAPI.Transfers(this._client);
|
|
431
455
|
vendorCredits: VendorCreditsAPI.VendorCredits = new VendorCreditsAPI.VendorCredits(this._client);
|
|
432
456
|
vendors: VendorsAPI.Vendors = new VendorsAPI.Vendors(this._client);
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Checks whether the specified QuickBooks Desktop connection is active and can
|
|
460
|
+
* process requests end-to-end. This is useful for showing a "connection status"
|
|
461
|
+
* indicator in your app. If an error occurs, the typical Conductor error response
|
|
462
|
+
* will be returned. As with any request to QuickBooks Desktop, the health check
|
|
463
|
+
* may fail if the application is not running, the wrong company file is open, or
|
|
464
|
+
* if a modal dialog is open. Timeout is 60 seconds.
|
|
465
|
+
*/
|
|
466
|
+
healthCheck(
|
|
467
|
+
params: QbdHealthCheckParams,
|
|
468
|
+
options?: Core.RequestOptions,
|
|
469
|
+
): Core.APIPromise<QbdHealthCheckResponse> {
|
|
470
|
+
const { conductorEndUserId } = params;
|
|
471
|
+
return this._client.get('/quickbooks-desktop/health-check', {
|
|
472
|
+
...options,
|
|
473
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export interface QbdHealthCheckResponse {
|
|
479
|
+
/**
|
|
480
|
+
* The time, in milliseconds, that it took to perform the health check.
|
|
481
|
+
*/
|
|
482
|
+
duration: number;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* The status of the health check.
|
|
486
|
+
*/
|
|
487
|
+
status: 'ok';
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export interface QbdHealthCheckParams {
|
|
491
|
+
/**
|
|
492
|
+
* The ID of the EndUser to receive this request (e.g.,
|
|
493
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
494
|
+
*/
|
|
495
|
+
conductorEndUserId: string;
|
|
433
496
|
}
|
|
434
497
|
|
|
435
498
|
Qbd.Accounts = Accounts;
|
|
@@ -488,6 +551,10 @@ Qbd.ServiceItemsCursorPage = ServiceItemsCursorPage;
|
|
|
488
551
|
Qbd.StandardTerms = StandardTerms;
|
|
489
552
|
Qbd.SubtotalItems = SubtotalItems;
|
|
490
553
|
Qbd.SubtotalItemsCursorPage = SubtotalItemsCursorPage;
|
|
554
|
+
Qbd.TimeTrackingActivities = TimeTrackingActivities;
|
|
555
|
+
Qbd.TimeTrackingActivitiesCursorPage = TimeTrackingActivitiesCursorPage;
|
|
556
|
+
Qbd.Transactions = Transactions;
|
|
557
|
+
Qbd.TransactionsCursorPage = TransactionsCursorPage;
|
|
491
558
|
Qbd.Transfers = Transfers;
|
|
492
559
|
Qbd.TransfersCursorPage = TransfersCursorPage;
|
|
493
560
|
Qbd.VendorCredits = VendorCredits;
|
|
@@ -496,6 +563,11 @@ Qbd.Vendors = Vendors;
|
|
|
496
563
|
Qbd.VendorsCursorPage = VendorsCursorPage;
|
|
497
564
|
|
|
498
565
|
export declare namespace Qbd {
|
|
566
|
+
export {
|
|
567
|
+
type QbdHealthCheckResponse as QbdHealthCheckResponse,
|
|
568
|
+
type QbdHealthCheckParams as QbdHealthCheckParams,
|
|
569
|
+
};
|
|
570
|
+
|
|
499
571
|
export {
|
|
500
572
|
Accounts as Accounts,
|
|
501
573
|
type Account as Account,
|
|
@@ -842,6 +914,26 @@ export declare namespace Qbd {
|
|
|
842
914
|
type SubtotalItemListParams as SubtotalItemListParams,
|
|
843
915
|
};
|
|
844
916
|
|
|
917
|
+
export {
|
|
918
|
+
TimeTrackingActivities as TimeTrackingActivities,
|
|
919
|
+
type TimeTrackingActivity as TimeTrackingActivity,
|
|
920
|
+
type TimeTrackingActivityDeleteResponse as TimeTrackingActivityDeleteResponse,
|
|
921
|
+
TimeTrackingActivitiesCursorPage as TimeTrackingActivitiesCursorPage,
|
|
922
|
+
type TimeTrackingActivityCreateParams as TimeTrackingActivityCreateParams,
|
|
923
|
+
type TimeTrackingActivityRetrieveParams as TimeTrackingActivityRetrieveParams,
|
|
924
|
+
type TimeTrackingActivityUpdateParams as TimeTrackingActivityUpdateParams,
|
|
925
|
+
type TimeTrackingActivityListParams as TimeTrackingActivityListParams,
|
|
926
|
+
type TimeTrackingActivityDeleteParams as TimeTrackingActivityDeleteParams,
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
export {
|
|
930
|
+
Transactions as Transactions,
|
|
931
|
+
type Transaction as Transaction,
|
|
932
|
+
TransactionsCursorPage as TransactionsCursorPage,
|
|
933
|
+
type TransactionRetrieveParams as TransactionRetrieveParams,
|
|
934
|
+
type TransactionListParams as TransactionListParams,
|
|
935
|
+
};
|
|
936
|
+
|
|
845
937
|
export {
|
|
846
938
|
Transfers as Transfers,
|
|
847
939
|
type Transfer as Transfer,
|
|
@@ -1559,14 +1559,14 @@ export interface ReceivePaymentListParams extends CursorPageParams {
|
|
|
1559
1559
|
refNumberTo?: string;
|
|
1560
1560
|
|
|
1561
1561
|
/**
|
|
1562
|
-
* Query param: Filter for receive-payments
|
|
1563
|
-
* 8601 format (YYYY-MM-DD).
|
|
1562
|
+
* Query param: Filter for receive-payments whose `date` field is on or after this
|
|
1563
|
+
* date, in ISO 8601 format (YYYY-MM-DD).
|
|
1564
1564
|
*/
|
|
1565
1565
|
transactionDateFrom?: string;
|
|
1566
1566
|
|
|
1567
1567
|
/**
|
|
1568
|
-
* Query param: Filter for receive-payments
|
|
1569
|
-
* 8601 format (YYYY-MM-DD).
|
|
1568
|
+
* Query param: Filter for receive-payments whose `date` field is on or before this
|
|
1569
|
+
* date, in ISO 8601 format (YYYY-MM-DD).
|
|
1570
1570
|
*/
|
|
1571
1571
|
transactionDateTo?: string;
|
|
1572
1572
|
|
|
@@ -3091,14 +3091,14 @@ export interface SalesOrderListParams extends CursorPageParams {
|
|
|
3091
3091
|
refNumberTo?: string;
|
|
3092
3092
|
|
|
3093
3093
|
/**
|
|
3094
|
-
* Query param: Filter for sales orders
|
|
3095
|
-
* format (YYYY-MM-DD).
|
|
3094
|
+
* Query param: Filter for sales orders whose `date` field is on or after this
|
|
3095
|
+
* date, in ISO 8601 format (YYYY-MM-DD).
|
|
3096
3096
|
*/
|
|
3097
3097
|
transactionDateFrom?: string;
|
|
3098
3098
|
|
|
3099
3099
|
/**
|
|
3100
|
-
* Query param: Filter for sales orders
|
|
3101
|
-
* format (YYYY-MM-DD).
|
|
3100
|
+
* Query param: Filter for sales orders whose `date` field is on or before this
|
|
3101
|
+
* date, in ISO 8601 format (YYYY-MM-DD).
|
|
3102
3102
|
*/
|
|
3103
3103
|
transactionDateTo?: string;
|
|
3104
3104
|
|
|
@@ -3927,14 +3927,14 @@ export interface SalesReceiptListParams extends CursorPageParams {
|
|
|
3927
3927
|
refNumberTo?: string;
|
|
3928
3928
|
|
|
3929
3929
|
/**
|
|
3930
|
-
* Query param: Filter for sales receipts
|
|
3931
|
-
* 8601 format (YYYY-MM-DD).
|
|
3930
|
+
* Query param: Filter for sales receipts whose `date` field is on or after this
|
|
3931
|
+
* date, in ISO 8601 format (YYYY-MM-DD).
|
|
3932
3932
|
*/
|
|
3933
3933
|
transactionDateFrom?: string;
|
|
3934
3934
|
|
|
3935
3935
|
/**
|
|
3936
|
-
* Query param: Filter for sales receipts
|
|
3937
|
-
* 8601 format (YYYY-MM-DD).
|
|
3936
|
+
* Query param: Filter for sales receipts whose `date` field is on or before this
|
|
3937
|
+
* date, in ISO 8601 format (YYYY-MM-DD).
|
|
3938
3938
|
*/
|
|
3939
3939
|
transactionDateTo?: string;
|
|
3940
3940
|
|