Skip to content

Commit 9cac10b

Browse files
Build for version 11.0.0 | NI category updates (#748)
Build for version 11.0.0 | NI category updates (#748)
1 parent ebd8006 commit 9cac10b

29 files changed

+301
-60
lines changed

docs/accounting/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6340,7 +6340,7 @@
63406340
<nav id="scrollingNav">
63416341
<ul class="sidenav nav nav-list">
63426342
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6343-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>10.1.0</li>
6343+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>11.0.0</li>
63446344
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
63456345
<li data-group="Accounting" data-name="createAccount" class="">
63466346
<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>10.1.0</li>
1245+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>11.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>10.1.0</li>
1396+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>11.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>10.1.0</li>
1272+
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>11.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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@
11711171
<nav id="scrollingNav">
11721172
<ul class="sidenav nav nav-list">
11731173
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1174-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>10.1.0</li>
1174+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>11.0.0</li>
11751175
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11761176
<li data-group="Files" data-name="createFileAssociation" class="">
11771177
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

docs/finance/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2717,7 +2717,7 @@
27172717
<nav id="scrollingNav">
27182718
<ul class="sidenav nav nav-list">
27192719
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2720-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>10.1.0</li>
2720+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>11.0.0</li>
27212721
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27222722
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27232723
<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>10.1.0</li>
3416+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>11.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
@@ -4088,7 +4088,7 @@
40884088
<nav id="scrollingNav">
40894089
<ul class="sidenav nav nav-list">
40904090
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
4091-
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>10.1.0</li>
4091+
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>11.0.0</li>
40924092
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
40934093
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
40944094
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>

docs/payroll-uk/index.html

+92-7
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,16 @@
15951595
"format" : "date-time",
15961596
"x-is-datetime" : true
15971597
},
1598+
"niCategory" : {
1599+
"$ref" : "#/components/schemas/NICategoryLetter"
1600+
},
1601+
"niCategories" : {
1602+
"type" : "array",
1603+
"description" : "The employee's NI categories",
1604+
"items" : {
1605+
"$ref" : "#/components/schemas/NICategory"
1606+
}
1607+
},
15981608
"nationalInsuranceNumber" : {
15991609
"type" : "string",
16001610
"description" : "National insurance number of the employee",
@@ -2262,7 +2272,7 @@
22622272
};
22632273
defs["Employment"] = {
22642274
"title" : "",
2265-
"required" : [ "EmployeeNumber", "NICategory", "PayrollCalendarID", "StartDate" ],
2275+
"required" : [ "EmployeeNumber", "NICategories", "PayrollCalendarID", "StartDate" ],
22662276
"type" : "object",
22672277
"properties" : {
22682278
"payrollCalendarID" : {
@@ -2282,10 +2292,14 @@
22822292
"example" : "7"
22832293
},
22842294
"niCategory" : {
2285-
"type" : "string",
2286-
"description" : "The NI Category of the employee",
2287-
"example" : "A",
2288-
"enum" : [ "A", "B", "C", "F", "H", "I", "J", "L", "M", "S", "V", "X", "Z" ]
2295+
"$ref" : "#/components/schemas/NICategoryLetter"
2296+
},
2297+
"niCategories" : {
2298+
"type" : "array",
2299+
"description" : "The employee's NI categories",
2300+
"items" : {
2301+
"$ref" : "#/components/schemas/NICategory"
2302+
}
22892303
}
22902304
},
22912305
"description" : ""
@@ -2502,6 +2516,75 @@
25022516
}
25032517
},
25042518
"description" : ""
2519+
};
2520+
defs["NICategory"] = {
2521+
"title" : "",
2522+
"required" : [ "niCategory", "workplacePostcode" ],
2523+
"type" : "object",
2524+
"properties" : {
2525+
"startDate" : {
2526+
"type" : "string",
2527+
"description" : "The start date of the NI category (YYYY-MM-DD)",
2528+
"format" : "date",
2529+
"example" : "2024-12-02",
2530+
"x-is-date" : true
2531+
},
2532+
"niCategory" : {
2533+
"$ref" : "#/components/schemas/NICategoryLetter"
2534+
},
2535+
"niCategoryID" : {
2536+
"type" : "number",
2537+
"description" : "Xero unique identifier for the NI category",
2538+
"example" : 15
2539+
},
2540+
"dateFirstEmployedAsCivilian" : {
2541+
"type" : "string",
2542+
"description" : "The date in which the employee was first employed as a civilian (YYYY-MM-DD)",
2543+
"format" : "date",
2544+
"example" : "2024-12-02",
2545+
"x-is-date" : true
2546+
},
2547+
"workplacePostcode" : {
2548+
"type" : "string",
2549+
"description" : "The workplace postcode",
2550+
"example" : "SW1A 1AA"
2551+
}
2552+
},
2553+
"description" : "",
2554+
"oneOf" : [ {
2555+
"$ref" : "#/components/schemas/NICategory_oneOf"
2556+
}, {
2557+
"$ref" : "#/components/schemas/NICategory_oneOf_1"
2558+
} ]
2559+
};
2560+
defs["NICategoryLetter"] = {
2561+
"title" : "",
2562+
"type" : "string",
2563+
"description" : "The employee's NI Category letter.",
2564+
"example" : "I",
2565+
"enum" : [ "A", "B", "C", "D", "E", "F", "H", "I", "J", "K", "L", "M", "N", "S", "V", "X", "Z" ]
2566+
};
2567+
defs["NICategory_oneOf"] = {
2568+
"title" : "",
2569+
"required" : [ "workplacePostcode" ],
2570+
"properties" : {
2571+
"niCategory" : {
2572+
"type" : "string",
2573+
"enum" : [ "F", "I", "L", "S", "N", "E", "D", "K" ]
2574+
}
2575+
},
2576+
"description" : ""
2577+
};
2578+
defs["NICategory_oneOf_1"] = {
2579+
"title" : "",
2580+
"required" : [ "dateFirstEmployedAsCivilian" ],
2581+
"properties" : {
2582+
"niCategory" : {
2583+
"type" : "string",
2584+
"enum" : [ "V" ]
2585+
}
2586+
},
2587+
"description" : ""
25052588
};
25062589
defs["Pagination"] = {
25072590
"title" : "",
@@ -3518,7 +3601,7 @@
35183601
<nav id="scrollingNav">
35193602
<ul class="sidenav nav nav-list">
35203603
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
3521-
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>10.1.0</li>
3604+
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>11.0.0</li>
35223605
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
35233606
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
35243607
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>
@@ -5715,6 +5798,8 @@ <h3>Usage and SDK Samples</h3>
57155798
startDate: startDate
57165799
};
57175800

5801+
const niCategories: NICategories = {
5802+
57185803
try {
57195804
const response = await xero.accountingApi.createEmployment(xeroTenantId, employeeID, employment, idempotencyKey);
57205805
console.log(response.body || response.response.statusCode)
@@ -5846,7 +5931,7 @@ <h2>Parameters</h2>
58465931
"schema" : {
58475932
"$ref" : "#/components/schemas/Employment"
58485933
},
5849-
"example" : "{ \"PayrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"StartDate\": \"2020-04-01\", \"EmployeeNumber\": \"123ABC\", \"NICategory\": \"A\" }"
5934+
"example" : "{ \"PayrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"StartDate\": \"2020-04-01\", \"NICategories\": [ { \"NICategory\": \"A\", \"StartDate\": \"2020-05-01\" } ], \"EmployeeNumber\": \"123ABC\" }"
58505935
}
58515936
},
58525937
"required" : true

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>10.1.0</li>
1466+
<li class="nav-header" data-group="Project"><strong>VSN: </strong>11.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": "10.1.0",
3+
"version": "11.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: 7.1.0
5+
* The version of the OpenAPI document: 8.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-10.1.0'};
88+
protected defaultHeaders : any = {'user-agent': 'xero-node-11.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: 7.1.0
5+
* The version of the OpenAPI document: 8.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-10.1.0'};
41+
protected defaultHeaders : any = {'user-agent': 'xero-node-11.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: 7.1.0
5+
* The version of the OpenAPI document: 8.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-10.1.0'};
40+
protected defaultHeaders : any = {'user-agent': 'xero-node-11.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: 7.1.0
5+
* The version of the OpenAPI document: 8.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-10.1.0'};
39+
protected defaultHeaders : any = {'user-agent': 'xero-node-11.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: 7.1.0
5+
* The version of the OpenAPI document: 8.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-10.1.0'};
39+
protected defaultHeaders : any = {'user-agent': 'xero-node-11.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: 7.1.0
5+
* The version of the OpenAPI document: 8.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-10.1.0'};
47+
protected defaultHeaders : any = {'user-agent': 'xero-node-11.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: 7.1.0
5+
* The version of the OpenAPI document: 8.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-10.1.0'};
56+
protected defaultHeaders : any = {'user-agent': 'xero-node-11.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: 7.1.0
5+
* The version of the OpenAPI document: 8.0.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -97,7 +97,7 @@ export enum PayrollNzApiApiKeys {
9797

9898
export class PayrollNzApi {
9999
protected _basePath = defaultBasePath;
100-
protected defaultHeaders : any = {'user-agent': 'xero-node-10.1.0'};
100+
protected defaultHeaders : any = {'user-agent': 'xero-node-11.0.0'};
101101
protected _useQuerystring : boolean = false;
102102
protected binaryHeaders : any = {};
103103

0 commit comments

Comments
 (0)