@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,148 +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 { ColorPalette, ColorPalettes } from '../models/index';
|
|
15
|
-
import * as runtime from '../runtime';
|
|
16
|
-
|
|
17
|
-
export interface ColorPalettesApiGetItemRequest {
|
|
18
|
-
colorPaletteCode: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* ColorPalettesApi - interface
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
* @interface ColorPalettesApiInterface
|
|
26
|
-
*/
|
|
27
|
-
export interface ColorPalettesApiInterface {
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @param {*} [options] Override http request option.
|
|
31
|
-
* @throws {RequiredError}
|
|
32
|
-
* @memberof ColorPalettesApiInterface
|
|
33
|
-
*/
|
|
34
|
-
getRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ColorPalettes>>;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
*/
|
|
38
|
-
get(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ColorPalettes>;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @param {string} colorPaletteCode
|
|
43
|
-
* @param {*} [options] Override http request option.
|
|
44
|
-
* @throws {RequiredError}
|
|
45
|
-
* @memberof ColorPalettesApiInterface
|
|
46
|
-
*/
|
|
47
|
-
getItemRaw(
|
|
48
|
-
requestParameters: ColorPalettesApiGetItemRequest,
|
|
49
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
50
|
-
): Promise<runtime.ApiResponse<ColorPalette>>;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
*/
|
|
54
|
-
getItem(colorPaletteCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ColorPalette>;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
export class ColorPalettesApi extends runtime.BaseAPI implements ColorPalettesApiInterface {
|
|
61
|
-
/**
|
|
62
|
-
*/
|
|
63
|
-
async getRaw(
|
|
64
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
65
|
-
): Promise<runtime.ApiResponse<ColorPalettes>> {
|
|
66
|
-
const queryParameters: any = {};
|
|
67
|
-
|
|
68
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
69
|
-
|
|
70
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
71
|
-
const token = this.configuration.accessToken;
|
|
72
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
73
|
-
|
|
74
|
-
if (tokenString) {
|
|
75
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
const response = await this.request(
|
|
79
|
-
{
|
|
80
|
-
path: `/api/v1/color-palettes`,
|
|
81
|
-
method: 'GET',
|
|
82
|
-
headers: headerParameters,
|
|
83
|
-
query: queryParameters,
|
|
84
|
-
},
|
|
85
|
-
initOverrides,
|
|
86
|
-
);
|
|
87
|
-
|
|
88
|
-
return new runtime.JSONApiResponse(response);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
*/
|
|
93
|
-
async get(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ColorPalettes> {
|
|
94
|
-
const response = await this.getRaw(initOverrides);
|
|
95
|
-
return await response.value();
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
*/
|
|
100
|
-
async getItemRaw(
|
|
101
|
-
requestParameters: ColorPalettesApiGetItemRequest,
|
|
102
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
103
|
-
): Promise<runtime.ApiResponse<ColorPalette>> {
|
|
104
|
-
if (requestParameters['colorPaletteCode'] == null) {
|
|
105
|
-
throw new runtime.RequiredError(
|
|
106
|
-
'colorPaletteCode',
|
|
107
|
-
'Required parameter "colorPaletteCode" was null or undefined when calling getItem().',
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
const queryParameters: any = {};
|
|
112
|
-
|
|
113
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
114
|
-
|
|
115
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
116
|
-
const token = this.configuration.accessToken;
|
|
117
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
118
|
-
|
|
119
|
-
if (tokenString) {
|
|
120
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
const response = await this.request(
|
|
124
|
-
{
|
|
125
|
-
path: `/api/v1/color-palettes/{color_palette_code}`.replace(
|
|
126
|
-
`{${'color_palette_code'}}`,
|
|
127
|
-
encodeURIComponent(String(requestParameters['colorPaletteCode'])),
|
|
128
|
-
),
|
|
129
|
-
method: 'GET',
|
|
130
|
-
headers: headerParameters,
|
|
131
|
-
query: queryParameters,
|
|
132
|
-
},
|
|
133
|
-
initOverrides,
|
|
134
|
-
);
|
|
135
|
-
|
|
136
|
-
return new runtime.JSONApiResponse(response);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
*/
|
|
141
|
-
async getItem(
|
|
142
|
-
colorPaletteCode: string,
|
|
143
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
144
|
-
): Promise<ColorPalette> {
|
|
145
|
-
const response = await this.getItemRaw({ colorPaletteCode: colorPaletteCode }, initOverrides);
|
|
146
|
-
return await response.value();
|
|
147
|
-
}
|
|
148
|
-
}
|
|
@@ -1,308 +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 { Comment, CommentCreateRequest, CommentUpdateRequest, CommentsRetrieveRequest } from '../models/index';
|
|
15
|
-
import * as runtime from '../runtime';
|
|
16
|
-
|
|
17
|
-
export interface CommentsApiPostRequest {
|
|
18
|
-
companyCode: string;
|
|
19
|
-
commentCreateRequest: CommentCreateRequest;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface CommentsApiPutRequest {
|
|
23
|
-
companyCode: string;
|
|
24
|
-
id: string;
|
|
25
|
-
commentUpdateRequest: CommentUpdateRequest;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface CommentsApiRetrieveByConfigurationRequest {
|
|
29
|
-
companyCode: string;
|
|
30
|
-
commentsRetrieveRequest: CommentsRetrieveRequest;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* CommentsApi - interface
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @interface CommentsApiInterface
|
|
38
|
-
*/
|
|
39
|
-
export interface CommentsApiInterface {
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @param {string} companyCode
|
|
43
|
-
* @param {CommentCreateRequest} commentCreateRequest
|
|
44
|
-
* @param {*} [options] Override http request option.
|
|
45
|
-
* @throws {RequiredError}
|
|
46
|
-
* @memberof CommentsApiInterface
|
|
47
|
-
*/
|
|
48
|
-
postRaw(
|
|
49
|
-
requestParameters: CommentsApiPostRequest,
|
|
50
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
51
|
-
): Promise<runtime.ApiResponse<Comment>>;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
*/
|
|
55
|
-
post(
|
|
56
|
-
companyCode: string,
|
|
57
|
-
commentCreateRequest: CommentCreateRequest,
|
|
58
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
59
|
-
): Promise<Comment>;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @param {string} companyCode
|
|
64
|
-
* @param {string} id
|
|
65
|
-
* @param {CommentUpdateRequest} commentUpdateRequest
|
|
66
|
-
* @param {*} [options] Override http request option.
|
|
67
|
-
* @throws {RequiredError}
|
|
68
|
-
* @memberof CommentsApiInterface
|
|
69
|
-
*/
|
|
70
|
-
putRaw(
|
|
71
|
-
requestParameters: CommentsApiPutRequest,
|
|
72
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
73
|
-
): Promise<runtime.ApiResponse<Comment>>;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
*/
|
|
77
|
-
put(
|
|
78
|
-
companyCode: string,
|
|
79
|
-
id: string,
|
|
80
|
-
commentUpdateRequest: CommentUpdateRequest,
|
|
81
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
82
|
-
): Promise<Comment>;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @param {string} companyCode
|
|
87
|
-
* @param {CommentsRetrieveRequest} commentsRetrieveRequest
|
|
88
|
-
* @param {*} [options] Override http request option.
|
|
89
|
-
* @throws {RequiredError}
|
|
90
|
-
* @memberof CommentsApiInterface
|
|
91
|
-
*/
|
|
92
|
-
retrieveByConfigurationRaw(
|
|
93
|
-
requestParameters: CommentsApiRetrieveByConfigurationRequest,
|
|
94
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
95
|
-
): Promise<runtime.ApiResponse<Comment>>;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
*/
|
|
99
|
-
retrieveByConfiguration(
|
|
100
|
-
companyCode: string,
|
|
101
|
-
commentsRetrieveRequest: CommentsRetrieveRequest,
|
|
102
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
103
|
-
): Promise<Comment>;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
*/
|
|
109
|
-
export class CommentsApi extends runtime.BaseAPI implements CommentsApiInterface {
|
|
110
|
-
/**
|
|
111
|
-
*/
|
|
112
|
-
async postRaw(
|
|
113
|
-
requestParameters: CommentsApiPostRequest,
|
|
114
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
115
|
-
): Promise<runtime.ApiResponse<Comment>> {
|
|
116
|
-
if (requestParameters['companyCode'] == null) {
|
|
117
|
-
throw new runtime.RequiredError(
|
|
118
|
-
'companyCode',
|
|
119
|
-
'Required parameter "companyCode" was null or undefined when calling post().',
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (requestParameters['commentCreateRequest'] == null) {
|
|
124
|
-
throw new runtime.RequiredError(
|
|
125
|
-
'commentCreateRequest',
|
|
126
|
-
'Required parameter "commentCreateRequest" was null or undefined when calling post().',
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
const queryParameters: any = {};
|
|
131
|
-
|
|
132
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
133
|
-
|
|
134
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
135
|
-
|
|
136
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
137
|
-
const token = this.configuration.accessToken;
|
|
138
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
139
|
-
|
|
140
|
-
if (tokenString) {
|
|
141
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
const response = await this.request(
|
|
145
|
-
{
|
|
146
|
-
path: `/api/v1/c/{company_code}/comments`.replace(
|
|
147
|
-
`{${'company_code'}}`,
|
|
148
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
149
|
-
),
|
|
150
|
-
method: 'POST',
|
|
151
|
-
headers: headerParameters,
|
|
152
|
-
query: queryParameters,
|
|
153
|
-
body: requestParameters['commentCreateRequest'],
|
|
154
|
-
},
|
|
155
|
-
initOverrides,
|
|
156
|
-
);
|
|
157
|
-
|
|
158
|
-
return new runtime.JSONApiResponse(response);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
*/
|
|
163
|
-
async post(
|
|
164
|
-
companyCode: string,
|
|
165
|
-
commentCreateRequest: CommentCreateRequest,
|
|
166
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
167
|
-
): Promise<Comment> {
|
|
168
|
-
const response = await this.postRaw(
|
|
169
|
-
{ companyCode: companyCode, commentCreateRequest: commentCreateRequest },
|
|
170
|
-
initOverrides,
|
|
171
|
-
);
|
|
172
|
-
return await response.value();
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
*/
|
|
177
|
-
async putRaw(
|
|
178
|
-
requestParameters: CommentsApiPutRequest,
|
|
179
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
180
|
-
): Promise<runtime.ApiResponse<Comment>> {
|
|
181
|
-
if (requestParameters['companyCode'] == null) {
|
|
182
|
-
throw new runtime.RequiredError(
|
|
183
|
-
'companyCode',
|
|
184
|
-
'Required parameter "companyCode" was null or undefined when calling put().',
|
|
185
|
-
);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
if (requestParameters['id'] == null) {
|
|
189
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling put().');
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
if (requestParameters['commentUpdateRequest'] == null) {
|
|
193
|
-
throw new runtime.RequiredError(
|
|
194
|
-
'commentUpdateRequest',
|
|
195
|
-
'Required parameter "commentUpdateRequest" was null or undefined when calling put().',
|
|
196
|
-
);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
const queryParameters: any = {};
|
|
200
|
-
|
|
201
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
202
|
-
|
|
203
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
204
|
-
|
|
205
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
206
|
-
const token = this.configuration.accessToken;
|
|
207
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
208
|
-
|
|
209
|
-
if (tokenString) {
|
|
210
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
const response = await this.request(
|
|
214
|
-
{
|
|
215
|
-
path: `/api/v1/c/{company_code}/comments/{id}`
|
|
216
|
-
.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
|
|
217
|
-
.replace(`{${'id'}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
218
|
-
method: 'PUT',
|
|
219
|
-
headers: headerParameters,
|
|
220
|
-
query: queryParameters,
|
|
221
|
-
body: requestParameters['commentUpdateRequest'],
|
|
222
|
-
},
|
|
223
|
-
initOverrides,
|
|
224
|
-
);
|
|
225
|
-
|
|
226
|
-
return new runtime.JSONApiResponse(response);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
*/
|
|
231
|
-
async put(
|
|
232
|
-
companyCode: string,
|
|
233
|
-
id: string,
|
|
234
|
-
commentUpdateRequest: CommentUpdateRequest,
|
|
235
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
236
|
-
): Promise<Comment> {
|
|
237
|
-
const response = await this.putRaw(
|
|
238
|
-
{ companyCode: companyCode, id: id, commentUpdateRequest: commentUpdateRequest },
|
|
239
|
-
initOverrides,
|
|
240
|
-
);
|
|
241
|
-
return await response.value();
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
*/
|
|
246
|
-
async retrieveByConfigurationRaw(
|
|
247
|
-
requestParameters: CommentsApiRetrieveByConfigurationRequest,
|
|
248
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
249
|
-
): Promise<runtime.ApiResponse<Comment>> {
|
|
250
|
-
if (requestParameters['companyCode'] == null) {
|
|
251
|
-
throw new runtime.RequiredError(
|
|
252
|
-
'companyCode',
|
|
253
|
-
'Required parameter "companyCode" was null or undefined when calling retrieveByConfiguration().',
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
if (requestParameters['commentsRetrieveRequest'] == null) {
|
|
258
|
-
throw new runtime.RequiredError(
|
|
259
|
-
'commentsRetrieveRequest',
|
|
260
|
-
'Required parameter "commentsRetrieveRequest" was null or undefined when calling retrieveByConfiguration().',
|
|
261
|
-
);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
const queryParameters: any = {};
|
|
265
|
-
|
|
266
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
267
|
-
|
|
268
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
269
|
-
|
|
270
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
271
|
-
const token = this.configuration.accessToken;
|
|
272
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
273
|
-
|
|
274
|
-
if (tokenString) {
|
|
275
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
const response = await this.request(
|
|
279
|
-
{
|
|
280
|
-
path: `/api/v1/c/{company_code}/comments/retrieve`.replace(
|
|
281
|
-
`{${'company_code'}}`,
|
|
282
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
283
|
-
),
|
|
284
|
-
method: 'POST',
|
|
285
|
-
headers: headerParameters,
|
|
286
|
-
query: queryParameters,
|
|
287
|
-
body: requestParameters['commentsRetrieveRequest'],
|
|
288
|
-
},
|
|
289
|
-
initOverrides,
|
|
290
|
-
);
|
|
291
|
-
|
|
292
|
-
return new runtime.JSONApiResponse(response);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
*/
|
|
297
|
-
async retrieveByConfiguration(
|
|
298
|
-
companyCode: string,
|
|
299
|
-
commentsRetrieveRequest: CommentsRetrieveRequest,
|
|
300
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
301
|
-
): Promise<Comment> {
|
|
302
|
-
const response = await this.retrieveByConfigurationRaw(
|
|
303
|
-
{ companyCode: companyCode, commentsRetrieveRequest: commentsRetrieveRequest },
|
|
304
|
-
initOverrides,
|
|
305
|
-
);
|
|
306
|
-
return await response.value();
|
|
307
|
-
}
|
|
308
|
-
}
|
|
@@ -1,260 +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 { Company, CompanySettingsPatchRequest, CompanySettingsResponse } from '../models/index';
|
|
15
|
-
import * as runtime from '../runtime';
|
|
16
|
-
|
|
17
|
-
export interface CompaniesApiGetRequest {
|
|
18
|
-
companyCode: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface CompaniesApiGetSettingsRequest {
|
|
22
|
-
companyCode: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface CompaniesApiPatchSettingsRequest {
|
|
26
|
-
companyCode: string;
|
|
27
|
-
companySettingsPatchRequest: CompanySettingsPatchRequest;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* CompaniesApi - interface
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface CompaniesApiInterface
|
|
35
|
-
*/
|
|
36
|
-
export interface CompaniesApiInterface {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @param {string} companyCode
|
|
40
|
-
* @param {*} [options] Override http request option.
|
|
41
|
-
* @throws {RequiredError}
|
|
42
|
-
* @memberof CompaniesApiInterface
|
|
43
|
-
*/
|
|
44
|
-
getRaw(
|
|
45
|
-
requestParameters: CompaniesApiGetRequest,
|
|
46
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
47
|
-
): Promise<runtime.ApiResponse<Company>>;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
*/
|
|
51
|
-
get(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Company>;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @param {string} companyCode
|
|
56
|
-
* @param {*} [options] Override http request option.
|
|
57
|
-
* @throws {RequiredError}
|
|
58
|
-
* @memberof CompaniesApiInterface
|
|
59
|
-
*/
|
|
60
|
-
getSettingsRaw(
|
|
61
|
-
requestParameters: CompaniesApiGetSettingsRequest,
|
|
62
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
63
|
-
): Promise<runtime.ApiResponse<CompanySettingsResponse>>;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
*/
|
|
67
|
-
getSettings(
|
|
68
|
-
companyCode: string,
|
|
69
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
70
|
-
): Promise<CompanySettingsResponse>;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @param {string} companyCode
|
|
75
|
-
* @param {CompanySettingsPatchRequest} companySettingsPatchRequest
|
|
76
|
-
* @param {*} [options] Override http request option.
|
|
77
|
-
* @throws {RequiredError}
|
|
78
|
-
* @memberof CompaniesApiInterface
|
|
79
|
-
*/
|
|
80
|
-
patchSettingsRaw(
|
|
81
|
-
requestParameters: CompaniesApiPatchSettingsRequest,
|
|
82
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
83
|
-
): Promise<runtime.ApiResponse<void>>;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
*/
|
|
87
|
-
patchSettings(
|
|
88
|
-
companyCode: string,
|
|
89
|
-
companySettingsPatchRequest: CompanySettingsPatchRequest,
|
|
90
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
91
|
-
): Promise<void>;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
export class CompaniesApi extends runtime.BaseAPI implements CompaniesApiInterface {
|
|
98
|
-
/**
|
|
99
|
-
*/
|
|
100
|
-
async getRaw(
|
|
101
|
-
requestParameters: CompaniesApiGetRequest,
|
|
102
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
103
|
-
): Promise<runtime.ApiResponse<Company>> {
|
|
104
|
-
if (requestParameters['companyCode'] == null) {
|
|
105
|
-
throw new runtime.RequiredError(
|
|
106
|
-
'companyCode',
|
|
107
|
-
'Required parameter "companyCode" was null or undefined when calling get().',
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
const queryParameters: any = {};
|
|
112
|
-
|
|
113
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
114
|
-
|
|
115
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
116
|
-
const token = this.configuration.accessToken;
|
|
117
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
118
|
-
|
|
119
|
-
if (tokenString) {
|
|
120
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
const response = await this.request(
|
|
124
|
-
{
|
|
125
|
-
path: `/api/v1/c/{company_code}`.replace(
|
|
126
|
-
`{${'company_code'}}`,
|
|
127
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
128
|
-
),
|
|
129
|
-
method: 'GET',
|
|
130
|
-
headers: headerParameters,
|
|
131
|
-
query: queryParameters,
|
|
132
|
-
},
|
|
133
|
-
initOverrides,
|
|
134
|
-
);
|
|
135
|
-
|
|
136
|
-
return new runtime.JSONApiResponse(response);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
*/
|
|
141
|
-
async get(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Company> {
|
|
142
|
-
const response = await this.getRaw({ companyCode: companyCode }, initOverrides);
|
|
143
|
-
return await response.value();
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
*/
|
|
148
|
-
async getSettingsRaw(
|
|
149
|
-
requestParameters: CompaniesApiGetSettingsRequest,
|
|
150
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
151
|
-
): Promise<runtime.ApiResponse<CompanySettingsResponse>> {
|
|
152
|
-
if (requestParameters['companyCode'] == null) {
|
|
153
|
-
throw new runtime.RequiredError(
|
|
154
|
-
'companyCode',
|
|
155
|
-
'Required parameter "companyCode" was null or undefined when calling getSettings().',
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
const queryParameters: any = {};
|
|
160
|
-
|
|
161
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
162
|
-
|
|
163
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
164
|
-
const token = this.configuration.accessToken;
|
|
165
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
166
|
-
|
|
167
|
-
if (tokenString) {
|
|
168
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
const response = await this.request(
|
|
172
|
-
{
|
|
173
|
-
path: `/api/v1/c/{company_code}/settings`.replace(
|
|
174
|
-
`{${'company_code'}}`,
|
|
175
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
176
|
-
),
|
|
177
|
-
method: 'GET',
|
|
178
|
-
headers: headerParameters,
|
|
179
|
-
query: queryParameters,
|
|
180
|
-
},
|
|
181
|
-
initOverrides,
|
|
182
|
-
);
|
|
183
|
-
|
|
184
|
-
return new runtime.JSONApiResponse(response);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
*/
|
|
189
|
-
async getSettings(
|
|
190
|
-
companyCode: string,
|
|
191
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
192
|
-
): Promise<CompanySettingsResponse> {
|
|
193
|
-
const response = await this.getSettingsRaw({ companyCode: companyCode }, initOverrides);
|
|
194
|
-
return await response.value();
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
*/
|
|
199
|
-
async patchSettingsRaw(
|
|
200
|
-
requestParameters: CompaniesApiPatchSettingsRequest,
|
|
201
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
202
|
-
): Promise<runtime.ApiResponse<void>> {
|
|
203
|
-
if (requestParameters['companyCode'] == null) {
|
|
204
|
-
throw new runtime.RequiredError(
|
|
205
|
-
'companyCode',
|
|
206
|
-
'Required parameter "companyCode" was null or undefined when calling patchSettings().',
|
|
207
|
-
);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
if (requestParameters['companySettingsPatchRequest'] == null) {
|
|
211
|
-
throw new runtime.RequiredError(
|
|
212
|
-
'companySettingsPatchRequest',
|
|
213
|
-
'Required parameter "companySettingsPatchRequest" was null or undefined when calling patchSettings().',
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
const queryParameters: any = {};
|
|
218
|
-
|
|
219
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
220
|
-
|
|
221
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
222
|
-
|
|
223
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
224
|
-
const token = this.configuration.accessToken;
|
|
225
|
-
const tokenString = await token('bearerToken', ['internal']);
|
|
226
|
-
|
|
227
|
-
if (tokenString) {
|
|
228
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
const response = await this.request(
|
|
232
|
-
{
|
|
233
|
-
path: `/api/v1/c/{company_code}/settings`.replace(
|
|
234
|
-
`{${'company_code'}}`,
|
|
235
|
-
encodeURIComponent(String(requestParameters['companyCode'])),
|
|
236
|
-
),
|
|
237
|
-
method: 'PATCH',
|
|
238
|
-
headers: headerParameters,
|
|
239
|
-
query: queryParameters,
|
|
240
|
-
body: requestParameters['companySettingsPatchRequest'],
|
|
241
|
-
},
|
|
242
|
-
initOverrides,
|
|
243
|
-
);
|
|
244
|
-
|
|
245
|
-
return new runtime.VoidApiResponse(response);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
*/
|
|
250
|
-
async patchSettings(
|
|
251
|
-
companyCode: string,
|
|
252
|
-
companySettingsPatchRequest: CompanySettingsPatchRequest,
|
|
253
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction,
|
|
254
|
-
): Promise<void> {
|
|
255
|
-
await this.patchSettingsRaw(
|
|
256
|
-
{ companyCode: companyCode, companySettingsPatchRequest: companySettingsPatchRequest },
|
|
257
|
-
initOverrides,
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
}
|