@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,81 +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 FormulasApi extends runtime.BaseAPI {
|
|
15
|
-
/**
|
|
16
|
-
*/
|
|
17
|
-
getFunctionsRaw(initOverrides) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const queryParameters = {};
|
|
20
|
-
const headerParameters = {};
|
|
21
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
22
|
-
const token = this.configuration.accessToken;
|
|
23
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
24
|
-
if (tokenString) {
|
|
25
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const response = yield this.request({
|
|
29
|
-
path: `/api/v1/formulas/functions`,
|
|
30
|
-
method: 'GET',
|
|
31
|
-
headers: headerParameters,
|
|
32
|
-
query: queryParameters,
|
|
33
|
-
}, initOverrides);
|
|
34
|
-
return new runtime.JSONApiResponse(response);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
*/
|
|
39
|
-
getFunctions(initOverrides) {
|
|
40
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const response = yield this.getFunctionsRaw(initOverrides);
|
|
42
|
-
return yield response.value();
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
*/
|
|
47
|
-
validateRaw(requestParameters, initOverrides) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
if (requestParameters['expression'] == null) {
|
|
50
|
-
throw new runtime.RequiredError('expression', 'Required parameter "expression" was null or undefined when calling validate().');
|
|
51
|
-
}
|
|
52
|
-
const queryParameters = {};
|
|
53
|
-
if (requestParameters['expression'] != null) {
|
|
54
|
-
queryParameters['expression'] = requestParameters['expression'];
|
|
55
|
-
}
|
|
56
|
-
const headerParameters = {};
|
|
57
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
58
|
-
const token = this.configuration.accessToken;
|
|
59
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
60
|
-
if (tokenString) {
|
|
61
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
const response = yield this.request({
|
|
65
|
-
path: `/api/v1/formulas/validate`,
|
|
66
|
-
method: 'GET',
|
|
67
|
-
headers: headerParameters,
|
|
68
|
-
query: queryParameters,
|
|
69
|
-
}, initOverrides);
|
|
70
|
-
return new runtime.JSONApiResponse(response);
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
*/
|
|
75
|
-
validate(expression, initOverrides) {
|
|
76
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
const response = yield this.validateRaw({ expression: expression }, initOverrides);
|
|
78
|
-
return yield response.value();
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1,136 +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 { FutureCopyRequest, FutureDefinition, FutureDefinitionPostRequest, FutureDefinitions } from '../models/index';
|
|
13
|
-
import * as runtime from '../runtime';
|
|
14
|
-
export interface FuturesApiCopyRequest {
|
|
15
|
-
companyCode: string;
|
|
16
|
-
futureCode: string;
|
|
17
|
-
futureCopyRequest: FutureCopyRequest;
|
|
18
|
-
}
|
|
19
|
-
export interface FuturesApiDeleteRequest {
|
|
20
|
-
companyCode: string;
|
|
21
|
-
futureCode: string;
|
|
22
|
-
}
|
|
23
|
-
export interface FuturesApiGetRequest {
|
|
24
|
-
companyCode: string;
|
|
25
|
-
}
|
|
26
|
-
export interface FuturesApiGetItemRequest {
|
|
27
|
-
companyCode: string;
|
|
28
|
-
futureCode: string;
|
|
29
|
-
}
|
|
30
|
-
export interface FuturesApiPostRequest {
|
|
31
|
-
companyCode: string;
|
|
32
|
-
futureDefinitionPostRequest: FutureDefinitionPostRequest;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* FuturesApi - interface
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface FuturesApiInterface
|
|
39
|
-
*/
|
|
40
|
-
export interface FuturesApiInterface {
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @param {string} companyCode
|
|
44
|
-
* @param {string} futureCode
|
|
45
|
-
* @param {FutureCopyRequest} futureCopyRequest
|
|
46
|
-
* @param {*} [options] Override http request option.
|
|
47
|
-
* @throws {RequiredError}
|
|
48
|
-
* @memberof FuturesApiInterface
|
|
49
|
-
*/
|
|
50
|
-
copyRaw(requestParameters: FuturesApiCopyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FutureDefinition>>;
|
|
51
|
-
/**
|
|
52
|
-
*/
|
|
53
|
-
copy(companyCode: string, futureCode: string, futureCopyRequest: FutureCopyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FutureDefinition>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @param {string} companyCode
|
|
57
|
-
* @param {string} futureCode
|
|
58
|
-
* @param {*} [options] Override http request option.
|
|
59
|
-
* @throws {RequiredError}
|
|
60
|
-
* @memberof FuturesApiInterface
|
|
61
|
-
*/
|
|
62
|
-
deleteRaw(requestParameters: FuturesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
63
|
-
/**
|
|
64
|
-
*/
|
|
65
|
-
delete(companyCode: string, futureCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @param {string} companyCode
|
|
69
|
-
* @param {*} [options] Override http request option.
|
|
70
|
-
* @throws {RequiredError}
|
|
71
|
-
* @memberof FuturesApiInterface
|
|
72
|
-
*/
|
|
73
|
-
getRaw(requestParameters: FuturesApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FutureDefinitions>>;
|
|
74
|
-
/**
|
|
75
|
-
*/
|
|
76
|
-
get(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FutureDefinitions>;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @param {string} companyCode
|
|
80
|
-
* @param {string} futureCode
|
|
81
|
-
* @param {*} [options] Override http request option.
|
|
82
|
-
* @throws {RequiredError}
|
|
83
|
-
* @memberof FuturesApiInterface
|
|
84
|
-
*/
|
|
85
|
-
getItemRaw(requestParameters: FuturesApiGetItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FutureDefinition>>;
|
|
86
|
-
/**
|
|
87
|
-
*/
|
|
88
|
-
getItem(companyCode: string, futureCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FutureDefinition>;
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @param {string} companyCode
|
|
92
|
-
* @param {FutureDefinitionPostRequest} futureDefinitionPostRequest
|
|
93
|
-
* @param {*} [options] Override http request option.
|
|
94
|
-
* @throws {RequiredError}
|
|
95
|
-
* @memberof FuturesApiInterface
|
|
96
|
-
*/
|
|
97
|
-
postRaw(requestParameters: FuturesApiPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FutureDefinition>>;
|
|
98
|
-
/**
|
|
99
|
-
*/
|
|
100
|
-
post(companyCode: string, futureDefinitionPostRequest: FutureDefinitionPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FutureDefinition>;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
export declare class FuturesApi extends runtime.BaseAPI implements FuturesApiInterface {
|
|
106
|
-
/**
|
|
107
|
-
*/
|
|
108
|
-
copyRaw(requestParameters: FuturesApiCopyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FutureDefinition>>;
|
|
109
|
-
/**
|
|
110
|
-
*/
|
|
111
|
-
copy(companyCode: string, futureCode: string, futureCopyRequest: FutureCopyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FutureDefinition>;
|
|
112
|
-
/**
|
|
113
|
-
*/
|
|
114
|
-
deleteRaw(requestParameters: FuturesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
115
|
-
/**
|
|
116
|
-
*/
|
|
117
|
-
delete(companyCode: string, futureCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
118
|
-
/**
|
|
119
|
-
*/
|
|
120
|
-
getRaw(requestParameters: FuturesApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FutureDefinitions>>;
|
|
121
|
-
/**
|
|
122
|
-
*/
|
|
123
|
-
get(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FutureDefinitions>;
|
|
124
|
-
/**
|
|
125
|
-
*/
|
|
126
|
-
getItemRaw(requestParameters: FuturesApiGetItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FutureDefinition>>;
|
|
127
|
-
/**
|
|
128
|
-
*/
|
|
129
|
-
getItem(companyCode: string, futureCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FutureDefinition>;
|
|
130
|
-
/**
|
|
131
|
-
*/
|
|
132
|
-
postRaw(requestParameters: FuturesApiPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FutureDefinition>>;
|
|
133
|
-
/**
|
|
134
|
-
*/
|
|
135
|
-
post(companyCode: string, futureDefinitionPostRequest: FutureDefinitionPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FutureDefinition>;
|
|
136
|
-
}
|
|
@@ -1,204 +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 FuturesApi extends runtime.BaseAPI {
|
|
15
|
-
/**
|
|
16
|
-
*/
|
|
17
|
-
copyRaw(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 copy().');
|
|
21
|
-
}
|
|
22
|
-
if (requestParameters['futureCode'] == null) {
|
|
23
|
-
throw new runtime.RequiredError('futureCode', 'Required parameter "futureCode" was null or undefined when calling copy().');
|
|
24
|
-
}
|
|
25
|
-
if (requestParameters['futureCopyRequest'] == null) {
|
|
26
|
-
throw new runtime.RequiredError('futureCopyRequest', 'Required parameter "futureCopyRequest" was null or undefined when calling copy().');
|
|
27
|
-
}
|
|
28
|
-
const queryParameters = {};
|
|
29
|
-
const headerParameters = {};
|
|
30
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
31
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
32
|
-
const token = this.configuration.accessToken;
|
|
33
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
34
|
-
if (tokenString) {
|
|
35
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
const response = yield this.request({
|
|
39
|
-
path: `/api/v1/c/{company_code}/futures/{future_code}`
|
|
40
|
-
.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
|
|
41
|
-
.replace(`{${'future_code'}}`, encodeURIComponent(String(requestParameters['futureCode']))),
|
|
42
|
-
method: 'POST',
|
|
43
|
-
headers: headerParameters,
|
|
44
|
-
query: queryParameters,
|
|
45
|
-
body: requestParameters['futureCopyRequest'],
|
|
46
|
-
}, initOverrides);
|
|
47
|
-
return new runtime.JSONApiResponse(response);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
*/
|
|
52
|
-
copy(companyCode, futureCode, futureCopyRequest, initOverrides) {
|
|
53
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
const response = yield this.copyRaw({ companyCode: companyCode, futureCode: futureCode, futureCopyRequest: futureCopyRequest }, initOverrides);
|
|
55
|
-
return yield response.value();
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
*/
|
|
60
|
-
deleteRaw(requestParameters, initOverrides) {
|
|
61
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
if (requestParameters['companyCode'] == null) {
|
|
63
|
-
throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling delete().');
|
|
64
|
-
}
|
|
65
|
-
if (requestParameters['futureCode'] == null) {
|
|
66
|
-
throw new runtime.RequiredError('futureCode', 'Required parameter "futureCode" was null or undefined when calling delete().');
|
|
67
|
-
}
|
|
68
|
-
const queryParameters = {};
|
|
69
|
-
const headerParameters = {};
|
|
70
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
71
|
-
const token = this.configuration.accessToken;
|
|
72
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
73
|
-
if (tokenString) {
|
|
74
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
const response = yield this.request({
|
|
78
|
-
path: `/api/v1/c/{company_code}/futures/{future_code}`
|
|
79
|
-
.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
|
|
80
|
-
.replace(`{${'future_code'}}`, encodeURIComponent(String(requestParameters['futureCode']))),
|
|
81
|
-
method: 'DELETE',
|
|
82
|
-
headers: headerParameters,
|
|
83
|
-
query: queryParameters,
|
|
84
|
-
}, initOverrides);
|
|
85
|
-
return new runtime.VoidApiResponse(response);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
*/
|
|
90
|
-
delete(companyCode, futureCode, initOverrides) {
|
|
91
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
-
yield this.deleteRaw({ companyCode: companyCode, futureCode: futureCode }, initOverrides);
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
*/
|
|
97
|
-
getRaw(requestParameters, initOverrides) {
|
|
98
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
-
if (requestParameters['companyCode'] == null) {
|
|
100
|
-
throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling get().');
|
|
101
|
-
}
|
|
102
|
-
const queryParameters = {};
|
|
103
|
-
const headerParameters = {};
|
|
104
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
105
|
-
const token = this.configuration.accessToken;
|
|
106
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
107
|
-
if (tokenString) {
|
|
108
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
const response = yield this.request({
|
|
112
|
-
path: `/api/v1/c/{company_code}/futures`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
|
|
113
|
-
method: 'GET',
|
|
114
|
-
headers: headerParameters,
|
|
115
|
-
query: queryParameters,
|
|
116
|
-
}, initOverrides);
|
|
117
|
-
return new runtime.JSONApiResponse(response);
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
*/
|
|
122
|
-
get(companyCode, initOverrides) {
|
|
123
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
const response = yield this.getRaw({ companyCode: companyCode }, initOverrides);
|
|
125
|
-
return yield response.value();
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
*/
|
|
130
|
-
getItemRaw(requestParameters, initOverrides) {
|
|
131
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
-
if (requestParameters['companyCode'] == null) {
|
|
133
|
-
throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling getItem().');
|
|
134
|
-
}
|
|
135
|
-
if (requestParameters['futureCode'] == null) {
|
|
136
|
-
throw new runtime.RequiredError('futureCode', 'Required parameter "futureCode" was null or undefined when calling getItem().');
|
|
137
|
-
}
|
|
138
|
-
const queryParameters = {};
|
|
139
|
-
const headerParameters = {};
|
|
140
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
141
|
-
const token = this.configuration.accessToken;
|
|
142
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
143
|
-
if (tokenString) {
|
|
144
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
const response = yield this.request({
|
|
148
|
-
path: `/api/v1/c/{company_code}/futures/{future_code}`
|
|
149
|
-
.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
|
|
150
|
-
.replace(`{${'future_code'}}`, encodeURIComponent(String(requestParameters['futureCode']))),
|
|
151
|
-
method: 'GET',
|
|
152
|
-
headers: headerParameters,
|
|
153
|
-
query: queryParameters,
|
|
154
|
-
}, initOverrides);
|
|
155
|
-
return new runtime.JSONApiResponse(response);
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
*/
|
|
160
|
-
getItem(companyCode, futureCode, initOverrides) {
|
|
161
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
-
const response = yield this.getItemRaw({ companyCode: companyCode, futureCode: futureCode }, initOverrides);
|
|
163
|
-
return yield response.value();
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
*/
|
|
168
|
-
postRaw(requestParameters, initOverrides) {
|
|
169
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
-
if (requestParameters['companyCode'] == null) {
|
|
171
|
-
throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling post().');
|
|
172
|
-
}
|
|
173
|
-
if (requestParameters['futureDefinitionPostRequest'] == null) {
|
|
174
|
-
throw new runtime.RequiredError('futureDefinitionPostRequest', 'Required parameter "futureDefinitionPostRequest" was null or undefined when calling post().');
|
|
175
|
-
}
|
|
176
|
-
const queryParameters = {};
|
|
177
|
-
const headerParameters = {};
|
|
178
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
179
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
180
|
-
const token = this.configuration.accessToken;
|
|
181
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
182
|
-
if (tokenString) {
|
|
183
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
const response = yield this.request({
|
|
187
|
-
path: `/api/v1/c/{company_code}/futures`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
|
|
188
|
-
method: 'POST',
|
|
189
|
-
headers: headerParameters,
|
|
190
|
-
query: queryParameters,
|
|
191
|
-
body: requestParameters['futureDefinitionPostRequest'],
|
|
192
|
-
}, initOverrides);
|
|
193
|
-
return new runtime.JSONApiResponse(response);
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
*/
|
|
198
|
-
post(companyCode, futureDefinitionPostRequest, initOverrides) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
-
const response = yield this.postRaw({ companyCode: companyCode, futureDefinitionPostRequest: futureDefinitionPostRequest }, initOverrides);
|
|
201
|
-
return yield response.value();
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
}
|
|
@@ -1,46 +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 { LinkIdentitiesRequest } from '../models/index';
|
|
13
|
-
import * as runtime from '../runtime';
|
|
14
|
-
export interface IdentityLinkingApiLinkRequest {
|
|
15
|
-
linkIdentitiesRequest: LinkIdentitiesRequest;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* IdentityLinkingApi - interface
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface IdentityLinkingApiInterface
|
|
22
|
-
*/
|
|
23
|
-
export interface IdentityLinkingApiInterface {
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @param {LinkIdentitiesRequest} linkIdentitiesRequest
|
|
27
|
-
* @param {*} [options] Override http request option.
|
|
28
|
-
* @throws {RequiredError}
|
|
29
|
-
* @memberof IdentityLinkingApiInterface
|
|
30
|
-
*/
|
|
31
|
-
linkRaw(requestParameters: IdentityLinkingApiLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
32
|
-
/**
|
|
33
|
-
*/
|
|
34
|
-
link(linkIdentitiesRequest: LinkIdentitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
export declare class IdentityLinkingApi extends runtime.BaseAPI implements IdentityLinkingApiInterface {
|
|
40
|
-
/**
|
|
41
|
-
*/
|
|
42
|
-
linkRaw(requestParameters: IdentityLinkingApiLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
43
|
-
/**
|
|
44
|
-
*/
|
|
45
|
-
link(linkIdentitiesRequest: LinkIdentitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
46
|
-
}
|
|
@@ -1,49 +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 IdentityLinkingApi extends runtime.BaseAPI {
|
|
15
|
-
/**
|
|
16
|
-
*/
|
|
17
|
-
linkRaw(requestParameters, initOverrides) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
if (requestParameters['linkIdentitiesRequest'] == null) {
|
|
20
|
-
throw new runtime.RequiredError('linkIdentitiesRequest', 'Required parameter "linkIdentitiesRequest" was null or undefined when calling link().');
|
|
21
|
-
}
|
|
22
|
-
const queryParameters = {};
|
|
23
|
-
const headerParameters = {};
|
|
24
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
25
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
26
|
-
const token = this.configuration.accessToken;
|
|
27
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
28
|
-
if (tokenString) {
|
|
29
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
const response = yield this.request({
|
|
33
|
-
path: `/api/v1/identity-linking/link`,
|
|
34
|
-
method: 'POST',
|
|
35
|
-
headers: headerParameters,
|
|
36
|
-
query: queryParameters,
|
|
37
|
-
body: requestParameters['linkIdentitiesRequest'],
|
|
38
|
-
}, initOverrides);
|
|
39
|
-
return new runtime.VoidApiResponse(response);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
*/
|
|
44
|
-
link(linkIdentitiesRequest, initOverrides) {
|
|
45
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
yield this.linkRaw({ linkIdentitiesRequest: linkIdentitiesRequest }, initOverrides);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,55 +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 { AsynchronousOperation, InputBatchRequest } from '../models/index';
|
|
13
|
-
import * as runtime from '../runtime';
|
|
14
|
-
export interface InputApiPostBatchRequest {
|
|
15
|
-
companyCode: string;
|
|
16
|
-
inputBatchRequest: InputBatchRequest;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* InputApi - interface
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface InputApiInterface
|
|
23
|
-
*/
|
|
24
|
-
export interface InputApiInterface {
|
|
25
|
-
/**
|
|
26
|
-
* Batch input for a given year and period
|
|
27
|
-
* @summary Batch input
|
|
28
|
-
* @param {string} companyCode
|
|
29
|
-
* @param {InputBatchRequest} inputBatchRequest
|
|
30
|
-
* @param {*} [options] Override http request option.
|
|
31
|
-
* @throws {RequiredError}
|
|
32
|
-
* @memberof InputApiInterface
|
|
33
|
-
*/
|
|
34
|
-
postBatchRaw(requestParameters: InputApiPostBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AsynchronousOperation>>;
|
|
35
|
-
/**
|
|
36
|
-
* Batch input for a given year and period
|
|
37
|
-
* Batch input
|
|
38
|
-
*/
|
|
39
|
-
postBatch(companyCode: string, inputBatchRequest: InputBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AsynchronousOperation>;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export declare class InputApi extends runtime.BaseAPI implements InputApiInterface {
|
|
45
|
-
/**
|
|
46
|
-
* Batch input for a given year and period
|
|
47
|
-
* Batch input
|
|
48
|
-
*/
|
|
49
|
-
postBatchRaw(requestParameters: InputApiPostBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AsynchronousOperation>>;
|
|
50
|
-
/**
|
|
51
|
-
* Batch input for a given year and period
|
|
52
|
-
* Batch input
|
|
53
|
-
*/
|
|
54
|
-
postBatch(companyCode: string, inputBatchRequest: InputBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AsynchronousOperation>;
|
|
55
|
-
}
|
|
@@ -1,57 +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 InputApi extends runtime.BaseAPI {
|
|
15
|
-
/**
|
|
16
|
-
* Batch input for a given year and period
|
|
17
|
-
* Batch input
|
|
18
|
-
*/
|
|
19
|
-
postBatchRaw(requestParameters, initOverrides) {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
if (requestParameters['companyCode'] == null) {
|
|
22
|
-
throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling postBatch().');
|
|
23
|
-
}
|
|
24
|
-
if (requestParameters['inputBatchRequest'] == null) {
|
|
25
|
-
throw new runtime.RequiredError('inputBatchRequest', 'Required parameter "inputBatchRequest" was null or undefined when calling postBatch().');
|
|
26
|
-
}
|
|
27
|
-
const queryParameters = {};
|
|
28
|
-
const headerParameters = {};
|
|
29
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
30
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
31
|
-
const token = this.configuration.accessToken;
|
|
32
|
-
const tokenString = yield token('bearerToken', ['input:write']);
|
|
33
|
-
if (tokenString) {
|
|
34
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const response = yield this.request({
|
|
38
|
-
path: `/api/v1/c/{company_code}/input/batch`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
|
|
39
|
-
method: 'POST',
|
|
40
|
-
headers: headerParameters,
|
|
41
|
-
query: queryParameters,
|
|
42
|
-
body: requestParameters['inputBatchRequest'],
|
|
43
|
-
}, initOverrides);
|
|
44
|
-
return new runtime.JSONApiResponse(response);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Batch input for a given year and period
|
|
49
|
-
* Batch input
|
|
50
|
-
*/
|
|
51
|
-
postBatch(companyCode, inputBatchRequest, initOverrides) {
|
|
52
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
const response = yield this.postBatchRaw({ companyCode: companyCode, inputBatchRequest: inputBatchRequest }, initOverrides);
|
|
54
|
-
return yield response.value();
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}
|