@smartbooks-ai/api-client 0.0.3
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 +56 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +50 -0
- package/dist/apis/AiApi.d.ts +289 -0
- package/dist/apis/AiApi.js +456 -0
- package/dist/apis/AnalyticsApi.d.ts +242 -0
- package/dist/apis/AnalyticsApi.js +395 -0
- package/dist/apis/AsyncOperationsApi.d.ts +48 -0
- package/dist/apis/AsyncOperationsApi.js +57 -0
- package/dist/apis/BusinessModelModulesApi.d.ts +182 -0
- package/dist/apis/BusinessModelModulesApi.js +289 -0
- package/dist/apis/ColorPalettesApi.d.ts +62 -0
- package/dist/apis/ColorPalettesApi.js +82 -0
- package/dist/apis/CommentsApi.d.ts +94 -0
- package/dist/apis/CommentsApi.js +138 -0
- package/dist/apis/CompaniesApi.d.ts +88 -0
- package/dist/apis/CompaniesApi.js +122 -0
- package/dist/apis/CompanyManagementApi.d.ts +90 -0
- package/dist/apis/CompanyManagementApi.js +127 -0
- package/dist/apis/ConnectionParametersApi.d.ts +98 -0
- package/dist/apis/ConnectionParametersApi.js +155 -0
- package/dist/apis/ConnectionTypesApi.d.ts +90 -0
- package/dist/apis/ConnectionTypesApi.js +128 -0
- package/dist/apis/ConnectionsApi.d.ts +156 -0
- package/dist/apis/ConnectionsApi.js +240 -0
- package/dist/apis/ConnectionsAuthorizationApi.d.ts +74 -0
- package/dist/apis/ConnectionsAuthorizationApi.js +112 -0
- package/dist/apis/ConnectionsClientCredentialsApi.d.ts +72 -0
- package/dist/apis/ConnectionsClientCredentialsApi.js +104 -0
- package/dist/apis/ConsolidationApi.d.ts +192 -0
- package/dist/apis/ConsolidationApi.js +301 -0
- package/dist/apis/CostCenterApi.d.ts +130 -0
- package/dist/apis/CostCenterApi.js +192 -0
- package/dist/apis/DashboardsApi.d.ts +306 -0
- package/dist/apis/DashboardsApi.js +519 -0
- package/dist/apis/DataSynchronizationApi.d.ts +92 -0
- package/dist/apis/DataSynchronizationApi.js +131 -0
- package/dist/apis/ExplanationApi.d.ts +110 -0
- package/dist/apis/ExplanationApi.js +231 -0
- package/dist/apis/FormatsApi.d.ts +46 -0
- package/dist/apis/FormatsApi.js +52 -0
- package/dist/apis/FormulasApi.d.ts +62 -0
- package/dist/apis/FormulasApi.js +85 -0
- package/dist/apis/FuturesApi.d.ts +136 -0
- package/dist/apis/FuturesApi.js +208 -0
- package/dist/apis/IdentityLinkingApi.d.ts +46 -0
- package/dist/apis/IdentityLinkingApi.js +53 -0
- package/dist/apis/InputApi.d.ts +55 -0
- package/dist/apis/InputApi.js +61 -0
- package/dist/apis/IntercompanyMatchingApi.d.ts +174 -0
- package/dist/apis/IntercompanyMatchingApi.js +264 -0
- package/dist/apis/InvitationsApi.d.ts +156 -0
- package/dist/apis/InvitationsApi.js +239 -0
- package/dist/apis/MaintenanceApi.d.ts +182 -0
- package/dist/apis/MaintenanceApi.js +282 -0
- package/dist/apis/ManualInputApi.d.ts +204 -0
- package/dist/apis/ManualInputApi.js +332 -0
- package/dist/apis/ModulesApi.d.ts +88 -0
- package/dist/apis/ModulesApi.js +116 -0
- package/dist/apis/NodePurposesApi.d.ts +68 -0
- package/dist/apis/NodePurposesApi.js +90 -0
- package/dist/apis/ProfileApi.d.ts +85 -0
- package/dist/apis/ProfileApi.js +118 -0
- package/dist/apis/RelationsApi.d.ts +46 -0
- package/dist/apis/RelationsApi.js +52 -0
- package/dist/apis/ReportGroupsApi.d.ts +72 -0
- package/dist/apis/ReportGroupsApi.js +96 -0
- package/dist/apis/ReportingApi.d.ts +267 -0
- package/dist/apis/ReportingApi.js +383 -0
- package/dist/apis/ReportingPeriodsApi.d.ts +46 -0
- package/dist/apis/ReportingPeriodsApi.js +52 -0
- package/dist/apis/SourceAccountsApi.d.ts +46 -0
- package/dist/apis/SourceAccountsApi.js +52 -0
- package/dist/apis/StructureApi.d.ts +134 -0
- package/dist/apis/StructureApi.js +167 -0
- package/dist/apis/StructureDefinitionApi.d.ts +164 -0
- package/dist/apis/StructureDefinitionApi.js +263 -0
- package/dist/apis/StructureImprovementApi.d.ts +70 -0
- package/dist/apis/StructureImprovementApi.js +95 -0
- package/dist/apis/TemplatesApi.d.ts +120 -0
- package/dist/apis/TemplatesApi.js +182 -0
- package/dist/apis/TemplatesGenerationApi.d.ts +66 -0
- package/dist/apis/TemplatesGenerationApi.js +89 -0
- package/dist/apis/TenantIntercompanySettingsApi.d.ts +90 -0
- package/dist/apis/TenantIntercompanySettingsApi.js +127 -0
- package/dist/apis/TenantsApi.d.ts +124 -0
- package/dist/apis/TenantsApi.js +184 -0
- package/dist/apis/TransactionDetailsApi.d.ts +50 -0
- package/dist/apis/TransactionDetailsApi.js +61 -0
- package/dist/apis/UsersApi.d.ts +114 -0
- package/dist/apis/UsersApi.js +169 -0
- package/dist/apis/WebhooksApi.d.ts +68 -0
- package/dist/apis/WebhooksApi.js +90 -0
- package/dist/apis/WizardApi.d.ts +74 -0
- package/dist/apis/WizardApi.js +105 -0
- package/dist/apis/index.d.ts +46 -0
- package/dist/apis/index.js +64 -0
- package/dist/esm/apis/AiApi.d.ts +289 -0
- package/dist/esm/apis/AiApi.js +452 -0
- package/dist/esm/apis/AnalyticsApi.d.ts +242 -0
- package/dist/esm/apis/AnalyticsApi.js +391 -0
- package/dist/esm/apis/AsyncOperationsApi.d.ts +48 -0
- package/dist/esm/apis/AsyncOperationsApi.js +53 -0
- package/dist/esm/apis/BusinessModelModulesApi.d.ts +182 -0
- package/dist/esm/apis/BusinessModelModulesApi.js +285 -0
- package/dist/esm/apis/ColorPalettesApi.d.ts +62 -0
- package/dist/esm/apis/ColorPalettesApi.js +78 -0
- package/dist/esm/apis/CommentsApi.d.ts +94 -0
- package/dist/esm/apis/CommentsApi.js +134 -0
- package/dist/esm/apis/CompaniesApi.d.ts +88 -0
- package/dist/esm/apis/CompaniesApi.js +118 -0
- package/dist/esm/apis/CompanyManagementApi.d.ts +90 -0
- package/dist/esm/apis/CompanyManagementApi.js +123 -0
- package/dist/esm/apis/ConnectionParametersApi.d.ts +98 -0
- package/dist/esm/apis/ConnectionParametersApi.js +151 -0
- package/dist/esm/apis/ConnectionTypesApi.d.ts +90 -0
- package/dist/esm/apis/ConnectionTypesApi.js +124 -0
- package/dist/esm/apis/ConnectionsApi.d.ts +156 -0
- package/dist/esm/apis/ConnectionsApi.js +236 -0
- package/dist/esm/apis/ConnectionsAuthorizationApi.d.ts +74 -0
- package/dist/esm/apis/ConnectionsAuthorizationApi.js +108 -0
- package/dist/esm/apis/ConnectionsClientCredentialsApi.d.ts +72 -0
- package/dist/esm/apis/ConnectionsClientCredentialsApi.js +100 -0
- package/dist/esm/apis/ConsolidationApi.d.ts +192 -0
- package/dist/esm/apis/ConsolidationApi.js +297 -0
- package/dist/esm/apis/CostCenterApi.d.ts +130 -0
- package/dist/esm/apis/CostCenterApi.js +188 -0
- package/dist/esm/apis/DashboardsApi.d.ts +306 -0
- package/dist/esm/apis/DashboardsApi.js +515 -0
- package/dist/esm/apis/DataSynchronizationApi.d.ts +92 -0
- package/dist/esm/apis/DataSynchronizationApi.js +127 -0
- package/dist/esm/apis/ExplanationApi.d.ts +110 -0
- package/dist/esm/apis/ExplanationApi.js +227 -0
- package/dist/esm/apis/FormatsApi.d.ts +46 -0
- package/dist/esm/apis/FormatsApi.js +48 -0
- package/dist/esm/apis/FormulasApi.d.ts +62 -0
- package/dist/esm/apis/FormulasApi.js +81 -0
- package/dist/esm/apis/FuturesApi.d.ts +136 -0
- package/dist/esm/apis/FuturesApi.js +204 -0
- package/dist/esm/apis/IdentityLinkingApi.d.ts +46 -0
- package/dist/esm/apis/IdentityLinkingApi.js +49 -0
- package/dist/esm/apis/InputApi.d.ts +55 -0
- package/dist/esm/apis/InputApi.js +57 -0
- package/dist/esm/apis/IntercompanyMatchingApi.d.ts +174 -0
- package/dist/esm/apis/IntercompanyMatchingApi.js +260 -0
- package/dist/esm/apis/InvitationsApi.d.ts +156 -0
- package/dist/esm/apis/InvitationsApi.js +235 -0
- package/dist/esm/apis/MaintenanceApi.d.ts +182 -0
- package/dist/esm/apis/MaintenanceApi.js +278 -0
- package/dist/esm/apis/ManualInputApi.d.ts +204 -0
- package/dist/esm/apis/ManualInputApi.js +328 -0
- package/dist/esm/apis/ModulesApi.d.ts +88 -0
- package/dist/esm/apis/ModulesApi.js +112 -0
- package/dist/esm/apis/NodePurposesApi.d.ts +68 -0
- package/dist/esm/apis/NodePurposesApi.js +86 -0
- package/dist/esm/apis/ProfileApi.d.ts +85 -0
- package/dist/esm/apis/ProfileApi.js +114 -0
- package/dist/esm/apis/RelationsApi.d.ts +46 -0
- package/dist/esm/apis/RelationsApi.js +48 -0
- package/dist/esm/apis/ReportGroupsApi.d.ts +72 -0
- package/dist/esm/apis/ReportGroupsApi.js +92 -0
- package/dist/esm/apis/ReportingApi.d.ts +267 -0
- package/dist/esm/apis/ReportingApi.js +379 -0
- package/dist/esm/apis/ReportingPeriodsApi.d.ts +46 -0
- package/dist/esm/apis/ReportingPeriodsApi.js +48 -0
- package/dist/esm/apis/SourceAccountsApi.d.ts +46 -0
- package/dist/esm/apis/SourceAccountsApi.js +48 -0
- package/dist/esm/apis/StructureApi.d.ts +134 -0
- package/dist/esm/apis/StructureApi.js +163 -0
- package/dist/esm/apis/StructureDefinitionApi.d.ts +164 -0
- package/dist/esm/apis/StructureDefinitionApi.js +259 -0
- package/dist/esm/apis/StructureImprovementApi.d.ts +70 -0
- package/dist/esm/apis/StructureImprovementApi.js +91 -0
- package/dist/esm/apis/TemplatesApi.d.ts +120 -0
- package/dist/esm/apis/TemplatesApi.js +178 -0
- package/dist/esm/apis/TemplatesGenerationApi.d.ts +66 -0
- package/dist/esm/apis/TemplatesGenerationApi.js +85 -0
- package/dist/esm/apis/TenantIntercompanySettingsApi.d.ts +90 -0
- package/dist/esm/apis/TenantIntercompanySettingsApi.js +123 -0
- package/dist/esm/apis/TenantsApi.d.ts +124 -0
- package/dist/esm/apis/TenantsApi.js +180 -0
- package/dist/esm/apis/TransactionDetailsApi.d.ts +50 -0
- package/dist/esm/apis/TransactionDetailsApi.js +57 -0
- package/dist/esm/apis/UsersApi.d.ts +114 -0
- package/dist/esm/apis/UsersApi.js +165 -0
- package/dist/esm/apis/WebhooksApi.d.ts +68 -0
- package/dist/esm/apis/WebhooksApi.js +86 -0
- package/dist/esm/apis/WizardApi.d.ts +74 -0
- package/dist/esm/apis/WizardApi.js +101 -0
- package/dist/esm/apis/index.d.ts +46 -0
- package/dist/esm/apis/index.js +48 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/index.d.ts +15406 -0
- package/dist/esm/models/index.js +1279 -0
- package/dist/esm/runtime.d.ts +181 -0
- package/dist/esm/runtime.js +326 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/index.d.ts +15406 -0
- package/dist/models/index.js +1285 -0
- package/dist/runtime.d.ts +181 -0
- package/dist/runtime.js +341 -0
- package/package.json +21 -0
- package/src/apis/AiApi.ts +1043 -0
- package/src/apis/AnalyticsApi.ts +925 -0
- package/src/apis/AsyncOperationsApi.ts +112 -0
- package/src/apis/BusinessModelModulesApi.ts +649 -0
- package/src/apis/ColorPalettesApi.ts +148 -0
- package/src/apis/CommentsApi.ts +308 -0
- package/src/apis/CompaniesApi.ts +260 -0
- package/src/apis/CompanyManagementApi.ts +270 -0
- package/src/apis/ConnectionParametersApi.ts +339 -0
- package/src/apis/ConnectionTypesApi.ts +280 -0
- package/src/apis/ConnectionsApi.ts +533 -0
- package/src/apis/ConnectionsAuthorizationApi.ts +241 -0
- package/src/apis/ConnectionsClientCredentialsApi.ts +224 -0
- package/src/apis/ConsolidationApi.ts +682 -0
- package/src/apis/CostCenterApi.ts +428 -0
- package/src/apis/DashboardsApi.ts +1179 -0
- package/src/apis/DataSynchronizationApi.ts +288 -0
- package/src/apis/ExplanationApi.ts +504 -0
- package/src/apis/FormatsApi.ts +96 -0
- package/src/apis/FormulasApi.ts +154 -0
- package/src/apis/FuturesApi.ts +463 -0
- package/src/apis/IdentityLinkingApi.ts +101 -0
- package/src/apis/InputApi.ts +126 -0
- package/src/apis/IntercompanyMatchingApi.ts +588 -0
- package/src/apis/InvitationsApi.ts +523 -0
- package/src/apis/MaintenanceApi.ts +597 -0
- package/src/apis/ManualInputApi.ts +771 -0
- package/src/apis/ModulesApi.ts +246 -0
- package/src/apis/NodePurposesApi.ts +184 -0
- package/src/apis/ProfileApi.ts +203 -0
- package/src/apis/RelationsApi.ts +99 -0
- package/src/apis/ReportGroupsApi.ts +205 -0
- package/src/apis/ReportingApi.ts +851 -0
- package/src/apis/ReportingPeriodsApi.ts +99 -0
- package/src/apis/SourceAccountsApi.ts +102 -0
- package/src/apis/StructureApi.ts +334 -0
- package/src/apis/StructureDefinitionApi.ts +601 -0
- package/src/apis/StructureImprovementApi.ts +214 -0
- package/src/apis/TemplatesApi.ts +334 -0
- package/src/apis/TemplatesGenerationApi.ts +187 -0
- package/src/apis/TenantIntercompanySettingsApi.ts +286 -0
- package/src/apis/TenantsApi.ts +374 -0
- package/src/apis/TransactionDetailsApi.ts +127 -0
- package/src/apis/UsersApi.ts +356 -0
- package/src/apis/WebhooksApi.ts +193 -0
- package/src/apis/WizardApi.ts +230 -0
- package/src/apis/index.ts +48 -0
- package/src/index.ts +5 -0
- package/src/models/index.ts +15625 -0
- package/src/runtime.ts +469 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,99 @@
|
|
|
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 { OriginRelations } from '../models/index';
|
|
15
|
+
import * as runtime from '../runtime';
|
|
16
|
+
|
|
17
|
+
export interface RelationsApiGetOriginRequest {
|
|
18
|
+
companyCode: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* RelationsApi - interface
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
* @interface RelationsApiInterface
|
|
26
|
+
*/
|
|
27
|
+
export interface RelationsApiInterface {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param {string} companyCode
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
* @memberof RelationsApiInterface
|
|
34
|
+
*/
|
|
35
|
+
getOriginRaw(
|
|
36
|
+
requestParameters: RelationsApiGetOriginRequest,
|
|
37
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
38
|
+
): Promise<runtime.ApiResponse<OriginRelations>>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
*/
|
|
42
|
+
getOrigin(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OriginRelations>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export class RelationsApi extends runtime.BaseAPI implements RelationsApiInterface {
|
|
49
|
+
/**
|
|
50
|
+
*/
|
|
51
|
+
async getOriginRaw(
|
|
52
|
+
requestParameters: RelationsApiGetOriginRequest,
|
|
53
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
54
|
+
): Promise<runtime.ApiResponse<OriginRelations>> {
|
|
55
|
+
if (requestParameters['companyCode'] == null) {
|
|
56
|
+
throw new runtime.RequiredError(
|
|
57
|
+
'companyCode',
|
|
58
|
+
'Required parameter "companyCode" was null or undefined when calling getOrigin().',
|
|
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}/relations/origin`.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 getOrigin(
|
|
93
|
+
companyCode: string,
|
|
94
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
95
|
+
): Promise<OriginRelations> {
|
|
96
|
+
const response = await this.getOriginRaw({ companyCode: companyCode }, initOverrides);
|
|
97
|
+
return await response.value();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
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 { Dashboard, ReportGroups } from '../models/index';
|
|
15
|
+
import * as runtime from '../runtime';
|
|
16
|
+
|
|
17
|
+
export interface ReportGroupsApiGetRequest {
|
|
18
|
+
companyCode: string;
|
|
19
|
+
glimpse?: boolean | null;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ReportGroupsApiGetItemRequest {
|
|
23
|
+
companyCode: string;
|
|
24
|
+
dashboardCode: string;
|
|
25
|
+
glimpse?: boolean | null;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* ReportGroupsApi - interface
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface ReportGroupsApiInterface
|
|
33
|
+
*/
|
|
34
|
+
export interface ReportGroupsApiInterface {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param {string} companyCode
|
|
38
|
+
* @param {boolean} [glimpse]
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
* @memberof ReportGroupsApiInterface
|
|
42
|
+
*/
|
|
43
|
+
getRaw(
|
|
44
|
+
requestParameters: ReportGroupsApiGetRequest,
|
|
45
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
46
|
+
): Promise<runtime.ApiResponse<ReportGroups>>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
*/
|
|
50
|
+
get(
|
|
51
|
+
companyCode: string,
|
|
52
|
+
glimpse?: boolean | null,
|
|
53
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
54
|
+
): Promise<ReportGroups>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @param {string} companyCode
|
|
59
|
+
* @param {string} dashboardCode
|
|
60
|
+
* @param {boolean} [glimpse]
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
* @memberof ReportGroupsApiInterface
|
|
64
|
+
*/
|
|
65
|
+
getItemRaw(
|
|
66
|
+
requestParameters: ReportGroupsApiGetItemRequest,
|
|
67
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
68
|
+
): Promise<runtime.ApiResponse<Dashboard>>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
*/
|
|
72
|
+
getItem(
|
|
73
|
+
companyCode: string,
|
|
74
|
+
dashboardCode: string,
|
|
75
|
+
glimpse?: boolean | null,
|
|
76
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
77
|
+
): Promise<Dashboard>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
export class ReportGroupsApi extends runtime.BaseAPI implements ReportGroupsApiInterface {
|
|
84
|
+
/**
|
|
85
|
+
*/
|
|
86
|
+
async getRaw(
|
|
87
|
+
requestParameters: ReportGroupsApiGetRequest,
|
|
88
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
89
|
+
): Promise<runtime.ApiResponse<ReportGroups>> {
|
|
90
|
+
if (requestParameters['companyCode'] == null) {
|
|
91
|
+
throw new runtime.RequiredError(
|
|
92
|
+
'companyCode',
|
|
93
|
+
'Required parameter "companyCode" was null or undefined when calling get().',
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const queryParameters: any = {};
|
|
98
|
+
|
|
99
|
+
if (requestParameters['glimpse'] != null) {
|
|
100
|
+
queryParameters['glimpse'] = requestParameters['glimpse'];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
104
|
+
|
|
105
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
106
|
+
const token = this.configuration.accessToken;
|
|
107
|
+
const tokenString = await token('bearerToken', ['internal']);
|
|
108
|
+
|
|
109
|
+
if (tokenString) {
|
|
110
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const response = await this.request(
|
|
114
|
+
{
|
|
115
|
+
path: `/api/v1/c/{company_code}/report-groups`.replace(
|
|
116
|
+
`{${'company_code'}}`,
|
|
117
|
+
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
118
|
+
),
|
|
119
|
+
method: 'GET',
|
|
120
|
+
headers: headerParameters,
|
|
121
|
+
query: queryParameters,
|
|
122
|
+
},
|
|
123
|
+
initOverrides,
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
return new runtime.JSONApiResponse(response);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
*/
|
|
131
|
+
async get(
|
|
132
|
+
companyCode: string,
|
|
133
|
+
glimpse?: boolean | null,
|
|
134
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
135
|
+
): Promise<ReportGroups> {
|
|
136
|
+
const response = await this.getRaw({ companyCode: companyCode, glimpse: glimpse }, initOverrides);
|
|
137
|
+
return await response.value();
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
*/
|
|
142
|
+
async getItemRaw(
|
|
143
|
+
requestParameters: ReportGroupsApiGetItemRequest,
|
|
144
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
145
|
+
): Promise<runtime.ApiResponse<Dashboard>> {
|
|
146
|
+
if (requestParameters['companyCode'] == null) {
|
|
147
|
+
throw new runtime.RequiredError(
|
|
148
|
+
'companyCode',
|
|
149
|
+
'Required parameter "companyCode" was null or undefined when calling getItem().',
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (requestParameters['dashboardCode'] == null) {
|
|
154
|
+
throw new runtime.RequiredError(
|
|
155
|
+
'dashboardCode',
|
|
156
|
+
'Required parameter "dashboardCode" was null or undefined when calling getItem().',
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const queryParameters: any = {};
|
|
161
|
+
|
|
162
|
+
if (requestParameters['glimpse'] != null) {
|
|
163
|
+
queryParameters['glimpse'] = requestParameters['glimpse'];
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
167
|
+
|
|
168
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
169
|
+
const token = this.configuration.accessToken;
|
|
170
|
+
const tokenString = await token('bearerToken', ['internal']);
|
|
171
|
+
|
|
172
|
+
if (tokenString) {
|
|
173
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const response = await this.request(
|
|
177
|
+
{
|
|
178
|
+
path: `/api/v1/c/{company_code}/report-groups/{dashboard_code}`
|
|
179
|
+
.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
|
|
180
|
+
.replace(`{${'dashboard_code'}}`, encodeURIComponent(String(requestParameters['dashboardCode']))),
|
|
181
|
+
method: 'GET',
|
|
182
|
+
headers: headerParameters,
|
|
183
|
+
query: queryParameters,
|
|
184
|
+
},
|
|
185
|
+
initOverrides,
|
|
186
|
+
);
|
|
187
|
+
|
|
188
|
+
return new runtime.JSONApiResponse(response);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
*/
|
|
193
|
+
async getItem(
|
|
194
|
+
companyCode: string,
|
|
195
|
+
dashboardCode: string,
|
|
196
|
+
glimpse?: boolean | null,
|
|
197
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
198
|
+
): Promise<Dashboard> {
|
|
199
|
+
const response = await this.getItemRaw(
|
|
200
|
+
{ companyCode: companyCode, dashboardCode: dashboardCode, glimpse: glimpse },
|
|
201
|
+
initOverrides,
|
|
202
|
+
);
|
|
203
|
+
return await response.value();
|
|
204
|
+
}
|
|
205
|
+
}
|