@smartbooks-ai/api-client 0.0.6 → 0.0.8
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,597 +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 {
|
|
15
|
-
CompanyGraphCalculationResponse,
|
|
16
|
-
CompanyHealthIssuesResponse,
|
|
17
|
-
CompanyHealthPutRequest,
|
|
18
|
-
RecalculatePartitionsRequest,
|
|
19
|
-
SupportUsers,
|
|
20
|
-
} from '../models/index';
|
|
21
|
-
import * as runtime from '../runtime';
|
|
22
|
-
|
|
23
|
-
export interface MaintenanceApiGetCalculationVisualizationForCompanyRequest {
|
|
24
|
-
companyCode: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface MaintenanceApiMuteCompanyAlertsRequest {
|
|
28
|
-
companyCode: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface MaintenanceApiPutCompanyAlertsRequest {
|
|
32
|
-
companyCode: string;
|
|
33
|
-
companyHealthPutRequest: CompanyHealthPutRequest;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface MaintenanceApiRecalculateAllRequest {
|
|
37
|
-
companyCode: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface MaintenanceApiRecalculatePartitionsOperationRequest {
|
|
41
|
-
companyCode: string;
|
|
42
|
-
recalculatePartitionsRequest: RecalculatePartitionsRequest;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface MaintenanceApiUnmuteCompanyAlertsRequest {
|
|
46
|
-
companyCode: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* MaintenanceApi - interface
|
|
51
|
-
*
|
|
52
|
-
* @export
|
|
53
|
-
* @interface MaintenanceApiInterface
|
|
54
|
-
*/
|
|
55
|
-
export interface MaintenanceApiInterface {
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @param {string} companyCode
|
|
59
|
-
* @param {*} [options] Override http request option.
|
|
60
|
-
* @throws {RequiredError}
|
|
61
|
-
* @memberof MaintenanceApiInterface
|
|
62
|
-
*/
|
|
63
|
-
getCalculationVisualizationForCompanyRaw(
|
|
64
|
-
requestParameters: MaintenanceApiGetCalculationVisualizationForCompanyRequest,
|
|
65
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
66
|
-
): Promise<runtime.ApiResponse<CompanyGraphCalculationResponse>>;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
*/
|
|
70
|
-
getCalculationVisualizationForCompany(
|
|
71
|
-
companyCode: string,
|
|
72
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
73
|
-
): Promise<CompanyGraphCalculationResponse>;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @param {*} [options] Override http request option.
|
|
78
|
-
* @throws {RequiredError}
|
|
79
|
-
* @memberof MaintenanceApiInterface
|
|
80
|
-
*/
|
|
81
|
-
getIssuesRaw(
|
|
82
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
83
|
-
): Promise<runtime.ApiResponse<CompanyHealthIssuesResponse>>;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
*/
|
|
87
|
-
getIssues(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompanyHealthIssuesResponse>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @param {*} [options] Override http request option.
|
|
92
|
-
* @throws {RequiredError}
|
|
93
|
-
* @memberof MaintenanceApiInterface
|
|
94
|
-
*/
|
|
95
|
-
getSupportUsersRaw(
|
|
96
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
97
|
-
): Promise<runtime.ApiResponse<SupportUsers>>;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
*/
|
|
101
|
-
getSupportUsers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportUsers>;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @param {string} companyCode
|
|
106
|
-
* @param {*} [options] Override http request option.
|
|
107
|
-
* @throws {RequiredError}
|
|
108
|
-
* @memberof MaintenanceApiInterface
|
|
109
|
-
*/
|
|
110
|
-
muteCompanyAlertsRaw(
|
|
111
|
-
requestParameters: MaintenanceApiMuteCompanyAlertsRequest,
|
|
112
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
113
|
-
): Promise<runtime.ApiResponse<void>>;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
*/
|
|
117
|
-
muteCompanyAlerts(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @param {string} companyCode
|
|
122
|
-
* @param {CompanyHealthPutRequest} companyHealthPutRequest
|
|
123
|
-
* @param {*} [options] Override http request option.
|
|
124
|
-
* @throws {RequiredError}
|
|
125
|
-
* @memberof MaintenanceApiInterface
|
|
126
|
-
*/
|
|
127
|
-
putCompanyAlertsRaw(
|
|
128
|
-
requestParameters: MaintenanceApiPutCompanyAlertsRequest,
|
|
129
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
130
|
-
): Promise<runtime.ApiResponse<void>>;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
*/
|
|
134
|
-
putCompanyAlerts(
|
|
135
|
-
companyCode: string,
|
|
136
|
-
companyHealthPutRequest: CompanyHealthPutRequest,
|
|
137
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
138
|
-
): Promise<void>;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
*
|
|
142
|
-
* @param {string} companyCode
|
|
143
|
-
* @param {*} [options] Override http request option.
|
|
144
|
-
* @throws {RequiredError}
|
|
145
|
-
* @memberof MaintenanceApiInterface
|
|
146
|
-
*/
|
|
147
|
-
recalculateAllRaw(
|
|
148
|
-
requestParameters: MaintenanceApiRecalculateAllRequest,
|
|
149
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
150
|
-
): Promise<runtime.ApiResponse<void>>;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
*/
|
|
154
|
-
recalculateAll(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @param {string} companyCode
|
|
159
|
-
* @param {RecalculatePartitionsRequest} recalculatePartitionsRequest
|
|
160
|
-
* @param {*} [options] Override http request option.
|
|
161
|
-
* @throws {RequiredError}
|
|
162
|
-
* @memberof MaintenanceApiInterface
|
|
163
|
-
*/
|
|
164
|
-
recalculatePartitionsRaw(
|
|
165
|
-
requestParameters: MaintenanceApiRecalculatePartitionsOperationRequest,
|
|
166
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
167
|
-
): Promise<runtime.ApiResponse<void>>;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
*/
|
|
171
|
-
recalculatePartitions(
|
|
172
|
-
companyCode: string,
|
|
173
|
-
recalculatePartitionsRequest: RecalculatePartitionsRequest,
|
|
174
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
175
|
-
): Promise<void>;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
*
|
|
179
|
-
* @param {string} companyCode
|
|
180
|
-
* @param {*} [options] Override http request option.
|
|
181
|
-
* @throws {RequiredError}
|
|
182
|
-
* @memberof MaintenanceApiInterface
|
|
183
|
-
*/
|
|
184
|
-
unmuteCompanyAlertsRaw(
|
|
185
|
-
requestParameters: MaintenanceApiUnmuteCompanyAlertsRequest,
|
|
186
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
187
|
-
): Promise<runtime.ApiResponse<void>>;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
*/
|
|
191
|
-
unmuteCompanyAlerts(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
*
|
|
196
|
-
*/
|
|
197
|
-
export class MaintenanceApi extends runtime.BaseAPI implements MaintenanceApiInterface {
|
|
198
|
-
/**
|
|
199
|
-
*/
|
|
200
|
-
async getCalculationVisualizationForCompanyRaw(
|
|
201
|
-
requestParameters: MaintenanceApiGetCalculationVisualizationForCompanyRequest,
|
|
202
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
203
|
-
): Promise<runtime.ApiResponse<CompanyGraphCalculationResponse>> {
|
|
204
|
-
if (requestParameters['companyCode'] == null) {
|
|
205
|
-
throw new runtime.RequiredError(
|
|
206
|
-
'companyCode',
|
|
207
|
-
'Required parameter "companyCode" was null or undefined when calling getCalculationVisualizationForCompany().',
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
const queryParameters: any = {};
|
|
212
|
-
|
|
213
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
214
|
-
|
|
215
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
216
|
-
const token = this.configuration.accessToken;
|
|
217
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
218
|
-
|
|
219
|
-
if (tokenString) {
|
|
220
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
const response = await this.request(
|
|
224
|
-
{
|
|
225
|
-
path: `/api/v1/maintenance/calculations-visualization/c/{company_code}`.replace(
|
|
226
|
-
`{${'company_code'}}`,
|
|
227
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
228
|
-
),
|
|
229
|
-
method: 'GET',
|
|
230
|
-
headers: headerParameters,
|
|
231
|
-
query: queryParameters,
|
|
232
|
-
},
|
|
233
|
-
initOverrides,
|
|
234
|
-
);
|
|
235
|
-
|
|
236
|
-
return new runtime.JSONApiResponse(response);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
*/
|
|
241
|
-
async getCalculationVisualizationForCompany(
|
|
242
|
-
companyCode: string,
|
|
243
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
244
|
-
): Promise<CompanyGraphCalculationResponse> {
|
|
245
|
-
const response = await this.getCalculationVisualizationForCompanyRaw({ companyCode: companyCode }, initOverrides);
|
|
246
|
-
return await response.value();
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
*/
|
|
251
|
-
async getIssuesRaw(
|
|
252
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
253
|
-
): Promise<runtime.ApiResponse<CompanyHealthIssuesResponse>> {
|
|
254
|
-
const queryParameters: any = {};
|
|
255
|
-
|
|
256
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
257
|
-
|
|
258
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
259
|
-
const token = this.configuration.accessToken;
|
|
260
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
261
|
-
|
|
262
|
-
if (tokenString) {
|
|
263
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
const response = await this.request(
|
|
267
|
-
{
|
|
268
|
-
path: `/api/v1/maintenance/company_health/issues`,
|
|
269
|
-
method: 'GET',
|
|
270
|
-
headers: headerParameters,
|
|
271
|
-
query: queryParameters,
|
|
272
|
-
},
|
|
273
|
-
initOverrides,
|
|
274
|
-
);
|
|
275
|
-
|
|
276
|
-
return new runtime.JSONApiResponse(response);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
*/
|
|
281
|
-
async getIssues(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompanyHealthIssuesResponse> {
|
|
282
|
-
const response = await this.getIssuesRaw(initOverrides);
|
|
283
|
-
return await response.value();
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
*/
|
|
288
|
-
async getSupportUsersRaw(
|
|
289
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
290
|
-
): Promise<runtime.ApiResponse<SupportUsers>> {
|
|
291
|
-
const queryParameters: any = {};
|
|
292
|
-
|
|
293
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
294
|
-
|
|
295
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
296
|
-
const token = this.configuration.accessToken;
|
|
297
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
298
|
-
|
|
299
|
-
if (tokenString) {
|
|
300
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
const response = await this.request(
|
|
304
|
-
{
|
|
305
|
-
path: `/api/v1/maintenance/support_users`,
|
|
306
|
-
method: 'GET',
|
|
307
|
-
headers: headerParameters,
|
|
308
|
-
query: queryParameters,
|
|
309
|
-
},
|
|
310
|
-
initOverrides,
|
|
311
|
-
);
|
|
312
|
-
|
|
313
|
-
return new runtime.JSONApiResponse(response);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
*/
|
|
318
|
-
async getSupportUsers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportUsers> {
|
|
319
|
-
const response = await this.getSupportUsersRaw(initOverrides);
|
|
320
|
-
return await response.value();
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
*/
|
|
325
|
-
async muteCompanyAlertsRaw(
|
|
326
|
-
requestParameters: MaintenanceApiMuteCompanyAlertsRequest,
|
|
327
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
328
|
-
): Promise<runtime.ApiResponse<void>> {
|
|
329
|
-
if (requestParameters['companyCode'] == null) {
|
|
330
|
-
throw new runtime.RequiredError(
|
|
331
|
-
'companyCode',
|
|
332
|
-
'Required parameter "companyCode" was null or undefined when calling muteCompanyAlerts().',
|
|
333
|
-
);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
const queryParameters: any = {};
|
|
337
|
-
|
|
338
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
339
|
-
|
|
340
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
341
|
-
const token = this.configuration.accessToken;
|
|
342
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
343
|
-
|
|
344
|
-
if (tokenString) {
|
|
345
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
const response = await this.request(
|
|
349
|
-
{
|
|
350
|
-
path: `/api/v1/maintenance/company_health/{company_code}/mute`.replace(
|
|
351
|
-
`{${'company_code'}}`,
|
|
352
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
353
|
-
),
|
|
354
|
-
method: 'POST',
|
|
355
|
-
headers: headerParameters,
|
|
356
|
-
query: queryParameters,
|
|
357
|
-
},
|
|
358
|
-
initOverrides,
|
|
359
|
-
);
|
|
360
|
-
|
|
361
|
-
return new runtime.VoidApiResponse(response);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
*/
|
|
366
|
-
async muteCompanyAlerts(
|
|
367
|
-
companyCode: string,
|
|
368
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
369
|
-
): Promise<void> {
|
|
370
|
-
await this.muteCompanyAlertsRaw({ companyCode: companyCode }, initOverrides);
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
*/
|
|
375
|
-
async putCompanyAlertsRaw(
|
|
376
|
-
requestParameters: MaintenanceApiPutCompanyAlertsRequest,
|
|
377
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
378
|
-
): Promise<runtime.ApiResponse<void>> {
|
|
379
|
-
if (requestParameters['companyCode'] == null) {
|
|
380
|
-
throw new runtime.RequiredError(
|
|
381
|
-
'companyCode',
|
|
382
|
-
'Required parameter "companyCode" was null or undefined when calling putCompanyAlerts().',
|
|
383
|
-
);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
if (requestParameters['companyHealthPutRequest'] == null) {
|
|
387
|
-
throw new runtime.RequiredError(
|
|
388
|
-
'companyHealthPutRequest',
|
|
389
|
-
'Required parameter "companyHealthPutRequest" was null or undefined when calling putCompanyAlerts().',
|
|
390
|
-
);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
const queryParameters: any = {};
|
|
394
|
-
|
|
395
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
396
|
-
|
|
397
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
398
|
-
|
|
399
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
400
|
-
const token = this.configuration.accessToken;
|
|
401
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
402
|
-
|
|
403
|
-
if (tokenString) {
|
|
404
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
const response = await this.request(
|
|
408
|
-
{
|
|
409
|
-
path: `/api/v1/maintenance/company_health/{company_code}`.replace(
|
|
410
|
-
`{${'company_code'}}`,
|
|
411
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
412
|
-
),
|
|
413
|
-
method: 'PUT',
|
|
414
|
-
headers: headerParameters,
|
|
415
|
-
query: queryParameters,
|
|
416
|
-
body: requestParameters['companyHealthPutRequest'],
|
|
417
|
-
},
|
|
418
|
-
initOverrides,
|
|
419
|
-
);
|
|
420
|
-
|
|
421
|
-
return new runtime.VoidApiResponse(response);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
*/
|
|
426
|
-
async putCompanyAlerts(
|
|
427
|
-
companyCode: string,
|
|
428
|
-
companyHealthPutRequest: CompanyHealthPutRequest,
|
|
429
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
430
|
-
): Promise<void> {
|
|
431
|
-
await this.putCompanyAlertsRaw(
|
|
432
|
-
{ companyCode: companyCode, companyHealthPutRequest: companyHealthPutRequest },
|
|
433
|
-
initOverrides,
|
|
434
|
-
);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
*/
|
|
439
|
-
async recalculateAllRaw(
|
|
440
|
-
requestParameters: MaintenanceApiRecalculateAllRequest,
|
|
441
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
442
|
-
): Promise<runtime.ApiResponse<void>> {
|
|
443
|
-
if (requestParameters['companyCode'] == null) {
|
|
444
|
-
throw new runtime.RequiredError(
|
|
445
|
-
'companyCode',
|
|
446
|
-
'Required parameter "companyCode" was null or undefined when calling recalculateAll().',
|
|
447
|
-
);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
const queryParameters: any = {};
|
|
451
|
-
|
|
452
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
453
|
-
|
|
454
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
455
|
-
const token = this.configuration.accessToken;
|
|
456
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
457
|
-
|
|
458
|
-
if (tokenString) {
|
|
459
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
const response = await this.request(
|
|
463
|
-
{
|
|
464
|
-
path: `/api/v1/maintenance/calculations/c/{company_code}/recalculate-all`.replace(
|
|
465
|
-
`{${'company_code'}}`,
|
|
466
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
467
|
-
),
|
|
468
|
-
method: 'POST',
|
|
469
|
-
headers: headerParameters,
|
|
470
|
-
query: queryParameters,
|
|
471
|
-
},
|
|
472
|
-
initOverrides,
|
|
473
|
-
);
|
|
474
|
-
|
|
475
|
-
return new runtime.VoidApiResponse(response);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
/**
|
|
479
|
-
*/
|
|
480
|
-
async recalculateAll(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
481
|
-
await this.recalculateAllRaw({ companyCode: companyCode }, initOverrides);
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
*/
|
|
486
|
-
async recalculatePartitionsRaw(
|
|
487
|
-
requestParameters: MaintenanceApiRecalculatePartitionsOperationRequest,
|
|
488
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
489
|
-
): Promise<runtime.ApiResponse<void>> {
|
|
490
|
-
if (requestParameters['companyCode'] == null) {
|
|
491
|
-
throw new runtime.RequiredError(
|
|
492
|
-
'companyCode',
|
|
493
|
-
'Required parameter "companyCode" was null or undefined when calling recalculatePartitions().',
|
|
494
|
-
);
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
if (requestParameters['recalculatePartitionsRequest'] == null) {
|
|
498
|
-
throw new runtime.RequiredError(
|
|
499
|
-
'recalculatePartitionsRequest',
|
|
500
|
-
'Required parameter "recalculatePartitionsRequest" was null or undefined when calling recalculatePartitions().',
|
|
501
|
-
);
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
const queryParameters: any = {};
|
|
505
|
-
|
|
506
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
507
|
-
|
|
508
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
509
|
-
|
|
510
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
511
|
-
const token = this.configuration.accessToken;
|
|
512
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
513
|
-
|
|
514
|
-
if (tokenString) {
|
|
515
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
const response = await this.request(
|
|
519
|
-
{
|
|
520
|
-
path: `/api/v1/maintenance/calculations/c/{company_code}/recalculate-partitions`.replace(
|
|
521
|
-
`{${'company_code'}}`,
|
|
522
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
523
|
-
),
|
|
524
|
-
method: 'POST',
|
|
525
|
-
headers: headerParameters,
|
|
526
|
-
query: queryParameters,
|
|
527
|
-
body: requestParameters['recalculatePartitionsRequest'],
|
|
528
|
-
},
|
|
529
|
-
initOverrides,
|
|
530
|
-
);
|
|
531
|
-
|
|
532
|
-
return new runtime.VoidApiResponse(response);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
*/
|
|
537
|
-
async recalculatePartitions(
|
|
538
|
-
companyCode: string,
|
|
539
|
-
recalculatePartitionsRequest: RecalculatePartitionsRequest,
|
|
540
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
541
|
-
): Promise<void> {
|
|
542
|
-
await this.recalculatePartitionsRaw(
|
|
543
|
-
{ companyCode: companyCode, recalculatePartitionsRequest: recalculatePartitionsRequest },
|
|
544
|
-
initOverrides,
|
|
545
|
-
);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
*/
|
|
550
|
-
async unmuteCompanyAlertsRaw(
|
|
551
|
-
requestParameters: MaintenanceApiUnmuteCompanyAlertsRequest,
|
|
552
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
553
|
-
): Promise<runtime.ApiResponse<void>> {
|
|
554
|
-
if (requestParameters['companyCode'] == null) {
|
|
555
|
-
throw new runtime.RequiredError(
|
|
556
|
-
'companyCode',
|
|
557
|
-
'Required parameter "companyCode" was null or undefined when calling unmuteCompanyAlerts().',
|
|
558
|
-
);
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
const queryParameters: any = {};
|
|
562
|
-
|
|
563
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
564
|
-
|
|
565
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
566
|
-
const token = this.configuration.accessToken;
|
|
567
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
568
|
-
|
|
569
|
-
if (tokenString) {
|
|
570
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
const response = await this.request(
|
|
574
|
-
{
|
|
575
|
-
path: `/api/v1/maintenance/company_health/{company_code}/unmute`.replace(
|
|
576
|
-
`{${'company_code'}}`,
|
|
577
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
578
|
-
),
|
|
579
|
-
method: 'POST',
|
|
580
|
-
headers: headerParameters,
|
|
581
|
-
query: queryParameters,
|
|
582
|
-
},
|
|
583
|
-
initOverrides,
|
|
584
|
-
);
|
|
585
|
-
|
|
586
|
-
return new runtime.VoidApiResponse(response);
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
*/
|
|
591
|
-
async unmuteCompanyAlerts(
|
|
592
|
-
companyCode: string,
|
|
593
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
594
|
-
): Promise<void> {
|
|
595
|
-
await this.unmuteCompanyAlertsRaw({ companyCode: companyCode }, initOverrides);
|
|
596
|
-
}
|
|
597
|
-
}
|