@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,187 +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
|
-
TemplateGenerationPrepareRequest,
|
|
16
|
-
TemplateGenerationPrepareResponse,
|
|
17
|
-
TemplateGenerationPreviewRequest,
|
|
18
|
-
TemplateGenerationPreviewResponse,
|
|
19
|
-
} from '../models/index';
|
|
20
|
-
import * as runtime from '../runtime';
|
|
21
|
-
|
|
22
|
-
export interface TemplatesGenerationApiPrepareRequest {
|
|
23
|
-
templateGenerationPrepareRequest: TemplateGenerationPrepareRequest;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface TemplatesGenerationApiPreviewRequest {
|
|
27
|
-
templateGenerationPreviewRequest: TemplateGenerationPreviewRequest;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* TemplatesGenerationApi - interface
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface TemplatesGenerationApiInterface
|
|
35
|
-
*/
|
|
36
|
-
export interface TemplatesGenerationApiInterface {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @param {TemplateGenerationPrepareRequest} templateGenerationPrepareRequest
|
|
40
|
-
* @param {*} [options] Override http request option.
|
|
41
|
-
* @throws {RequiredError}
|
|
42
|
-
* @memberof TemplatesGenerationApiInterface
|
|
43
|
-
*/
|
|
44
|
-
prepareRaw(
|
|
45
|
-
requestParameters: TemplatesGenerationApiPrepareRequest,
|
|
46
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
47
|
-
): Promise<runtime.ApiResponse<TemplateGenerationPrepareResponse>>;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
*/
|
|
51
|
-
prepare(
|
|
52
|
-
templateGenerationPrepareRequest: TemplateGenerationPrepareRequest,
|
|
53
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
54
|
-
): Promise<TemplateGenerationPrepareResponse>;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @param {TemplateGenerationPreviewRequest} templateGenerationPreviewRequest
|
|
59
|
-
* @param {*} [options] Override http request option.
|
|
60
|
-
* @throws {RequiredError}
|
|
61
|
-
* @memberof TemplatesGenerationApiInterface
|
|
62
|
-
*/
|
|
63
|
-
previewRaw(
|
|
64
|
-
requestParameters: TemplatesGenerationApiPreviewRequest,
|
|
65
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
66
|
-
): Promise<runtime.ApiResponse<TemplateGenerationPreviewResponse>>;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
*/
|
|
70
|
-
preview(
|
|
71
|
-
templateGenerationPreviewRequest: TemplateGenerationPreviewRequest,
|
|
72
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
73
|
-
): Promise<TemplateGenerationPreviewResponse>;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
*/
|
|
79
|
-
export class TemplatesGenerationApi extends runtime.BaseAPI implements TemplatesGenerationApiInterface {
|
|
80
|
-
/**
|
|
81
|
-
*/
|
|
82
|
-
async prepareRaw(
|
|
83
|
-
requestParameters: TemplatesGenerationApiPrepareRequest,
|
|
84
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
85
|
-
): Promise<runtime.ApiResponse<TemplateGenerationPrepareResponse>> {
|
|
86
|
-
if (requestParameters['templateGenerationPrepareRequest'] == null) {
|
|
87
|
-
throw new runtime.RequiredError(
|
|
88
|
-
'templateGenerationPrepareRequest',
|
|
89
|
-
'Required parameter "templateGenerationPrepareRequest" was null or undefined when calling prepare().',
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
const queryParameters: any = {};
|
|
94
|
-
|
|
95
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
96
|
-
|
|
97
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
98
|
-
|
|
99
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
100
|
-
const token = this.configuration.accessToken;
|
|
101
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
102
|
-
|
|
103
|
-
if (tokenString) {
|
|
104
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
const response = await this.request(
|
|
108
|
-
{
|
|
109
|
-
path: `/api/v1/templates_generation/prepare`,
|
|
110
|
-
method: 'POST',
|
|
111
|
-
headers: headerParameters,
|
|
112
|
-
query: queryParameters,
|
|
113
|
-
body: requestParameters['templateGenerationPrepareRequest'],
|
|
114
|
-
},
|
|
115
|
-
initOverrides,
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
return new runtime.JSONApiResponse(response);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
*/
|
|
123
|
-
async prepare(
|
|
124
|
-
templateGenerationPrepareRequest: TemplateGenerationPrepareRequest,
|
|
125
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
126
|
-
): Promise<TemplateGenerationPrepareResponse> {
|
|
127
|
-
const response = await this.prepareRaw(
|
|
128
|
-
{ templateGenerationPrepareRequest: templateGenerationPrepareRequest },
|
|
129
|
-
initOverrides,
|
|
130
|
-
);
|
|
131
|
-
return await response.value();
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
*/
|
|
136
|
-
async previewRaw(
|
|
137
|
-
requestParameters: TemplatesGenerationApiPreviewRequest,
|
|
138
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
139
|
-
): Promise<runtime.ApiResponse<TemplateGenerationPreviewResponse>> {
|
|
140
|
-
if (requestParameters['templateGenerationPreviewRequest'] == null) {
|
|
141
|
-
throw new runtime.RequiredError(
|
|
142
|
-
'templateGenerationPreviewRequest',
|
|
143
|
-
'Required parameter "templateGenerationPreviewRequest" was null or undefined when calling preview().',
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
const queryParameters: any = {};
|
|
148
|
-
|
|
149
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
150
|
-
|
|
151
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
152
|
-
|
|
153
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
154
|
-
const token = this.configuration.accessToken;
|
|
155
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
156
|
-
|
|
157
|
-
if (tokenString) {
|
|
158
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
const response = await this.request(
|
|
162
|
-
{
|
|
163
|
-
path: `/api/v1/templates_generation/preview`,
|
|
164
|
-
method: 'POST',
|
|
165
|
-
headers: headerParameters,
|
|
166
|
-
query: queryParameters,
|
|
167
|
-
body: requestParameters['templateGenerationPreviewRequest'],
|
|
168
|
-
},
|
|
169
|
-
initOverrides,
|
|
170
|
-
);
|
|
171
|
-
|
|
172
|
-
return new runtime.JSONApiResponse(response);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
*/
|
|
177
|
-
async preview(
|
|
178
|
-
templateGenerationPreviewRequest: TemplateGenerationPreviewRequest,
|
|
179
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
180
|
-
): Promise<TemplateGenerationPreviewResponse> {
|
|
181
|
-
const response = await this.previewRaw(
|
|
182
|
-
{ templateGenerationPreviewRequest: templateGenerationPreviewRequest },
|
|
183
|
-
initOverrides,
|
|
184
|
-
);
|
|
185
|
-
return await response.value();
|
|
186
|
-
}
|
|
187
|
-
}
|
|
@@ -1,286 +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
|
-
IntercompanySettingsProposeResponse,
|
|
16
|
-
IntercompanySettingsResponse,
|
|
17
|
-
IntercompanySettingsUpdateRequest,
|
|
18
|
-
} from '../models/index';
|
|
19
|
-
import * as runtime from '../runtime';
|
|
20
|
-
|
|
21
|
-
export interface TenantIntercompanySettingsApiGetSettingsRequest {
|
|
22
|
-
companyCode: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface TenantIntercompanySettingsApiProposeCompanySettingsRequest {
|
|
26
|
-
companyCode: string;
|
|
27
|
-
participantCompanyCode: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface TenantIntercompanySettingsApiUpdateSettingsRequest {
|
|
31
|
-
companyCode: string;
|
|
32
|
-
intercompanySettingsUpdateRequest: IntercompanySettingsUpdateRequest;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* TenantIntercompanySettingsApi - interface
|
|
37
|
-
*
|
|
38
|
-
* @export
|
|
39
|
-
* @interface TenantIntercompanySettingsApiInterface
|
|
40
|
-
*/
|
|
41
|
-
export interface TenantIntercompanySettingsApiInterface {
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @param {string} companyCode
|
|
45
|
-
* @param {*} [options] Override http request option.
|
|
46
|
-
* @throws {RequiredError}
|
|
47
|
-
* @memberof TenantIntercompanySettingsApiInterface
|
|
48
|
-
*/
|
|
49
|
-
getSettingsRaw(
|
|
50
|
-
requestParameters: TenantIntercompanySettingsApiGetSettingsRequest,
|
|
51
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
52
|
-
): Promise<runtime.ApiResponse<IntercompanySettingsResponse>>;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
*/
|
|
56
|
-
getSettings(
|
|
57
|
-
companyCode: string,
|
|
58
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
59
|
-
): Promise<IntercompanySettingsResponse>;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @param {string} companyCode
|
|
64
|
-
* @param {string} participantCompanyCode
|
|
65
|
-
* @param {*} [options] Override http request option.
|
|
66
|
-
* @throws {RequiredError}
|
|
67
|
-
* @memberof TenantIntercompanySettingsApiInterface
|
|
68
|
-
*/
|
|
69
|
-
proposeCompanySettingsRaw(
|
|
70
|
-
requestParameters: TenantIntercompanySettingsApiProposeCompanySettingsRequest,
|
|
71
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
72
|
-
): Promise<runtime.ApiResponse<IntercompanySettingsProposeResponse>>;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
*/
|
|
76
|
-
proposeCompanySettings(
|
|
77
|
-
companyCode: string,
|
|
78
|
-
participantCompanyCode: string,
|
|
79
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
80
|
-
): Promise<IntercompanySettingsProposeResponse>;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @param {string} companyCode
|
|
85
|
-
* @param {IntercompanySettingsUpdateRequest} intercompanySettingsUpdateRequest
|
|
86
|
-
* @param {*} [options] Override http request option.
|
|
87
|
-
* @throws {RequiredError}
|
|
88
|
-
* @memberof TenantIntercompanySettingsApiInterface
|
|
89
|
-
*/
|
|
90
|
-
updateSettingsRaw(
|
|
91
|
-
requestParameters: TenantIntercompanySettingsApiUpdateSettingsRequest,
|
|
92
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
93
|
-
): Promise<runtime.ApiResponse<void>>;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
*/
|
|
97
|
-
updateSettings(
|
|
98
|
-
companyCode: string,
|
|
99
|
-
intercompanySettingsUpdateRequest: IntercompanySettingsUpdateRequest,
|
|
100
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
101
|
-
): Promise<void>;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
export class TenantIntercompanySettingsApi extends runtime.BaseAPI implements TenantIntercompanySettingsApiInterface {
|
|
108
|
-
/**
|
|
109
|
-
*/
|
|
110
|
-
async getSettingsRaw(
|
|
111
|
-
requestParameters: TenantIntercompanySettingsApiGetSettingsRequest,
|
|
112
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
113
|
-
): Promise<runtime.ApiResponse<IntercompanySettingsResponse>> {
|
|
114
|
-
if (requestParameters['companyCode'] == null) {
|
|
115
|
-
throw new runtime.RequiredError(
|
|
116
|
-
'companyCode',
|
|
117
|
-
'Required parameter "companyCode" was null or undefined when calling getSettings().',
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const queryParameters: any = {};
|
|
122
|
-
|
|
123
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
124
|
-
|
|
125
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
126
|
-
const token = this.configuration.accessToken;
|
|
127
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
128
|
-
|
|
129
|
-
if (tokenString) {
|
|
130
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
const response = await this.request(
|
|
134
|
-
{
|
|
135
|
-
path: `/api/v1/c/{company_code}/intercompany-settings`.replace(
|
|
136
|
-
`{${'company_code'}}`,
|
|
137
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
138
|
-
),
|
|
139
|
-
method: 'GET',
|
|
140
|
-
headers: headerParameters,
|
|
141
|
-
query: queryParameters,
|
|
142
|
-
},
|
|
143
|
-
initOverrides,
|
|
144
|
-
);
|
|
145
|
-
|
|
146
|
-
return new runtime.JSONApiResponse(response);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
*/
|
|
151
|
-
async getSettings(
|
|
152
|
-
companyCode: string,
|
|
153
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
154
|
-
): Promise<IntercompanySettingsResponse> {
|
|
155
|
-
const response = await this.getSettingsRaw({ companyCode: companyCode }, initOverrides);
|
|
156
|
-
return await response.value();
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
*/
|
|
161
|
-
async proposeCompanySettingsRaw(
|
|
162
|
-
requestParameters: TenantIntercompanySettingsApiProposeCompanySettingsRequest,
|
|
163
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
164
|
-
): Promise<runtime.ApiResponse<IntercompanySettingsProposeResponse>> {
|
|
165
|
-
if (requestParameters['companyCode'] == null) {
|
|
166
|
-
throw new runtime.RequiredError(
|
|
167
|
-
'companyCode',
|
|
168
|
-
'Required parameter "companyCode" was null or undefined when calling proposeCompanySettings().',
|
|
169
|
-
);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
if (requestParameters['participantCompanyCode'] == null) {
|
|
173
|
-
throw new runtime.RequiredError(
|
|
174
|
-
'participantCompanyCode',
|
|
175
|
-
'Required parameter "participantCompanyCode" was null or undefined when calling proposeCompanySettings().',
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
const queryParameters: any = {};
|
|
180
|
-
|
|
181
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
182
|
-
|
|
183
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
184
|
-
const token = this.configuration.accessToken;
|
|
185
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
186
|
-
|
|
187
|
-
if (tokenString) {
|
|
188
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
const response = await this.request(
|
|
192
|
-
{
|
|
193
|
-
path: `/api/v1/c/{company_code}/intercompany-settings/{participant_company_code}/relations/propose`
|
|
194
|
-
.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
|
|
195
|
-
.replace(
|
|
196
|
-
`{${'participant_company_code'}}`,
|
|
197
|
-
encodeURIComponent(String(requestParameters['participantCompanyCode'])),
|
|
198
|
-
),
|
|
199
|
-
method: 'GET',
|
|
200
|
-
headers: headerParameters,
|
|
201
|
-
query: queryParameters,
|
|
202
|
-
},
|
|
203
|
-
initOverrides,
|
|
204
|
-
);
|
|
205
|
-
|
|
206
|
-
return new runtime.JSONApiResponse(response);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
*/
|
|
211
|
-
async proposeCompanySettings(
|
|
212
|
-
companyCode: string,
|
|
213
|
-
participantCompanyCode: string,
|
|
214
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
215
|
-
): Promise<IntercompanySettingsProposeResponse> {
|
|
216
|
-
const response = await this.proposeCompanySettingsRaw(
|
|
217
|
-
{ companyCode: companyCode, participantCompanyCode: participantCompanyCode },
|
|
218
|
-
initOverrides,
|
|
219
|
-
);
|
|
220
|
-
return await response.value();
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
*/
|
|
225
|
-
async updateSettingsRaw(
|
|
226
|
-
requestParameters: TenantIntercompanySettingsApiUpdateSettingsRequest,
|
|
227
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
228
|
-
): Promise<runtime.ApiResponse<void>> {
|
|
229
|
-
if (requestParameters['companyCode'] == null) {
|
|
230
|
-
throw new runtime.RequiredError(
|
|
231
|
-
'companyCode',
|
|
232
|
-
'Required parameter "companyCode" was null or undefined when calling updateSettings().',
|
|
233
|
-
);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
if (requestParameters['intercompanySettingsUpdateRequest'] == null) {
|
|
237
|
-
throw new runtime.RequiredError(
|
|
238
|
-
'intercompanySettingsUpdateRequest',
|
|
239
|
-
'Required parameter "intercompanySettingsUpdateRequest" was null or undefined when calling updateSettings().',
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
const queryParameters: any = {};
|
|
244
|
-
|
|
245
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
246
|
-
|
|
247
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
248
|
-
|
|
249
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
250
|
-
const token = this.configuration.accessToken;
|
|
251
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
252
|
-
|
|
253
|
-
if (tokenString) {
|
|
254
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
const response = await this.request(
|
|
258
|
-
{
|
|
259
|
-
path: `/api/v1/c/{company_code}/intercompany-settings`.replace(
|
|
260
|
-
`{${'company_code'}}`,
|
|
261
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
262
|
-
),
|
|
263
|
-
method: 'PATCH',
|
|
264
|
-
headers: headerParameters,
|
|
265
|
-
query: queryParameters,
|
|
266
|
-
body: requestParameters['intercompanySettingsUpdateRequest'],
|
|
267
|
-
},
|
|
268
|
-
initOverrides,
|
|
269
|
-
);
|
|
270
|
-
|
|
271
|
-
return new runtime.VoidApiResponse(response);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
*/
|
|
276
|
-
async updateSettings(
|
|
277
|
-
companyCode: string,
|
|
278
|
-
intercompanySettingsUpdateRequest: IntercompanySettingsUpdateRequest,
|
|
279
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
280
|
-
): Promise<void> {
|
|
281
|
-
await this.updateSettingsRaw(
|
|
282
|
-
{ companyCode: companyCode, intercompanySettingsUpdateRequest: intercompanySettingsUpdateRequest },
|
|
283
|
-
initOverrides,
|
|
284
|
-
);
|
|
285
|
-
}
|
|
286
|
-
}
|