xero-node 13.1.0 → 13.2.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 +1 -1
- package/dist/gen/api/accountingApi.js +2 -2
- 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 -17
- package/dist/gen/api/payrollNZApi.js +2 -81
- package/dist/gen/api/payrollNZApi.js.map +1 -1
- package/dist/gen/api/payrollUKApi.d.ts +1 -18
- package/dist/gen/api/payrollUKApi.js +2 -81
- package/dist/gen/api/payrollUKApi.js.map +1 -1
- package/dist/gen/api/projectApi.d.ts +1 -1
- package/dist/gen/api/projectApi.js +2 -2
- package/dist/gen/model/accounting/contact.d.ts +10 -0
- package/dist/gen/model/accounting/contact.js +12 -0
- package/dist/gen/model/accounting/contact.js.map +1 -1
- package/dist/gen/model/accounting/models.js +1 -0
- package/dist/gen/model/accounting/models.js.map +1 -1
- package/dist/gen/model/assets/bookDepreciationDetail.d.ts +20 -0
- package/dist/gen/model/assets/bookDepreciationDetail.js +25 -0
- package/dist/gen/model/assets/bookDepreciationDetail.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Payroll UK
|
|
3
3
|
* This is the Xero Payroll API for orgs in the UK region.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 9.
|
|
5
|
+
* The version of the OpenAPI document: 9.2.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -47,7 +47,6 @@ import { LeavePeriods } from '../model/payroll-uk/leavePeriods';
|
|
|
47
47
|
import { LeaveType } from '../model/payroll-uk/leaveType';
|
|
48
48
|
import { LeaveTypeObject } from '../model/payroll-uk/leaveTypeObject';
|
|
49
49
|
import { LeaveTypes } from '../model/payroll-uk/leaveTypes';
|
|
50
|
-
import { PayRun } from '../model/payroll-uk/payRun';
|
|
51
50
|
import { PayRunCalendar } from '../model/payroll-uk/payRunCalendar';
|
|
52
51
|
import { PayRunCalendarObject } from '../model/payroll-uk/payRunCalendarObject';
|
|
53
52
|
import { PayRunCalendars } from '../model/payroll-uk/payRunCalendars';
|
|
@@ -1104,22 +1103,6 @@ export declare class PayrollUkApi {
|
|
|
1104
1103
|
response: AxiosResponse;
|
|
1105
1104
|
body: SalaryAndWageObject;
|
|
1106
1105
|
}>;
|
|
1107
|
-
/**
|
|
1108
|
-
*
|
|
1109
|
-
* @summary Updates a specific pay run
|
|
1110
|
-
* @param xeroTenantId Xero identifier for Tenant
|
|
1111
|
-
* @param payRunID Identifier for the pay run
|
|
1112
|
-
* @param payRun
|
|
1113
|
-
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1114
|
-
*/
|
|
1115
|
-
updatePayRun(xeroTenantId: string, payRunID: string, payRun: PayRun, idempotencyKey?: string, options?: {
|
|
1116
|
-
headers: {
|
|
1117
|
-
[name: string]: string;
|
|
1118
|
-
};
|
|
1119
|
-
}): Promise<{
|
|
1120
|
-
response: AxiosResponse;
|
|
1121
|
-
body: PayRunObject;
|
|
1122
|
-
}>;
|
|
1123
1106
|
/**
|
|
1124
1107
|
*
|
|
1125
1108
|
* @summary Updates a specific timesheet line for a specific timesheet
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Payroll UK
|
|
4
4
|
* This is the Xero Payroll API for orgs in the UK region.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 9.
|
|
6
|
+
* The version of the OpenAPI document: 9.2.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -38,7 +38,7 @@ var PayrollUkApiApiKeys;
|
|
|
38
38
|
class PayrollUkApi {
|
|
39
39
|
constructor(basePathOrUsername, password, basePath) {
|
|
40
40
|
this._basePath = defaultBasePath;
|
|
41
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-13.
|
|
41
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-13.2.0' };
|
|
42
42
|
this._useQuerystring = false;
|
|
43
43
|
this.binaryHeaders = {};
|
|
44
44
|
this.authentications = {
|
|
@@ -5159,85 +5159,6 @@ class PayrollUkApi {
|
|
|
5159
5159
|
});
|
|
5160
5160
|
});
|
|
5161
5161
|
}
|
|
5162
|
-
/**
|
|
5163
|
-
*
|
|
5164
|
-
* @summary Updates a specific pay run
|
|
5165
|
-
* @param xeroTenantId Xero identifier for Tenant
|
|
5166
|
-
* @param payRunID Identifier for the pay run
|
|
5167
|
-
* @param payRun
|
|
5168
|
-
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
5169
|
-
*/
|
|
5170
|
-
updatePayRun(xeroTenantId_1, payRunID_1, payRun_1, idempotencyKey_1) {
|
|
5171
|
-
return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunID, payRun, idempotencyKey, options = { headers: {} }) {
|
|
5172
|
-
const localVarPath = this.basePath + '/PayRuns/{PayRunID}'
|
|
5173
|
-
.replace('{' + 'PayRunID' + '}', encodeURIComponent(String(payRunID)));
|
|
5174
|
-
let localVarQueryParameters = {};
|
|
5175
|
-
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
5176
|
-
let localVarFormParams = {};
|
|
5177
|
-
let acceptHeadersFromSpec = [
|
|
5178
|
-
"application/json"
|
|
5179
|
-
];
|
|
5180
|
-
const isBufferType = acceptHeadersFromSpec.includes("application/pdf") || acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg");
|
|
5181
|
-
const responseTypeOption = isBufferType ? "arraybuffer" : "json";
|
|
5182
|
-
// verify required parameter 'xeroTenantId' is not null or undefined
|
|
5183
|
-
if (xeroTenantId === null || xeroTenantId === undefined) {
|
|
5184
|
-
throw new Error('Required parameter xeroTenantId was null or undefined when calling updatePayRun.');
|
|
5185
|
-
}
|
|
5186
|
-
// verify required parameter 'payRunID' is not null or undefined
|
|
5187
|
-
if (payRunID === null || payRunID === undefined) {
|
|
5188
|
-
throw new Error('Required parameter payRunID was null or undefined when calling updatePayRun.');
|
|
5189
|
-
}
|
|
5190
|
-
// verify required parameter 'payRun' is not null or undefined
|
|
5191
|
-
if (payRun === null || payRun === undefined) {
|
|
5192
|
-
throw new Error('Required parameter payRun was null or undefined when calling updatePayRun.');
|
|
5193
|
-
}
|
|
5194
|
-
localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
|
|
5195
|
-
localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
|
|
5196
|
-
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
|
|
5197
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
5198
|
-
let localVarUseFormData = false;
|
|
5199
|
-
let localVarRequestOptions = {
|
|
5200
|
-
method: 'PUT',
|
|
5201
|
-
params: localVarQueryParameters,
|
|
5202
|
-
headers: localVarHeaderParams,
|
|
5203
|
-
url: localVarPath,
|
|
5204
|
-
responseType: responseTypeOption,
|
|
5205
|
-
data: models_1.ObjectSerializer.serialize(payRun, "PayRun"),
|
|
5206
|
-
};
|
|
5207
|
-
let authenticationPromise = Promise.resolve();
|
|
5208
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
5209
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5210
|
-
return authenticationPromise.then(() => {
|
|
5211
|
-
if (Object.keys(localVarFormParams).length) {
|
|
5212
|
-
if (localVarUseFormData) {
|
|
5213
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
5214
|
-
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarRequestOptions.headers), { 'Content-Type': 'multipart/form-data' });
|
|
5215
|
-
}
|
|
5216
|
-
else {
|
|
5217
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
5218
|
-
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarRequestOptions.headers), { 'content-type': 'application/x-www-form-urlencoded' });
|
|
5219
|
-
}
|
|
5220
|
-
}
|
|
5221
|
-
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
5222
|
-
let body = null;
|
|
5223
|
-
try {
|
|
5224
|
-
const response = yield (0, axios_1.default)(localVarRequestOptions);
|
|
5225
|
-
body = models_1.ObjectSerializer.deserialize(response.data, "PayRunObject");
|
|
5226
|
-
if (response.status && response.status >= 200 && response.status <= 299) {
|
|
5227
|
-
resolve({ response: response, body: body });
|
|
5228
|
-
}
|
|
5229
|
-
else {
|
|
5230
|
-
reject({ response: response, body: body });
|
|
5231
|
-
}
|
|
5232
|
-
}
|
|
5233
|
-
catch (error) {
|
|
5234
|
-
const errorResponse = new ApiError_1.ApiError(error);
|
|
5235
|
-
reject(JSON.stringify(errorResponse.generateError()));
|
|
5236
|
-
}
|
|
5237
|
-
}));
|
|
5238
|
-
});
|
|
5239
|
-
});
|
|
5240
|
-
}
|
|
5241
5162
|
/**
|
|
5242
5163
|
*
|
|
5243
5164
|
* @summary Updates a specific timesheet line for a specific timesheet
|