xero-node 4.19.1 → 4.20.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 +15 -1
- package/dist/gen/api/accountingApi.js +65 -2
- 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/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/organisation.d.ts +2 -1
- package/dist/gen/model/accounting/organisation.js +1 -0
- package/dist/gen/model/accounting/organisation.js.map +1 -1
- package/dist/gen/model/appstore/product.d.ts +9 -4
- package/dist/gen/model/appstore/product.js +8 -2
- package/dist/gen/model/appstore/product.js.map +1 -1
- package/dist/gen/model/appstore/subscriptionItem.d.ts +4 -0
- package/dist/gen/model/appstore/subscriptionItem.js +5 -0
- package/dist/gen/model/appstore/subscriptionItem.js.map +1 -1
- package/dist/gen/model/finance/statementResponse.d.ts +9 -1
- package/dist/gen/model/finance/statementResponse.js +10 -0
- package/dist/gen/model/finance/statementResponse.js.map +1 -1
- package/dist/gen/model/payroll-uk/employment.d.ts +7 -2
- package/dist/gen/model/payroll-uk/employment.js +6 -1
- package/dist/gen/model/payroll-uk/employment.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: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.22.1
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1943,6 +1943,20 @@ export declare class AccountingApi {
|
|
|
1943
1943
|
response: http.IncomingMessage;
|
|
1944
1944
|
body: Journals;
|
|
1945
1945
|
}>;
|
|
1946
|
+
/**
|
|
1947
|
+
*
|
|
1948
|
+
* @summary Retrieves a specific journal using a unique journal number.
|
|
1949
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
1950
|
+
* @param journalNumber Number of a Journal
|
|
1951
|
+
*/
|
|
1952
|
+
getJournalByNumber(xeroTenantId: string, journalNumber: number, options?: {
|
|
1953
|
+
headers: {
|
|
1954
|
+
[name: string]: string;
|
|
1955
|
+
};
|
|
1956
|
+
}): Promise<{
|
|
1957
|
+
response: http.IncomingMessage;
|
|
1958
|
+
body: Journals;
|
|
1959
|
+
}>;
|
|
1946
1960
|
/**
|
|
1947
1961
|
*
|
|
1948
1962
|
* @summary Retrieves journals
|
|
@@ -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: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.22.1
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var AccountingApiApiKeys;
|
|
|
34
34
|
class AccountingApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.20.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -8760,6 +8760,69 @@ class AccountingApi {
|
|
|
8760
8760
|
});
|
|
8761
8761
|
});
|
|
8762
8762
|
}
|
|
8763
|
+
/**
|
|
8764
|
+
*
|
|
8765
|
+
* @summary Retrieves a specific journal using a unique journal number.
|
|
8766
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
8767
|
+
* @param journalNumber Number of a Journal
|
|
8768
|
+
*/
|
|
8769
|
+
getJournalByNumber(xeroTenantId, journalNumber, options = { headers: {} }) {
|
|
8770
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8771
|
+
const localVarPath = this.basePath + '/Journals/{JournalNumber}'
|
|
8772
|
+
.replace('{' + 'JournalNumber' + '}', encodeURIComponent(String(journalNumber)));
|
|
8773
|
+
let localVarQueryParameters = {};
|
|
8774
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
8775
|
+
let localVarFormParams = {};
|
|
8776
|
+
// verify required parameter 'xeroTenantId' is not null or undefined
|
|
8777
|
+
if (xeroTenantId === null || xeroTenantId === undefined) {
|
|
8778
|
+
throw new Error('Required parameter xeroTenantId was null or undefined when calling getJournalByNumber.');
|
|
8779
|
+
}
|
|
8780
|
+
// verify required parameter 'journalNumber' is not null or undefined
|
|
8781
|
+
if (journalNumber === null || journalNumber === undefined) {
|
|
8782
|
+
throw new Error('Required parameter journalNumber was null or undefined when calling getJournalByNumber.');
|
|
8783
|
+
}
|
|
8784
|
+
localVarHeaderParams['xero-tenant-id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
|
|
8785
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
8786
|
+
let localVarUseFormData = false;
|
|
8787
|
+
let localVarRequestOptions = {
|
|
8788
|
+
method: 'GET',
|
|
8789
|
+
qs: localVarQueryParameters,
|
|
8790
|
+
headers: localVarHeaderParams,
|
|
8791
|
+
uri: localVarPath,
|
|
8792
|
+
useQuerystring: this._useQuerystring,
|
|
8793
|
+
json: true,
|
|
8794
|
+
};
|
|
8795
|
+
let authenticationPromise = Promise.resolve();
|
|
8796
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
8797
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
8798
|
+
return authenticationPromise.then(() => {
|
|
8799
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8800
|
+
if (localVarUseFormData) {
|
|
8801
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
8802
|
+
}
|
|
8803
|
+
else {
|
|
8804
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8805
|
+
}
|
|
8806
|
+
}
|
|
8807
|
+
return new Promise((resolve, reject) => {
|
|
8808
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8809
|
+
if (error) {
|
|
8810
|
+
reject(error);
|
|
8811
|
+
}
|
|
8812
|
+
else {
|
|
8813
|
+
body = models_1.ObjectSerializer.deserialize(body, "Journals");
|
|
8814
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8815
|
+
resolve({ response: response, body: body });
|
|
8816
|
+
}
|
|
8817
|
+
else {
|
|
8818
|
+
reject({ response: response, body: body });
|
|
8819
|
+
}
|
|
8820
|
+
}
|
|
8821
|
+
});
|
|
8822
|
+
});
|
|
8823
|
+
});
|
|
8824
|
+
});
|
|
8825
|
+
}
|
|
8763
8826
|
/**
|
|
8764
8827
|
*
|
|
8765
8828
|
* @summary Retrieves journals
|