@smartbooks-ai/api-client 0.0.3

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.
Files changed (257) hide show
  1. package/.openapi-generator/FILES +56 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +50 -0
  5. package/dist/apis/AiApi.d.ts +289 -0
  6. package/dist/apis/AiApi.js +456 -0
  7. package/dist/apis/AnalyticsApi.d.ts +242 -0
  8. package/dist/apis/AnalyticsApi.js +395 -0
  9. package/dist/apis/AsyncOperationsApi.d.ts +48 -0
  10. package/dist/apis/AsyncOperationsApi.js +57 -0
  11. package/dist/apis/BusinessModelModulesApi.d.ts +182 -0
  12. package/dist/apis/BusinessModelModulesApi.js +289 -0
  13. package/dist/apis/ColorPalettesApi.d.ts +62 -0
  14. package/dist/apis/ColorPalettesApi.js +82 -0
  15. package/dist/apis/CommentsApi.d.ts +94 -0
  16. package/dist/apis/CommentsApi.js +138 -0
  17. package/dist/apis/CompaniesApi.d.ts +88 -0
  18. package/dist/apis/CompaniesApi.js +122 -0
  19. package/dist/apis/CompanyManagementApi.d.ts +90 -0
  20. package/dist/apis/CompanyManagementApi.js +127 -0
  21. package/dist/apis/ConnectionParametersApi.d.ts +98 -0
  22. package/dist/apis/ConnectionParametersApi.js +155 -0
  23. package/dist/apis/ConnectionTypesApi.d.ts +90 -0
  24. package/dist/apis/ConnectionTypesApi.js +128 -0
  25. package/dist/apis/ConnectionsApi.d.ts +156 -0
  26. package/dist/apis/ConnectionsApi.js +240 -0
  27. package/dist/apis/ConnectionsAuthorizationApi.d.ts +74 -0
  28. package/dist/apis/ConnectionsAuthorizationApi.js +112 -0
  29. package/dist/apis/ConnectionsClientCredentialsApi.d.ts +72 -0
  30. package/dist/apis/ConnectionsClientCredentialsApi.js +104 -0
  31. package/dist/apis/ConsolidationApi.d.ts +192 -0
  32. package/dist/apis/ConsolidationApi.js +301 -0
  33. package/dist/apis/CostCenterApi.d.ts +130 -0
  34. package/dist/apis/CostCenterApi.js +192 -0
  35. package/dist/apis/DashboardsApi.d.ts +306 -0
  36. package/dist/apis/DashboardsApi.js +519 -0
  37. package/dist/apis/DataSynchronizationApi.d.ts +92 -0
  38. package/dist/apis/DataSynchronizationApi.js +131 -0
  39. package/dist/apis/ExplanationApi.d.ts +110 -0
  40. package/dist/apis/ExplanationApi.js +231 -0
  41. package/dist/apis/FormatsApi.d.ts +46 -0
  42. package/dist/apis/FormatsApi.js +52 -0
  43. package/dist/apis/FormulasApi.d.ts +62 -0
  44. package/dist/apis/FormulasApi.js +85 -0
  45. package/dist/apis/FuturesApi.d.ts +136 -0
  46. package/dist/apis/FuturesApi.js +208 -0
  47. package/dist/apis/IdentityLinkingApi.d.ts +46 -0
  48. package/dist/apis/IdentityLinkingApi.js +53 -0
  49. package/dist/apis/InputApi.d.ts +55 -0
  50. package/dist/apis/InputApi.js +61 -0
  51. package/dist/apis/IntercompanyMatchingApi.d.ts +174 -0
  52. package/dist/apis/IntercompanyMatchingApi.js +264 -0
  53. package/dist/apis/InvitationsApi.d.ts +156 -0
  54. package/dist/apis/InvitationsApi.js +239 -0
  55. package/dist/apis/MaintenanceApi.d.ts +182 -0
  56. package/dist/apis/MaintenanceApi.js +282 -0
  57. package/dist/apis/ManualInputApi.d.ts +204 -0
  58. package/dist/apis/ManualInputApi.js +332 -0
  59. package/dist/apis/ModulesApi.d.ts +88 -0
  60. package/dist/apis/ModulesApi.js +116 -0
  61. package/dist/apis/NodePurposesApi.d.ts +68 -0
  62. package/dist/apis/NodePurposesApi.js +90 -0
  63. package/dist/apis/ProfileApi.d.ts +85 -0
  64. package/dist/apis/ProfileApi.js +118 -0
  65. package/dist/apis/RelationsApi.d.ts +46 -0
  66. package/dist/apis/RelationsApi.js +52 -0
  67. package/dist/apis/ReportGroupsApi.d.ts +72 -0
  68. package/dist/apis/ReportGroupsApi.js +96 -0
  69. package/dist/apis/ReportingApi.d.ts +267 -0
  70. package/dist/apis/ReportingApi.js +383 -0
  71. package/dist/apis/ReportingPeriodsApi.d.ts +46 -0
  72. package/dist/apis/ReportingPeriodsApi.js +52 -0
  73. package/dist/apis/SourceAccountsApi.d.ts +46 -0
  74. package/dist/apis/SourceAccountsApi.js +52 -0
  75. package/dist/apis/StructureApi.d.ts +134 -0
  76. package/dist/apis/StructureApi.js +167 -0
  77. package/dist/apis/StructureDefinitionApi.d.ts +164 -0
  78. package/dist/apis/StructureDefinitionApi.js +263 -0
  79. package/dist/apis/StructureImprovementApi.d.ts +70 -0
  80. package/dist/apis/StructureImprovementApi.js +95 -0
  81. package/dist/apis/TemplatesApi.d.ts +120 -0
  82. package/dist/apis/TemplatesApi.js +182 -0
  83. package/dist/apis/TemplatesGenerationApi.d.ts +66 -0
  84. package/dist/apis/TemplatesGenerationApi.js +89 -0
  85. package/dist/apis/TenantIntercompanySettingsApi.d.ts +90 -0
  86. package/dist/apis/TenantIntercompanySettingsApi.js +127 -0
  87. package/dist/apis/TenantsApi.d.ts +124 -0
  88. package/dist/apis/TenantsApi.js +184 -0
  89. package/dist/apis/TransactionDetailsApi.d.ts +50 -0
  90. package/dist/apis/TransactionDetailsApi.js +61 -0
  91. package/dist/apis/UsersApi.d.ts +114 -0
  92. package/dist/apis/UsersApi.js +169 -0
  93. package/dist/apis/WebhooksApi.d.ts +68 -0
  94. package/dist/apis/WebhooksApi.js +90 -0
  95. package/dist/apis/WizardApi.d.ts +74 -0
  96. package/dist/apis/WizardApi.js +105 -0
  97. package/dist/apis/index.d.ts +46 -0
  98. package/dist/apis/index.js +64 -0
  99. package/dist/esm/apis/AiApi.d.ts +289 -0
  100. package/dist/esm/apis/AiApi.js +452 -0
  101. package/dist/esm/apis/AnalyticsApi.d.ts +242 -0
  102. package/dist/esm/apis/AnalyticsApi.js +391 -0
  103. package/dist/esm/apis/AsyncOperationsApi.d.ts +48 -0
  104. package/dist/esm/apis/AsyncOperationsApi.js +53 -0
  105. package/dist/esm/apis/BusinessModelModulesApi.d.ts +182 -0
  106. package/dist/esm/apis/BusinessModelModulesApi.js +285 -0
  107. package/dist/esm/apis/ColorPalettesApi.d.ts +62 -0
  108. package/dist/esm/apis/ColorPalettesApi.js +78 -0
  109. package/dist/esm/apis/CommentsApi.d.ts +94 -0
  110. package/dist/esm/apis/CommentsApi.js +134 -0
  111. package/dist/esm/apis/CompaniesApi.d.ts +88 -0
  112. package/dist/esm/apis/CompaniesApi.js +118 -0
  113. package/dist/esm/apis/CompanyManagementApi.d.ts +90 -0
  114. package/dist/esm/apis/CompanyManagementApi.js +123 -0
  115. package/dist/esm/apis/ConnectionParametersApi.d.ts +98 -0
  116. package/dist/esm/apis/ConnectionParametersApi.js +151 -0
  117. package/dist/esm/apis/ConnectionTypesApi.d.ts +90 -0
  118. package/dist/esm/apis/ConnectionTypesApi.js +124 -0
  119. package/dist/esm/apis/ConnectionsApi.d.ts +156 -0
  120. package/dist/esm/apis/ConnectionsApi.js +236 -0
  121. package/dist/esm/apis/ConnectionsAuthorizationApi.d.ts +74 -0
  122. package/dist/esm/apis/ConnectionsAuthorizationApi.js +108 -0
  123. package/dist/esm/apis/ConnectionsClientCredentialsApi.d.ts +72 -0
  124. package/dist/esm/apis/ConnectionsClientCredentialsApi.js +100 -0
  125. package/dist/esm/apis/ConsolidationApi.d.ts +192 -0
  126. package/dist/esm/apis/ConsolidationApi.js +297 -0
  127. package/dist/esm/apis/CostCenterApi.d.ts +130 -0
  128. package/dist/esm/apis/CostCenterApi.js +188 -0
  129. package/dist/esm/apis/DashboardsApi.d.ts +306 -0
  130. package/dist/esm/apis/DashboardsApi.js +515 -0
  131. package/dist/esm/apis/DataSynchronizationApi.d.ts +92 -0
  132. package/dist/esm/apis/DataSynchronizationApi.js +127 -0
  133. package/dist/esm/apis/ExplanationApi.d.ts +110 -0
  134. package/dist/esm/apis/ExplanationApi.js +227 -0
  135. package/dist/esm/apis/FormatsApi.d.ts +46 -0
  136. package/dist/esm/apis/FormatsApi.js +48 -0
  137. package/dist/esm/apis/FormulasApi.d.ts +62 -0
  138. package/dist/esm/apis/FormulasApi.js +81 -0
  139. package/dist/esm/apis/FuturesApi.d.ts +136 -0
  140. package/dist/esm/apis/FuturesApi.js +204 -0
  141. package/dist/esm/apis/IdentityLinkingApi.d.ts +46 -0
  142. package/dist/esm/apis/IdentityLinkingApi.js +49 -0
  143. package/dist/esm/apis/InputApi.d.ts +55 -0
  144. package/dist/esm/apis/InputApi.js +57 -0
  145. package/dist/esm/apis/IntercompanyMatchingApi.d.ts +174 -0
  146. package/dist/esm/apis/IntercompanyMatchingApi.js +260 -0
  147. package/dist/esm/apis/InvitationsApi.d.ts +156 -0
  148. package/dist/esm/apis/InvitationsApi.js +235 -0
  149. package/dist/esm/apis/MaintenanceApi.d.ts +182 -0
  150. package/dist/esm/apis/MaintenanceApi.js +278 -0
  151. package/dist/esm/apis/ManualInputApi.d.ts +204 -0
  152. package/dist/esm/apis/ManualInputApi.js +328 -0
  153. package/dist/esm/apis/ModulesApi.d.ts +88 -0
  154. package/dist/esm/apis/ModulesApi.js +112 -0
  155. package/dist/esm/apis/NodePurposesApi.d.ts +68 -0
  156. package/dist/esm/apis/NodePurposesApi.js +86 -0
  157. package/dist/esm/apis/ProfileApi.d.ts +85 -0
  158. package/dist/esm/apis/ProfileApi.js +114 -0
  159. package/dist/esm/apis/RelationsApi.d.ts +46 -0
  160. package/dist/esm/apis/RelationsApi.js +48 -0
  161. package/dist/esm/apis/ReportGroupsApi.d.ts +72 -0
  162. package/dist/esm/apis/ReportGroupsApi.js +92 -0
  163. package/dist/esm/apis/ReportingApi.d.ts +267 -0
  164. package/dist/esm/apis/ReportingApi.js +379 -0
  165. package/dist/esm/apis/ReportingPeriodsApi.d.ts +46 -0
  166. package/dist/esm/apis/ReportingPeriodsApi.js +48 -0
  167. package/dist/esm/apis/SourceAccountsApi.d.ts +46 -0
  168. package/dist/esm/apis/SourceAccountsApi.js +48 -0
  169. package/dist/esm/apis/StructureApi.d.ts +134 -0
  170. package/dist/esm/apis/StructureApi.js +163 -0
  171. package/dist/esm/apis/StructureDefinitionApi.d.ts +164 -0
  172. package/dist/esm/apis/StructureDefinitionApi.js +259 -0
  173. package/dist/esm/apis/StructureImprovementApi.d.ts +70 -0
  174. package/dist/esm/apis/StructureImprovementApi.js +91 -0
  175. package/dist/esm/apis/TemplatesApi.d.ts +120 -0
  176. package/dist/esm/apis/TemplatesApi.js +178 -0
  177. package/dist/esm/apis/TemplatesGenerationApi.d.ts +66 -0
  178. package/dist/esm/apis/TemplatesGenerationApi.js +85 -0
  179. package/dist/esm/apis/TenantIntercompanySettingsApi.d.ts +90 -0
  180. package/dist/esm/apis/TenantIntercompanySettingsApi.js +123 -0
  181. package/dist/esm/apis/TenantsApi.d.ts +124 -0
  182. package/dist/esm/apis/TenantsApi.js +180 -0
  183. package/dist/esm/apis/TransactionDetailsApi.d.ts +50 -0
  184. package/dist/esm/apis/TransactionDetailsApi.js +57 -0
  185. package/dist/esm/apis/UsersApi.d.ts +114 -0
  186. package/dist/esm/apis/UsersApi.js +165 -0
  187. package/dist/esm/apis/WebhooksApi.d.ts +68 -0
  188. package/dist/esm/apis/WebhooksApi.js +86 -0
  189. package/dist/esm/apis/WizardApi.d.ts +74 -0
  190. package/dist/esm/apis/WizardApi.js +101 -0
  191. package/dist/esm/apis/index.d.ts +46 -0
  192. package/dist/esm/apis/index.js +48 -0
  193. package/dist/esm/index.d.ts +3 -0
  194. package/dist/esm/index.js +5 -0
  195. package/dist/esm/models/index.d.ts +15406 -0
  196. package/dist/esm/models/index.js +1279 -0
  197. package/dist/esm/runtime.d.ts +181 -0
  198. package/dist/esm/runtime.js +326 -0
  199. package/dist/index.d.ts +3 -0
  200. package/dist/index.js +21 -0
  201. package/dist/models/index.d.ts +15406 -0
  202. package/dist/models/index.js +1285 -0
  203. package/dist/runtime.d.ts +181 -0
  204. package/dist/runtime.js +341 -0
  205. package/package.json +21 -0
  206. package/src/apis/AiApi.ts +1043 -0
  207. package/src/apis/AnalyticsApi.ts +925 -0
  208. package/src/apis/AsyncOperationsApi.ts +112 -0
  209. package/src/apis/BusinessModelModulesApi.ts +649 -0
  210. package/src/apis/ColorPalettesApi.ts +148 -0
  211. package/src/apis/CommentsApi.ts +308 -0
  212. package/src/apis/CompaniesApi.ts +260 -0
  213. package/src/apis/CompanyManagementApi.ts +270 -0
  214. package/src/apis/ConnectionParametersApi.ts +339 -0
  215. package/src/apis/ConnectionTypesApi.ts +280 -0
  216. package/src/apis/ConnectionsApi.ts +533 -0
  217. package/src/apis/ConnectionsAuthorizationApi.ts +241 -0
  218. package/src/apis/ConnectionsClientCredentialsApi.ts +224 -0
  219. package/src/apis/ConsolidationApi.ts +682 -0
  220. package/src/apis/CostCenterApi.ts +428 -0
  221. package/src/apis/DashboardsApi.ts +1179 -0
  222. package/src/apis/DataSynchronizationApi.ts +288 -0
  223. package/src/apis/ExplanationApi.ts +504 -0
  224. package/src/apis/FormatsApi.ts +96 -0
  225. package/src/apis/FormulasApi.ts +154 -0
  226. package/src/apis/FuturesApi.ts +463 -0
  227. package/src/apis/IdentityLinkingApi.ts +101 -0
  228. package/src/apis/InputApi.ts +126 -0
  229. package/src/apis/IntercompanyMatchingApi.ts +588 -0
  230. package/src/apis/InvitationsApi.ts +523 -0
  231. package/src/apis/MaintenanceApi.ts +597 -0
  232. package/src/apis/ManualInputApi.ts +771 -0
  233. package/src/apis/ModulesApi.ts +246 -0
  234. package/src/apis/NodePurposesApi.ts +184 -0
  235. package/src/apis/ProfileApi.ts +203 -0
  236. package/src/apis/RelationsApi.ts +99 -0
  237. package/src/apis/ReportGroupsApi.ts +205 -0
  238. package/src/apis/ReportingApi.ts +851 -0
  239. package/src/apis/ReportingPeriodsApi.ts +99 -0
  240. package/src/apis/SourceAccountsApi.ts +102 -0
  241. package/src/apis/StructureApi.ts +334 -0
  242. package/src/apis/StructureDefinitionApi.ts +601 -0
  243. package/src/apis/StructureImprovementApi.ts +214 -0
  244. package/src/apis/TemplatesApi.ts +334 -0
  245. package/src/apis/TemplatesGenerationApi.ts +187 -0
  246. package/src/apis/TenantIntercompanySettingsApi.ts +286 -0
  247. package/src/apis/TenantsApi.ts +374 -0
  248. package/src/apis/TransactionDetailsApi.ts +127 -0
  249. package/src/apis/UsersApi.ts +356 -0
  250. package/src/apis/WebhooksApi.ts +193 -0
  251. package/src/apis/WizardApi.ts +230 -0
  252. package/src/apis/index.ts +48 -0
  253. package/src/index.ts +5 -0
  254. package/src/models/index.ts +15625 -0
  255. package/src/runtime.ts +469 -0
  256. package/tsconfig.esm.json +7 -0
  257. package/tsconfig.json +11 -0
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FormulasApi = void 0;
13
+ const runtime = require("../runtime");
14
+ /**
15
+ *
16
+ */
17
+ class FormulasApi extends runtime.BaseAPI {
18
+ /**
19
+ */
20
+ getFunctionsRaw(initOverrides) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const queryParameters = {};
23
+ const headerParameters = {};
24
+ if (this.configuration && this.configuration.accessToken) {
25
+ const token = this.configuration.accessToken;
26
+ const tokenString = yield token('bearerToken', ['internal']);
27
+ if (tokenString) {
28
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
29
+ }
30
+ }
31
+ const response = yield this.request({
32
+ path: `/api/v1/formulas/functions`,
33
+ method: 'GET',
34
+ headers: headerParameters,
35
+ query: queryParameters,
36
+ }, initOverrides);
37
+ return new runtime.JSONApiResponse(response);
38
+ });
39
+ }
40
+ /**
41
+ */
42
+ getFunctions(initOverrides) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ const response = yield this.getFunctionsRaw(initOverrides);
45
+ return yield response.value();
46
+ });
47
+ }
48
+ /**
49
+ */
50
+ validateRaw(requestParameters, initOverrides) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ if (requestParameters['expression'] == null) {
53
+ throw new runtime.RequiredError('expression', 'Required parameter "expression" was null or undefined when calling validate().');
54
+ }
55
+ const queryParameters = {};
56
+ if (requestParameters['expression'] != null) {
57
+ queryParameters['expression'] = requestParameters['expression'];
58
+ }
59
+ const headerParameters = {};
60
+ if (this.configuration && this.configuration.accessToken) {
61
+ const token = this.configuration.accessToken;
62
+ const tokenString = yield token('bearerToken', ['internal']);
63
+ if (tokenString) {
64
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
65
+ }
66
+ }
67
+ const response = yield this.request({
68
+ path: `/api/v1/formulas/validate`,
69
+ method: 'GET',
70
+ headers: headerParameters,
71
+ query: queryParameters,
72
+ }, initOverrides);
73
+ return new runtime.JSONApiResponse(response);
74
+ });
75
+ }
76
+ /**
77
+ */
78
+ validate(expression, initOverrides) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ const response = yield this.validateRaw({ expression: expression }, initOverrides);
81
+ return yield response.value();
82
+ });
83
+ }
84
+ }
85
+ exports.FormulasApi = FormulasApi;
@@ -0,0 +1,136 @@
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
+ }
@@ -0,0 +1,208 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FuturesApi = void 0;
13
+ const runtime = require("../runtime");
14
+ /**
15
+ *
16
+ */
17
+ class FuturesApi extends runtime.BaseAPI {
18
+ /**
19
+ */
20
+ copyRaw(requestParameters, initOverrides) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ if (requestParameters['companyCode'] == null) {
23
+ throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling copy().');
24
+ }
25
+ if (requestParameters['futureCode'] == null) {
26
+ throw new runtime.RequiredError('futureCode', 'Required parameter "futureCode" was null or undefined when calling copy().');
27
+ }
28
+ if (requestParameters['futureCopyRequest'] == null) {
29
+ throw new runtime.RequiredError('futureCopyRequest', 'Required parameter "futureCopyRequest" was null or undefined when calling copy().');
30
+ }
31
+ const queryParameters = {};
32
+ const headerParameters = {};
33
+ headerParameters['Content-Type'] = 'application/json';
34
+ if (this.configuration && this.configuration.accessToken) {
35
+ const token = this.configuration.accessToken;
36
+ const tokenString = yield token('bearerToken', ['internal']);
37
+ if (tokenString) {
38
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
39
+ }
40
+ }
41
+ const response = yield this.request({
42
+ path: `/api/v1/c/{company_code}/futures/{future_code}`
43
+ .replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
44
+ .replace(`{${'future_code'}}`, encodeURIComponent(String(requestParameters['futureCode']))),
45
+ method: 'POST',
46
+ headers: headerParameters,
47
+ query: queryParameters,
48
+ body: requestParameters['futureCopyRequest'],
49
+ }, initOverrides);
50
+ return new runtime.JSONApiResponse(response);
51
+ });
52
+ }
53
+ /**
54
+ */
55
+ copy(companyCode, futureCode, futureCopyRequest, initOverrides) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ const response = yield this.copyRaw({ companyCode: companyCode, futureCode: futureCode, futureCopyRequest: futureCopyRequest }, initOverrides);
58
+ return yield response.value();
59
+ });
60
+ }
61
+ /**
62
+ */
63
+ deleteRaw(requestParameters, initOverrides) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ if (requestParameters['companyCode'] == null) {
66
+ throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling delete().');
67
+ }
68
+ if (requestParameters['futureCode'] == null) {
69
+ throw new runtime.RequiredError('futureCode', 'Required parameter "futureCode" was null or undefined when calling delete().');
70
+ }
71
+ const queryParameters = {};
72
+ const headerParameters = {};
73
+ if (this.configuration && this.configuration.accessToken) {
74
+ const token = this.configuration.accessToken;
75
+ const tokenString = yield token('bearerToken', ['internal']);
76
+ if (tokenString) {
77
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
78
+ }
79
+ }
80
+ const response = yield this.request({
81
+ path: `/api/v1/c/{company_code}/futures/{future_code}`
82
+ .replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
83
+ .replace(`{${'future_code'}}`, encodeURIComponent(String(requestParameters['futureCode']))),
84
+ method: 'DELETE',
85
+ headers: headerParameters,
86
+ query: queryParameters,
87
+ }, initOverrides);
88
+ return new runtime.VoidApiResponse(response);
89
+ });
90
+ }
91
+ /**
92
+ */
93
+ delete(companyCode, futureCode, initOverrides) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ yield this.deleteRaw({ companyCode: companyCode, futureCode: futureCode }, initOverrides);
96
+ });
97
+ }
98
+ /**
99
+ */
100
+ getRaw(requestParameters, initOverrides) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ if (requestParameters['companyCode'] == null) {
103
+ throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling get().');
104
+ }
105
+ const queryParameters = {};
106
+ const headerParameters = {};
107
+ if (this.configuration && this.configuration.accessToken) {
108
+ const token = this.configuration.accessToken;
109
+ const tokenString = yield token('bearerToken', ['internal']);
110
+ if (tokenString) {
111
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
112
+ }
113
+ }
114
+ const response = yield this.request({
115
+ path: `/api/v1/c/{company_code}/futures`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
116
+ method: 'GET',
117
+ headers: headerParameters,
118
+ query: queryParameters,
119
+ }, initOverrides);
120
+ return new runtime.JSONApiResponse(response);
121
+ });
122
+ }
123
+ /**
124
+ */
125
+ get(companyCode, initOverrides) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ const response = yield this.getRaw({ companyCode: companyCode }, initOverrides);
128
+ return yield response.value();
129
+ });
130
+ }
131
+ /**
132
+ */
133
+ getItemRaw(requestParameters, initOverrides) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ if (requestParameters['companyCode'] == null) {
136
+ throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling getItem().');
137
+ }
138
+ if (requestParameters['futureCode'] == null) {
139
+ throw new runtime.RequiredError('futureCode', 'Required parameter "futureCode" was null or undefined when calling getItem().');
140
+ }
141
+ const queryParameters = {};
142
+ const headerParameters = {};
143
+ if (this.configuration && this.configuration.accessToken) {
144
+ const token = this.configuration.accessToken;
145
+ const tokenString = yield token('bearerToken', ['internal']);
146
+ if (tokenString) {
147
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
148
+ }
149
+ }
150
+ const response = yield this.request({
151
+ path: `/api/v1/c/{company_code}/futures/{future_code}`
152
+ .replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
153
+ .replace(`{${'future_code'}}`, encodeURIComponent(String(requestParameters['futureCode']))),
154
+ method: 'GET',
155
+ headers: headerParameters,
156
+ query: queryParameters,
157
+ }, initOverrides);
158
+ return new runtime.JSONApiResponse(response);
159
+ });
160
+ }
161
+ /**
162
+ */
163
+ getItem(companyCode, futureCode, initOverrides) {
164
+ return __awaiter(this, void 0, void 0, function* () {
165
+ const response = yield this.getItemRaw({ companyCode: companyCode, futureCode: futureCode }, initOverrides);
166
+ return yield response.value();
167
+ });
168
+ }
169
+ /**
170
+ */
171
+ postRaw(requestParameters, initOverrides) {
172
+ return __awaiter(this, void 0, void 0, function* () {
173
+ if (requestParameters['companyCode'] == null) {
174
+ throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling post().');
175
+ }
176
+ if (requestParameters['futureDefinitionPostRequest'] == null) {
177
+ throw new runtime.RequiredError('futureDefinitionPostRequest', 'Required parameter "futureDefinitionPostRequest" was null or undefined when calling post().');
178
+ }
179
+ const queryParameters = {};
180
+ const headerParameters = {};
181
+ headerParameters['Content-Type'] = 'application/json';
182
+ if (this.configuration && this.configuration.accessToken) {
183
+ const token = this.configuration.accessToken;
184
+ const tokenString = yield token('bearerToken', ['internal']);
185
+ if (tokenString) {
186
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
187
+ }
188
+ }
189
+ const response = yield this.request({
190
+ path: `/api/v1/c/{company_code}/futures`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
191
+ method: 'POST',
192
+ headers: headerParameters,
193
+ query: queryParameters,
194
+ body: requestParameters['futureDefinitionPostRequest'],
195
+ }, initOverrides);
196
+ return new runtime.JSONApiResponse(response);
197
+ });
198
+ }
199
+ /**
200
+ */
201
+ post(companyCode, futureDefinitionPostRequest, initOverrides) {
202
+ return __awaiter(this, void 0, void 0, function* () {
203
+ const response = yield this.postRaw({ companyCode: companyCode, futureDefinitionPostRequest: futureDefinitionPostRequest }, initOverrides);
204
+ return yield response.value();
205
+ });
206
+ }
207
+ }
208
+ exports.FuturesApi = FuturesApi;
@@ -0,0 +1,46 @@
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
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.IdentityLinkingApi = void 0;
13
+ const runtime = require("../runtime");
14
+ /**
15
+ *
16
+ */
17
+ class IdentityLinkingApi extends runtime.BaseAPI {
18
+ /**
19
+ */
20
+ linkRaw(requestParameters, initOverrides) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ if (requestParameters['linkIdentitiesRequest'] == null) {
23
+ throw new runtime.RequiredError('linkIdentitiesRequest', 'Required parameter "linkIdentitiesRequest" was null or undefined when calling link().');
24
+ }
25
+ const queryParameters = {};
26
+ const headerParameters = {};
27
+ headerParameters['Content-Type'] = 'application/json';
28
+ if (this.configuration && this.configuration.accessToken) {
29
+ const token = this.configuration.accessToken;
30
+ const tokenString = yield token('bearerToken', ['internal']);
31
+ if (tokenString) {
32
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
33
+ }
34
+ }
35
+ const response = yield this.request({
36
+ path: `/api/v1/identity-linking/link`,
37
+ method: 'POST',
38
+ headers: headerParameters,
39
+ query: queryParameters,
40
+ body: requestParameters['linkIdentitiesRequest'],
41
+ }, initOverrides);
42
+ return new runtime.VoidApiResponse(response);
43
+ });
44
+ }
45
+ /**
46
+ */
47
+ link(linkIdentitiesRequest, initOverrides) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ yield this.linkRaw({ linkIdentitiesRequest: linkIdentitiesRequest }, initOverrides);
50
+ });
51
+ }
52
+ }
53
+ exports.IdentityLinkingApi = IdentityLinkingApi;
@@ -0,0 +1,55 @@
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
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.InputApi = void 0;
13
+ const runtime = require("../runtime");
14
+ /**
15
+ *
16
+ */
17
+ class InputApi extends runtime.BaseAPI {
18
+ /**
19
+ * Batch input for a given year and period
20
+ * Batch input
21
+ */
22
+ postBatchRaw(requestParameters, initOverrides) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ if (requestParameters['companyCode'] == null) {
25
+ throw new runtime.RequiredError('companyCode', 'Required parameter "companyCode" was null or undefined when calling postBatch().');
26
+ }
27
+ if (requestParameters['inputBatchRequest'] == null) {
28
+ throw new runtime.RequiredError('inputBatchRequest', 'Required parameter "inputBatchRequest" was null or undefined when calling postBatch().');
29
+ }
30
+ const queryParameters = {};
31
+ const headerParameters = {};
32
+ headerParameters['Content-Type'] = 'application/json';
33
+ if (this.configuration && this.configuration.accessToken) {
34
+ const token = this.configuration.accessToken;
35
+ const tokenString = yield token('bearerToken', ['input:write']);
36
+ if (tokenString) {
37
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
38
+ }
39
+ }
40
+ const response = yield this.request({
41
+ path: `/api/v1/c/{company_code}/input/batch`.replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode']))),
42
+ method: 'POST',
43
+ headers: headerParameters,
44
+ query: queryParameters,
45
+ body: requestParameters['inputBatchRequest'],
46
+ }, initOverrides);
47
+ return new runtime.JSONApiResponse(response);
48
+ });
49
+ }
50
+ /**
51
+ * Batch input for a given year and period
52
+ * Batch input
53
+ */
54
+ postBatch(companyCode, inputBatchRequest, initOverrides) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const response = yield this.postBatchRaw({ companyCode: companyCode, inputBatchRequest: inputBatchRequest }, initOverrides);
57
+ return yield response.value();
58
+ });
59
+ }
60
+ }
61
+ exports.InputApi = InputApi;