@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,504 +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 { CellExplanation, TransactionSourceFiltersResponse } from '../models/index';
|
|
15
|
-
import * as runtime from '../runtime';
|
|
16
|
-
|
|
17
|
-
export interface ExplanationApiCellRequest {
|
|
18
|
-
companyCode: string;
|
|
19
|
-
structureType: string;
|
|
20
|
-
structureCode: string;
|
|
21
|
-
nodeCode: string;
|
|
22
|
-
period: number | null;
|
|
23
|
-
year: number | null;
|
|
24
|
-
category: string;
|
|
25
|
-
entity: string;
|
|
26
|
-
costCenter: string;
|
|
27
|
-
view: string;
|
|
28
|
-
glimpse?: boolean | null;
|
|
29
|
-
experimental?: string | null;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface ExplanationApiGetTransactionsSourceFiltersRequest {
|
|
33
|
-
companyCode: string;
|
|
34
|
-
structureType: string;
|
|
35
|
-
structureCode: string;
|
|
36
|
-
nodeCode: string;
|
|
37
|
-
period: number;
|
|
38
|
-
year: number;
|
|
39
|
-
category: string;
|
|
40
|
-
entity: string;
|
|
41
|
-
costCenter: string;
|
|
42
|
-
view: string;
|
|
43
|
-
glimpse?: boolean | null;
|
|
44
|
-
experimental?: string | null;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* ExplanationApi - interface
|
|
49
|
-
*
|
|
50
|
-
* @export
|
|
51
|
-
* @interface ExplanationApiInterface
|
|
52
|
-
*/
|
|
53
|
-
export interface ExplanationApiInterface {
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @param {string} companyCode
|
|
57
|
-
* @param {string} structureType
|
|
58
|
-
* @param {string} structureCode
|
|
59
|
-
* @param {string} nodeCode
|
|
60
|
-
* @param {number} period
|
|
61
|
-
* @param {number} year
|
|
62
|
-
* @param {string} category
|
|
63
|
-
* @param {string} entity
|
|
64
|
-
* @param {string} costCenter
|
|
65
|
-
* @param {string} view
|
|
66
|
-
* @param {boolean} [glimpse]
|
|
67
|
-
* @param {string} [experimental]
|
|
68
|
-
* @param {*} [options] Override http request option.
|
|
69
|
-
* @throws {RequiredError}
|
|
70
|
-
* @memberof ExplanationApiInterface
|
|
71
|
-
*/
|
|
72
|
-
cellRaw(
|
|
73
|
-
requestParameters: ExplanationApiCellRequest,
|
|
74
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
75
|
-
): Promise<runtime.ApiResponse<CellExplanation>>;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
*/
|
|
79
|
-
cell(
|
|
80
|
-
companyCode: string,
|
|
81
|
-
structureType: string,
|
|
82
|
-
structureCode: string,
|
|
83
|
-
nodeCode: string,
|
|
84
|
-
period: number | null,
|
|
85
|
-
year: number | null,
|
|
86
|
-
category: string,
|
|
87
|
-
entity: string,
|
|
88
|
-
costCenter: string,
|
|
89
|
-
view: string,
|
|
90
|
-
glimpse?: boolean | null,
|
|
91
|
-
experimental?: string | null,
|
|
92
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
93
|
-
): Promise<CellExplanation>;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @param {string} companyCode
|
|
98
|
-
* @param {string} structureType
|
|
99
|
-
* @param {string} structureCode
|
|
100
|
-
* @param {string} nodeCode
|
|
101
|
-
* @param {number} period
|
|
102
|
-
* @param {number} year
|
|
103
|
-
* @param {string} category
|
|
104
|
-
* @param {string} entity
|
|
105
|
-
* @param {string} costCenter
|
|
106
|
-
* @param {string} view
|
|
107
|
-
* @param {boolean} [glimpse]
|
|
108
|
-
* @param {string} [experimental]
|
|
109
|
-
* @param {*} [options] Override http request option.
|
|
110
|
-
* @throws {RequiredError}
|
|
111
|
-
* @memberof ExplanationApiInterface
|
|
112
|
-
*/
|
|
113
|
-
getTransactionsSourceFiltersRaw(
|
|
114
|
-
requestParameters: ExplanationApiGetTransactionsSourceFiltersRequest,
|
|
115
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
116
|
-
): Promise<runtime.ApiResponse<TransactionSourceFiltersResponse>>;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
*/
|
|
120
|
-
getTransactionsSourceFilters(
|
|
121
|
-
companyCode: string,
|
|
122
|
-
structureType: string,
|
|
123
|
-
structureCode: string,
|
|
124
|
-
nodeCode: string,
|
|
125
|
-
period: number,
|
|
126
|
-
year: number,
|
|
127
|
-
category: string,
|
|
128
|
-
entity: string,
|
|
129
|
-
costCenter: string,
|
|
130
|
-
view: string,
|
|
131
|
-
glimpse?: boolean | null,
|
|
132
|
-
experimental?: string | null,
|
|
133
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
134
|
-
): Promise<TransactionSourceFiltersResponse>;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
*
|
|
139
|
-
*/
|
|
140
|
-
export class ExplanationApi extends runtime.BaseAPI implements ExplanationApiInterface {
|
|
141
|
-
/**
|
|
142
|
-
*/
|
|
143
|
-
async cellRaw(
|
|
144
|
-
requestParameters: ExplanationApiCellRequest,
|
|
145
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
146
|
-
): Promise<runtime.ApiResponse<CellExplanation>> {
|
|
147
|
-
if (requestParameters['companyCode'] == null) {
|
|
148
|
-
throw new runtime.RequiredError(
|
|
149
|
-
'companyCode',
|
|
150
|
-
'Required parameter "companyCode" was null or undefined when calling cell().',
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
if (requestParameters['structureType'] == null) {
|
|
155
|
-
throw new runtime.RequiredError(
|
|
156
|
-
'structureType',
|
|
157
|
-
'Required parameter "structureType" was null or undefined when calling cell().',
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (requestParameters['structureCode'] == null) {
|
|
162
|
-
throw new runtime.RequiredError(
|
|
163
|
-
'structureCode',
|
|
164
|
-
'Required parameter "structureCode" was null or undefined when calling cell().',
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (requestParameters['nodeCode'] == null) {
|
|
169
|
-
throw new runtime.RequiredError(
|
|
170
|
-
'nodeCode',
|
|
171
|
-
'Required parameter "nodeCode" was null or undefined when calling cell().',
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
if (requestParameters['period'] == null) {
|
|
176
|
-
throw new runtime.RequiredError(
|
|
177
|
-
'period',
|
|
178
|
-
'Required parameter "period" was null or undefined when calling cell().',
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
if (requestParameters['year'] == null) {
|
|
183
|
-
throw new runtime.RequiredError('year', 'Required parameter "year" was null or undefined when calling cell().');
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
if (requestParameters['category'] == null) {
|
|
187
|
-
throw new runtime.RequiredError(
|
|
188
|
-
'category',
|
|
189
|
-
'Required parameter "category" was null or undefined when calling cell().',
|
|
190
|
-
);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
if (requestParameters['entity'] == null) {
|
|
194
|
-
throw new runtime.RequiredError(
|
|
195
|
-
'entity',
|
|
196
|
-
'Required parameter "entity" was null or undefined when calling cell().',
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
if (requestParameters['costCenter'] == null) {
|
|
201
|
-
throw new runtime.RequiredError(
|
|
202
|
-
'costCenter',
|
|
203
|
-
'Required parameter "costCenter" was null or undefined when calling cell().',
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
if (requestParameters['view'] == null) {
|
|
208
|
-
throw new runtime.RequiredError('view', 'Required parameter "view" was null or undefined when calling cell().');
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
const queryParameters: any = {};
|
|
212
|
-
|
|
213
|
-
if (requestParameters['structureType'] != null) {
|
|
214
|
-
queryParameters['structureType'] = requestParameters['structureType'];
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
if (requestParameters['structureCode'] != null) {
|
|
218
|
-
queryParameters['structureCode'] = requestParameters['structureCode'];
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
if (requestParameters['nodeCode'] != null) {
|
|
222
|
-
queryParameters['nodeCode'] = requestParameters['nodeCode'];
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
if (requestParameters['period'] != null) {
|
|
226
|
-
queryParameters['period'] = requestParameters['period'];
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
if (requestParameters['year'] != null) {
|
|
230
|
-
queryParameters['year'] = requestParameters['year'];
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
if (requestParameters['category'] != null) {
|
|
234
|
-
queryParameters['category'] = requestParameters['category'];
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
if (requestParameters['entity'] != null) {
|
|
238
|
-
queryParameters['entity'] = requestParameters['entity'];
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
if (requestParameters['costCenter'] != null) {
|
|
242
|
-
queryParameters['costCenter'] = requestParameters['costCenter'];
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
if (requestParameters['view'] != null) {
|
|
246
|
-
queryParameters['view'] = requestParameters['view'];
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
if (requestParameters['glimpse'] != null) {
|
|
250
|
-
queryParameters['glimpse'] = requestParameters['glimpse'];
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
if (requestParameters['experimental'] != null) {
|
|
254
|
-
queryParameters['experimental'] = requestParameters['experimental'];
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
258
|
-
|
|
259
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
260
|
-
const token = this.configuration.accessToken;
|
|
261
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
262
|
-
|
|
263
|
-
if (tokenString) {
|
|
264
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
const response = await this.request(
|
|
268
|
-
{
|
|
269
|
-
path: `/api/v1/c/{company_code}/explanation/cell`.replace(
|
|
270
|
-
`{${'company_code'}}`,
|
|
271
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
272
|
-
),
|
|
273
|
-
method: 'GET',
|
|
274
|
-
headers: headerParameters,
|
|
275
|
-
query: queryParameters,
|
|
276
|
-
},
|
|
277
|
-
initOverrides,
|
|
278
|
-
);
|
|
279
|
-
|
|
280
|
-
return new runtime.JSONApiResponse(response);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
*/
|
|
285
|
-
async cell(
|
|
286
|
-
companyCode: string,
|
|
287
|
-
structureType: string,
|
|
288
|
-
structureCode: string,
|
|
289
|
-
nodeCode: string,
|
|
290
|
-
period: number | null,
|
|
291
|
-
year: number | null,
|
|
292
|
-
category: string,
|
|
293
|
-
entity: string,
|
|
294
|
-
costCenter: string,
|
|
295
|
-
view: string,
|
|
296
|
-
glimpse?: boolean | null,
|
|
297
|
-
experimental?: string | null,
|
|
298
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
299
|
-
): Promise<CellExplanation> {
|
|
300
|
-
const response = await this.cellRaw(
|
|
301
|
-
{
|
|
302
|
-
companyCode: companyCode,
|
|
303
|
-
structureType: structureType,
|
|
304
|
-
structureCode: structureCode,
|
|
305
|
-
nodeCode: nodeCode,
|
|
306
|
-
period: period,
|
|
307
|
-
year: year,
|
|
308
|
-
category: category,
|
|
309
|
-
entity: entity,
|
|
310
|
-
costCenter: costCenter,
|
|
311
|
-
view: view,
|
|
312
|
-
glimpse: glimpse,
|
|
313
|
-
experimental: experimental,
|
|
314
|
-
},
|
|
315
|
-
initOverrides,
|
|
316
|
-
);
|
|
317
|
-
return await response.value();
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
*/
|
|
322
|
-
async getTransactionsSourceFiltersRaw(
|
|
323
|
-
requestParameters: ExplanationApiGetTransactionsSourceFiltersRequest,
|
|
324
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
325
|
-
): Promise<runtime.ApiResponse<TransactionSourceFiltersResponse>> {
|
|
326
|
-
if (requestParameters['companyCode'] == null) {
|
|
327
|
-
throw new runtime.RequiredError(
|
|
328
|
-
'companyCode',
|
|
329
|
-
'Required parameter "companyCode" was null or undefined when calling getTransactionsSourceFilters().',
|
|
330
|
-
);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
if (requestParameters['structureType'] == null) {
|
|
334
|
-
throw new runtime.RequiredError(
|
|
335
|
-
'structureType',
|
|
336
|
-
'Required parameter "structureType" was null or undefined when calling getTransactionsSourceFilters().',
|
|
337
|
-
);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
if (requestParameters['structureCode'] == null) {
|
|
341
|
-
throw new runtime.RequiredError(
|
|
342
|
-
'structureCode',
|
|
343
|
-
'Required parameter "structureCode" was null or undefined when calling getTransactionsSourceFilters().',
|
|
344
|
-
);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
if (requestParameters['nodeCode'] == null) {
|
|
348
|
-
throw new runtime.RequiredError(
|
|
349
|
-
'nodeCode',
|
|
350
|
-
'Required parameter "nodeCode" was null or undefined when calling getTransactionsSourceFilters().',
|
|
351
|
-
);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
if (requestParameters['period'] == null) {
|
|
355
|
-
throw new runtime.RequiredError(
|
|
356
|
-
'period',
|
|
357
|
-
'Required parameter "period" was null or undefined when calling getTransactionsSourceFilters().',
|
|
358
|
-
);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
if (requestParameters['year'] == null) {
|
|
362
|
-
throw new runtime.RequiredError(
|
|
363
|
-
'year',
|
|
364
|
-
'Required parameter "year" was null or undefined when calling getTransactionsSourceFilters().',
|
|
365
|
-
);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
if (requestParameters['category'] == null) {
|
|
369
|
-
throw new runtime.RequiredError(
|
|
370
|
-
'category',
|
|
371
|
-
'Required parameter "category" was null or undefined when calling getTransactionsSourceFilters().',
|
|
372
|
-
);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
if (requestParameters['entity'] == null) {
|
|
376
|
-
throw new runtime.RequiredError(
|
|
377
|
-
'entity',
|
|
378
|
-
'Required parameter "entity" was null or undefined when calling getTransactionsSourceFilters().',
|
|
379
|
-
);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
if (requestParameters['costCenter'] == null) {
|
|
383
|
-
throw new runtime.RequiredError(
|
|
384
|
-
'costCenter',
|
|
385
|
-
'Required parameter "costCenter" was null or undefined when calling getTransactionsSourceFilters().',
|
|
386
|
-
);
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
if (requestParameters['view'] == null) {
|
|
390
|
-
throw new runtime.RequiredError(
|
|
391
|
-
'view',
|
|
392
|
-
'Required parameter "view" was null or undefined when calling getTransactionsSourceFilters().',
|
|
393
|
-
);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
const queryParameters: any = {};
|
|
397
|
-
|
|
398
|
-
if (requestParameters['structureType'] != null) {
|
|
399
|
-
queryParameters['structureType'] = requestParameters['structureType'];
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
if (requestParameters['structureCode'] != null) {
|
|
403
|
-
queryParameters['structureCode'] = requestParameters['structureCode'];
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
if (requestParameters['nodeCode'] != null) {
|
|
407
|
-
queryParameters['nodeCode'] = requestParameters['nodeCode'];
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
if (requestParameters['period'] != null) {
|
|
411
|
-
queryParameters['period'] = requestParameters['period'];
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
if (requestParameters['year'] != null) {
|
|
415
|
-
queryParameters['year'] = requestParameters['year'];
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
if (requestParameters['category'] != null) {
|
|
419
|
-
queryParameters['category'] = requestParameters['category'];
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
if (requestParameters['entity'] != null) {
|
|
423
|
-
queryParameters['entity'] = requestParameters['entity'];
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
if (requestParameters['costCenter'] != null) {
|
|
427
|
-
queryParameters['costCenter'] = requestParameters['costCenter'];
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
if (requestParameters['view'] != null) {
|
|
431
|
-
queryParameters['view'] = requestParameters['view'];
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
if (requestParameters['glimpse'] != null) {
|
|
435
|
-
queryParameters['glimpse'] = requestParameters['glimpse'];
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
if (requestParameters['experimental'] != null) {
|
|
439
|
-
queryParameters['experimental'] = requestParameters['experimental'];
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
443
|
-
|
|
444
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
445
|
-
const token = this.configuration.accessToken;
|
|
446
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
447
|
-
|
|
448
|
-
if (tokenString) {
|
|
449
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
const response = await this.request(
|
|
453
|
-
{
|
|
454
|
-
path: `/api/v1/c/{company_code}/explanation/transactions-source-filters/by-cell-coordinates`.replace(
|
|
455
|
-
`{${'company_code'}}`,
|
|
456
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
457
|
-
),
|
|
458
|
-
method: 'GET',
|
|
459
|
-
headers: headerParameters,
|
|
460
|
-
query: queryParameters,
|
|
461
|
-
},
|
|
462
|
-
initOverrides,
|
|
463
|
-
);
|
|
464
|
-
|
|
465
|
-
return new runtime.JSONApiResponse(response);
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
*/
|
|
470
|
-
async getTransactionsSourceFilters(
|
|
471
|
-
companyCode: string,
|
|
472
|
-
structureType: string,
|
|
473
|
-
structureCode: string,
|
|
474
|
-
nodeCode: string,
|
|
475
|
-
period: number,
|
|
476
|
-
year: number,
|
|
477
|
-
category: string,
|
|
478
|
-
entity: string,
|
|
479
|
-
costCenter: string,
|
|
480
|
-
view: string,
|
|
481
|
-
glimpse?: boolean | null,
|
|
482
|
-
experimental?: string | null,
|
|
483
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
484
|
-
): Promise<TransactionSourceFiltersResponse> {
|
|
485
|
-
const response = await this.getTransactionsSourceFiltersRaw(
|
|
486
|
-
{
|
|
487
|
-
companyCode: companyCode,
|
|
488
|
-
structureType: structureType,
|
|
489
|
-
structureCode: structureCode,
|
|
490
|
-
nodeCode: nodeCode,
|
|
491
|
-
period: period,
|
|
492
|
-
year: year,
|
|
493
|
-
category: category,
|
|
494
|
-
entity: entity,
|
|
495
|
-
costCenter: costCenter,
|
|
496
|
-
view: view,
|
|
497
|
-
glimpse: glimpse,
|
|
498
|
-
experimental: experimental,
|
|
499
|
-
},
|
|
500
|
-
initOverrides,
|
|
501
|
-
);
|
|
502
|
-
return await response.value();
|
|
503
|
-
}
|
|
504
|
-
}
|
|
@@ -1,96 +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 { Formats } from '../models/index';
|
|
15
|
-
import * as runtime from '../runtime';
|
|
16
|
-
|
|
17
|
-
export interface FormatsApiGetRequest {
|
|
18
|
-
companyCode: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* FormatsApi - interface
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
* @interface FormatsApiInterface
|
|
26
|
-
*/
|
|
27
|
-
export interface FormatsApiInterface {
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @param {string} companyCode
|
|
31
|
-
* @param {*} [options] Override http request option.
|
|
32
|
-
* @throws {RequiredError}
|
|
33
|
-
* @memberof FormatsApiInterface
|
|
34
|
-
*/
|
|
35
|
-
getRaw(
|
|
36
|
-
requestParameters: FormatsApiGetRequest,
|
|
37
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
38
|
-
): Promise<runtime.ApiResponse<Formats>>;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
*/
|
|
42
|
-
get(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Formats>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
export class FormatsApi extends runtime.BaseAPI implements FormatsApiInterface {
|
|
49
|
-
/**
|
|
50
|
-
*/
|
|
51
|
-
async getRaw(
|
|
52
|
-
requestParameters: FormatsApiGetRequest,
|
|
53
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
54
|
-
): Promise<runtime.ApiResponse<Formats>> {
|
|
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}/formats`.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(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Formats> {
|
|
93
|
-
const response = await this.getRaw({ companyCode: companyCode }, initOverrides);
|
|
94
|
-
return await response.value();
|
|
95
|
-
}
|
|
96
|
-
}
|