Skip to content

Commit e26224e

Browse files
authored
Merge pull request #632 from XeroAPI/xero-node-4.33.0
generates xero-node 4.33.0 from OAS 2.36.0
2 parents 271d8ed + 58856a7 commit e26224e

28 files changed

+373
-35
lines changed

docs/accounting/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6075,7 +6075,7 @@
60756075
<nav id="scrollingNav">
60766076
<ul class="sidenav nav nav-list">
60776077
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6078-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.32.0</li>
6078+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.33.0</li>
60796079
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
60806080
<li data-group="Accounting" data-name="createAccount" class="">
60816081
<a href="#api-Accounting-createAccount">createAccount</a>

docs/appstore/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@
12421242
<nav id="scrollingNav">
12431243
<ul class="sidenav nav nav-list">
12441244
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1245-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.32.0</li>
1245+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.33.0</li>
12461246
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12471247
<li data-group="AppStore" data-name="getSubscription" class="">
12481248
<a href="#api-AppStore-getSubscription">getSubscription</a>

docs/assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@
13931393
<nav id="scrollingNav">
13941394
<ul class="sidenav nav nav-list">
13951395
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
1396-
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.32.0</li>
1396+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.33.0</li>
13971397
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
13981398
<li data-group="Asset" data-name="createAsset" class="">
13991399
<a href="#api-Asset-createAsset">createAsset</a>

docs/bankfeeds/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@
12691269
<nav id="scrollingNav">
12701270
<ul class="sidenav nav nav-list">
12711271
<li class="nav-header" data-group="BankFeeds"><strong>SDK: </strong><span id='sdk-name'></span></li>
1272-
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>4.32.0</li>
1272+
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>4.33.0</li>
12731273
<li class="nav-header" data-group="BankFeeds"><a href="#api-BankFeeds">Methods</a></li>
12741274
<li data-group="BankFeeds" data-name="createFeedConnections" class="">
12751275
<a href="#api-BankFeeds-createFeedConnections">createFeedConnections</a>

docs/files/index.html

Lines changed: 123 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@
11561156
<nav id="scrollingNav">
11571157
<ul class="sidenav nav nav-list">
11581158
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1159-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>4.32.0</li>
1159+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>4.33.0</li>
11601160
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11611161
<li data-group="Files" data-name="createFileAssociation" class="">
11621162
<a href="#api-Files-createFileAssociation">createFileAssociation</a>
@@ -1176,6 +1176,9 @@
11761176
<li data-group="Files" data-name="getAssociationsByObject" class="">
11771177
<a href="#api-Files-getAssociationsByObject">getAssociationsByObject</a>
11781178
</li>
1179+
<li data-group="Files" data-name="getAssociationsCount" class="">
1180+
<a href="#api-Files-getAssociationsCount">getAssociationsCount</a>
1181+
</li>
11791182
<li data-group="Files" data-name="getFile" class="">
11801183
<a href="#api-Files-getFile">getFile</a>
11811184
</li>
@@ -1858,7 +1861,7 @@ <h1>getAssociationsByObject</h1>
18581861
<div class="pull-right"></div>
18591862
<div class="clearfix"></div>
18601863
<p></p>
1861-
<p class="marked">By passing in the appropriate options,</p>
1864+
<p class="marked">By passing in the appropriate options, you can retrieve an association</p>
18621865
<p></p>
18631866
<br />
18641867
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/Associations/{ObjectId}</span></code></pre>
@@ -1961,6 +1964,124 @@ <h2>Parameters</h2>
19611964
</div>
19621965
</div>
19631966
</td>
1967+
</tr>
1968+
1969+
</table>
1970+
</article>
1971+
</div>
1972+
<hr>
1973+
<div id="api-Files-getAssociationsCount">
1974+
<article id="api-Files-getAssociationsCount-0" data-group="User" data-name="getAssociationsCount" data-version="0">
1975+
<div class="pull-left">
1976+
<h1>getAssociationsCount</h1>
1977+
<p>Retrieves a count of associations for a list of objects.</p>
1978+
</div>
1979+
<div class="pull-right"></div>
1980+
<div class="clearfix"></div>
1981+
<p></p>
1982+
<p class="marked">By passing in the appropriate options, you can retrieve the association count for objects</p>
1983+
<p></p>
1984+
<br />
1985+
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/Associations/Count</span></code></pre>
1986+
<p>
1987+
<h3>Usage and SDK Samples</h3>
1988+
</p>
1989+
<ul class="nav nav-tabs nav-tabs-examples">
1990+
<!-- *****REPLACE***** comment out the other languages <li> -->
1991+
<li class=""><a href="#examples-Files-getAssociationsCount-0-javascript">Node</a></li>
1992+
</ul>
1993+
<div class="tab-content">
1994+
<!-- *****REPLACE***** comment out the other languages tab-pane -->
1995+
<div class="tab-pane" id="examples-Files-getAssociationsCount-0-javascript">
1996+
<pre class="prettyprint"><code class="language-javascript">await xero.setTokenSet(tokenSet);
1997+
1998+
const xeroTenantId = 'YOUR_XERO_TENANT_ID';
1999+
const objectIds = [];
2000+
2001+
try {
2002+
const response = await xero.accountingApi.getAssociationsCount(xeroTenantId, objectIds);
2003+
console.log(response.body || response.response.statusCode)
2004+
} catch (err) {
2005+
const error = JSON.stringify(err.response.body, null, 2)
2006+
console.log(`Status Code: ${err.response.statusCode} => ${error}`);
2007+
}</code></pre>
2008+
</div>
2009+
</div>
2010+
<h2>Scopes</h2>
2011+
<table>
2012+
2013+
<tr>
2014+
<td>files</td>
2015+
<td>Grant read-write access to files and folders</td>
2016+
</tr>
2017+
2018+
<tr>
2019+
<td>files.read</td>
2020+
<td>Grant read-only access to files and folders</td>
2021+
</tr>
2022+
2023+
</table>
2024+
<h2>Parameters</h2>
2025+
<div class="methodsubtabletitle">Header parameters</div>
2026+
<table id="methodsubtable">
2027+
<tr>
2028+
<th width="150px">Name</th>
2029+
<th>Description</th>
2030+
</tr>
2031+
<tr><td style="width:150px;">xero-tenant-id<span style="color:red;">*</span></td>
2032+
<td>
2033+
2034+
2035+
<div id="d2e199_getAssociationsCount_xeroTenantId">
2036+
<div class="json-schema-view">
2037+
<div class="primitive">
2038+
<span class="type">
2039+
String
2040+
</span>
2041+
2042+
<div class="inner description marked">
2043+
Xero identifier for Tenant
2044+
</div>
2045+
</div>
2046+
<div class="inner required">
2047+
Required
2048+
</div>
2049+
</div>
2050+
</div>
2051+
</td>
2052+
</tr>
2053+
2054+
</table>
2055+
<div class="methodsubtabletitle">Query parameters</div>
2056+
<table id="methodsubtable">
2057+
<tr>
2058+
<th width="150px">Name</th>
2059+
<th>Description</th>
2060+
</tr>
2061+
<tr><td style="width:150px;">ObjectIds<span style="color:red;">*</span></td>
2062+
<td>
2063+
2064+
2065+
<div id="d2e199_getAssociationsCount_objectIds">
2066+
<div class="json-schema-view">
2067+
<div class="primitive">
2068+
<span class="type">
2069+
array[UUID]
2070+
</span>
2071+
<span class="format">
2072+
(uuid)
2073+
</span>
2074+
2075+
<div class="inner description marked">
2076+
A comma-separated list of object ids
2077+
</div>
2078+
</div>
2079+
<div class="inner required">
2080+
Required
2081+
</div>
2082+
</div>
2083+
</div>
2084+
</td>
19642085
</tr>
19652086

19662087
</table>

docs/finance/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2735,7 +2735,7 @@
27352735
<nav id="scrollingNav">
27362736
<ul class="sidenav nav nav-list">
27372737
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2738-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>4.32.0</li>
2738+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>4.33.0</li>
27392739
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27402740
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27412741
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

docs/payroll-au/index.html

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,9 @@
16061606
"description" : "The Description of the Leave",
16071607
"example" : "My leave"
16081608
},
1609+
"PayOutType" : {
1610+
"$ref" : "#/components/schemas/PayOutType"
1611+
},
16091612
"LeavePeriods" : {
16101613
"type" : "array",
16111614
"items" : {
@@ -1702,6 +1705,9 @@
17021705
"format" : "double",
17031706
"example" : 2.5,
17041707
"x-is-money" : true
1708+
},
1709+
"PayOutType" : {
1710+
"$ref" : "#/components/schemas/PayOutType"
17051711
}
17061712
},
17071713
"description" : ""
@@ -1931,6 +1937,52 @@
19311937
"items" : {
19321938
"$ref" : "#/components/schemas/LeaveLine"
19331939
}
1940+
},
1941+
"PaidLeaveEarningsLines" : {
1942+
"type" : "array",
1943+
"items" : {
1944+
"$ref" : "#/components/schemas/PaidLeaveEarningsLine"
1945+
}
1946+
}
1947+
},
1948+
"description" : ""
1949+
};
1950+
defs["PaidLeaveEarningsLine"] = {
1951+
"title" : "",
1952+
"required" : [ "Amount", "LeaveTypeID" ],
1953+
"type" : "object",
1954+
"properties" : {
1955+
"LeaveTypeID" : {
1956+
"type" : "string",
1957+
"description" : "Xero leave type identifier",
1958+
"format" : "uuid",
1959+
"example" : "742998cb-7584-4ecf-aa88-d694f59c50f9"
1960+
},
1961+
"Amount" : {
1962+
"type" : "number",
1963+
"description" : "Paid leave amount",
1964+
"format" : "double",
1965+
"example" : 500.0,
1966+
"x-is-money" : true
1967+
},
1968+
"SGCAppliedLeaveLoadingAmount" : {
1969+
"type" : "number",
1970+
"description" : "The amount of leave loading applied for the leave type that is subject to Superannuation Guarantee Contributions. *Only applicable for Leave Types with Annual Leave Categories",
1971+
"format" : "double",
1972+
"example" : 50.0,
1973+
"x-is-money" : true
1974+
},
1975+
"SGCExemptedLeaveLoadingAmount" : {
1976+
"type" : "number",
1977+
"description" : "The amount of leave loading applied for the leave type that is exempt from Superannuation Guarantee Contributions. *Only applicable for Leave Types with Annual Leave Categories",
1978+
"format" : "double",
1979+
"example" : 60.0,
1980+
"x-is-money" : true
1981+
},
1982+
"ResetSTPCategorisation" : {
1983+
"type" : "boolean",
1984+
"description" : "Reset the STP categorisations for the leave type. *Only applicable for Leave Types with Annual Leave Categories",
1985+
"example" : true
19341986
}
19351987
},
19361988
"description" : ""
@@ -1976,6 +2028,12 @@
19762028
},
19772029
"description" : "",
19782030
"x-isObjectArray" : true
2031+
};
2032+
defs["PayOutType"] = {
2033+
"title" : "",
2034+
"type" : "string",
2035+
"description" : "How the requested leave will be paid out, e.g. cashed out.",
2036+
"enum" : [ "DEFAULT", "CASHED_OUT" ]
19792037
};
19802038
defs["PayRun"] = {
19812039
"title" : "",
@@ -3355,7 +3413,7 @@
33553413
<nav id="scrollingNav">
33563414
<ul class="sidenav nav nav-list">
33573415
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3358-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>4.32.0</li>
3416+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>4.33.0</li>
33593417
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
33603418
<li data-group="PayrollAu" data-name="createEmployee" class="">
33613419
<a href="#api-PayrollAu-createEmployee">createEmployee</a>

docs/payroll-nz/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3839,7 +3839,7 @@
38393839
<nav id="scrollingNav">
38403840
<ul class="sidenav nav nav-list">
38413841
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
3842-
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>4.32.0</li>
3842+
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>4.33.0</li>
38433843
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
38443844
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
38453845
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>

docs/payroll-uk/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3511,7 +3511,7 @@
35113511
<nav id="scrollingNav">
35123512
<ul class="sidenav nav nav-list">
35133513
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
3514-
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>4.32.0</li>
3514+
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>4.33.0</li>
35153515
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
35163516
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
35173517
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>

docs/projects/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@
14631463
<nav id="scrollingNav">
14641464
<ul class="sidenav nav nav-list">
14651465
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
1466-
<li class="nav-header" data-group="Project"><strong>VSN: </strong>4.32.0</li>
1466+
<li class="nav-header" data-group="Project"><strong>VSN: </strong>4.33.0</li>
14671467
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
14681468
<li data-group="Project" data-name="createProject" class="">
14691469
<a href="#api-Project-createProject">createProject</a>

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xero-node",
3-
"version": "4.32.0",
3+
"version": "4.33.0",
44
"description": "Xero NodeJS OAuth 2.0 client for xero-node",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/gen/api/accountingApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Accounting API
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
5-
* The version of the OpenAPI document: 2.35.0
5+
* The version of the OpenAPI document: 2.36.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -82,7 +82,7 @@ export enum AccountingApiApiKeys {
8282

8383
export class AccountingApi {
8484
protected _basePath = defaultBasePath;
85-
protected defaultHeaders : any = {'user-agent': 'xero-node-4.32.0'};
85+
protected defaultHeaders : any = {'user-agent': 'xero-node-4.33.0'};
8686
protected _useQuerystring : boolean = false;
8787
protected binaryHeaders : any = {};
8888

src/gen/api/appStoreApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero AppStore API
33
* These endpoints are for Xero Partners to interact with the App Store Billing platform
44
*
5-
* The version of the OpenAPI document: 2.35.0
5+
* The version of the OpenAPI document: 2.36.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,7 +36,7 @@ export enum AppStoreApiApiKeys {
3636

3737
export class AppStoreApi {
3838
protected _basePath = defaultBasePath;
39-
protected defaultHeaders : any = {'user-agent': 'xero-node-4.32.0'};
39+
protected defaultHeaders : any = {'user-agent': 'xero-node-4.33.0'};
4040
protected _useQuerystring : boolean = false;
4141
protected binaryHeaders : any = {};
4242

src/gen/api/assetApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Assets API
33
* 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.
44
*
5-
* The version of the OpenAPI document: 2.35.0
5+
* The version of the OpenAPI document: 2.36.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,7 +35,7 @@ export enum AssetApiApiKeys {
3535

3636
export class AssetApi {
3737
protected _basePath = defaultBasePath;
38-
protected defaultHeaders : any = {'user-agent': 'xero-node-4.32.0'};
38+
protected defaultHeaders : any = {'user-agent': 'xero-node-4.33.0'};
3939
protected _useQuerystring : boolean = false;
4040
protected binaryHeaders : any = {};
4141

0 commit comments

Comments
 (0)