xero-node 4.28.0 → 4.29.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/README.md +2 -2
- package/dist/gen/api/accountingApi.d.ts +1 -1
- package/dist/gen/api/accountingApi.js +2 -2
- package/dist/gen/api/appStoreApi.d.ts +49 -1
- package/dist/gen/api/appStoreApi.js +203 -2
- package/dist/gen/api/appStoreApi.js.map +1 -1
- 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 -1
- package/dist/gen/api/payrollNZApi.js +2 -2
- package/dist/gen/api/payrollUKApi.d.ts +1 -1
- package/dist/gen/api/payrollUKApi.js +2 -2
- package/dist/gen/api/projectApi.d.ts +1 -1
- package/dist/gen/api/projectApi.js +2 -2
- package/dist/gen/model/accounting/budgetLines.d.ts +29 -0
- package/dist/gen/model/accounting/budgetLines.js +33 -0
- package/dist/gen/model/accounting/budgetLines.js.map +1 -0
- package/dist/gen/model/accounting/lineItem.d.ts +2 -2
- package/dist/gen/model/accounting/tenNinteyNineContact.d.ts +112 -0
- package/dist/gen/model/accounting/tenNinteyNineContact.js +133 -0
- package/dist/gen/model/accounting/tenNinteyNineContact.js.map +1 -0
- package/dist/gen/model/accounting/timeZone.d.ts +123 -91
- package/dist/gen/model/accounting/timeZone.js +123 -91
- package/dist/gen/model/accounting/timeZone.js.map +1 -1
- package/dist/gen/model/appstore/createUsageRecord.d.ts +24 -0
- package/dist/gen/model/appstore/createUsageRecord.js +26 -0
- package/dist/gen/model/appstore/createUsageRecord.js.map +1 -0
- package/dist/gen/model/appstore/models.d.ts +4 -0
- package/dist/gen/model/appstore/models.js +12 -0
- package/dist/gen/model/appstore/models.js.map +1 -1
- package/dist/gen/model/appstore/updateUsageRecord.d.ts +20 -0
- package/dist/gen/model/appstore/updateUsageRecord.js +21 -0
- package/dist/gen/model/appstore/updateUsageRecord.js.map +1 -0
- package/dist/gen/model/appstore/usageRecord.d.ts +45 -0
- package/dist/gen/model/appstore/usageRecord.js +53 -0
- package/dist/gen/model/appstore/usageRecord.js.map +1 -0
- package/dist/gen/model/appstore/usageRecordsList.d.ts +21 -0
- package/dist/gen/model/appstore/usageRecordsList.js +21 -0
- package/dist/gen/model/appstore/usageRecordsList.js.map +1 -0
- package/dist/gen/model/files/fileResponse204.d.ts +17 -0
- package/dist/gen/model/files/fileResponse204.js +18 -0
- package/dist/gen/model/files/fileResponse204.js.map +1 -0
- package/dist/gen/model/files/inlineObject.d.ts +20 -0
- package/dist/gen/model/files/inlineObject.js +33 -0
- package/dist/gen/model/files/inlineObject.js.map +1 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ It is recommended that you store this token set JSON in a datastore in relation
|
|
|
112
112
|
| access_token: | "xxx.yyy.zzz" | [Bearer token](https://oauth.net/2/jwt/) with a 30 minute expiration required for all API calls |
|
|
113
113
|
| expires_in: | 1800 | Time in seconds till the token expires - 1800s is 30m |
|
|
114
114
|
| refresh_token: | "XXXXXXX" | Alphanumeric string used to obtain a new Token Set w/ a fresh access_token - 60 day expiry |
|
|
115
|
-
| scope: | "email profile openid accounting.transactions offline_access" | The Xero permissions that are embedded in the `access_token` |
|
|
115
|
+
| scope: | ["email", "profile", "openid", "accounting.transactions", "offline_access"] | The Xero permissions that are embedded in the `access_token` |
|
|
116
116
|
|
|
117
117
|
Example Token Set JSON:
|
|
118
118
|
```
|
|
@@ -122,7 +122,7 @@ Example Token Set JSON:
|
|
|
122
122
|
"expires_in": 1800,
|
|
123
123
|
"token_type": "Bearer",
|
|
124
124
|
"refresh_token": "xxxxxxxxx",
|
|
125
|
-
"scope": "email profile openid accounting.transactions offline_access"
|
|
125
|
+
"scope": ["email", "profile", "openid", "accounting.transactions", "offline_access"]
|
|
126
126
|
}
|
|
127
127
|
```
|
|
128
128
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Accounting API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.31.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Accounting API
|
|
4
4
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.31.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var AccountingApiApiKeys;
|
|
|
34
34
|
class AccountingApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.29.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero AppStore API
|
|
3
3
|
* These endpoints are for Xero Partners to interact with the App Store Billing platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.31.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/// <reference types="node" />
|
|
13
13
|
import http = require('http');
|
|
14
|
+
import { CreateUsageRecord } from '../model/appstore/createUsageRecord';
|
|
14
15
|
import { Subscription } from '../model/appstore/subscription';
|
|
16
|
+
import { UpdateUsageRecord } from '../model/appstore/updateUsageRecord';
|
|
17
|
+
import { UsageRecord } from '../model/appstore/usageRecord';
|
|
18
|
+
import { UsageRecordsList } from '../model/appstore/usageRecordsList';
|
|
15
19
|
import { Authentication } from '../model/appstore/models';
|
|
16
20
|
import { OAuth } from '../model/appstore/models';
|
|
17
21
|
export declare enum AppStoreApiApiKeys {
|
|
@@ -45,4 +49,48 @@ export declare class AppStoreApi {
|
|
|
45
49
|
response: http.IncomingMessage;
|
|
46
50
|
body: Subscription;
|
|
47
51
|
}>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @summary Gets all usage records related to the subscription
|
|
55
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
56
|
+
*/
|
|
57
|
+
getUsageRecords(subscriptionId: string, options?: {
|
|
58
|
+
headers: {
|
|
59
|
+
[name: string]: string;
|
|
60
|
+
};
|
|
61
|
+
}): Promise<{
|
|
62
|
+
response: http.IncomingMessage;
|
|
63
|
+
body: UsageRecordsList;
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Send metered usage belonging to this subscription and subscription item
|
|
68
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
69
|
+
* @param subscriptionItemId The unique identifier of the subscriptionItem
|
|
70
|
+
* @param createUsageRecord Contains the quantity for the usage record to create
|
|
71
|
+
*/
|
|
72
|
+
postUsageRecords(subscriptionId: string, subscriptionItemId: string, createUsageRecord: CreateUsageRecord, options?: {
|
|
73
|
+
headers: {
|
|
74
|
+
[name: string]: string;
|
|
75
|
+
};
|
|
76
|
+
}): Promise<{
|
|
77
|
+
response: http.IncomingMessage;
|
|
78
|
+
body: UsageRecord;
|
|
79
|
+
}>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @summary Update and existing metered usage belonging to this subscription and subscription item
|
|
83
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
84
|
+
* @param subscriptionItemId The unique identifier of the subscriptionItem
|
|
85
|
+
* @param usageRecordId The unique identifier of the usage record
|
|
86
|
+
* @param updateUsageRecord Contains the quantity for the usage record to update
|
|
87
|
+
*/
|
|
88
|
+
putUsageRecords(subscriptionId: string, subscriptionItemId: string, usageRecordId: string, updateUsageRecord: UpdateUsageRecord, options?: {
|
|
89
|
+
headers: {
|
|
90
|
+
[name: string]: string;
|
|
91
|
+
};
|
|
92
|
+
}): Promise<{
|
|
93
|
+
response: http.IncomingMessage;
|
|
94
|
+
body: UsageRecord;
|
|
95
|
+
}>;
|
|
48
96
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero AppStore API
|
|
4
4
|
* These endpoints are for Xero Partners to interact with the App Store Billing platform
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.31.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var AppStoreApiApiKeys;
|
|
|
34
34
|
class AppStoreApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.29.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -127,6 +127,207 @@ class AppStoreApi {
|
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @summary Gets all usage records related to the subscription
|
|
133
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
134
|
+
*/
|
|
135
|
+
getUsageRecords(subscriptionId, options = { headers: {} }) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
const localVarPath = this.basePath + '/subscriptions/{subscriptionId}/usage-records'
|
|
138
|
+
.replace('{' + 'subscriptionId' + '}', encodeURIComponent(String(subscriptionId)));
|
|
139
|
+
let localVarQueryParameters = {};
|
|
140
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
141
|
+
let localVarFormParams = {};
|
|
142
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
143
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
144
|
+
throw new Error('Required parameter subscriptionId was null or undefined when calling getUsageRecords.');
|
|
145
|
+
}
|
|
146
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
147
|
+
let localVarUseFormData = false;
|
|
148
|
+
let localVarRequestOptions = {
|
|
149
|
+
method: 'GET',
|
|
150
|
+
qs: localVarQueryParameters,
|
|
151
|
+
headers: localVarHeaderParams,
|
|
152
|
+
uri: localVarPath,
|
|
153
|
+
useQuerystring: this._useQuerystring,
|
|
154
|
+
json: true,
|
|
155
|
+
};
|
|
156
|
+
let authenticationPromise = Promise.resolve();
|
|
157
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
158
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
159
|
+
return authenticationPromise.then(() => {
|
|
160
|
+
if (Object.keys(localVarFormParams).length) {
|
|
161
|
+
if (localVarUseFormData) {
|
|
162
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return new Promise((resolve, reject) => {
|
|
169
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
170
|
+
if (error) {
|
|
171
|
+
reject(error);
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
body = models_1.ObjectSerializer.deserialize(body, "UsageRecordsList");
|
|
175
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
176
|
+
resolve({ response: response, body: body });
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
reject({ response: response, body: body });
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @summary Send metered usage belonging to this subscription and subscription item
|
|
190
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
191
|
+
* @param subscriptionItemId The unique identifier of the subscriptionItem
|
|
192
|
+
* @param createUsageRecord Contains the quantity for the usage record to create
|
|
193
|
+
*/
|
|
194
|
+
postUsageRecords(subscriptionId, subscriptionItemId, createUsageRecord, options = { headers: {} }) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
const localVarPath = this.basePath + '/subscriptions/{subscriptionId}/items/{subscriptionItemId}/usage-records'
|
|
197
|
+
.replace('{' + 'subscriptionId' + '}', encodeURIComponent(String(subscriptionId)))
|
|
198
|
+
.replace('{' + 'subscriptionItemId' + '}', encodeURIComponent(String(subscriptionItemId)));
|
|
199
|
+
let localVarQueryParameters = {};
|
|
200
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
201
|
+
let localVarFormParams = {};
|
|
202
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
203
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
204
|
+
throw new Error('Required parameter subscriptionId was null or undefined when calling postUsageRecords.');
|
|
205
|
+
}
|
|
206
|
+
// verify required parameter 'subscriptionItemId' is not null or undefined
|
|
207
|
+
if (subscriptionItemId === null || subscriptionItemId === undefined) {
|
|
208
|
+
throw new Error('Required parameter subscriptionItemId was null or undefined when calling postUsageRecords.');
|
|
209
|
+
}
|
|
210
|
+
// verify required parameter 'createUsageRecord' is not null or undefined
|
|
211
|
+
if (createUsageRecord === null || createUsageRecord === undefined) {
|
|
212
|
+
throw new Error('Required parameter createUsageRecord was null or undefined when calling postUsageRecords.');
|
|
213
|
+
}
|
|
214
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
215
|
+
let localVarUseFormData = false;
|
|
216
|
+
let localVarRequestOptions = {
|
|
217
|
+
method: 'POST',
|
|
218
|
+
qs: localVarQueryParameters,
|
|
219
|
+
headers: localVarHeaderParams,
|
|
220
|
+
uri: localVarPath,
|
|
221
|
+
useQuerystring: this._useQuerystring,
|
|
222
|
+
json: true,
|
|
223
|
+
body: models_1.ObjectSerializer.serialize(createUsageRecord, "CreateUsageRecord")
|
|
224
|
+
};
|
|
225
|
+
let authenticationPromise = Promise.resolve();
|
|
226
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
227
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
228
|
+
return authenticationPromise.then(() => {
|
|
229
|
+
if (Object.keys(localVarFormParams).length) {
|
|
230
|
+
if (localVarUseFormData) {
|
|
231
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return new Promise((resolve, reject) => {
|
|
238
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
239
|
+
if (error) {
|
|
240
|
+
reject(error);
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
body = models_1.ObjectSerializer.deserialize(body, "UsageRecord");
|
|
244
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
245
|
+
resolve({ response: response, body: body });
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
reject({ response: response, body: body });
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @summary Update and existing metered usage belonging to this subscription and subscription item
|
|
259
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
260
|
+
* @param subscriptionItemId The unique identifier of the subscriptionItem
|
|
261
|
+
* @param usageRecordId The unique identifier of the usage record
|
|
262
|
+
* @param updateUsageRecord Contains the quantity for the usage record to update
|
|
263
|
+
*/
|
|
264
|
+
putUsageRecords(subscriptionId, subscriptionItemId, usageRecordId, updateUsageRecord, options = { headers: {} }) {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
const localVarPath = this.basePath + '/subscriptions/{subscriptionId}/items/{subscriptionItemId}/usage-records/{usageRecordId}'
|
|
267
|
+
.replace('{' + 'subscriptionId' + '}', encodeURIComponent(String(subscriptionId)))
|
|
268
|
+
.replace('{' + 'subscriptionItemId' + '}', encodeURIComponent(String(subscriptionItemId)))
|
|
269
|
+
.replace('{' + 'usageRecordId' + '}', encodeURIComponent(String(usageRecordId)));
|
|
270
|
+
let localVarQueryParameters = {};
|
|
271
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
272
|
+
let localVarFormParams = {};
|
|
273
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
274
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
275
|
+
throw new Error('Required parameter subscriptionId was null or undefined when calling putUsageRecords.');
|
|
276
|
+
}
|
|
277
|
+
// verify required parameter 'subscriptionItemId' is not null or undefined
|
|
278
|
+
if (subscriptionItemId === null || subscriptionItemId === undefined) {
|
|
279
|
+
throw new Error('Required parameter subscriptionItemId was null or undefined when calling putUsageRecords.');
|
|
280
|
+
}
|
|
281
|
+
// verify required parameter 'usageRecordId' is not null or undefined
|
|
282
|
+
if (usageRecordId === null || usageRecordId === undefined) {
|
|
283
|
+
throw new Error('Required parameter usageRecordId was null or undefined when calling putUsageRecords.');
|
|
284
|
+
}
|
|
285
|
+
// verify required parameter 'updateUsageRecord' is not null or undefined
|
|
286
|
+
if (updateUsageRecord === null || updateUsageRecord === undefined) {
|
|
287
|
+
throw new Error('Required parameter updateUsageRecord was null or undefined when calling putUsageRecords.');
|
|
288
|
+
}
|
|
289
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
290
|
+
let localVarUseFormData = false;
|
|
291
|
+
let localVarRequestOptions = {
|
|
292
|
+
method: 'PUT',
|
|
293
|
+
qs: localVarQueryParameters,
|
|
294
|
+
headers: localVarHeaderParams,
|
|
295
|
+
uri: localVarPath,
|
|
296
|
+
useQuerystring: this._useQuerystring,
|
|
297
|
+
json: true,
|
|
298
|
+
body: models_1.ObjectSerializer.serialize(updateUsageRecord, "UpdateUsageRecord")
|
|
299
|
+
};
|
|
300
|
+
let authenticationPromise = Promise.resolve();
|
|
301
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
302
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
303
|
+
return authenticationPromise.then(() => {
|
|
304
|
+
if (Object.keys(localVarFormParams).length) {
|
|
305
|
+
if (localVarUseFormData) {
|
|
306
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return new Promise((resolve, reject) => {
|
|
313
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
314
|
+
if (error) {
|
|
315
|
+
reject(error);
|
|
316
|
+
}
|
|
317
|
+
else {
|
|
318
|
+
body = models_1.ObjectSerializer.deserialize(body, "UsageRecord");
|
|
319
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
320
|
+
resolve({ response: response, body: body });
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
reject({ response: response, body: body });
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
}
|
|
130
331
|
}
|
|
131
332
|
exports.AppStoreApi = AppStoreApi;
|
|
132
333
|
//# sourceMappingURL=appStoreApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appStoreApi.js","sourceRoot":"","sources":["../../../src/gen/api/appStoreApi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;AAEH,2CAA4C;
|
|
1
|
+
{"version":3,"file":"appStoreApi.js","sourceRoot":"","sources":["../../../src/gen/api/appStoreApi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;AAEH,2CAA4C;AAY5C,qDAAsF;AACtF,qDAAiD;AAEjD,IAAI,eAAe,GAAG,mCAAmC,CAAC;AAE1D,kDAAkD;AAClD,kDAAkD;AAClD,kDAAkD;AAElD,IAAY,kBACX;AADD,WAAY,kBAAkB;AAC9B,CAAC,EADW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAC7B;AAED,MAAa,WAAW;IAYpB,YAAY,kBAA0B,EAAE,QAAiB,EAAE,QAAiB;QAXlE,cAAS,GAAG,eAAe,CAAC;QAC5B,mBAAc,GAAS,EAAC,YAAY,EAAE,kBAAkB,EAAC,CAAC;QAC1D,oBAAe,GAAa,KAAK,CAAC;QAClC,kBAAa,GAAS,EAAE,CAAC;QAEzB,oBAAe,GAAG;YACxB,SAAS,EAAkB,IAAI,iB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,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC,CAAC;YAC9H,OAAO,qBAAqB,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnC,IAAI,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,MAAM,EAAE;oBACxC,IAAI,mBAAmB,EAAE;wBACf,sBAAuB,CAAC,QAAQ,GAAG,kBAAkB,CAAC;qBAC/D;yBAAM;wBACH,sBAAsB,CAAC,IAAI,GAAG,kBAAkB,CAAC;qBACpD;iBACJ;gBACD,OAAO,IAAI,OAAO,CAA0D,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;oBAC5F,eAAe,CAAC,sBAAsB,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;wBAC9D,IAAI,KAAK,EAAE;4BACP,MAAM,CAAC,KAAK,CAAC,CAAC;yBACjB;6BAAM;4BACH,IAAI,GAAG,yBAAgB,CAAC,WAAW,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;4BACzD,IAAI,QAAQ,CAAC,UAAU,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,EAAE;gCACjF,OAAO,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;6BAC/C;iCAAM;gCACH,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;6BAC9C;yBACJ;oBACL,CAAC,CAAC,CAAC;gBACP,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AA3TD,kCA2TC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Assets API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.31.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/gen/api/assetApi.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Assets API
|
|
4
4
|
* 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.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.31.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var AssetApiApiKeys;
|
|
|
34
34
|
class AssetApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.29.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Bank Feeds API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.31.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Bank Feeds API
|
|
4
4
|
* 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.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.31.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var BankFeedsApiApiKeys;
|
|
|
34
34
|
class BankFeedsApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.29.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Files API
|
|
3
3
|
* These endpoints are specific to Xero Files API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.31.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/gen/api/filesApi.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Files API
|
|
4
4
|
* These endpoints are specific to Xero Files API
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.31.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var FilesApiApiKeys;
|
|
|
34
34
|
class FilesApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.29.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Finance API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.31.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Finance API
|
|
4
4
|
* 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.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.31.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var FinanceApiApiKeys;
|
|
|
34
34
|
class FinanceApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.29.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Payroll AU API
|
|
3
3
|
* This is the Xero Payroll API for orgs in Australia region.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.31.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Payroll AU API
|
|
4
4
|
* This is the Xero Payroll API for orgs in Australia region.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.31.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var PayrollAuApiApiKeys;
|
|
|
34
34
|
class PayrollAuApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.29.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Payroll NZ
|
|
3
3
|
* This is the Xero Payroll API for orgs in the NZ region.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.31.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Payroll NZ
|
|
4
4
|
* This is the Xero Payroll API for orgs in the NZ region.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.31.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var PayrollNzApiApiKeys;
|
|
|
34
34
|
class PayrollNzApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.29.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -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: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.31.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.31.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var PayrollUkApiApiKeys;
|
|
|
34
34
|
class PayrollUkApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.29.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Projects API
|
|
3
3
|
* This is the Xero Projects API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.31.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Projects API
|
|
4
4
|
* This is the Xero Projects API
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.31.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var ProjectApiApiKeys;
|
|
|
34
34
|
class ProjectApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.29.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare class BudgetLines {
|
|
2
|
+
/**
|
|
3
|
+
* Period the amount applies to (e.g. “2019-08”)
|
|
4
|
+
*/
|
|
5
|
+
'period'?: string;
|
|
6
|
+
/**
|
|
7
|
+
* LineItem Quantity
|
|
8
|
+
*/
|
|
9
|
+
'amount'?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Budgeted amount
|
|
12
|
+
*/
|
|
13
|
+
'unitAmount'?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Any footnotes associated with this balance
|
|
16
|
+
*/
|
|
17
|
+
'notes'?: string;
|
|
18
|
+
static discriminator: string | undefined;
|
|
19
|
+
static attributeTypeMap: Array<{
|
|
20
|
+
name: string;
|
|
21
|
+
baseName: string;
|
|
22
|
+
type: string;
|
|
23
|
+
}>;
|
|
24
|
+
static getAttributeTypeMap(): {
|
|
25
|
+
name: string;
|
|
26
|
+
baseName: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
}
|