@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,278 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import * as runtime from '../runtime';
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
export class MaintenanceApi extends runtime.BaseAPI {
|
|
15
|
-
/**
|
|
16
|
-
*/
|
|
17
|
-
getCalculationVisualizationForCompanyRaw(requestParameters, initOverrides) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
if (requestParameters['companyCode'] == null) {
|
|
20
|
-
throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling getCalculationVisualizationForCompany().');
|
|
21
|
-
}
|
|
22
|
-
const queryParameters = {};
|
|
23
|
-
const headerParameters = {};
|
|
24
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
25
|
-
const token = this.configuration.accessToken;
|
|
26
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
27
|
-
if (tokenString) {
|
|
28
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
const response = yield this.request({
|
|
32
|
-
path: `/api/v1/maintenance/calculations-visualization/c/{company_code}`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
|
|
33
|
-
method: 'GET',
|
|
34
|
-
headers: headerParameters,
|
|
35
|
-
query: queryParameters,
|
|
36
|
-
}, initOverrides);
|
|
37
|
-
return new runtime.JSONApiResponse(response);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
*/
|
|
42
|
-
getCalculationVisualizationForCompany(companyCode, initOverrides) {
|
|
43
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
const response = yield this.getCalculationVisualizationForCompanyRaw({ companyCode: companyCode }, initOverrides);
|
|
45
|
-
return yield response.value();
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
*/
|
|
50
|
-
getIssuesRaw(initOverrides) {
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
const queryParameters = {};
|
|
53
|
-
const headerParameters = {};
|
|
54
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
55
|
-
const token = this.configuration.accessToken;
|
|
56
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
57
|
-
if (tokenString) {
|
|
58
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
const response = yield this.request({
|
|
62
|
-
path: `/api/v1/maintenance/company_health/issues`,
|
|
63
|
-
method: 'GET',
|
|
64
|
-
headers: headerParameters,
|
|
65
|
-
query: queryParameters,
|
|
66
|
-
}, initOverrides);
|
|
67
|
-
return new runtime.JSONApiResponse(response);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
*/
|
|
72
|
-
getIssues(initOverrides) {
|
|
73
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
const response = yield this.getIssuesRaw(initOverrides);
|
|
75
|
-
return yield response.value();
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
*/
|
|
80
|
-
getSupportUsersRaw(initOverrides) {
|
|
81
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
-
const queryParameters = {};
|
|
83
|
-
const headerParameters = {};
|
|
84
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
85
|
-
const token = this.configuration.accessToken;
|
|
86
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
87
|
-
if (tokenString) {
|
|
88
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
const response = yield this.request({
|
|
92
|
-
path: `/api/v1/maintenance/support_users`,
|
|
93
|
-
method: 'GET',
|
|
94
|
-
headers: headerParameters,
|
|
95
|
-
query: queryParameters,
|
|
96
|
-
}, initOverrides);
|
|
97
|
-
return new runtime.JSONApiResponse(response);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
*/
|
|
102
|
-
getSupportUsers(initOverrides) {
|
|
103
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
const response = yield this.getSupportUsersRaw(initOverrides);
|
|
105
|
-
return yield response.value();
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
*/
|
|
110
|
-
muteCompanyAlertsRaw(requestParameters, initOverrides) {
|
|
111
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
-
if (requestParameters['companyCode'] == null) {
|
|
113
|
-
throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling muteCompanyAlerts().');
|
|
114
|
-
}
|
|
115
|
-
const queryParameters = {};
|
|
116
|
-
const headerParameters = {};
|
|
117
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
118
|
-
const token = this.configuration.accessToken;
|
|
119
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
120
|
-
if (tokenString) {
|
|
121
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
const response = yield this.request({
|
|
125
|
-
path: `/api/v1/maintenance/company_health/{company_code}/mute`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
|
|
126
|
-
method: 'POST',
|
|
127
|
-
headers: headerParameters,
|
|
128
|
-
query: queryParameters,
|
|
129
|
-
}, initOverrides);
|
|
130
|
-
return new runtime.VoidApiResponse(response);
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
*/
|
|
135
|
-
muteCompanyAlerts(companyCode, initOverrides) {
|
|
136
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
-
yield this.muteCompanyAlertsRaw({ companyCode: companyCode }, initOverrides);
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
*/
|
|
142
|
-
putCompanyAlertsRaw(requestParameters, initOverrides) {
|
|
143
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
-
if (requestParameters['companyCode'] == null) {
|
|
145
|
-
throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling putCompanyAlerts().');
|
|
146
|
-
}
|
|
147
|
-
if (requestParameters['companyHealthPutRequest'] == null) {
|
|
148
|
-
throw new runtime.RequiredError('companyHealthPutRequest', 'Required parameter "companyHealthPutRequest" was null or undefined when calling putCompanyAlerts().');
|
|
149
|
-
}
|
|
150
|
-
const queryParameters = {};
|
|
151
|
-
const headerParameters = {};
|
|
152
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
153
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
154
|
-
const token = this.configuration.accessToken;
|
|
155
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
156
|
-
if (tokenString) {
|
|
157
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
const response = yield this.request({
|
|
161
|
-
path: `/api/v1/maintenance/company_health/{company_code}`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
|
|
162
|
-
method: 'PUT',
|
|
163
|
-
headers: headerParameters,
|
|
164
|
-
query: queryParameters,
|
|
165
|
-
body: requestParameters['companyHealthPutRequest'],
|
|
166
|
-
}, initOverrides);
|
|
167
|
-
return new runtime.VoidApiResponse(response);
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
*/
|
|
172
|
-
putCompanyAlerts(companyCode, companyHealthPutRequest, initOverrides) {
|
|
173
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
-
yield this.putCompanyAlertsRaw({ companyCode: companyCode, companyHealthPutRequest: companyHealthPutRequest }, initOverrides);
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
*/
|
|
179
|
-
recalculateAllRaw(requestParameters, initOverrides) {
|
|
180
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
-
if (requestParameters['companyCode'] == null) {
|
|
182
|
-
throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling recalculateAll().');
|
|
183
|
-
}
|
|
184
|
-
const queryParameters = {};
|
|
185
|
-
const headerParameters = {};
|
|
186
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
187
|
-
const token = this.configuration.accessToken;
|
|
188
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
189
|
-
if (tokenString) {
|
|
190
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
const response = yield this.request({
|
|
194
|
-
path: `/api/v1/maintenance/calculations/c/{company_code}/recalculate-all`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
|
|
195
|
-
method: 'POST',
|
|
196
|
-
headers: headerParameters,
|
|
197
|
-
query: queryParameters,
|
|
198
|
-
}, initOverrides);
|
|
199
|
-
return new runtime.VoidApiResponse(response);
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
*/
|
|
204
|
-
recalculateAll(companyCode, initOverrides) {
|
|
205
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
-
yield this.recalculateAllRaw({ companyCode: companyCode }, initOverrides);
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
*/
|
|
211
|
-
recalculatePartitionsRaw(requestParameters, initOverrides) {
|
|
212
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
-
if (requestParameters['companyCode'] == null) {
|
|
214
|
-
throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling recalculatePartitions().');
|
|
215
|
-
}
|
|
216
|
-
if (requestParameters['recalculatePartitionsRequest'] == null) {
|
|
217
|
-
throw new runtime.RequiredError('recalculatePartitionsRequest', 'Required parameter "recalculatePartitionsRequest" was null or undefined when calling recalculatePartitions().');
|
|
218
|
-
}
|
|
219
|
-
const queryParameters = {};
|
|
220
|
-
const headerParameters = {};
|
|
221
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
222
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
223
|
-
const token = this.configuration.accessToken;
|
|
224
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
225
|
-
if (tokenString) {
|
|
226
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
const response = yield this.request({
|
|
230
|
-
path: `/api/v1/maintenance/calculations/c/{company_code}/recalculate-partitions`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
|
|
231
|
-
method: 'POST',
|
|
232
|
-
headers: headerParameters,
|
|
233
|
-
query: queryParameters,
|
|
234
|
-
body: requestParameters['recalculatePartitionsRequest'],
|
|
235
|
-
}, initOverrides);
|
|
236
|
-
return new runtime.VoidApiResponse(response);
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
*/
|
|
241
|
-
recalculatePartitions(companyCode, recalculatePartitionsRequest, initOverrides) {
|
|
242
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
243
|
-
yield this.recalculatePartitionsRaw({ companyCode: companyCode, recalculatePartitionsRequest: recalculatePartitionsRequest }, initOverrides);
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
*/
|
|
248
|
-
unmuteCompanyAlertsRaw(requestParameters, initOverrides) {
|
|
249
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
250
|
-
if (requestParameters['companyCode'] == null) {
|
|
251
|
-
throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling unmuteCompanyAlerts().');
|
|
252
|
-
}
|
|
253
|
-
const queryParameters = {};
|
|
254
|
-
const headerParameters = {};
|
|
255
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
256
|
-
const token = this.configuration.accessToken;
|
|
257
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
258
|
-
if (tokenString) {
|
|
259
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
const response = yield this.request({
|
|
263
|
-
path: `/api/v1/maintenance/company_health/{company_code}/unmute`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
|
|
264
|
-
method: 'POST',
|
|
265
|
-
headers: headerParameters,
|
|
266
|
-
query: queryParameters,
|
|
267
|
-
}, initOverrides);
|
|
268
|
-
return new runtime.VoidApiResponse(response);
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
*/
|
|
273
|
-
unmuteCompanyAlerts(companyCode, initOverrides) {
|
|
274
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
-
yield this.unmuteCompanyAlertsRaw({ companyCode: companyCode }, initOverrides);
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Smartbooks Restful API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.0.1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { ManualInputActualRequest, ManualInputActualResponse, ManualInputConfiguration, ManualInputDraft, ManualInputPreviewRequest, ManualInputPreviewResponse, ManualInputRowSet, NodeInputs, TriggeredOperation } from '../models/index';
|
|
13
|
-
import * as runtime from '../runtime';
|
|
14
|
-
export interface ManualInputApiActualsRequest {
|
|
15
|
-
companyCode: string;
|
|
16
|
-
manualInputActualRequest: ManualInputActualRequest;
|
|
17
|
-
}
|
|
18
|
-
export interface ManualInputApiApplyDraftRequest {
|
|
19
|
-
companyCode: string;
|
|
20
|
-
manualInputDraft: ManualInputDraft;
|
|
21
|
-
}
|
|
22
|
-
export interface ManualInputApiGetConfigurationRequest {
|
|
23
|
-
companyCode: string;
|
|
24
|
-
}
|
|
25
|
-
export interface ManualInputApiGetEntriesRequest {
|
|
26
|
-
companyCode: string;
|
|
27
|
-
structureCode: string;
|
|
28
|
-
category: string;
|
|
29
|
-
}
|
|
30
|
-
export interface ManualInputApiGetEntriesForCostcenterRequest {
|
|
31
|
-
companyCode: string;
|
|
32
|
-
costCenter: string;
|
|
33
|
-
structureCode: string;
|
|
34
|
-
category: string;
|
|
35
|
-
}
|
|
36
|
-
export interface ManualInputApiGetRowsRequest {
|
|
37
|
-
companyCode: string;
|
|
38
|
-
}
|
|
39
|
-
export interface ManualInputApiPreviewRequest {
|
|
40
|
-
companyCode: string;
|
|
41
|
-
manualInputPreviewRequest: ManualInputPreviewRequest;
|
|
42
|
-
}
|
|
43
|
-
export interface ManualInputApiPutRowsRequest {
|
|
44
|
-
companyCode: string;
|
|
45
|
-
manualInputRowSet: ManualInputRowSet;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* ManualInputApi - interface
|
|
49
|
-
*
|
|
50
|
-
* @export
|
|
51
|
-
* @interface ManualInputApiInterface
|
|
52
|
-
*/
|
|
53
|
-
export interface ManualInputApiInterface {
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @param {string} companyCode
|
|
57
|
-
* @param {ManualInputActualRequest} manualInputActualRequest
|
|
58
|
-
* @param {*} [options] Override http request option.
|
|
59
|
-
* @throws {RequiredError}
|
|
60
|
-
* @memberof ManualInputApiInterface
|
|
61
|
-
*/
|
|
62
|
-
actualsRaw(requestParameters: ManualInputApiActualsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManualInputActualResponse>>;
|
|
63
|
-
/**
|
|
64
|
-
*/
|
|
65
|
-
actuals(companyCode: string, manualInputActualRequest: ManualInputActualRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManualInputActualResponse>;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @param {string} companyCode
|
|
69
|
-
* @param {ManualInputDraft} manualInputDraft
|
|
70
|
-
* @param {*} [options] Override http request option.
|
|
71
|
-
* @throws {RequiredError}
|
|
72
|
-
* @memberof ManualInputApiInterface
|
|
73
|
-
*/
|
|
74
|
-
applyDraftRaw(requestParameters: ManualInputApiApplyDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TriggeredOperation>>;
|
|
75
|
-
/**
|
|
76
|
-
*/
|
|
77
|
-
applyDraft(companyCode: string, manualInputDraft: ManualInputDraft, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TriggeredOperation>;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @param {string} companyCode
|
|
81
|
-
* @param {*} [options] Override http request option.
|
|
82
|
-
* @throws {RequiredError}
|
|
83
|
-
* @memberof ManualInputApiInterface
|
|
84
|
-
*/
|
|
85
|
-
getConfigurationRaw(requestParameters: ManualInputApiGetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManualInputConfiguration>>;
|
|
86
|
-
/**
|
|
87
|
-
*/
|
|
88
|
-
getConfiguration(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManualInputConfiguration>;
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @param {string} companyCode
|
|
92
|
-
* @param {string} structureCode
|
|
93
|
-
* @param {string} category
|
|
94
|
-
* @param {*} [options] Override http request option.
|
|
95
|
-
* @throws {RequiredError}
|
|
96
|
-
* @memberof ManualInputApiInterface
|
|
97
|
-
*/
|
|
98
|
-
getEntriesRaw(requestParameters: ManualInputApiGetEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NodeInputs>>;
|
|
99
|
-
/**
|
|
100
|
-
*/
|
|
101
|
-
getEntries(companyCode: string, structureCode: string, category: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NodeInputs>;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @param {string} companyCode
|
|
105
|
-
* @param {string} costCenter
|
|
106
|
-
* @param {string} structureCode
|
|
107
|
-
* @param {string} category
|
|
108
|
-
* @param {*} [options] Override http request option.
|
|
109
|
-
* @throws {RequiredError}
|
|
110
|
-
* @memberof ManualInputApiInterface
|
|
111
|
-
*/
|
|
112
|
-
getEntriesForCostcenterRaw(requestParameters: ManualInputApiGetEntriesForCostcenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NodeInputs>>;
|
|
113
|
-
/**
|
|
114
|
-
*/
|
|
115
|
-
getEntriesForCostcenter(companyCode: string, costCenter: string, structureCode: string, category: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NodeInputs>;
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* @param {string} companyCode
|
|
119
|
-
* @param {*} [options] Override http request option.
|
|
120
|
-
* @throws {RequiredError}
|
|
121
|
-
* @memberof ManualInputApiInterface
|
|
122
|
-
*/
|
|
123
|
-
getRowsRaw(requestParameters: ManualInputApiGetRowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManualInputRowSet>>;
|
|
124
|
-
/**
|
|
125
|
-
*/
|
|
126
|
-
getRows(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManualInputRowSet>;
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @param {string} companyCode
|
|
130
|
-
* @param {ManualInputPreviewRequest} manualInputPreviewRequest
|
|
131
|
-
* @param {*} [options] Override http request option.
|
|
132
|
-
* @throws {RequiredError}
|
|
133
|
-
* @memberof ManualInputApiInterface
|
|
134
|
-
*/
|
|
135
|
-
previewRaw(requestParameters: ManualInputApiPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManualInputPreviewResponse>>;
|
|
136
|
-
/**
|
|
137
|
-
*/
|
|
138
|
-
preview(companyCode: string, manualInputPreviewRequest: ManualInputPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManualInputPreviewResponse>;
|
|
139
|
-
/**
|
|
140
|
-
*
|
|
141
|
-
* @param {string} companyCode
|
|
142
|
-
* @param {ManualInputRowSet} manualInputRowSet
|
|
143
|
-
* @param {*} [options] Override http request option.
|
|
144
|
-
* @throws {RequiredError}
|
|
145
|
-
* @memberof ManualInputApiInterface
|
|
146
|
-
*/
|
|
147
|
-
putRowsRaw(requestParameters: ManualInputApiPutRowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManualInputRowSet>>;
|
|
148
|
-
/**
|
|
149
|
-
*/
|
|
150
|
-
putRows(companyCode: string, manualInputRowSet: ManualInputRowSet, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManualInputRowSet>;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
*
|
|
154
|
-
*/
|
|
155
|
-
export declare class ManualInputApi extends runtime.BaseAPI implements ManualInputApiInterface {
|
|
156
|
-
/**
|
|
157
|
-
*/
|
|
158
|
-
actualsRaw(requestParameters: ManualInputApiActualsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManualInputActualResponse>>;
|
|
159
|
-
/**
|
|
160
|
-
*/
|
|
161
|
-
actuals(companyCode: string, manualInputActualRequest: ManualInputActualRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManualInputActualResponse>;
|
|
162
|
-
/**
|
|
163
|
-
*/
|
|
164
|
-
applyDraftRaw(requestParameters: ManualInputApiApplyDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TriggeredOperation>>;
|
|
165
|
-
/**
|
|
166
|
-
*/
|
|
167
|
-
applyDraft(companyCode: string, manualInputDraft: ManualInputDraft, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TriggeredOperation>;
|
|
168
|
-
/**
|
|
169
|
-
*/
|
|
170
|
-
getConfigurationRaw(requestParameters: ManualInputApiGetConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManualInputConfiguration>>;
|
|
171
|
-
/**
|
|
172
|
-
*/
|
|
173
|
-
getConfiguration(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManualInputConfiguration>;
|
|
174
|
-
/**
|
|
175
|
-
*/
|
|
176
|
-
getEntriesRaw(requestParameters: ManualInputApiGetEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NodeInputs>>;
|
|
177
|
-
/**
|
|
178
|
-
*/
|
|
179
|
-
getEntries(companyCode: string, structureCode: string, category: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NodeInputs>;
|
|
180
|
-
/**
|
|
181
|
-
*/
|
|
182
|
-
getEntriesForCostcenterRaw(requestParameters: ManualInputApiGetEntriesForCostcenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NodeInputs>>;
|
|
183
|
-
/**
|
|
184
|
-
*/
|
|
185
|
-
getEntriesForCostcenter(companyCode: string, costCenter: string, structureCode: string, category: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NodeInputs>;
|
|
186
|
-
/**
|
|
187
|
-
*/
|
|
188
|
-
getRowsRaw(requestParameters: ManualInputApiGetRowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManualInputRowSet>>;
|
|
189
|
-
/**
|
|
190
|
-
*/
|
|
191
|
-
getRows(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManualInputRowSet>;
|
|
192
|
-
/**
|
|
193
|
-
*/
|
|
194
|
-
previewRaw(requestParameters: ManualInputApiPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManualInputPreviewResponse>>;
|
|
195
|
-
/**
|
|
196
|
-
*/
|
|
197
|
-
preview(companyCode: string, manualInputPreviewRequest: ManualInputPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManualInputPreviewResponse>;
|
|
198
|
-
/**
|
|
199
|
-
*/
|
|
200
|
-
putRowsRaw(requestParameters: ManualInputApiPutRowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManualInputRowSet>>;
|
|
201
|
-
/**
|
|
202
|
-
*/
|
|
203
|
-
putRows(companyCode: string, manualInputRowSet: ManualInputRowSet, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManualInputRowSet>;
|
|
204
|
-
}
|