conductor-node 12.22.0 → 12.23.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.
- package/CHANGELOG.md +11 -0
- package/package.json +1 -1
- package/resources/qbd/deleted-list-objects.d.ts +91 -0
- package/resources/qbd/deleted-list-objects.d.ts.map +1 -0
- package/resources/qbd/deleted-list-objects.js +32 -0
- package/resources/qbd/deleted-list-objects.js.map +1 -0
- package/resources/qbd/deleted-list-objects.mjs +28 -0
- package/resources/qbd/deleted-list-objects.mjs.map +1 -0
- package/resources/qbd/deleted-transactions.d.ts +97 -0
- package/resources/qbd/deleted-transactions.d.ts.map +1 -0
- package/resources/qbd/deleted-transactions.js +33 -0
- package/resources/qbd/deleted-transactions.js.map +1 -0
- package/resources/qbd/deleted-transactions.mjs +29 -0
- package/resources/qbd/deleted-transactions.mjs.map +1 -0
- package/resources/qbd/index.d.ts +2 -0
- package/resources/qbd/index.d.ts.map +1 -1
- package/resources/qbd/index.js +6 -2
- 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/qbd.d.ts +8 -0
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js +8 -0
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +8 -0
- package/resources/qbd/qbd.mjs.map +1 -1
- package/resources/qbd/transactions.d.ts +2 -3
- package/resources/qbd/transactions.d.ts.map +1 -1
- package/resources/qbd/transactions.js.map +1 -1
- package/resources/qbd/transactions.mjs.map +1 -1
- package/src/resources/qbd/deleted-list-objects.ts +197 -0
- package/src/resources/qbd/deleted-transactions.ts +178 -0
- package/src/resources/qbd/index.ts +12 -0
- package/src/resources/qbd/qbd.ts +35 -0
- package/src/resources/qbd/transactions.ts +2 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import * as Core from "../../core.js";
|
|
5
|
+
|
|
6
|
+
export class DeletedTransactions extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Lists deleted transactions of the specified type(s) (e.g., invoice, bill,
|
|
9
|
+
* estimate) in the last 90 days. Results are grouped by transaction type and
|
|
10
|
+
* ordered by actual delete time (ascending). NOTE: For deleted non-transaction
|
|
11
|
+
* list-objects (e.g., customer, vendor, employee), see the deleted-list-objects
|
|
12
|
+
* endpoint.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const deletedTransactions =
|
|
17
|
+
* await conductor.qbd.deletedTransactions.list({
|
|
18
|
+
* transactionTypes: ['invoice'],
|
|
19
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
list(
|
|
24
|
+
params: DeletedTransactionListParams,
|
|
25
|
+
options?: Core.RequestOptions,
|
|
26
|
+
): Core.APIPromise<DeletedTransactionListResponse> {
|
|
27
|
+
const { conductorEndUserId, ...query } = params;
|
|
28
|
+
return this._client.get('/quickbooks-desktop/deleted-transactions', {
|
|
29
|
+
query,
|
|
30
|
+
...options,
|
|
31
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface DeletedTransaction {
|
|
37
|
+
/**
|
|
38
|
+
* The unique identifier assigned by QuickBooks to this deleted transaction. This
|
|
39
|
+
* ID is unique across all transaction types.
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The date and time when this deleted transaction was created, in ISO 8601 format
|
|
45
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
|
|
46
|
+
* in QuickBooks.
|
|
47
|
+
*/
|
|
48
|
+
createdAt: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The date and time when this deleted transaction was deleted, in ISO 8601 format
|
|
52
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
|
|
53
|
+
* in QuickBooks.
|
|
54
|
+
*/
|
|
55
|
+
deletedAt: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The type of object. This value is always `"qbd_deleted_transaction"`.
|
|
59
|
+
*/
|
|
60
|
+
objectType: 'qbd_deleted_transaction';
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The case-sensitive user-defined reference number for this deleted transaction,
|
|
64
|
+
* which can be used to identify the transaction in QuickBooks. This value is not
|
|
65
|
+
* required to be unique and can be arbitrarily changed by the QuickBooks user.
|
|
66
|
+
*/
|
|
67
|
+
refNumber: string | null;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The type of deleted transaction.
|
|
71
|
+
*/
|
|
72
|
+
transactionType:
|
|
73
|
+
| 'ar_refund_credit_card'
|
|
74
|
+
| 'bill'
|
|
75
|
+
| 'bill_payment_check'
|
|
76
|
+
| 'bill_payment_credit_card'
|
|
77
|
+
| 'build_assembly'
|
|
78
|
+
| 'charge'
|
|
79
|
+
| 'check'
|
|
80
|
+
| 'credit_card_charge'
|
|
81
|
+
| 'credit_card_credit'
|
|
82
|
+
| 'credit_memo'
|
|
83
|
+
| 'deposit'
|
|
84
|
+
| 'estimate'
|
|
85
|
+
| 'inventory_adjustment'
|
|
86
|
+
| 'invoice'
|
|
87
|
+
| 'item_receipt'
|
|
88
|
+
| 'journal_entry'
|
|
89
|
+
| 'purchase_order'
|
|
90
|
+
| 'receive_payment'
|
|
91
|
+
| 'sales_order'
|
|
92
|
+
| 'sales_receipt'
|
|
93
|
+
| 'sales_tax_payment_check'
|
|
94
|
+
| 'time_tracking'
|
|
95
|
+
| 'transfer_inventory'
|
|
96
|
+
| 'vehicle_mileage'
|
|
97
|
+
| 'vendor_credit';
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface DeletedTransactionListResponse {
|
|
101
|
+
/**
|
|
102
|
+
* The array of deleted transactions.
|
|
103
|
+
*/
|
|
104
|
+
data: Array<DeletedTransaction>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The type of object. This value is always `"list"`.
|
|
108
|
+
*/
|
|
109
|
+
objectType: 'list';
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The endpoint URL where this list can be accessed.
|
|
113
|
+
*/
|
|
114
|
+
url: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface DeletedTransactionListParams {
|
|
118
|
+
/**
|
|
119
|
+
* Query param: Filter for deleted transactions by their transaction type(s).
|
|
120
|
+
*/
|
|
121
|
+
transactionTypes: Array<
|
|
122
|
+
| 'ar_refund_credit_card'
|
|
123
|
+
| 'bill'
|
|
124
|
+
| 'bill_payment_check'
|
|
125
|
+
| 'bill_payment_credit_card'
|
|
126
|
+
| 'build_assembly'
|
|
127
|
+
| 'charge'
|
|
128
|
+
| 'check'
|
|
129
|
+
| 'credit_card_charge'
|
|
130
|
+
| 'credit_card_credit'
|
|
131
|
+
| 'credit_memo'
|
|
132
|
+
| 'deposit'
|
|
133
|
+
| 'estimate'
|
|
134
|
+
| 'inventory_adjustment'
|
|
135
|
+
| 'invoice'
|
|
136
|
+
| 'item_receipt'
|
|
137
|
+
| 'journal_entry'
|
|
138
|
+
| 'purchase_order'
|
|
139
|
+
| 'receive_payment'
|
|
140
|
+
| 'sales_order'
|
|
141
|
+
| 'sales_receipt'
|
|
142
|
+
| 'sales_tax_payment_check'
|
|
143
|
+
| 'time_tracking'
|
|
144
|
+
| 'transfer_inventory'
|
|
145
|
+
| 'vehicle_mileage'
|
|
146
|
+
| 'vendor_credit'
|
|
147
|
+
>;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Header param: The ID of the EndUser to receive this request (e.g.,
|
|
151
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
152
|
+
*/
|
|
153
|
+
conductorEndUserId: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Query param: Filter for deleted transactions deleted on or after this date and
|
|
157
|
+
* time, within the last 90 days (QuickBooks limit), in ISO 8601 format
|
|
158
|
+
* (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the time is
|
|
159
|
+
* assumed to be 00:00:00 of that day.
|
|
160
|
+
*/
|
|
161
|
+
deletedAfter?: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Query param: Filter for deleted transactions deleted on or before this date and
|
|
165
|
+
* time, within the last 90 days (QuickBooks limit), in ISO 8601 format
|
|
166
|
+
* (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the time is
|
|
167
|
+
* assumed to be 23:59:59 of that day.
|
|
168
|
+
*/
|
|
169
|
+
deletedBefore?: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export declare namespace DeletedTransactions {
|
|
173
|
+
export {
|
|
174
|
+
type DeletedTransaction as DeletedTransaction,
|
|
175
|
+
type DeletedTransactionListResponse as DeletedTransactionListResponse,
|
|
176
|
+
type DeletedTransactionListParams as DeletedTransactionListParams,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
@@ -129,6 +129,18 @@ export {
|
|
|
129
129
|
type DateDrivenTermRetrieveParams,
|
|
130
130
|
type DateDrivenTermListParams,
|
|
131
131
|
} from "./date-driven-terms.js";
|
|
132
|
+
export {
|
|
133
|
+
DeletedListObjects,
|
|
134
|
+
type DeletedListObject,
|
|
135
|
+
type DeletedListObjectListResponse,
|
|
136
|
+
type DeletedListObjectListParams,
|
|
137
|
+
} from "./deleted-list-objects.js";
|
|
138
|
+
export {
|
|
139
|
+
DeletedTransactions,
|
|
140
|
+
type DeletedTransaction,
|
|
141
|
+
type DeletedTransactionListResponse,
|
|
142
|
+
type DeletedTransactionListParams,
|
|
143
|
+
} from "./deleted-transactions.js";
|
|
132
144
|
export {
|
|
133
145
|
DiscountItemsCursorPage,
|
|
134
146
|
DiscountItems,
|
package/src/resources/qbd/qbd.ts
CHANGED
|
@@ -145,6 +145,20 @@ import {
|
|
|
145
145
|
DateDrivenTermRetrieveParams,
|
|
146
146
|
DateDrivenTerms,
|
|
147
147
|
} from "./date-driven-terms.js";
|
|
148
|
+
import * as DeletedListObjectsAPI from "./deleted-list-objects.js";
|
|
149
|
+
import {
|
|
150
|
+
DeletedListObject,
|
|
151
|
+
DeletedListObjectListParams,
|
|
152
|
+
DeletedListObjectListResponse,
|
|
153
|
+
DeletedListObjects,
|
|
154
|
+
} from "./deleted-list-objects.js";
|
|
155
|
+
import * as DeletedTransactionsAPI from "./deleted-transactions.js";
|
|
156
|
+
import {
|
|
157
|
+
DeletedTransaction,
|
|
158
|
+
DeletedTransactionListParams,
|
|
159
|
+
DeletedTransactionListResponse,
|
|
160
|
+
DeletedTransactions,
|
|
161
|
+
} from "./deleted-transactions.js";
|
|
148
162
|
import * as DiscountItemsAPI from "./discount-items.js";
|
|
149
163
|
import {
|
|
150
164
|
DiscountItem,
|
|
@@ -517,6 +531,11 @@ export class Qbd extends APIResource {
|
|
|
517
531
|
creditMemos: CreditMemosAPI.CreditMemos = new CreditMemosAPI.CreditMemos(this._client);
|
|
518
532
|
customers: CustomersAPI.Customers = new CustomersAPI.Customers(this._client);
|
|
519
533
|
dateDrivenTerms: DateDrivenTermsAPI.DateDrivenTerms = new DateDrivenTermsAPI.DateDrivenTerms(this._client);
|
|
534
|
+
deletedListObjects: DeletedListObjectsAPI.DeletedListObjects = new DeletedListObjectsAPI.DeletedListObjects(
|
|
535
|
+
this._client,
|
|
536
|
+
);
|
|
537
|
+
deletedTransactions: DeletedTransactionsAPI.DeletedTransactions =
|
|
538
|
+
new DeletedTransactionsAPI.DeletedTransactions(this._client);
|
|
520
539
|
discountItems: DiscountItemsAPI.DiscountItems = new DiscountItemsAPI.DiscountItems(this._client);
|
|
521
540
|
employees: EmployeesAPI.Employees = new EmployeesAPI.Employees(this._client);
|
|
522
541
|
estimates: EstimatesAPI.Estimates = new EstimatesAPI.Estimates(this._client);
|
|
@@ -633,6 +652,8 @@ Qbd.CreditMemosCursorPage = CreditMemosCursorPage;
|
|
|
633
652
|
Qbd.Customers = Customers;
|
|
634
653
|
Qbd.CustomersCursorPage = CustomersCursorPage;
|
|
635
654
|
Qbd.DateDrivenTerms = DateDrivenTerms;
|
|
655
|
+
Qbd.DeletedListObjects = DeletedListObjects;
|
|
656
|
+
Qbd.DeletedTransactions = DeletedTransactions;
|
|
636
657
|
Qbd.DiscountItems = DiscountItems;
|
|
637
658
|
Qbd.DiscountItemsCursorPage = DiscountItemsCursorPage;
|
|
638
659
|
Qbd.Employees = Employees;
|
|
@@ -845,6 +866,20 @@ export declare namespace Qbd {
|
|
|
845
866
|
type DateDrivenTermListParams as DateDrivenTermListParams,
|
|
846
867
|
};
|
|
847
868
|
|
|
869
|
+
export {
|
|
870
|
+
DeletedListObjects as DeletedListObjects,
|
|
871
|
+
type DeletedListObject as DeletedListObject,
|
|
872
|
+
type DeletedListObjectListResponse as DeletedListObjectListResponse,
|
|
873
|
+
type DeletedListObjectListParams as DeletedListObjectListParams,
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
export {
|
|
877
|
+
DeletedTransactions as DeletedTransactions,
|
|
878
|
+
type DeletedTransaction as DeletedTransaction,
|
|
879
|
+
type DeletedTransactionListResponse as DeletedTransactionListResponse,
|
|
880
|
+
type DeletedTransactionListParams as DeletedTransactionListParams,
|
|
881
|
+
};
|
|
882
|
+
|
|
848
883
|
export {
|
|
849
884
|
DiscountItems as DiscountItems,
|
|
850
885
|
type DiscountItem as DiscountItem,
|
|
@@ -398,13 +398,12 @@ export interface TransactionListParams extends CursorPageParams {
|
|
|
398
398
|
transactionDateTo?: string;
|
|
399
399
|
|
|
400
400
|
/**
|
|
401
|
-
* Query param: Filter for transactions by their type.
|
|
402
|
-
* transaction types.
|
|
401
|
+
* Query param: Filter for transactions by their transaction type(s).
|
|
403
402
|
*
|
|
404
403
|
* **NOTE**: Filtering for time tracking activities is not supported by QuickBooks
|
|
405
404
|
* for this endpoint.
|
|
406
405
|
*/
|
|
407
|
-
|
|
406
|
+
transactionTypes?: Array<
|
|
408
407
|
| 'all'
|
|
409
408
|
| 'ar_refund_credit_card'
|
|
410
409
|
| 'bill'
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '12.
|
|
1
|
+
export const VERSION = '12.23.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "12.
|
|
1
|
+
export declare const VERSION = "12.23.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '12.
|
|
1
|
+
export const VERSION = '12.23.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|