xero-node 19.0.0 → 19.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.
- package/dist/gen/api/accountingApi.d.ts +12 -7
- package/dist/gen/api/accountingApi.js +33 -13
- package/dist/gen/api/accountingApi.js.map +1 -1
- package/dist/gen/api/appStoreApi.d.ts +1 -1
- package/dist/gen/api/appStoreApi.js +2 -2
- package/dist/gen/api/assetApi.d.ts +1 -1
- package/dist/gen/api/assetApi.js +2 -2
- package/dist/gen/api/bankfeedsApi.d.ts +1 -1
- package/dist/gen/api/bankfeedsApi.js +2 -2
- package/dist/gen/api/filesApi.d.ts +1 -1
- package/dist/gen/api/filesApi.js +2 -2
- package/dist/gen/api/financeApi.d.ts +1 -1
- package/dist/gen/api/financeApi.js +2 -2
- package/dist/gen/api/payrollAUApi.d.ts +1 -1
- package/dist/gen/api/payrollAUApi.js +2 -2
- package/dist/gen/api/payrollAUV2Api.d.ts +1 -1
- package/dist/gen/api/payrollAUV2Api.js +2 -2
- package/dist/gen/api/payrollNZApi.d.ts +1 -1
- package/dist/gen/api/payrollNZApi.js +2 -2
- package/dist/gen/api/payrollUKApi.d.ts +1 -1
- package/dist/gen/api/payrollUKApi.js +2 -2
- package/dist/gen/api/projectApi.d.ts +1 -1
- package/dist/gen/api/projectApi.js +2 -2
- package/dist/gen/model/accounting/item.d.ts +9 -1
- package/dist/gen/model/accounting/item.js +10 -0
- package/dist/gen/model/accounting/item.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Accounting API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 16.
|
|
5
|
+
* The version of the OpenAPI document: 16.2.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -498,8 +498,9 @@ export declare class AccountingApi {
|
|
|
498
498
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
499
499
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
500
500
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
501
|
+
* @param allowBackorders Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
|
|
501
502
|
*/
|
|
502
|
-
createInvoices(xeroTenantId: string, invoices: Invoices, summarizeErrors?: boolean, unitdp?: number, idempotencyKey?: string, options?: {
|
|
503
|
+
createInvoices(xeroTenantId: string, invoices: Invoices, summarizeErrors?: boolean, unitdp?: number, idempotencyKey?: string, allowBackorders?: boolean, options?: {
|
|
503
504
|
headers: {
|
|
504
505
|
[name: string]: string;
|
|
505
506
|
};
|
|
@@ -1361,8 +1362,9 @@ export declare class AccountingApi {
|
|
|
1361
1362
|
* @param page Up to 100 bank transactions will be returned in a single API call with line items details
|
|
1362
1363
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
1363
1364
|
* @param pageSize Number of records to retrieve per page
|
|
1365
|
+
* @param references Filter by a comma-separated list of References
|
|
1364
1366
|
*/
|
|
1365
|
-
getBankTransactions(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, options?: {
|
|
1367
|
+
getBankTransactions(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, references?: Array<string>, options?: {
|
|
1366
1368
|
headers: {
|
|
1367
1369
|
[name: string]: string;
|
|
1368
1370
|
};
|
|
@@ -2452,12 +2454,13 @@ export declare class AccountingApi {
|
|
|
2452
2454
|
* @param ifModifiedSince Only records created or modified since this timestamp will be returned
|
|
2453
2455
|
* @param where Filter by an any element
|
|
2454
2456
|
* @param order Order by an any element
|
|
2455
|
-
* @param page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each
|
|
2457
|
+
* @param page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment
|
|
2456
2458
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2457
2459
|
* @param pageSize Number of records to retrieve per page
|
|
2458
2460
|
* @param invoiceNumbers Filter by a comma-separated list of InvoiceNumbers
|
|
2461
|
+
* @param references Filter by a comma-separated list of References
|
|
2459
2462
|
*/
|
|
2460
|
-
getPrepayments(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, invoiceNumbers?: Array<string>, options?: {
|
|
2463
|
+
getPrepayments(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, invoiceNumbers?: Array<string>, references?: Array<string>, options?: {
|
|
2461
2464
|
headers: {
|
|
2462
2465
|
[name: string]: string;
|
|
2463
2466
|
};
|
|
@@ -3350,8 +3353,9 @@ export declare class AccountingApi {
|
|
|
3350
3353
|
* @param invoices
|
|
3351
3354
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
3352
3355
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3356
|
+
* @param allowBackorders Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
|
|
3353
3357
|
*/
|
|
3354
|
-
updateInvoice(xeroTenantId: string, invoiceID: string, invoices: Invoices, unitdp?: number, idempotencyKey?: string, options?: {
|
|
3358
|
+
updateInvoice(xeroTenantId: string, invoiceID: string, invoices: Invoices, unitdp?: number, idempotencyKey?: string, allowBackorders?: boolean, options?: {
|
|
3355
3359
|
headers: {
|
|
3356
3360
|
[name: string]: string;
|
|
3357
3361
|
};
|
|
@@ -3500,8 +3504,9 @@ export declare class AccountingApi {
|
|
|
3500
3504
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3501
3505
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
3502
3506
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3507
|
+
* @param allowBackorders Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
|
|
3503
3508
|
*/
|
|
3504
|
-
updateOrCreateInvoices(xeroTenantId: string, invoices: Invoices, summarizeErrors?: boolean, unitdp?: number, idempotencyKey?: string, options?: {
|
|
3509
|
+
updateOrCreateInvoices(xeroTenantId: string, invoices: Invoices, summarizeErrors?: boolean, unitdp?: number, idempotencyKey?: string, allowBackorders?: boolean, options?: {
|
|
3505
3510
|
headers: {
|
|
3506
3511
|
[name: string]: string;
|
|
3507
3512
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Accounting API
|
|
4
4
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 16.
|
|
6
|
+
* The version of the OpenAPI document: 16.2.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -39,7 +39,7 @@ var AccountingApiApiKeys;
|
|
|
39
39
|
class AccountingApi {
|
|
40
40
|
constructor(basePathOrUsername, password, basePath) {
|
|
41
41
|
this._basePath = defaultBasePath;
|
|
42
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-19.
|
|
42
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-19.1.0' };
|
|
43
43
|
this._useQuerystring = false;
|
|
44
44
|
this.binaryHeaders = {};
|
|
45
45
|
this.authentications = {
|
|
@@ -2206,9 +2206,10 @@ class AccountingApi {
|
|
|
2206
2206
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
2207
2207
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2208
2208
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2209
|
+
* @param allowBackorders Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
|
|
2209
2210
|
*/
|
|
2210
|
-
createInvoices(xeroTenantId_1, invoices_1, summarizeErrors_1, unitdp_1, idempotencyKey_1) {
|
|
2211
|
-
return __awaiter(this, arguments, void 0, function* (xeroTenantId, invoices, summarizeErrors, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
2211
|
+
createInvoices(xeroTenantId_1, invoices_1, summarizeErrors_1, unitdp_1, idempotencyKey_1, allowBackorders_1) {
|
|
2212
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, invoices, summarizeErrors, unitdp, idempotencyKey, allowBackorders, options = { headers: {} }) {
|
|
2212
2213
|
const localVarPath = this.basePath + '/Invoices';
|
|
2213
2214
|
let localVarQueryParameters = {};
|
|
2214
2215
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -2232,6 +2233,9 @@ class AccountingApi {
|
|
|
2232
2233
|
if (unitdp !== undefined) {
|
|
2233
2234
|
localVarQueryParameters['unitdp'] = models_1.ObjectSerializer.serialize(unitdp, "number");
|
|
2234
2235
|
}
|
|
2236
|
+
if (allowBackorders !== undefined) {
|
|
2237
|
+
localVarQueryParameters['allowBackorders'] = models_1.ObjectSerializer.serialize(allowBackorders, "boolean");
|
|
2238
|
+
}
|
|
2235
2239
|
localVarHeaderParams['xero-tenant-id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
|
|
2236
2240
|
localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
|
|
2237
2241
|
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
|
|
@@ -6601,9 +6605,10 @@ class AccountingApi {
|
|
|
6601
6605
|
* @param page Up to 100 bank transactions will be returned in a single API call with line items details
|
|
6602
6606
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
6603
6607
|
* @param pageSize Number of records to retrieve per page
|
|
6608
|
+
* @param references Filter by a comma-separated list of References
|
|
6604
6609
|
*/
|
|
6605
|
-
getBankTransactions(xeroTenantId_1, ifModifiedSince_1, where_1, order_1, page_1, unitdp_1, pageSize_1) {
|
|
6606
|
-
return __awaiter(this, arguments, void 0, function* (xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, options = { headers: {} }) {
|
|
6610
|
+
getBankTransactions(xeroTenantId_1, ifModifiedSince_1, where_1, order_1, page_1, unitdp_1, pageSize_1, references_1) {
|
|
6611
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, references, options = { headers: {} }) {
|
|
6607
6612
|
const localVarPath = this.basePath + '/BankTransactions';
|
|
6608
6613
|
let localVarQueryParameters = {};
|
|
6609
6614
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -6632,6 +6637,9 @@ class AccountingApi {
|
|
|
6632
6637
|
if (pageSize !== undefined) {
|
|
6633
6638
|
localVarQueryParameters['pageSize'] = models_1.ObjectSerializer.serialize(pageSize, "number");
|
|
6634
6639
|
}
|
|
6640
|
+
if (references !== undefined) {
|
|
6641
|
+
localVarQueryParameters['References'] = models_1.ObjectSerializer.serialize(references, "Array<string>");
|
|
6642
|
+
}
|
|
6635
6643
|
localVarHeaderParams['xero-tenant-id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
|
|
6636
6644
|
localVarHeaderParams['If-Modified-Since'] = models_1.ObjectSerializer.serialize(ifModifiedSince, "Date");
|
|
6637
6645
|
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
|
|
@@ -12100,13 +12108,14 @@ class AccountingApi {
|
|
|
12100
12108
|
* @param ifModifiedSince Only records created or modified since this timestamp will be returned
|
|
12101
12109
|
* @param where Filter by an any element
|
|
12102
12110
|
* @param order Order by an any element
|
|
12103
|
-
* @param page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each
|
|
12111
|
+
* @param page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment
|
|
12104
12112
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
12105
12113
|
* @param pageSize Number of records to retrieve per page
|
|
12106
12114
|
* @param invoiceNumbers Filter by a comma-separated list of InvoiceNumbers
|
|
12115
|
+
* @param references Filter by a comma-separated list of References
|
|
12107
12116
|
*/
|
|
12108
|
-
getPrepayments(xeroTenantId_1, ifModifiedSince_1, where_1, order_1, page_1, unitdp_1, pageSize_1, invoiceNumbers_1) {
|
|
12109
|
-
return __awaiter(this, arguments, void 0, function* (xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, invoiceNumbers, options = { headers: {} }) {
|
|
12117
|
+
getPrepayments(xeroTenantId_1, ifModifiedSince_1, where_1, order_1, page_1, unitdp_1, pageSize_1, invoiceNumbers_1, references_1) {
|
|
12118
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, invoiceNumbers, references, options = { headers: {} }) {
|
|
12110
12119
|
const localVarPath = this.basePath + '/Prepayments';
|
|
12111
12120
|
let localVarQueryParameters = {};
|
|
12112
12121
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -12138,6 +12147,9 @@ class AccountingApi {
|
|
|
12138
12147
|
if (invoiceNumbers !== undefined) {
|
|
12139
12148
|
localVarQueryParameters['InvoiceNumbers'] = models_1.ObjectSerializer.serialize(invoiceNumbers, "Array<string>");
|
|
12140
12149
|
}
|
|
12150
|
+
if (references !== undefined) {
|
|
12151
|
+
localVarQueryParameters['References'] = models_1.ObjectSerializer.serialize(references, "Array<string>");
|
|
12152
|
+
}
|
|
12141
12153
|
localVarHeaderParams['xero-tenant-id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
|
|
12142
12154
|
localVarHeaderParams['If-Modified-Since'] = models_1.ObjectSerializer.serialize(ifModifiedSince, "Date");
|
|
12143
12155
|
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
|
|
@@ -16707,9 +16719,10 @@ class AccountingApi {
|
|
|
16707
16719
|
* @param invoices
|
|
16708
16720
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16709
16721
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16722
|
+
* @param allowBackorders Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
|
|
16710
16723
|
*/
|
|
16711
|
-
updateInvoice(xeroTenantId_1, invoiceID_1, invoices_1, unitdp_1, idempotencyKey_1) {
|
|
16712
|
-
return __awaiter(this, arguments, void 0, function* (xeroTenantId, invoiceID, invoices, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
16724
|
+
updateInvoice(xeroTenantId_1, invoiceID_1, invoices_1, unitdp_1, idempotencyKey_1, allowBackorders_1) {
|
|
16725
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, invoiceID, invoices, unitdp, idempotencyKey, allowBackorders, options = { headers: {} }) {
|
|
16713
16726
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}'
|
|
16714
16727
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)));
|
|
16715
16728
|
let localVarQueryParameters = {};
|
|
@@ -16735,6 +16748,9 @@ class AccountingApi {
|
|
|
16735
16748
|
if (unitdp !== undefined) {
|
|
16736
16749
|
localVarQueryParameters['unitdp'] = models_1.ObjectSerializer.serialize(unitdp, "number");
|
|
16737
16750
|
}
|
|
16751
|
+
if (allowBackorders !== undefined) {
|
|
16752
|
+
localVarQueryParameters['allowBackorders'] = models_1.ObjectSerializer.serialize(allowBackorders, "boolean");
|
|
16753
|
+
}
|
|
16738
16754
|
localVarHeaderParams['xero-tenant-id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
|
|
16739
16755
|
localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
|
|
16740
16756
|
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
|
|
@@ -17484,9 +17500,10 @@ class AccountingApi {
|
|
|
17484
17500
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17485
17501
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17486
17502
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17503
|
+
* @param allowBackorders Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
|
|
17487
17504
|
*/
|
|
17488
|
-
updateOrCreateInvoices(xeroTenantId_1, invoices_1, summarizeErrors_1, unitdp_1, idempotencyKey_1) {
|
|
17489
|
-
return __awaiter(this, arguments, void 0, function* (xeroTenantId, invoices, summarizeErrors, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
17505
|
+
updateOrCreateInvoices(xeroTenantId_1, invoices_1, summarizeErrors_1, unitdp_1, idempotencyKey_1, allowBackorders_1) {
|
|
17506
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, invoices, summarizeErrors, unitdp, idempotencyKey, allowBackorders, options = { headers: {} }) {
|
|
17490
17507
|
const localVarPath = this.basePath + '/Invoices';
|
|
17491
17508
|
let localVarQueryParameters = {};
|
|
17492
17509
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -17510,6 +17527,9 @@ class AccountingApi {
|
|
|
17510
17527
|
if (unitdp !== undefined) {
|
|
17511
17528
|
localVarQueryParameters['unitdp'] = models_1.ObjectSerializer.serialize(unitdp, "number");
|
|
17512
17529
|
}
|
|
17530
|
+
if (allowBackorders !== undefined) {
|
|
17531
|
+
localVarQueryParameters['allowBackorders'] = models_1.ObjectSerializer.serialize(allowBackorders, "boolean");
|
|
17532
|
+
}
|
|
17513
17533
|
localVarHeaderParams['xero-tenant-id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
|
|
17514
17534
|
localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
|
|
17515
17535
|
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
|