Skip to content

Commit 48efe53

Browse files
authored
Build from OAS 4.0.0 (#689)
1 parent bd3985e commit 48efe53

24 files changed

+80
-35
lines changed

docs/accounting/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4062,7 +4062,7 @@
40624062
"Class" : {
40634063
"type" : "string",
40644064
"description" : "Organisation Classes describe which plan the Xero organisation is on (e.g. DEMO, TRIAL, PREMIUM)",
4065-
"enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE" ]
4065+
"enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "IGNITE", "GROW", "COMPREHENSIVE" ]
40664066
},
40674067
"Edition" : {
40684068
"type" : "string",
@@ -6101,7 +6101,7 @@
61016101
<nav id="scrollingNav">
61026102
<ul class="sidenav nav nav-list">
61036103
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6104-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>6.0.0</li>
6104+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>7.0.0</li>
61056105
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
61066106
<li data-group="Accounting" data-name="createAccount" class="">
61076107
<a href="#api-Accounting-createAccount">createAccount</a>

docs/appstore/index.html

+1-1
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>6.0.0</li>
1245+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>7.0.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

+1-1
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>6.0.0</li>
1396+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>7.0.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

+1-1
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>6.0.0</li>
1272+
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>7.0.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

+16-1
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,21 @@
866866
"title" : "",
867867
"type" : "object",
868868
"properties" : {
869+
"SendWithObject" : {
870+
"type" : "boolean",
871+
"description" : "Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.",
872+
"example" : true
873+
},
874+
"Name" : {
875+
"type" : "string",
876+
"description" : "The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.",
877+
"example" : "Test.pdf"
878+
},
879+
"Size" : {
880+
"type" : "integer",
881+
"description" : "The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.",
882+
"example" : 12357
883+
},
869884
"FileId" : {
870885
"type" : "string",
871886
"description" : "The unique identifier of the file",
@@ -1156,7 +1171,7 @@
11561171
<nav id="scrollingNav">
11571172
<ul class="sidenav nav nav-list">
11581173
<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>6.0.0</li>
1174+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>7.0.0</li>
11601175
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11611176
<li data-group="Files" data-name="createFileAssociation" class="">
11621177
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

docs/finance/index.html

+1-1
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>6.0.0</li>
2738+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>7.0.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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3413,7 +3413,7 @@
34133413
<nav id="scrollingNav">
34143414
<ul class="sidenav nav nav-list">
34153415
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3416-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>6.0.0</li>
3416+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>7.0.0</li>
34173417
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
34183418
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
34193419
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>

docs/payroll-nz/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3844,7 +3844,7 @@
38443844
<nav id="scrollingNav">
38453845
<ul class="sidenav nav nav-list">
38463846
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
3847-
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>6.0.0</li>
3847+
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>7.0.0</li>
38483848
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
38493849
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
38503850
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>

docs/payroll-uk/index.html

+1-1
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>6.0.0</li>
3514+
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>7.0.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

+1-1
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>6.0.0</li>
1466+
<li class="nav-header" data-group="Project"><strong>VSN: </strong>7.0.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

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xero-node",
3-
"version": "6.0.0",
3+
"version": "7.0.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

+2-2
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: 3.0.3
5+
* The version of the OpenAPI document: 4.0.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -85,7 +85,7 @@ export enum AccountingApiApiKeys {
8585

8686
export class AccountingApi {
8787
protected _basePath = defaultBasePath;
88-
protected defaultHeaders : any = {'user-agent': 'xero-node-6.0.0'};
88+
protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'};
8989
protected _useQuerystring : boolean = false;
9090
protected binaryHeaders : any = {};
9191

src/gen/api/appStoreApi.ts

+2-2
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: 3.0.3
5+
* The version of the OpenAPI document: 4.0.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,7 +38,7 @@ export enum AppStoreApiApiKeys {
3838

3939
export class AppStoreApi {
4040
protected _basePath = defaultBasePath;
41-
protected defaultHeaders : any = {'user-agent': 'xero-node-6.0.0'};
41+
protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'};
4242
protected _useQuerystring : boolean = false;
4343
protected binaryHeaders : any = {};
4444

src/gen/api/assetApi.ts

+2-2
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: 3.0.3
5+
* The version of the OpenAPI document: 4.0.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -37,7 +37,7 @@ export enum AssetApiApiKeys {
3737

3838
export class AssetApi {
3939
protected _basePath = defaultBasePath;
40-
protected defaultHeaders : any = {'user-agent': 'xero-node-6.0.0'};
40+
protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'};
4141
protected _useQuerystring : boolean = false;
4242
protected binaryHeaders : any = {};
4343

src/gen/api/bankfeedsApi.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Bank Feeds API
33
* 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.
44
*
5-
* The version of the OpenAPI document: 3.0.3
5+
* The version of the OpenAPI document: 4.0.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,7 +36,7 @@ export enum BankFeedsApiApiKeys {
3636

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

src/gen/api/filesApi.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Files API
33
* These endpoints are specific to Xero Files API
44
*
5-
* The version of the OpenAPI document: 3.0.3
5+
* The version of the OpenAPI document: 4.0.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,7 +36,7 @@ export enum FilesApiApiKeys {
3636

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

src/gen/api/financeApi.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Finance API
33
* 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.
44
*
5-
* The version of the OpenAPI document: 3.0.3
5+
* The version of the OpenAPI document: 4.0.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -44,7 +44,7 @@ export enum FinanceApiApiKeys {
4444

4545
export class FinanceApi {
4646
protected _basePath = defaultBasePath;
47-
protected defaultHeaders : any = {'user-agent': 'xero-node-6.0.0'};
47+
protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'};
4848
protected _useQuerystring : boolean = false;
4949
protected binaryHeaders : any = {};
5050

src/gen/api/payrollAUApi.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Payroll AU API
33
* This is the Xero Payroll API for orgs in Australia region.
44
*
5-
* The version of the OpenAPI document: 3.0.3
5+
* The version of the OpenAPI document: 4.0.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -53,7 +53,7 @@ export enum PayrollAuApiApiKeys {
5353

5454
export class PayrollAuApi {
5555
protected _basePath = defaultBasePath;
56-
protected defaultHeaders : any = {'user-agent': 'xero-node-6.0.0'};
56+
protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'};
5757
protected _useQuerystring : boolean = false;
5858
protected binaryHeaders : any = {};
5959

src/gen/api/payrollNZApi.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Payroll NZ
33
* This is the Xero Payroll API for orgs in the NZ region.
44
*
5-
* The version of the OpenAPI document: 3.0.3
5+
* The version of the OpenAPI document: 4.0.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -94,7 +94,7 @@ export enum PayrollNzApiApiKeys {
9494

9595
export class PayrollNzApi {
9696
protected _basePath = defaultBasePath;
97-
protected defaultHeaders : any = {'user-agent': 'xero-node-6.0.0'};
97+
protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'};
9898
protected _useQuerystring : boolean = false;
9999
protected binaryHeaders : any = {};
100100

src/gen/api/payrollUKApi.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Payroll UK
33
* This is the Xero Payroll API for orgs in the UK region.
44
*
5-
* The version of the OpenAPI document: 3.0.3
5+
* The version of the OpenAPI document: 4.0.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -94,7 +94,7 @@ export enum PayrollUkApiApiKeys {
9494

9595
export class PayrollUkApi {
9696
protected _basePath = defaultBasePath;
97-
protected defaultHeaders : any = {'user-agent': 'xero-node-6.0.0'};
97+
protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'};
9898
protected _useQuerystring : boolean = false;
9999
protected binaryHeaders : any = {};
100100

src/gen/api/projectApi.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Projects API
33
* This is the Xero Projects API
44
*
5-
* The version of the OpenAPI document: 3.0.3
5+
* The version of the OpenAPI document: 4.0.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -44,7 +44,7 @@ export enum ProjectApiApiKeys {
4444

4545
export class ProjectApi {
4646
protected _basePath = defaultBasePath;
47-
protected defaultHeaders : any = {'user-agent': 'xero-node-6.0.0'};
47+
protected defaultHeaders : any = {'user-agent': 'xero-node-7.0.0'};
4848
protected _useQuerystring : boolean = false;
4949
protected binaryHeaders : any = {};
5050

src/gen/model/accounting/organisation.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,10 @@ export namespace Organisation {
385385
GSTCASHBOOK = <any> 'GST_CASHBOOK',
386386
NONGSTCASHBOOK = <any> 'NON_GST_CASHBOOK',
387387
ULTIMATE = <any> 'ULTIMATE',
388-
LITE = <any> 'LITE'
388+
LITE = <any> 'LITE',
389+
IGNITE = <any> 'IGNITE',
390+
GROW = <any> 'GROW',
391+
COMPREHENSIVE = <any> 'COMPREHENSIVE'
389392
}
390393
export enum EditionEnum {
391394
BUSINESS = <any> 'BUSINESS',

src/gen/model/files/association.ts

+27
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@ import { ObjectGroup } from '././objectGroup';
22
import { ObjectType } from '././objectType';
33

44
export class Association {
5+
/**
6+
* Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.
7+
*/
8+
'sendWithObject'?: boolean;
9+
/**
10+
* The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.
11+
*/
12+
'name'?: string;
13+
/**
14+
* The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.
15+
*/
16+
'size'?: number;
517
/**
618
* The unique identifier of the file
719
*/
@@ -16,6 +28,21 @@ export class Association {
1628
static discriminator: string | undefined = undefined;
1729

1830
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
31+
{
32+
"name": "sendWithObject",
33+
"baseName": "SendWithObject",
34+
"type": "boolean"
35+
},
36+
{
37+
"name": "name",
38+
"baseName": "Name",
39+
"type": "string"
40+
},
41+
{
42+
"name": "size",
43+
"baseName": "Size",
44+
"type": "number"
45+
},
1946
{
2047
"name": "fileId",
2148
"baseName": "FileId",

0 commit comments

Comments
 (0)