@smartbooks-ai/api-client 0.0.6 → 0.0.7
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/package.json +14 -15
- package/src/.openapi-generator/FILES +0 -56
- package/src/.openapi-generator/VERSION +0 -1
- package/src/.openapi-generator-ignore +0 -23
- package/src/dist/esm/index.d.ts +0 -1
- package/src/dist/esm/index.js +0 -1
- package/src/dist/esm/src/apis/AiApi.d.ts +0 -289
- package/src/dist/esm/src/apis/AiApi.js +0 -452
- package/src/dist/esm/src/apis/AnalyticsApi.d.ts +0 -242
- package/src/dist/esm/src/apis/AnalyticsApi.js +0 -391
- package/src/dist/esm/src/apis/AsyncOperationsApi.d.ts +0 -48
- package/src/dist/esm/src/apis/AsyncOperationsApi.js +0 -53
- package/src/dist/esm/src/apis/BusinessModelModulesApi.d.ts +0 -182
- package/src/dist/esm/src/apis/BusinessModelModulesApi.js +0 -285
- package/src/dist/esm/src/apis/ColorPalettesApi.d.ts +0 -62
- package/src/dist/esm/src/apis/ColorPalettesApi.js +0 -78
- package/src/dist/esm/src/apis/CommentsApi.d.ts +0 -94
- package/src/dist/esm/src/apis/CommentsApi.js +0 -134
- package/src/dist/esm/src/apis/CompaniesApi.d.ts +0 -88
- package/src/dist/esm/src/apis/CompaniesApi.js +0 -118
- package/src/dist/esm/src/apis/CompanyManagementApi.d.ts +0 -90
- package/src/dist/esm/src/apis/CompanyManagementApi.js +0 -123
- package/src/dist/esm/src/apis/ConnectionParametersApi.d.ts +0 -98
- package/src/dist/esm/src/apis/ConnectionParametersApi.js +0 -151
- package/src/dist/esm/src/apis/ConnectionTypesApi.d.ts +0 -90
- package/src/dist/esm/src/apis/ConnectionTypesApi.js +0 -124
- package/src/dist/esm/src/apis/ConnectionsApi.d.ts +0 -156
- package/src/dist/esm/src/apis/ConnectionsApi.js +0 -236
- package/src/dist/esm/src/apis/ConnectionsAuthorizationApi.d.ts +0 -74
- package/src/dist/esm/src/apis/ConnectionsAuthorizationApi.js +0 -108
- package/src/dist/esm/src/apis/ConnectionsClientCredentialsApi.d.ts +0 -72
- package/src/dist/esm/src/apis/ConnectionsClientCredentialsApi.js +0 -100
- package/src/dist/esm/src/apis/ConsolidationApi.d.ts +0 -192
- package/src/dist/esm/src/apis/ConsolidationApi.js +0 -297
- package/src/dist/esm/src/apis/CostCenterApi.d.ts +0 -130
- package/src/dist/esm/src/apis/CostCenterApi.js +0 -188
- package/src/dist/esm/src/apis/DashboardsApi.d.ts +0 -306
- package/src/dist/esm/src/apis/DashboardsApi.js +0 -515
- package/src/dist/esm/src/apis/DataSynchronizationApi.d.ts +0 -92
- package/src/dist/esm/src/apis/DataSynchronizationApi.js +0 -127
- package/src/dist/esm/src/apis/ExplanationApi.d.ts +0 -110
- package/src/dist/esm/src/apis/ExplanationApi.js +0 -227
- package/src/dist/esm/src/apis/FormatsApi.d.ts +0 -46
- package/src/dist/esm/src/apis/FormatsApi.js +0 -48
- package/src/dist/esm/src/apis/FormulasApi.d.ts +0 -62
- package/src/dist/esm/src/apis/FormulasApi.js +0 -81
- package/src/dist/esm/src/apis/FuturesApi.d.ts +0 -136
- package/src/dist/esm/src/apis/FuturesApi.js +0 -204
- package/src/dist/esm/src/apis/IdentityLinkingApi.d.ts +0 -46
- package/src/dist/esm/src/apis/IdentityLinkingApi.js +0 -49
- package/src/dist/esm/src/apis/InputApi.d.ts +0 -55
- package/src/dist/esm/src/apis/InputApi.js +0 -57
- package/src/dist/esm/src/apis/IntercompanyMatchingApi.d.ts +0 -174
- package/src/dist/esm/src/apis/IntercompanyMatchingApi.js +0 -260
- package/src/dist/esm/src/apis/InvitationsApi.d.ts +0 -156
- package/src/dist/esm/src/apis/InvitationsApi.js +0 -235
- package/src/dist/esm/src/apis/MaintenanceApi.d.ts +0 -182
- package/src/dist/esm/src/apis/MaintenanceApi.js +0 -278
- package/src/dist/esm/src/apis/ManualInputApi.d.ts +0 -204
- package/src/dist/esm/src/apis/ManualInputApi.js +0 -328
- package/src/dist/esm/src/apis/ModulesApi.d.ts +0 -88
- package/src/dist/esm/src/apis/ModulesApi.js +0 -112
- package/src/dist/esm/src/apis/NodePurposesApi.d.ts +0 -68
- package/src/dist/esm/src/apis/NodePurposesApi.js +0 -86
- package/src/dist/esm/src/apis/ProfileApi.d.ts +0 -85
- package/src/dist/esm/src/apis/ProfileApi.js +0 -114
- package/src/dist/esm/src/apis/RelationsApi.d.ts +0 -46
- package/src/dist/esm/src/apis/RelationsApi.js +0 -48
- package/src/dist/esm/src/apis/ReportGroupsApi.d.ts +0 -72
- package/src/dist/esm/src/apis/ReportGroupsApi.js +0 -92
- package/src/dist/esm/src/apis/ReportingApi.d.ts +0 -267
- package/src/dist/esm/src/apis/ReportingApi.js +0 -379
- package/src/dist/esm/src/apis/ReportingPeriodsApi.d.ts +0 -46
- package/src/dist/esm/src/apis/ReportingPeriodsApi.js +0 -48
- package/src/dist/esm/src/apis/SourceAccountsApi.d.ts +0 -46
- package/src/dist/esm/src/apis/SourceAccountsApi.js +0 -48
- package/src/dist/esm/src/apis/StructureApi.d.ts +0 -134
- package/src/dist/esm/src/apis/StructureApi.js +0 -163
- package/src/dist/esm/src/apis/StructureDefinitionApi.d.ts +0 -164
- package/src/dist/esm/src/apis/StructureDefinitionApi.js +0 -259
- package/src/dist/esm/src/apis/StructureImprovementApi.d.ts +0 -70
- package/src/dist/esm/src/apis/StructureImprovementApi.js +0 -91
- package/src/dist/esm/src/apis/TemplatesApi.d.ts +0 -120
- package/src/dist/esm/src/apis/TemplatesApi.js +0 -178
- package/src/dist/esm/src/apis/TemplatesGenerationApi.d.ts +0 -66
- package/src/dist/esm/src/apis/TemplatesGenerationApi.js +0 -85
- package/src/dist/esm/src/apis/TenantIntercompanySettingsApi.d.ts +0 -90
- package/src/dist/esm/src/apis/TenantIntercompanySettingsApi.js +0 -123
- package/src/dist/esm/src/apis/TenantsApi.d.ts +0 -124
- package/src/dist/esm/src/apis/TenantsApi.js +0 -180
- package/src/dist/esm/src/apis/TransactionDetailsApi.d.ts +0 -50
- package/src/dist/esm/src/apis/TransactionDetailsApi.js +0 -57
- package/src/dist/esm/src/apis/UsersApi.d.ts +0 -114
- package/src/dist/esm/src/apis/UsersApi.js +0 -165
- package/src/dist/esm/src/apis/WebhooksApi.d.ts +0 -68
- package/src/dist/esm/src/apis/WebhooksApi.js +0 -86
- package/src/dist/esm/src/apis/WizardApi.d.ts +0 -74
- package/src/dist/esm/src/apis/WizardApi.js +0 -101
- package/src/dist/esm/src/apis/index.d.ts +0 -46
- package/src/dist/esm/src/apis/index.js +0 -48
- package/src/dist/esm/src/index.d.ts +0 -3
- package/src/dist/esm/src/index.js +0 -5
- package/src/dist/esm/src/models/index.d.ts +0 -15406
- package/src/dist/esm/src/models/index.js +0 -1279
- package/src/dist/esm/src/runtime.d.ts +0 -181
- package/src/dist/esm/src/runtime.js +0 -326
- package/src/index.ts +0 -1
- package/src/package.json +0 -24
- package/src/src/apis/AiApi.ts +0 -1043
- package/src/src/apis/AnalyticsApi.ts +0 -925
- package/src/src/apis/AsyncOperationsApi.ts +0 -112
- package/src/src/apis/BusinessModelModulesApi.ts +0 -649
- package/src/src/apis/ColorPalettesApi.ts +0 -148
- package/src/src/apis/CommentsApi.ts +0 -308
- package/src/src/apis/CompaniesApi.ts +0 -260
- package/src/src/apis/CompanyManagementApi.ts +0 -270
- package/src/src/apis/ConnectionParametersApi.ts +0 -339
- package/src/src/apis/ConnectionTypesApi.ts +0 -280
- package/src/src/apis/ConnectionsApi.ts +0 -533
- package/src/src/apis/ConnectionsAuthorizationApi.ts +0 -241
- package/src/src/apis/ConnectionsClientCredentialsApi.ts +0 -224
- package/src/src/apis/ConsolidationApi.ts +0 -682
- package/src/src/apis/CostCenterApi.ts +0 -428
- package/src/src/apis/DashboardsApi.ts +0 -1179
- package/src/src/apis/DataSynchronizationApi.ts +0 -288
- package/src/src/apis/ExplanationApi.ts +0 -504
- package/src/src/apis/FormatsApi.ts +0 -96
- package/src/src/apis/FormulasApi.ts +0 -154
- package/src/src/apis/FuturesApi.ts +0 -463
- package/src/src/apis/IdentityLinkingApi.ts +0 -101
- package/src/src/apis/InputApi.ts +0 -126
- package/src/src/apis/IntercompanyMatchingApi.ts +0 -588
- package/src/src/apis/InvitationsApi.ts +0 -523
- package/src/src/apis/MaintenanceApi.ts +0 -597
- package/src/src/apis/ManualInputApi.ts +0 -771
- package/src/src/apis/ModulesApi.ts +0 -246
- package/src/src/apis/NodePurposesApi.ts +0 -184
- package/src/src/apis/ProfileApi.ts +0 -203
- package/src/src/apis/RelationsApi.ts +0 -99
- package/src/src/apis/ReportGroupsApi.ts +0 -205
- package/src/src/apis/ReportingApi.ts +0 -851
- package/src/src/apis/ReportingPeriodsApi.ts +0 -99
- package/src/src/apis/SourceAccountsApi.ts +0 -102
- package/src/src/apis/StructureApi.ts +0 -334
- package/src/src/apis/StructureDefinitionApi.ts +0 -601
- package/src/src/apis/StructureImprovementApi.ts +0 -214
- package/src/src/apis/TemplatesApi.ts +0 -334
- package/src/src/apis/TemplatesGenerationApi.ts +0 -187
- package/src/src/apis/TenantIntercompanySettingsApi.ts +0 -286
- package/src/src/apis/TenantsApi.ts +0 -374
- package/src/src/apis/TransactionDetailsApi.ts +0 -127
- package/src/src/apis/UsersApi.ts +0 -356
- package/src/src/apis/WebhooksApi.ts +0 -193
- package/src/src/apis/WizardApi.ts +0 -230
- package/src/src/apis/index.ts +0 -48
- package/src/src/index.ts +0 -5
- package/src/src/models/index.ts +0 -15625
- package/src/src/runtime.ts +0 -469
- package/src/tsconfig.esm.json +0 -7
- package/src/tsconfig.json +0 -11
- package/tsconfig.json +0 -11
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Smartbooks Restful API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.0.1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import type { ReportingPeriods } from '../models/index';
|
|
15
|
-
import * as runtime from '../runtime';
|
|
16
|
-
|
|
17
|
-
export interface ReportingPeriodsApiGetRequest {
|
|
18
|
-
companyCode: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* ReportingPeriodsApi - interface
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
* @interface ReportingPeriodsApiInterface
|
|
26
|
-
*/
|
|
27
|
-
export interface ReportingPeriodsApiInterface {
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @param {string} companyCode
|
|
31
|
-
* @param {*} [options] Override http request option.
|
|
32
|
-
* @throws {RequiredError}
|
|
33
|
-
* @memberof ReportingPeriodsApiInterface
|
|
34
|
-
*/
|
|
35
|
-
getRaw(
|
|
36
|
-
requestParameters: ReportingPeriodsApiGetRequest,
|
|
37
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
38
|
-
): Promise<runtime.ApiResponse<ReportingPeriods>>;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
*/
|
|
42
|
-
get(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReportingPeriods>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
export class ReportingPeriodsApi extends runtime.BaseAPI implements ReportingPeriodsApiInterface {
|
|
49
|
-
/**
|
|
50
|
-
*/
|
|
51
|
-
async getRaw(
|
|
52
|
-
requestParameters: ReportingPeriodsApiGetRequest,
|
|
53
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
54
|
-
): Promise<runtime.ApiResponse<ReportingPeriods>> {
|
|
55
|
-
if (requestParameters['companyCode'] == null) {
|
|
56
|
-
throw new runtime.RequiredError(
|
|
57
|
-
'companyCode',
|
|
58
|
-
'Required parameter "companyCode" was null or undefined when calling get().',
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const queryParameters: any = {};
|
|
63
|
-
|
|
64
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
65
|
-
|
|
66
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
67
|
-
const token = this.configuration.accessToken;
|
|
68
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
69
|
-
|
|
70
|
-
if (tokenString) {
|
|
71
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
const response = await this.request(
|
|
75
|
-
{
|
|
76
|
-
path: `/api/v1/c/{company_code}/reportingperiods`.replace(
|
|
77
|
-
`{${'company_code'}}`,
|
|
78
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
79
|
-
),
|
|
80
|
-
method: 'GET',
|
|
81
|
-
headers: headerParameters,
|
|
82
|
-
query: queryParameters,
|
|
83
|
-
},
|
|
84
|
-
initOverrides,
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
return new runtime.JSONApiResponse(response);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
*/
|
|
92
|
-
async get(
|
|
93
|
-
companyCode: string,
|
|
94
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
95
|
-
): Promise<ReportingPeriods> {
|
|
96
|
-
const response = await this.getRaw({ companyCode: companyCode }, initOverrides);
|
|
97
|
-
return await response.value();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Smartbooks Restful API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.0.1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import type { SourceAccountsGetResponse } from '../models/index';
|
|
15
|
-
import * as runtime from '../runtime';
|
|
16
|
-
|
|
17
|
-
export interface SourceAccountsApiGetRequest {
|
|
18
|
-
companyCode: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* SourceAccountsApi - interface
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
* @interface SourceAccountsApiInterface
|
|
26
|
-
*/
|
|
27
|
-
export interface SourceAccountsApiInterface {
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @param {string} companyCode
|
|
31
|
-
* @param {*} [options] Override http request option.
|
|
32
|
-
* @throws {RequiredError}
|
|
33
|
-
* @memberof SourceAccountsApiInterface
|
|
34
|
-
*/
|
|
35
|
-
getRaw(
|
|
36
|
-
requestParameters: SourceAccountsApiGetRequest,
|
|
37
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
38
|
-
): Promise<runtime.ApiResponse<SourceAccountsGetResponse>>;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
*/
|
|
42
|
-
get(
|
|
43
|
-
companyCode: string,
|
|
44
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
45
|
-
): Promise<SourceAccountsGetResponse>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
*/
|
|
51
|
-
export class SourceAccountsApi extends runtime.BaseAPI implements SourceAccountsApiInterface {
|
|
52
|
-
/**
|
|
53
|
-
*/
|
|
54
|
-
async getRaw(
|
|
55
|
-
requestParameters: SourceAccountsApiGetRequest,
|
|
56
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
57
|
-
): Promise<runtime.ApiResponse<SourceAccountsGetResponse>> {
|
|
58
|
-
if (requestParameters['companyCode'] == null) {
|
|
59
|
-
throw new runtime.RequiredError(
|
|
60
|
-
'companyCode',
|
|
61
|
-
'Required parameter "companyCode" was null or undefined when calling get().',
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const queryParameters: any = {};
|
|
66
|
-
|
|
67
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
68
|
-
|
|
69
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
70
|
-
const token = this.configuration.accessToken;
|
|
71
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
72
|
-
|
|
73
|
-
if (tokenString) {
|
|
74
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
const response = await this.request(
|
|
78
|
-
{
|
|
79
|
-
path: `/api/v1/c/{company_code}/source-accounts`.replace(
|
|
80
|
-
`{${'company_code'}}`,
|
|
81
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
82
|
-
),
|
|
83
|
-
method: 'GET',
|
|
84
|
-
headers: headerParameters,
|
|
85
|
-
query: queryParameters,
|
|
86
|
-
},
|
|
87
|
-
initOverrides,
|
|
88
|
-
);
|
|
89
|
-
|
|
90
|
-
return new runtime.JSONApiResponse(response);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
*/
|
|
95
|
-
async get(
|
|
96
|
-
companyCode: string,
|
|
97
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
98
|
-
): Promise<SourceAccountsGetResponse> {
|
|
99
|
-
const response = await this.getRaw({ companyCode: companyCode }, initOverrides);
|
|
100
|
-
return await response.value();
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Smartbooks Restful API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.0.1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import type { Structure } from '../models/index';
|
|
15
|
-
import * as runtime from '../runtime';
|
|
16
|
-
|
|
17
|
-
export interface StructureApiBalanceSheetRequest {
|
|
18
|
-
companyCode: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface StructureApiCashFlowRequest {
|
|
22
|
-
companyCode: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface StructureApiMetricsRequest {
|
|
26
|
-
companyCode: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface StructureApiProfitAndLossRequest {
|
|
30
|
-
companyCode: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* StructureApi - interface
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @interface StructureApiInterface
|
|
38
|
-
*/
|
|
39
|
-
export interface StructureApiInterface {
|
|
40
|
-
/**
|
|
41
|
-
* Get balance sheet structure
|
|
42
|
-
* @summary Get balance sheet structure
|
|
43
|
-
* @param {string} companyCode
|
|
44
|
-
* @param {*} [options] Override http request option.
|
|
45
|
-
* @throws {RequiredError}
|
|
46
|
-
* @memberof StructureApiInterface
|
|
47
|
-
*/
|
|
48
|
-
balanceSheetRaw(
|
|
49
|
-
requestParameters: StructureApiBalanceSheetRequest,
|
|
50
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
51
|
-
): Promise<runtime.ApiResponse<Structure>>;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Get balance sheet structure
|
|
55
|
-
* Get balance sheet structure
|
|
56
|
-
*/
|
|
57
|
-
balanceSheet(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Structure>;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Get cash flow structure
|
|
61
|
-
* @summary Get cash flow structure
|
|
62
|
-
* @param {string} companyCode
|
|
63
|
-
* @param {*} [options] Override http request option.
|
|
64
|
-
* @throws {RequiredError}
|
|
65
|
-
* @memberof StructureApiInterface
|
|
66
|
-
*/
|
|
67
|
-
cashFlowRaw(
|
|
68
|
-
requestParameters: StructureApiCashFlowRequest,
|
|
69
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
70
|
-
): Promise<runtime.ApiResponse<Structure>>;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Get cash flow structure
|
|
74
|
-
* Get cash flow structure
|
|
75
|
-
*/
|
|
76
|
-
cashFlow(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Structure>;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Get metrics structure
|
|
80
|
-
* @summary Get metrics structure
|
|
81
|
-
* @param {string} companyCode
|
|
82
|
-
* @param {*} [options] Override http request option.
|
|
83
|
-
* @throws {RequiredError}
|
|
84
|
-
* @memberof StructureApiInterface
|
|
85
|
-
*/
|
|
86
|
-
metricsRaw(
|
|
87
|
-
requestParameters: StructureApiMetricsRequest,
|
|
88
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
89
|
-
): Promise<runtime.ApiResponse<Structure>>;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Get metrics structure
|
|
93
|
-
* Get metrics structure
|
|
94
|
-
*/
|
|
95
|
-
metrics(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Structure>;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Get profit and loss structure
|
|
99
|
-
* @summary Get profit and loss structure
|
|
100
|
-
* @param {string} companyCode
|
|
101
|
-
* @param {*} [options] Override http request option.
|
|
102
|
-
* @throws {RequiredError}
|
|
103
|
-
* @memberof StructureApiInterface
|
|
104
|
-
*/
|
|
105
|
-
profitAndLossRaw(
|
|
106
|
-
requestParameters: StructureApiProfitAndLossRequest,
|
|
107
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
108
|
-
): Promise<runtime.ApiResponse<Structure>>;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Get profit and loss structure
|
|
112
|
-
* Get profit and loss structure
|
|
113
|
-
*/
|
|
114
|
-
profitAndLoss(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Structure>;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
*/
|
|
120
|
-
export class StructureApi extends runtime.BaseAPI implements StructureApiInterface {
|
|
121
|
-
/**
|
|
122
|
-
* Get balance sheet structure
|
|
123
|
-
* Get balance sheet structure
|
|
124
|
-
*/
|
|
125
|
-
async balanceSheetRaw(
|
|
126
|
-
requestParameters: StructureApiBalanceSheetRequest,
|
|
127
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
128
|
-
): Promise<runtime.ApiResponse<Structure>> {
|
|
129
|
-
if (requestParameters['companyCode'] == null) {
|
|
130
|
-
throw new runtime.RequiredError(
|
|
131
|
-
'companyCode',
|
|
132
|
-
'Required parameter "companyCode" was null or undefined when calling balanceSheet().',
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
const queryParameters: any = {};
|
|
137
|
-
|
|
138
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
139
|
-
|
|
140
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
141
|
-
const token = this.configuration.accessToken;
|
|
142
|
-
const tokenString = await token('bearerToken', ['reporting:read']);
|
|
143
|
-
|
|
144
|
-
if (tokenString) {
|
|
145
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
const response = await this.request(
|
|
149
|
-
{
|
|
150
|
-
path: `/api/v1/c/{company_code}/structure/balance_sheet`.replace(
|
|
151
|
-
`{${'company_code'}}`,
|
|
152
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
153
|
-
),
|
|
154
|
-
method: 'GET',
|
|
155
|
-
headers: headerParameters,
|
|
156
|
-
query: queryParameters,
|
|
157
|
-
},
|
|
158
|
-
initOverrides,
|
|
159
|
-
);
|
|
160
|
-
|
|
161
|
-
return new runtime.JSONApiResponse(response);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Get balance sheet structure
|
|
166
|
-
* Get balance sheet structure
|
|
167
|
-
*/
|
|
168
|
-
async balanceSheet(
|
|
169
|
-
companyCode: string,
|
|
170
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
171
|
-
): Promise<Structure> {
|
|
172
|
-
const response = await this.balanceSheetRaw({ companyCode: companyCode }, initOverrides);
|
|
173
|
-
return await response.value();
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Get cash flow structure
|
|
178
|
-
* Get cash flow structure
|
|
179
|
-
*/
|
|
180
|
-
async cashFlowRaw(
|
|
181
|
-
requestParameters: StructureApiCashFlowRequest,
|
|
182
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
183
|
-
): Promise<runtime.ApiResponse<Structure>> {
|
|
184
|
-
if (requestParameters['companyCode'] == null) {
|
|
185
|
-
throw new runtime.RequiredError(
|
|
186
|
-
'companyCode',
|
|
187
|
-
'Required parameter "companyCode" was null or undefined when calling cashFlow().',
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
const queryParameters: any = {};
|
|
192
|
-
|
|
193
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
194
|
-
|
|
195
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
196
|
-
const token = this.configuration.accessToken;
|
|
197
|
-
const tokenString = await token('bearerToken', ['reporting:read']);
|
|
198
|
-
|
|
199
|
-
if (tokenString) {
|
|
200
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
const response = await this.request(
|
|
204
|
-
{
|
|
205
|
-
path: `/api/v1/c/{company_code}/structure/cash_flow`.replace(
|
|
206
|
-
`{${'company_code'}}`,
|
|
207
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
208
|
-
),
|
|
209
|
-
method: 'GET',
|
|
210
|
-
headers: headerParameters,
|
|
211
|
-
query: queryParameters,
|
|
212
|
-
},
|
|
213
|
-
initOverrides,
|
|
214
|
-
);
|
|
215
|
-
|
|
216
|
-
return new runtime.JSONApiResponse(response);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Get cash flow structure
|
|
221
|
-
* Get cash flow structure
|
|
222
|
-
*/
|
|
223
|
-
async cashFlow(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Structure> {
|
|
224
|
-
const response = await this.cashFlowRaw({ companyCode: companyCode }, initOverrides);
|
|
225
|
-
return await response.value();
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Get metrics structure
|
|
230
|
-
* Get metrics structure
|
|
231
|
-
*/
|
|
232
|
-
async metricsRaw(
|
|
233
|
-
requestParameters: StructureApiMetricsRequest,
|
|
234
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
235
|
-
): Promise<runtime.ApiResponse<Structure>> {
|
|
236
|
-
if (requestParameters['companyCode'] == null) {
|
|
237
|
-
throw new runtime.RequiredError(
|
|
238
|
-
'companyCode',
|
|
239
|
-
'Required parameter "companyCode" was null or undefined when calling metrics().',
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
const queryParameters: any = {};
|
|
244
|
-
|
|
245
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
246
|
-
|
|
247
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
248
|
-
const token = this.configuration.accessToken;
|
|
249
|
-
const tokenString = await token('bearerToken', ['reporting:read']);
|
|
250
|
-
|
|
251
|
-
if (tokenString) {
|
|
252
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
const response = await this.request(
|
|
256
|
-
{
|
|
257
|
-
path: `/api/v1/c/{company_code}/structure/metrics`.replace(
|
|
258
|
-
`{${'company_code'}}`,
|
|
259
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
260
|
-
),
|
|
261
|
-
method: 'GET',
|
|
262
|
-
headers: headerParameters,
|
|
263
|
-
query: queryParameters,
|
|
264
|
-
},
|
|
265
|
-
initOverrides,
|
|
266
|
-
);
|
|
267
|
-
|
|
268
|
-
return new runtime.JSONApiResponse(response);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* Get metrics structure
|
|
273
|
-
* Get metrics structure
|
|
274
|
-
*/
|
|
275
|
-
async metrics(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Structure> {
|
|
276
|
-
const response = await this.metricsRaw({ companyCode: companyCode }, initOverrides);
|
|
277
|
-
return await response.value();
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Get profit and loss structure
|
|
282
|
-
* Get profit and loss structure
|
|
283
|
-
*/
|
|
284
|
-
async profitAndLossRaw(
|
|
285
|
-
requestParameters: StructureApiProfitAndLossRequest,
|
|
286
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
287
|
-
): Promise<runtime.ApiResponse<Structure>> {
|
|
288
|
-
if (requestParameters['companyCode'] == null) {
|
|
289
|
-
throw new runtime.RequiredError(
|
|
290
|
-
'companyCode',
|
|
291
|
-
'Required parameter "companyCode" was null or undefined when calling profitAndLoss().',
|
|
292
|
-
);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
const queryParameters: any = {};
|
|
296
|
-
|
|
297
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
298
|
-
|
|
299
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
300
|
-
const token = this.configuration.accessToken;
|
|
301
|
-
const tokenString = await token('bearerToken', ['reporting:read']);
|
|
302
|
-
|
|
303
|
-
if (tokenString) {
|
|
304
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
const response = await this.request(
|
|
308
|
-
{
|
|
309
|
-
path: `/api/v1/c/{company_code}/structure/profit_and_loss`.replace(
|
|
310
|
-
`{${'company_code'}}`,
|
|
311
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
312
|
-
),
|
|
313
|
-
method: 'GET',
|
|
314
|
-
headers: headerParameters,
|
|
315
|
-
query: queryParameters,
|
|
316
|
-
},
|
|
317
|
-
initOverrides,
|
|
318
|
-
);
|
|
319
|
-
|
|
320
|
-
return new runtime.JSONApiResponse(response);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Get profit and loss structure
|
|
325
|
-
* Get profit and loss structure
|
|
326
|
-
*/
|
|
327
|
-
async profitAndLoss(
|
|
328
|
-
companyCode: string,
|
|
329
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
330
|
-
): Promise<Structure> {
|
|
331
|
-
const response = await this.profitAndLossRaw({ companyCode: companyCode }, initOverrides);
|
|
332
|
-
return await response.value();
|
|
333
|
-
}
|
|
334
|
-
}
|