diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 4381d0d8..51a19b25 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -5697,7 +5697,7 @@ "title" : "", "type" : "string", "description" : "See Tax Types – can only be used on update calls", - "enum" : [ "OUTPUT", "INPUT", "CAPEXINPUT", "EXEMPTEXPORT", "EXEMPTEXPENSES", "EXEMPTCAPITAL", "EXEMPTOUTPUT", "INPUTTAXED", "BASEXCLUDED", "GSTONCAPIMPORTS", "GSTONIMPORTS", "NONE", "INPUT2", "ZERORATED", "OUTPUT2", "CAPEXINPUT2", "CAPEXOUTPUT", "CAPEXOUTPUT2", "CAPEXSRINPUT", "CAPEXSROUTPUT", "ECACQUISITIONS", "ECZRINPUT", "ECZROUTPUT", "ECZROUTPUTSERVICES", "EXEMPTINPUT", "REVERSECHARGES", "RRINPUT", "RROUTPUT", "SRINPUT", "SROUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "BLINPUT", "DSOUTPUT", "EPINPUT", "ES33OUTPUT", "ESN33OUTPUT", "IGDSINPUT2", "IMINPUT2", "MEINPUT", "NRINPUT", "OPINPUT", "OSOUTPUT", "TXESSINPUT", "TXN33INPUT", "TXPETINPUT", "TXREINPUT", "INPUT3", "INPUT4", "OUTPUT3", "OUTPUT4", "SROUTPUT2", "TXCA", "SRCAS", "BLINPUT2", "DRCHARGESUPPLY20", "DRCHARGE20", "DRCHARGESUPPLY5", "DRCHARGE5", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "OUTPUTY23", "DSOUTPUTY23", "INPUTY23", "IMINPUT2Y23", "IGDSINPUT2Y23", "TXPETINPUTY23", "TXESSINPUTY23", "TXN33INPUTY23", "TXREINPUTY23", "TXCAY23", "BADDEBTRELIEFY23", "IGDSINPUT3Y23", "SROVRRSY23", "SROVRLVGY23", "SRLVGY23", "TXRCN33Y23", "TXRCREY23", "TXRCESSY23", "TXRCTSY23", "IM", "IMY23", "IMESS", "IMESSY23", "IMN33", "IMN33Y23", "IMRE", "IMREY23", "BADDEBTRECOVERY", "BADDEBTRECOVERYY23" ] + "enum" : [ "OUTPUT", "INPUT", "CAPEXINPUT", "EXEMPTEXPORT", "EXEMPTEXPENSES", "EXEMPTCAPITAL", "EXEMPTOUTPUT", "INPUTTAXED", "BASEXCLUDED", "GSTONCAPIMPORTS", "GSTONIMPORTS", "NONE", "INPUT2", "ZERORATED", "OUTPUT2", "CAPEXINPUT2", "CAPEXOUTPUT", "CAPEXOUTPUT2", "CAPEXSRINPUT", "CAPEXSROUTPUT", "ECACQUISITIONS", "ECZRINPUT", "ECZROUTPUT", "ECZROUTPUTSERVICES", "EXEMPTINPUT", "REVERSECHARGES", "RRINPUT", "RROUTPUT", "SRINPUT", "SROUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "BLINPUT", "DSOUTPUT", "EPINPUT", "ES33OUTPUT", "ESN33OUTPUT", "IGDSINPUT2", "IMINPUT2", "MEINPUT", "NRINPUT", "OPINPUT", "OSOUTPUT", "TXESSINPUT", "TXN33INPUT", "TXPETINPUT", "TXREINPUT", "INPUT3", "INPUT4", "OUTPUT3", "OUTPUT4", "SROUTPUT2", "TXCA", "SRCAS", "BLINPUT2", "DRCHARGESUPPLY20", "DRCHARGE20", "DRCHARGESUPPLY5", "DRCHARGE5", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "OUTPUTY23", "DSOUTPUTY23", "INPUTY23", "IMINPUT2Y23", "IGDSINPUT2Y23", "TXPETINPUTY23", "TXESSINPUTY23", "TXN33INPUTY23", "TXREINPUTY23", "TXCAY23", "BADDEBTRELIEFY23", "IGDSINPUT3Y23", "SROVRRSY23", "SROVRLVGY23", "SRLVGY23", "TXRCN33Y23", "TXRCREY23", "TXRCESSY23", "TXRCTSY23", "IM", "IMY23", "IMESS", "IMESSY23", "IMN33", "IMN33Y23", "IMRE", "IMREY23", "BADDEBTRECOVERY", "BADDEBTRECOVERYY23", "OUTPUTY24", "DSOUTPUTY24", "INPUTY24", "IGDSINPUT2Y24", "TXPETINPUTY24", "TXESSINPUTY24", "TXN33INPUTY24", "TXREINPUTY24", "TXCAY24", "BADDEBTRELIEFY24", "IGDSINPUT3Y24", "SROVRRSY24", "SROVRLVGY24", "SRLVGY24", "TXRCTSY24", "TXRCESSY24", "TXRCN33Y24", "TXRCREY24", "IMY24", "IMESSY24", "IMN33Y24", "IMREY24", "BADDEBTRECOVERYY24", "OSOUTPUT2" ] }; defs["TenNinetyNineContact"] = { "title" : "", @@ -6094,7 +6094,7 @@ SDK: - VSN: 4.36.0 + VSN: 4.37.0 Methods createAccount diff --git a/docs/appstore/index.html b/docs/appstore/index.html index 05ee5863..10a77d04 100644 --- a/docs/appstore/index.html +++ b/docs/appstore/index.html @@ -1242,7 +1242,7 @@ SDK: - VSN: 4.36.0 + VSN: 4.37.0 Methods getSubscription diff --git a/docs/assets/index.html b/docs/assets/index.html index 2699d18c..06686f54 100644 --- a/docs/assets/index.html +++ b/docs/assets/index.html @@ -1393,7 +1393,7 @@ SDK: - VSN: 4.36.0 + VSN: 4.37.0 Methods createAsset diff --git a/docs/bankfeeds/index.html b/docs/bankfeeds/index.html index 440bbbdd..9d37ab87 100644 --- a/docs/bankfeeds/index.html +++ b/docs/bankfeeds/index.html @@ -1269,7 +1269,7 @@ SDK: - VSN: 4.36.0 + VSN: 4.37.0 Methods createFeedConnections diff --git a/docs/files/index.html b/docs/files/index.html index 671f9d3e..b3a6adbf 100644 --- a/docs/files/index.html +++ b/docs/files/index.html @@ -1156,7 +1156,7 @@ SDK: - VSN: 4.36.0 + VSN: 4.37.0 Methods createFileAssociation @@ -1921,9 +1921,13 @@ Usage and SDK Samples const xeroTenantId = 'YOUR_XERO_TENANT_ID'; const objectId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; +const pagesize = 50; +const page = 2; +const sort = 'Associations/{ObjectId}?sort=CreatedDateUtc'; +const direction = 'Associations/{ObjectId}?sort=CreatedDateUtc&direction=DESC'; try { - const response = await xero.accountingApi.getAssociationsByObject(xeroTenantId, objectId); + const response = await xero.accountingApi.getAssociationsByObject(xeroTenantId, objectId, pagesize, page, sort, direction); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -2006,6 +2010,93 @@ Parameters + + + + Query parameters + + + Name + Description + + pagesize + + + + + + + + Integer + + + +pass an optional page size value + + + + + + + + page + + + + + + + + Integer + + + +number of records to skip for pagination + + + + + + + + sort + + + + + + + + String + + + +values to sort by + + + + + + + + direction + + + + + + + + String + + + +direction to sort by + + + + + diff --git a/docs/finance/index.html b/docs/finance/index.html index 5f095992..30e5c7d4 100644 --- a/docs/finance/index.html +++ b/docs/finance/index.html @@ -2735,7 +2735,7 @@ SDK: - VSN: 4.36.0 + VSN: 4.37.0 Methods getAccountingActivityAccountUsage diff --git a/docs/payroll-au/index.html b/docs/payroll-au/index.html index 90b1b606..5badeece 100644 --- a/docs/payroll-au/index.html +++ b/docs/payroll-au/index.html @@ -3413,7 +3413,7 @@ SDK: - VSN: 4.36.0 + VSN: 4.37.0 Methods approveLeaveApplication diff --git a/docs/payroll-nz/index.html b/docs/payroll-nz/index.html index bb29d3ed..427b0a15 100644 --- a/docs/payroll-nz/index.html +++ b/docs/payroll-nz/index.html @@ -3839,7 +3839,7 @@ SDK: - VSN: 4.36.0 + VSN: 4.37.0 Methods approveTimesheet diff --git a/docs/payroll-uk/index.html b/docs/payroll-uk/index.html index 4f383a43..0983cc0b 100644 --- a/docs/payroll-uk/index.html +++ b/docs/payroll-uk/index.html @@ -3511,7 +3511,7 @@ SDK: - VSN: 4.36.0 + VSN: 4.37.0 Methods approveTimesheet diff --git a/docs/projects/index.html b/docs/projects/index.html index 1ff5226c..7221b5dc 100644 --- a/docs/projects/index.html +++ b/docs/projects/index.html @@ -1463,7 +1463,7 @@ SDK: - VSN: 4.36.0 + VSN: 4.37.0 Methods createProject diff --git a/package.json b/package.json index 783674f2..e3e5c052 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xero-node", - "version": "4.36.0", + "version": "4.37.0", "description": "Xero NodeJS OAuth 2.0 client for xero-node", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/gen/api/accountingApi.ts b/src/gen/api/accountingApi.ts index 52965f4a..8d58daf5 100644 --- a/src/gen/api/accountingApi.ts +++ b/src/gen/api/accountingApi.ts @@ -2,7 +2,7 @@ * Xero Accounting API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.40.0 + * The version of the OpenAPI document: 2.40.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -83,7 +83,7 @@ export enum AccountingApiApiKeys { export class AccountingApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-4.36.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-4.37.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/appStoreApi.ts b/src/gen/api/appStoreApi.ts index f75512dc..f527a605 100644 --- a/src/gen/api/appStoreApi.ts +++ b/src/gen/api/appStoreApi.ts @@ -2,7 +2,7 @@ * Xero AppStore API * These endpoints are for Xero Partners to interact with the App Store Billing platform * - * The version of the OpenAPI document: 2.40.0 + * The version of the OpenAPI document: 2.40.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -36,7 +36,7 @@ export enum AppStoreApiApiKeys { export class AppStoreApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-4.36.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-4.37.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/assetApi.ts b/src/gen/api/assetApi.ts index 8175509a..b88da34d 100644 --- a/src/gen/api/assetApi.ts +++ b/src/gen/api/assetApi.ts @@ -2,7 +2,7 @@ * Xero Assets API * The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc. * - * The version of the OpenAPI document: 2.40.0 + * The version of the OpenAPI document: 2.40.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -35,7 +35,7 @@ export enum AssetApiApiKeys { export class AssetApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-4.36.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-4.37.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/bankfeedsApi.ts b/src/gen/api/bankfeedsApi.ts index f86b354f..d7664a9f 100644 --- a/src/gen/api/bankfeedsApi.ts +++ b/src/gen/api/bankfeedsApi.ts @@ -2,7 +2,7 @@ * Xero Bank Feeds API * The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero. If you\'re an existing financial services partner that wants access, contact your local Partner Manager. If you\'re a financial institution who wants to provide bank feeds to your business customers, contact us to become a financial services partner. * - * The version of the OpenAPI document: 2.40.0 + * The version of the OpenAPI document: 2.40.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -34,7 +34,7 @@ export enum BankFeedsApiApiKeys { export class BankFeedsApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-4.36.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-4.37.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/filesApi.ts b/src/gen/api/filesApi.ts index c9ce7512..3424d229 100644 --- a/src/gen/api/filesApi.ts +++ b/src/gen/api/filesApi.ts @@ -2,7 +2,7 @@ * Xero Files API * These endpoints are specific to Xero Files API * - * The version of the OpenAPI document: 2.40.0 + * The version of the OpenAPI document: 2.40.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -34,7 +34,7 @@ export enum FilesApiApiKeys { export class FilesApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-4.36.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-4.37.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; @@ -418,8 +418,12 @@ export class FilesApi { * @summary Retrieves an association object using a unique object ID * @param xeroTenantId Xero identifier for Tenant * @param objectId Object id for single object + * @param pagesize pass an optional page size value + * @param page number of records to skip for pagination + * @param sort values to sort by + * @param direction direction to sort by */ - public async getAssociationsByObject (xeroTenantId: string, objectId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array; }> { + public async getAssociationsByObject (xeroTenantId: string, objectId: string, pagesize?: number, page?: number, sort?: 'Name' | 'CreatedDateUTC', direction?: 'ASC' | 'DESC', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array; }> { const localVarPath = this.basePath + '/Associations/{ObjectId}' .replace('{' + 'ObjectId' + '}', encodeURIComponent(String(objectId))); let localVarQueryParameters: any = {}; @@ -436,6 +440,22 @@ export class FilesApi { throw new Error('Required parameter objectId was null or undefined when calling getAssociationsByObject.'); } + if (pagesize !== undefined) { + localVarQueryParameters['pagesize'] = ObjectSerializer.serialize(pagesize, "number"); + } + + if (page !== undefined) { + localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number"); + } + + if (sort !== undefined) { + localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "'Name' | 'CreatedDateUTC'"); + } + + if (direction !== undefined) { + localVarQueryParameters['direction'] = ObjectSerializer.serialize(direction, "'ASC' | 'DESC'"); + } + localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); (Object).assign(localVarHeaderParams, options.headers); diff --git a/src/gen/api/financeApi.ts b/src/gen/api/financeApi.ts index f4bd8197..d07a9f32 100644 --- a/src/gen/api/financeApi.ts +++ b/src/gen/api/financeApi.ts @@ -2,7 +2,7 @@ * Xero Finance API * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital. * - * The version of the OpenAPI document: 2.40.0 + * The version of the OpenAPI document: 2.40.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,7 +42,7 @@ export enum FinanceApiApiKeys { export class FinanceApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-4.36.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-4.37.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollAUApi.ts b/src/gen/api/payrollAUApi.ts index 1d2e0c9b..593e062c 100644 --- a/src/gen/api/payrollAUApi.ts +++ b/src/gen/api/payrollAUApi.ts @@ -2,7 +2,7 @@ * Xero Payroll AU API * This is the Xero Payroll API for orgs in Australia region. * - * The version of the OpenAPI document: 2.40.0 + * The version of the OpenAPI document: 2.40.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ export enum PayrollAuApiApiKeys { export class PayrollAuApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-4.36.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-4.37.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollNZApi.ts b/src/gen/api/payrollNZApi.ts index 1025e98a..94efa9fa 100644 --- a/src/gen/api/payrollNZApi.ts +++ b/src/gen/api/payrollNZApi.ts @@ -2,7 +2,7 @@ * Xero Payroll NZ * This is the Xero Payroll API for orgs in the NZ region. * - * The version of the OpenAPI document: 2.40.0 + * The version of the OpenAPI document: 2.40.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -92,7 +92,7 @@ export enum PayrollNzApiApiKeys { export class PayrollNzApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-4.36.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-4.37.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollUKApi.ts b/src/gen/api/payrollUKApi.ts index ed6d009f..429e3a16 100644 --- a/src/gen/api/payrollUKApi.ts +++ b/src/gen/api/payrollUKApi.ts @@ -2,7 +2,7 @@ * Xero Payroll UK * This is the Xero Payroll API for orgs in the UK region. * - * The version of the OpenAPI document: 2.40.0 + * The version of the OpenAPI document: 2.40.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -92,7 +92,7 @@ export enum PayrollUkApiApiKeys { export class PayrollUkApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-4.36.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-4.37.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/projectApi.ts b/src/gen/api/projectApi.ts index 05beb049..130fd2be 100644 --- a/src/gen/api/projectApi.ts +++ b/src/gen/api/projectApi.ts @@ -2,7 +2,7 @@ * Xero Projects API * This is the Xero Projects API * - * The version of the OpenAPI document: 2.40.0 + * The version of the OpenAPI document: 2.40.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,7 +42,7 @@ export enum ProjectApiApiKeys { export class ProjectApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-4.36.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-4.37.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/model/accounting/taxType.ts b/src/gen/model/accounting/taxType.ts index 51946259..1658ee9b 100644 --- a/src/gen/model/accounting/taxType.ts +++ b/src/gen/model/accounting/taxType.ts @@ -98,5 +98,29 @@ export enum TaxType { IMRE = 'IMRE', IMREY23 = 'IMREY23', BADDEBTRECOVERY = 'BADDEBTRECOVERY', - BADDEBTRECOVERYY23 = 'BADDEBTRECOVERYY23' + BADDEBTRECOVERYY23 = 'BADDEBTRECOVERYY23', + OUTPUTY24 = 'OUTPUTY24', + DSOUTPUTY24 = 'DSOUTPUTY24', + INPUTY24 = 'INPUTY24', + IGDSINPUT2Y24 = 'IGDSINPUT2Y24', + TXPETINPUTY24 = 'TXPETINPUTY24', + TXESSINPUTY24 = 'TXESSINPUTY24', + TXN33INPUTY24 = 'TXN33INPUTY24', + TXREINPUTY24 = 'TXREINPUTY24', + TXCAY24 = 'TXCAY24', + BADDEBTRELIEFY24 = 'BADDEBTRELIEFY24', + IGDSINPUT3Y24 = 'IGDSINPUT3Y24', + SROVRRSY24 = 'SROVRRSY24', + SROVRLVGY24 = 'SROVRLVGY24', + SRLVGY24 = 'SRLVGY24', + TXRCTSY24 = 'TXRCTSY24', + TXRCESSY24 = 'TXRCESSY24', + TXRCN33Y24 = 'TXRCN33Y24', + TXRCREY24 = 'TXRCREY24', + IMY24 = 'IMY24', + IMESSY24 = 'IMESSY24', + IMN33Y24 = 'IMN33Y24', + IMREY24 = 'IMREY24', + BADDEBTRECOVERYY24 = 'BADDEBTRECOVERYY24', + OSOUTPUT2 = 'OSOUTPUT2' }