yellowgrid-api-ts 3.2.134 → 3.2.135
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/.openapi-generator/FILES +1 -0
- package/README.md +2 -0
- package/api.ts +99 -0
- package/dist/api.d.ts +66 -0
- package/dist/api.js +76 -0
- package/docs/AccountsApi.md +48 -0
- package/docs/TableHistoryEntity.md +35 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -64,6 +64,7 @@ Class | Method | HTTP request | Description
|
|
|
64
64
|
*AccountsApi* | [**getGetClientCredentials**](docs/AccountsApi.md#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\'s client credentials
|
|
65
65
|
*AccountsApi* | [**getGetCustomerKeys**](docs/AccountsApi.md#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys
|
|
66
66
|
*AccountsApi* | [**getGetFinanceSettings**](docs/AccountsApi.md#getgetfinancesettings) | **GET** /admin/accounts/{id}/finance |
|
|
67
|
+
*AccountsApi* | [**getGetLastAccount**](docs/AccountsApi.md#getgetlastaccount) | **GET** /admin/accounts/last | Get Last Account
|
|
67
68
|
*AccountsApi* | [**getGetTcxPartnerDetails**](docs/AccountsApi.md#getgettcxpartnerdetails) | **GET** /admin/accounts/{id}/tcx/partner |
|
|
68
69
|
*AccountsApi* | [**getVerifyEmailAddress**](docs/AccountsApi.md#getverifyemailaddress) | **GET** /accounts/contacts/verify | Verify account email address
|
|
69
70
|
*AccountsApi* | [**patchSetPortalAccess**](docs/AccountsApi.md#patchsetportalaccess) | **PATCH** /admin/accounts/{id}/portal/access/{state} |
|
|
@@ -522,6 +523,7 @@ Class | Method | HTTP request | Description
|
|
|
522
523
|
- [SupplierItemModel](docs/SupplierItemModel.md)
|
|
523
524
|
- [SupplierModel](docs/SupplierModel.md)
|
|
524
525
|
- [SupportTicketModel](docs/SupportTicketModel.md)
|
|
526
|
+
- [TableHistoryEntity](docs/TableHistoryEntity.md)
|
|
525
527
|
- [TcxBackupEntity](docs/TcxBackupEntity.md)
|
|
526
528
|
- [TcxBackupModel](docs/TcxBackupModel.md)
|
|
527
529
|
- [TcxBillingEntity](docs/TcxBillingEntity.md)
|
package/api.ts
CHANGED
|
@@ -995,6 +995,7 @@ export const AuditLogEntityTypeEnum = {
|
|
|
995
995
|
PopsStockTransactions: 'pops_stock_transactions',
|
|
996
996
|
PopsSuppliers: 'pops_suppliers',
|
|
997
997
|
PopsSupplierItems: 'pops_supplier_items',
|
|
998
|
+
PopsTableAttribs: 'pops_table_attribs',
|
|
998
999
|
Pops3cxBackup: 'pops_3cx_backup',
|
|
999
1000
|
Pops3cxBilling: 'pops_3cx_billing',
|
|
1000
1001
|
PopsDeadLicences: 'pops_dead_licences',
|
|
@@ -6898,6 +6899,43 @@ export interface SupportTicketModel {
|
|
|
6898
6899
|
*/
|
|
6899
6900
|
'conversations'?: Array<ConversationModel>;
|
|
6900
6901
|
}
|
|
6902
|
+
/**
|
|
6903
|
+
* TableAttribsEntity
|
|
6904
|
+
*/
|
|
6905
|
+
export interface TableHistoryEntity {
|
|
6906
|
+
/**
|
|
6907
|
+
* ownerId
|
|
6908
|
+
*/
|
|
6909
|
+
'ownerId'?: string;
|
|
6910
|
+
/**
|
|
6911
|
+
* table
|
|
6912
|
+
*/
|
|
6913
|
+
'dbTable'?: string;
|
|
6914
|
+
/**
|
|
6915
|
+
* orderingField
|
|
6916
|
+
*/
|
|
6917
|
+
'orderingField'?: string;
|
|
6918
|
+
/**
|
|
6919
|
+
* asc
|
|
6920
|
+
*/
|
|
6921
|
+
'asc'?: number;
|
|
6922
|
+
/**
|
|
6923
|
+
* perPage
|
|
6924
|
+
*/
|
|
6925
|
+
'perPage'?: number;
|
|
6926
|
+
/**
|
|
6927
|
+
* currPage
|
|
6928
|
+
*/
|
|
6929
|
+
'currPage'?: number;
|
|
6930
|
+
/**
|
|
6931
|
+
* filter
|
|
6932
|
+
*/
|
|
6933
|
+
'filter'?: string;
|
|
6934
|
+
/**
|
|
6935
|
+
* page
|
|
6936
|
+
*/
|
|
6937
|
+
'page'?: number;
|
|
6938
|
+
}
|
|
6901
6939
|
/**
|
|
6902
6940
|
* 3CX Wizard Restore From Backup
|
|
6903
6941
|
*/
|
|
@@ -8938,6 +8976,36 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8938
8976
|
options: localVarRequestOptions,
|
|
8939
8977
|
};
|
|
8940
8978
|
},
|
|
8979
|
+
/**
|
|
8980
|
+
* Get Last Account
|
|
8981
|
+
* @summary Get Last Account
|
|
8982
|
+
* @param {*} [options] Override http request option.
|
|
8983
|
+
* @throws {RequiredError}
|
|
8984
|
+
*/
|
|
8985
|
+
getGetLastAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8986
|
+
const localVarPath = `/admin/accounts/last`;
|
|
8987
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8988
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8989
|
+
let baseOptions;
|
|
8990
|
+
if (configuration) {
|
|
8991
|
+
baseOptions = configuration.baseOptions;
|
|
8992
|
+
}
|
|
8993
|
+
|
|
8994
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8995
|
+
const localVarHeaderParameter = {} as any;
|
|
8996
|
+
const localVarQueryParameter = {} as any;
|
|
8997
|
+
|
|
8998
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
8999
|
+
|
|
9000
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9002
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9003
|
+
|
|
9004
|
+
return {
|
|
9005
|
+
url: toPathString(localVarUrlObj),
|
|
9006
|
+
options: localVarRequestOptions,
|
|
9007
|
+
};
|
|
9008
|
+
},
|
|
8941
9009
|
/**
|
|
8942
9010
|
* Get Account 3CX Details
|
|
8943
9011
|
* @param {string} id Xero ID
|
|
@@ -10099,6 +10167,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
10099
10167
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetFinanceSettings']?.[localVarOperationServerIndex]?.url;
|
|
10100
10168
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10101
10169
|
},
|
|
10170
|
+
/**
|
|
10171
|
+
* Get Last Account
|
|
10172
|
+
* @summary Get Last Account
|
|
10173
|
+
* @param {*} [options] Override http request option.
|
|
10174
|
+
* @throws {RequiredError}
|
|
10175
|
+
*/
|
|
10176
|
+
async getGetLastAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountSummaryDTO>> {
|
|
10177
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetLastAccount(options);
|
|
10178
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10179
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetLastAccount']?.[localVarOperationServerIndex]?.url;
|
|
10180
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10181
|
+
},
|
|
10102
10182
|
/**
|
|
10103
10183
|
* Get Account 3CX Details
|
|
10104
10184
|
* @param {string} id Xero ID
|
|
@@ -10600,6 +10680,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
10600
10680
|
getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
|
|
10601
10681
|
return localVarFp.getGetFinanceSettings(id, options).then((request) => request(axios, basePath));
|
|
10602
10682
|
},
|
|
10683
|
+
/**
|
|
10684
|
+
* Get Last Account
|
|
10685
|
+
* @summary Get Last Account
|
|
10686
|
+
* @param {*} [options] Override http request option.
|
|
10687
|
+
* @throws {RequiredError}
|
|
10688
|
+
*/
|
|
10689
|
+
getGetLastAccount(options?: RawAxiosRequestConfig): AxiosPromise<AccountSummaryDTO> {
|
|
10690
|
+
return localVarFp.getGetLastAccount(options).then((request) => request(axios, basePath));
|
|
10691
|
+
},
|
|
10603
10692
|
/**
|
|
10604
10693
|
* Get Account 3CX Details
|
|
10605
10694
|
* @param {string} id Xero ID
|
|
@@ -11028,6 +11117,16 @@ export class AccountsApi extends BaseAPI {
|
|
|
11028
11117
|
return AccountsApiFp(this.configuration).getGetFinanceSettings(id, options).then((request) => request(this.axios, this.basePath));
|
|
11029
11118
|
}
|
|
11030
11119
|
|
|
11120
|
+
/**
|
|
11121
|
+
* Get Last Account
|
|
11122
|
+
* @summary Get Last Account
|
|
11123
|
+
* @param {*} [options] Override http request option.
|
|
11124
|
+
* @throws {RequiredError}
|
|
11125
|
+
*/
|
|
11126
|
+
public getGetLastAccount(options?: RawAxiosRequestConfig) {
|
|
11127
|
+
return AccountsApiFp(this.configuration).getGetLastAccount(options).then((request) => request(this.axios, this.basePath));
|
|
11128
|
+
}
|
|
11129
|
+
|
|
11031
11130
|
/**
|
|
11032
11131
|
* Get Account 3CX Details
|
|
11033
11132
|
* @param {string} id Xero ID
|
package/dist/api.d.ts
CHANGED
|
@@ -974,6 +974,7 @@ export declare const AuditLogEntityTypeEnum: {
|
|
|
974
974
|
readonly PopsStockTransactions: "pops_stock_transactions";
|
|
975
975
|
readonly PopsSuppliers: "pops_suppliers";
|
|
976
976
|
readonly PopsSupplierItems: "pops_supplier_items";
|
|
977
|
+
readonly PopsTableAttribs: "pops_table_attribs";
|
|
977
978
|
readonly Pops3cxBackup: "pops_3cx_backup";
|
|
978
979
|
readonly Pops3cxBilling: "pops_3cx_billing";
|
|
979
980
|
readonly PopsDeadLicences: "pops_dead_licences";
|
|
@@ -6798,6 +6799,43 @@ export interface SupportTicketModel {
|
|
|
6798
6799
|
*/
|
|
6799
6800
|
'conversations'?: Array<ConversationModel>;
|
|
6800
6801
|
}
|
|
6802
|
+
/**
|
|
6803
|
+
* TableAttribsEntity
|
|
6804
|
+
*/
|
|
6805
|
+
export interface TableHistoryEntity {
|
|
6806
|
+
/**
|
|
6807
|
+
* ownerId
|
|
6808
|
+
*/
|
|
6809
|
+
'ownerId'?: string;
|
|
6810
|
+
/**
|
|
6811
|
+
* table
|
|
6812
|
+
*/
|
|
6813
|
+
'dbTable'?: string;
|
|
6814
|
+
/**
|
|
6815
|
+
* orderingField
|
|
6816
|
+
*/
|
|
6817
|
+
'orderingField'?: string;
|
|
6818
|
+
/**
|
|
6819
|
+
* asc
|
|
6820
|
+
*/
|
|
6821
|
+
'asc'?: number;
|
|
6822
|
+
/**
|
|
6823
|
+
* perPage
|
|
6824
|
+
*/
|
|
6825
|
+
'perPage'?: number;
|
|
6826
|
+
/**
|
|
6827
|
+
* currPage
|
|
6828
|
+
*/
|
|
6829
|
+
'currPage'?: number;
|
|
6830
|
+
/**
|
|
6831
|
+
* filter
|
|
6832
|
+
*/
|
|
6833
|
+
'filter'?: string;
|
|
6834
|
+
/**
|
|
6835
|
+
* page
|
|
6836
|
+
*/
|
|
6837
|
+
'page'?: number;
|
|
6838
|
+
}
|
|
6801
6839
|
/**
|
|
6802
6840
|
* 3CX Wizard Restore From Backup
|
|
6803
6841
|
*/
|
|
@@ -8479,6 +8517,13 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
8479
8517
|
* @throws {RequiredError}
|
|
8480
8518
|
*/
|
|
8481
8519
|
getGetFinanceSettings: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8520
|
+
/**
|
|
8521
|
+
* Get Last Account
|
|
8522
|
+
* @summary Get Last Account
|
|
8523
|
+
* @param {*} [options] Override http request option.
|
|
8524
|
+
* @throws {RequiredError}
|
|
8525
|
+
*/
|
|
8526
|
+
getGetLastAccount: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8482
8527
|
/**
|
|
8483
8528
|
* Get Account 3CX Details
|
|
8484
8529
|
* @param {string} id Xero ID
|
|
@@ -8810,6 +8855,13 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
8810
8855
|
* @throws {RequiredError}
|
|
8811
8856
|
*/
|
|
8812
8857
|
getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
|
|
8858
|
+
/**
|
|
8859
|
+
* Get Last Account
|
|
8860
|
+
* @summary Get Last Account
|
|
8861
|
+
* @param {*} [options] Override http request option.
|
|
8862
|
+
* @throws {RequiredError}
|
|
8863
|
+
*/
|
|
8864
|
+
getGetLastAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountSummaryDTO>>;
|
|
8813
8865
|
/**
|
|
8814
8866
|
* Get Account 3CX Details
|
|
8815
8867
|
* @param {string} id Xero ID
|
|
@@ -9141,6 +9193,13 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
9141
9193
|
* @throws {RequiredError}
|
|
9142
9194
|
*/
|
|
9143
9195
|
getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
|
|
9196
|
+
/**
|
|
9197
|
+
* Get Last Account
|
|
9198
|
+
* @summary Get Last Account
|
|
9199
|
+
* @param {*} [options] Override http request option.
|
|
9200
|
+
* @throws {RequiredError}
|
|
9201
|
+
*/
|
|
9202
|
+
getGetLastAccount(options?: RawAxiosRequestConfig): AxiosPromise<AccountSummaryDTO>;
|
|
9144
9203
|
/**
|
|
9145
9204
|
* Get Account 3CX Details
|
|
9146
9205
|
* @param {string} id Xero ID
|
|
@@ -9472,6 +9531,13 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
9472
9531
|
* @throws {RequiredError}
|
|
9473
9532
|
*/
|
|
9474
9533
|
getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
|
|
9534
|
+
/**
|
|
9535
|
+
* Get Last Account
|
|
9536
|
+
* @summary Get Last Account
|
|
9537
|
+
* @param {*} [options] Override http request option.
|
|
9538
|
+
* @throws {RequiredError}
|
|
9539
|
+
*/
|
|
9540
|
+
getGetLastAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountSummaryDTO, any, {}>>;
|
|
9475
9541
|
/**
|
|
9476
9542
|
* Get Account 3CX Details
|
|
9477
9543
|
* @param {string} id Xero ID
|
package/dist/api.js
CHANGED
|
@@ -178,6 +178,7 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
178
178
|
PopsStockTransactions: 'pops_stock_transactions',
|
|
179
179
|
PopsSuppliers: 'pops_suppliers',
|
|
180
180
|
PopsSupplierItems: 'pops_supplier_items',
|
|
181
|
+
PopsTableAttribs: 'pops_table_attribs',
|
|
181
182
|
Pops3cxBackup: 'pops_3cx_backup',
|
|
182
183
|
Pops3cxBilling: 'pops_3cx_billing',
|
|
183
184
|
PopsDeadLicences: 'pops_dead_licences',
|
|
@@ -946,6 +947,40 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
946
947
|
});
|
|
947
948
|
});
|
|
948
949
|
},
|
|
950
|
+
/**
|
|
951
|
+
* Get Last Account
|
|
952
|
+
* @summary Get Last Account
|
|
953
|
+
* @param {*} [options] Override http request option.
|
|
954
|
+
* @throws {RequiredError}
|
|
955
|
+
*/
|
|
956
|
+
getGetLastAccount: function () {
|
|
957
|
+
var args_1 = [];
|
|
958
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
959
|
+
args_1[_i] = arguments[_i];
|
|
960
|
+
}
|
|
961
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
962
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
963
|
+
if (options === void 0) { options = {}; }
|
|
964
|
+
return __generator(this, function (_a) {
|
|
965
|
+
localVarPath = "/admin/accounts/last";
|
|
966
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
967
|
+
if (configuration) {
|
|
968
|
+
baseOptions = configuration.baseOptions;
|
|
969
|
+
}
|
|
970
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
971
|
+
localVarHeaderParameter = {};
|
|
972
|
+
localVarQueryParameter = {};
|
|
973
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
974
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
975
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
976
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
977
|
+
return [2 /*return*/, {
|
|
978
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
979
|
+
options: localVarRequestOptions,
|
|
980
|
+
}];
|
|
981
|
+
});
|
|
982
|
+
});
|
|
983
|
+
},
|
|
949
984
|
/**
|
|
950
985
|
* Get Account 3CX Details
|
|
951
986
|
* @param {string} id Xero ID
|
|
@@ -2343,6 +2378,28 @@ var AccountsApiFp = function (configuration) {
|
|
|
2343
2378
|
});
|
|
2344
2379
|
});
|
|
2345
2380
|
},
|
|
2381
|
+
/**
|
|
2382
|
+
* Get Last Account
|
|
2383
|
+
* @summary Get Last Account
|
|
2384
|
+
* @param {*} [options] Override http request option.
|
|
2385
|
+
* @throws {RequiredError}
|
|
2386
|
+
*/
|
|
2387
|
+
getGetLastAccount: function (options) {
|
|
2388
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2389
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2390
|
+
var _a, _b, _c;
|
|
2391
|
+
return __generator(this, function (_d) {
|
|
2392
|
+
switch (_d.label) {
|
|
2393
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLastAccount(options)];
|
|
2394
|
+
case 1:
|
|
2395
|
+
localVarAxiosArgs = _d.sent();
|
|
2396
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2397
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetLastAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2398
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2399
|
+
}
|
|
2400
|
+
});
|
|
2401
|
+
});
|
|
2402
|
+
},
|
|
2346
2403
|
/**
|
|
2347
2404
|
* Get Account 3CX Details
|
|
2348
2405
|
* @param {string} id Xero ID
|
|
@@ -3124,6 +3181,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
3124
3181
|
getGetFinanceSettings: function (id, options) {
|
|
3125
3182
|
return localVarFp.getGetFinanceSettings(id, options).then(function (request) { return request(axios, basePath); });
|
|
3126
3183
|
},
|
|
3184
|
+
/**
|
|
3185
|
+
* Get Last Account
|
|
3186
|
+
* @summary Get Last Account
|
|
3187
|
+
* @param {*} [options] Override http request option.
|
|
3188
|
+
* @throws {RequiredError}
|
|
3189
|
+
*/
|
|
3190
|
+
getGetLastAccount: function (options) {
|
|
3191
|
+
return localVarFp.getGetLastAccount(options).then(function (request) { return request(axios, basePath); });
|
|
3192
|
+
},
|
|
3127
3193
|
/**
|
|
3128
3194
|
* Get Account 3CX Details
|
|
3129
3195
|
* @param {string} id Xero ID
|
|
@@ -3556,6 +3622,16 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
3556
3622
|
var _this = this;
|
|
3557
3623
|
return (0, exports.AccountsApiFp)(this.configuration).getGetFinanceSettings(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3558
3624
|
};
|
|
3625
|
+
/**
|
|
3626
|
+
* Get Last Account
|
|
3627
|
+
* @summary Get Last Account
|
|
3628
|
+
* @param {*} [options] Override http request option.
|
|
3629
|
+
* @throws {RequiredError}
|
|
3630
|
+
*/
|
|
3631
|
+
AccountsApi.prototype.getGetLastAccount = function (options) {
|
|
3632
|
+
var _this = this;
|
|
3633
|
+
return (0, exports.AccountsApiFp)(this.configuration).getGetLastAccount(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3634
|
+
};
|
|
3559
3635
|
/**
|
|
3560
3636
|
* Get Account 3CX Details
|
|
3561
3637
|
* @param {string} id Xero ID
|
package/docs/AccountsApi.md
CHANGED
|
@@ -17,6 +17,7 @@ All URIs are relative to *https://bitbucket.org*
|
|
|
17
17
|
|[**getGetClientCredentials**](#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\'s client credentials|
|
|
18
18
|
|[**getGetCustomerKeys**](#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys|
|
|
19
19
|
|[**getGetFinanceSettings**](#getgetfinancesettings) | **GET** /admin/accounts/{id}/finance | |
|
|
20
|
+
|[**getGetLastAccount**](#getgetlastaccount) | **GET** /admin/accounts/last | Get Last Account|
|
|
20
21
|
|[**getGetTcxPartnerDetails**](#getgettcxpartnerdetails) | **GET** /admin/accounts/{id}/tcx/partner | |
|
|
21
22
|
|[**getVerifyEmailAddress**](#getverifyemailaddress) | **GET** /accounts/contacts/verify | Verify account email address|
|
|
22
23
|
|[**patchSetPortalAccess**](#patchsetportalaccess) | **PATCH** /admin/accounts/{id}/portal/access/{state} | |
|
|
@@ -739,6 +740,53 @@ No authorization required
|
|
|
739
740
|
|
|
740
741
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
741
742
|
|
|
743
|
+
# **getGetLastAccount**
|
|
744
|
+
> AccountSummaryDTO getGetLastAccount()
|
|
745
|
+
|
|
746
|
+
Get Last Account
|
|
747
|
+
|
|
748
|
+
### Example
|
|
749
|
+
|
|
750
|
+
```typescript
|
|
751
|
+
import {
|
|
752
|
+
AccountsApi,
|
|
753
|
+
Configuration
|
|
754
|
+
} from 'yellowgrid-api-ts';
|
|
755
|
+
|
|
756
|
+
const configuration = new Configuration();
|
|
757
|
+
const apiInstance = new AccountsApi(configuration);
|
|
758
|
+
|
|
759
|
+
const { status, data } = await apiInstance.getGetLastAccount();
|
|
760
|
+
```
|
|
761
|
+
|
|
762
|
+
### Parameters
|
|
763
|
+
This endpoint does not have any parameters.
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
### Return type
|
|
767
|
+
|
|
768
|
+
**AccountSummaryDTO**
|
|
769
|
+
|
|
770
|
+
### Authorization
|
|
771
|
+
|
|
772
|
+
No authorization required
|
|
773
|
+
|
|
774
|
+
### HTTP request headers
|
|
775
|
+
|
|
776
|
+
- **Content-Type**: Not defined
|
|
777
|
+
- **Accept**: application/json
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
### HTTP response details
|
|
781
|
+
| Status code | Description | Response headers |
|
|
782
|
+
|-------------|-------------|------------------|
|
|
783
|
+
|**200** | Account Summary | - |
|
|
784
|
+
|**400** | Bad Request | - |
|
|
785
|
+
|**401** | Unauthorised | - |
|
|
786
|
+
|**403** | Access Denied | - |
|
|
787
|
+
|
|
788
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
789
|
+
|
|
742
790
|
# **getGetTcxPartnerDetails**
|
|
743
791
|
> PartnerDTO getGetTcxPartnerDetails()
|
|
744
792
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# TableHistoryEntity
|
|
2
|
+
|
|
3
|
+
TableAttribsEntity
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**ownerId** | **string** | ownerId | [optional] [default to undefined]
|
|
10
|
+
**dbTable** | **string** | table | [optional] [default to undefined]
|
|
11
|
+
**orderingField** | **string** | orderingField | [optional] [default to undefined]
|
|
12
|
+
**asc** | **number** | asc | [optional] [default to undefined]
|
|
13
|
+
**perPage** | **number** | perPage | [optional] [default to undefined]
|
|
14
|
+
**currPage** | **number** | currPage | [optional] [default to undefined]
|
|
15
|
+
**filter** | **string** | filter | [optional] [default to undefined]
|
|
16
|
+
**page** | **number** | page | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { TableHistoryEntity } from 'yellowgrid-api-ts';
|
|
22
|
+
|
|
23
|
+
const instance: TableHistoryEntity = {
|
|
24
|
+
ownerId,
|
|
25
|
+
dbTable,
|
|
26
|
+
orderingField,
|
|
27
|
+
asc,
|
|
28
|
+
perPage,
|
|
29
|
+
currPage,
|
|
30
|
+
filter,
|
|
31
|
+
page,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|