@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.
Files changed (161) hide show
  1. package/package.json +14 -15
  2. package/src/.openapi-generator/FILES +0 -56
  3. package/src/.openapi-generator/VERSION +0 -1
  4. package/src/.openapi-generator-ignore +0 -23
  5. package/src/dist/esm/index.d.ts +0 -1
  6. package/src/dist/esm/index.js +0 -1
  7. package/src/dist/esm/src/apis/AiApi.d.ts +0 -289
  8. package/src/dist/esm/src/apis/AiApi.js +0 -452
  9. package/src/dist/esm/src/apis/AnalyticsApi.d.ts +0 -242
  10. package/src/dist/esm/src/apis/AnalyticsApi.js +0 -391
  11. package/src/dist/esm/src/apis/AsyncOperationsApi.d.ts +0 -48
  12. package/src/dist/esm/src/apis/AsyncOperationsApi.js +0 -53
  13. package/src/dist/esm/src/apis/BusinessModelModulesApi.d.ts +0 -182
  14. package/src/dist/esm/src/apis/BusinessModelModulesApi.js +0 -285
  15. package/src/dist/esm/src/apis/ColorPalettesApi.d.ts +0 -62
  16. package/src/dist/esm/src/apis/ColorPalettesApi.js +0 -78
  17. package/src/dist/esm/src/apis/CommentsApi.d.ts +0 -94
  18. package/src/dist/esm/src/apis/CommentsApi.js +0 -134
  19. package/src/dist/esm/src/apis/CompaniesApi.d.ts +0 -88
  20. package/src/dist/esm/src/apis/CompaniesApi.js +0 -118
  21. package/src/dist/esm/src/apis/CompanyManagementApi.d.ts +0 -90
  22. package/src/dist/esm/src/apis/CompanyManagementApi.js +0 -123
  23. package/src/dist/esm/src/apis/ConnectionParametersApi.d.ts +0 -98
  24. package/src/dist/esm/src/apis/ConnectionParametersApi.js +0 -151
  25. package/src/dist/esm/src/apis/ConnectionTypesApi.d.ts +0 -90
  26. package/src/dist/esm/src/apis/ConnectionTypesApi.js +0 -124
  27. package/src/dist/esm/src/apis/ConnectionsApi.d.ts +0 -156
  28. package/src/dist/esm/src/apis/ConnectionsApi.js +0 -236
  29. package/src/dist/esm/src/apis/ConnectionsAuthorizationApi.d.ts +0 -74
  30. package/src/dist/esm/src/apis/ConnectionsAuthorizationApi.js +0 -108
  31. package/src/dist/esm/src/apis/ConnectionsClientCredentialsApi.d.ts +0 -72
  32. package/src/dist/esm/src/apis/ConnectionsClientCredentialsApi.js +0 -100
  33. package/src/dist/esm/src/apis/ConsolidationApi.d.ts +0 -192
  34. package/src/dist/esm/src/apis/ConsolidationApi.js +0 -297
  35. package/src/dist/esm/src/apis/CostCenterApi.d.ts +0 -130
  36. package/src/dist/esm/src/apis/CostCenterApi.js +0 -188
  37. package/src/dist/esm/src/apis/DashboardsApi.d.ts +0 -306
  38. package/src/dist/esm/src/apis/DashboardsApi.js +0 -515
  39. package/src/dist/esm/src/apis/DataSynchronizationApi.d.ts +0 -92
  40. package/src/dist/esm/src/apis/DataSynchronizationApi.js +0 -127
  41. package/src/dist/esm/src/apis/ExplanationApi.d.ts +0 -110
  42. package/src/dist/esm/src/apis/ExplanationApi.js +0 -227
  43. package/src/dist/esm/src/apis/FormatsApi.d.ts +0 -46
  44. package/src/dist/esm/src/apis/FormatsApi.js +0 -48
  45. package/src/dist/esm/src/apis/FormulasApi.d.ts +0 -62
  46. package/src/dist/esm/src/apis/FormulasApi.js +0 -81
  47. package/src/dist/esm/src/apis/FuturesApi.d.ts +0 -136
  48. package/src/dist/esm/src/apis/FuturesApi.js +0 -204
  49. package/src/dist/esm/src/apis/IdentityLinkingApi.d.ts +0 -46
  50. package/src/dist/esm/src/apis/IdentityLinkingApi.js +0 -49
  51. package/src/dist/esm/src/apis/InputApi.d.ts +0 -55
  52. package/src/dist/esm/src/apis/InputApi.js +0 -57
  53. package/src/dist/esm/src/apis/IntercompanyMatchingApi.d.ts +0 -174
  54. package/src/dist/esm/src/apis/IntercompanyMatchingApi.js +0 -260
  55. package/src/dist/esm/src/apis/InvitationsApi.d.ts +0 -156
  56. package/src/dist/esm/src/apis/InvitationsApi.js +0 -235
  57. package/src/dist/esm/src/apis/MaintenanceApi.d.ts +0 -182
  58. package/src/dist/esm/src/apis/MaintenanceApi.js +0 -278
  59. package/src/dist/esm/src/apis/ManualInputApi.d.ts +0 -204
  60. package/src/dist/esm/src/apis/ManualInputApi.js +0 -328
  61. package/src/dist/esm/src/apis/ModulesApi.d.ts +0 -88
  62. package/src/dist/esm/src/apis/ModulesApi.js +0 -112
  63. package/src/dist/esm/src/apis/NodePurposesApi.d.ts +0 -68
  64. package/src/dist/esm/src/apis/NodePurposesApi.js +0 -86
  65. package/src/dist/esm/src/apis/ProfileApi.d.ts +0 -85
  66. package/src/dist/esm/src/apis/ProfileApi.js +0 -114
  67. package/src/dist/esm/src/apis/RelationsApi.d.ts +0 -46
  68. package/src/dist/esm/src/apis/RelationsApi.js +0 -48
  69. package/src/dist/esm/src/apis/ReportGroupsApi.d.ts +0 -72
  70. package/src/dist/esm/src/apis/ReportGroupsApi.js +0 -92
  71. package/src/dist/esm/src/apis/ReportingApi.d.ts +0 -267
  72. package/src/dist/esm/src/apis/ReportingApi.js +0 -379
  73. package/src/dist/esm/src/apis/ReportingPeriodsApi.d.ts +0 -46
  74. package/src/dist/esm/src/apis/ReportingPeriodsApi.js +0 -48
  75. package/src/dist/esm/src/apis/SourceAccountsApi.d.ts +0 -46
  76. package/src/dist/esm/src/apis/SourceAccountsApi.js +0 -48
  77. package/src/dist/esm/src/apis/StructureApi.d.ts +0 -134
  78. package/src/dist/esm/src/apis/StructureApi.js +0 -163
  79. package/src/dist/esm/src/apis/StructureDefinitionApi.d.ts +0 -164
  80. package/src/dist/esm/src/apis/StructureDefinitionApi.js +0 -259
  81. package/src/dist/esm/src/apis/StructureImprovementApi.d.ts +0 -70
  82. package/src/dist/esm/src/apis/StructureImprovementApi.js +0 -91
  83. package/src/dist/esm/src/apis/TemplatesApi.d.ts +0 -120
  84. package/src/dist/esm/src/apis/TemplatesApi.js +0 -178
  85. package/src/dist/esm/src/apis/TemplatesGenerationApi.d.ts +0 -66
  86. package/src/dist/esm/src/apis/TemplatesGenerationApi.js +0 -85
  87. package/src/dist/esm/src/apis/TenantIntercompanySettingsApi.d.ts +0 -90
  88. package/src/dist/esm/src/apis/TenantIntercompanySettingsApi.js +0 -123
  89. package/src/dist/esm/src/apis/TenantsApi.d.ts +0 -124
  90. package/src/dist/esm/src/apis/TenantsApi.js +0 -180
  91. package/src/dist/esm/src/apis/TransactionDetailsApi.d.ts +0 -50
  92. package/src/dist/esm/src/apis/TransactionDetailsApi.js +0 -57
  93. package/src/dist/esm/src/apis/UsersApi.d.ts +0 -114
  94. package/src/dist/esm/src/apis/UsersApi.js +0 -165
  95. package/src/dist/esm/src/apis/WebhooksApi.d.ts +0 -68
  96. package/src/dist/esm/src/apis/WebhooksApi.js +0 -86
  97. package/src/dist/esm/src/apis/WizardApi.d.ts +0 -74
  98. package/src/dist/esm/src/apis/WizardApi.js +0 -101
  99. package/src/dist/esm/src/apis/index.d.ts +0 -46
  100. package/src/dist/esm/src/apis/index.js +0 -48
  101. package/src/dist/esm/src/index.d.ts +0 -3
  102. package/src/dist/esm/src/index.js +0 -5
  103. package/src/dist/esm/src/models/index.d.ts +0 -15406
  104. package/src/dist/esm/src/models/index.js +0 -1279
  105. package/src/dist/esm/src/runtime.d.ts +0 -181
  106. package/src/dist/esm/src/runtime.js +0 -326
  107. package/src/index.ts +0 -1
  108. package/src/package.json +0 -24
  109. package/src/src/apis/AiApi.ts +0 -1043
  110. package/src/src/apis/AnalyticsApi.ts +0 -925
  111. package/src/src/apis/AsyncOperationsApi.ts +0 -112
  112. package/src/src/apis/BusinessModelModulesApi.ts +0 -649
  113. package/src/src/apis/ColorPalettesApi.ts +0 -148
  114. package/src/src/apis/CommentsApi.ts +0 -308
  115. package/src/src/apis/CompaniesApi.ts +0 -260
  116. package/src/src/apis/CompanyManagementApi.ts +0 -270
  117. package/src/src/apis/ConnectionParametersApi.ts +0 -339
  118. package/src/src/apis/ConnectionTypesApi.ts +0 -280
  119. package/src/src/apis/ConnectionsApi.ts +0 -533
  120. package/src/src/apis/ConnectionsAuthorizationApi.ts +0 -241
  121. package/src/src/apis/ConnectionsClientCredentialsApi.ts +0 -224
  122. package/src/src/apis/ConsolidationApi.ts +0 -682
  123. package/src/src/apis/CostCenterApi.ts +0 -428
  124. package/src/src/apis/DashboardsApi.ts +0 -1179
  125. package/src/src/apis/DataSynchronizationApi.ts +0 -288
  126. package/src/src/apis/ExplanationApi.ts +0 -504
  127. package/src/src/apis/FormatsApi.ts +0 -96
  128. package/src/src/apis/FormulasApi.ts +0 -154
  129. package/src/src/apis/FuturesApi.ts +0 -463
  130. package/src/src/apis/IdentityLinkingApi.ts +0 -101
  131. package/src/src/apis/InputApi.ts +0 -126
  132. package/src/src/apis/IntercompanyMatchingApi.ts +0 -588
  133. package/src/src/apis/InvitationsApi.ts +0 -523
  134. package/src/src/apis/MaintenanceApi.ts +0 -597
  135. package/src/src/apis/ManualInputApi.ts +0 -771
  136. package/src/src/apis/ModulesApi.ts +0 -246
  137. package/src/src/apis/NodePurposesApi.ts +0 -184
  138. package/src/src/apis/ProfileApi.ts +0 -203
  139. package/src/src/apis/RelationsApi.ts +0 -99
  140. package/src/src/apis/ReportGroupsApi.ts +0 -205
  141. package/src/src/apis/ReportingApi.ts +0 -851
  142. package/src/src/apis/ReportingPeriodsApi.ts +0 -99
  143. package/src/src/apis/SourceAccountsApi.ts +0 -102
  144. package/src/src/apis/StructureApi.ts +0 -334
  145. package/src/src/apis/StructureDefinitionApi.ts +0 -601
  146. package/src/src/apis/StructureImprovementApi.ts +0 -214
  147. package/src/src/apis/TemplatesApi.ts +0 -334
  148. package/src/src/apis/TemplatesGenerationApi.ts +0 -187
  149. package/src/src/apis/TenantIntercompanySettingsApi.ts +0 -286
  150. package/src/src/apis/TenantsApi.ts +0 -374
  151. package/src/src/apis/TransactionDetailsApi.ts +0 -127
  152. package/src/src/apis/UsersApi.ts +0 -356
  153. package/src/src/apis/WebhooksApi.ts +0 -193
  154. package/src/src/apis/WizardApi.ts +0 -230
  155. package/src/src/apis/index.ts +0 -48
  156. package/src/src/index.ts +0 -5
  157. package/src/src/models/index.ts +0 -15625
  158. package/src/src/runtime.ts +0 -469
  159. package/src/tsconfig.esm.json +0 -7
  160. package/src/tsconfig.json +0 -11
  161. package/tsconfig.json +0 -11
@@ -1,180 +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 TenantsApi extends runtime.BaseAPI {
15
- /**
16
- */
17
- deleteRaw(requestParameters, initOverrides) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- if (requestParameters['tenantCode'] == null) {
20
- throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling delete().');
21
- }
22
- const queryParameters = {};
23
- const headerParameters = {};
24
- if (this.configuration && this.configuration.accessToken) {
25
- const token = this.configuration.accessToken;
26
- const tokenString = yield token('bearerToken', ['internal']);
27
- if (tokenString) {
28
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
29
- }
30
- }
31
- const response = yield this.request({
32
- path: `/api/v1/tenants/{tenant_code}`.replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode']))),
33
- method: 'DELETE',
34
- headers: headerParameters,
35
- query: queryParameters,
36
- }, initOverrides);
37
- return new runtime.VoidApiResponse(response);
38
- });
39
- }
40
- /**
41
- */
42
- delete(tenantCode, initOverrides) {
43
- return __awaiter(this, void 0, void 0, function* () {
44
- yield this.deleteRaw({ tenantCode: tenantCode }, initOverrides);
45
- });
46
- }
47
- /**
48
- */
49
- getRaw(initOverrides) {
50
- return __awaiter(this, void 0, void 0, function* () {
51
- const queryParameters = {};
52
- const headerParameters = {};
53
- if (this.configuration && this.configuration.accessToken) {
54
- const token = this.configuration.accessToken;
55
- const tokenString = yield token('bearerToken', ['internal']);
56
- if (tokenString) {
57
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
58
- }
59
- }
60
- const response = yield this.request({
61
- path: `/api/v1/tenants`,
62
- method: 'GET',
63
- headers: headerParameters,
64
- query: queryParameters,
65
- }, initOverrides);
66
- return new runtime.JSONApiResponse(response);
67
- });
68
- }
69
- /**
70
- */
71
- get(initOverrides) {
72
- return __awaiter(this, void 0, void 0, function* () {
73
- const response = yield this.getRaw(initOverrides);
74
- return yield response.value();
75
- });
76
- }
77
- /**
78
- */
79
- getItemRaw(requestParameters, initOverrides) {
80
- return __awaiter(this, void 0, void 0, function* () {
81
- if (requestParameters['tenantCode'] == null) {
82
- throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling getItem().');
83
- }
84
- const queryParameters = {};
85
- const headerParameters = {};
86
- if (this.configuration && this.configuration.accessToken) {
87
- const token = this.configuration.accessToken;
88
- const tokenString = yield token('bearerToken', ['internal']);
89
- if (tokenString) {
90
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
91
- }
92
- }
93
- const response = yield this.request({
94
- path: `/api/v1/tenants/{tenant_code}`.replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode']))),
95
- method: 'GET',
96
- headers: headerParameters,
97
- query: queryParameters,
98
- }, initOverrides);
99
- return new runtime.JSONApiResponse(response);
100
- });
101
- }
102
- /**
103
- */
104
- getItem(tenantCode, initOverrides) {
105
- return __awaiter(this, void 0, void 0, function* () {
106
- const response = yield this.getItemRaw({ tenantCode: tenantCode }, initOverrides);
107
- return yield response.value();
108
- });
109
- }
110
- /**
111
- */
112
- getSettingsRaw(requestParameters, initOverrides) {
113
- return __awaiter(this, void 0, void 0, function* () {
114
- if (requestParameters['tenantCode'] == null) {
115
- throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling getSettings().');
116
- }
117
- const queryParameters = {};
118
- const headerParameters = {};
119
- if (this.configuration && this.configuration.accessToken) {
120
- const token = this.configuration.accessToken;
121
- const tokenString = yield token('bearerToken', ['internal']);
122
- if (tokenString) {
123
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
124
- }
125
- }
126
- const response = yield this.request({
127
- path: `/api/v1/tenants/{tenant_code}/settings`.replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode']))),
128
- method: 'GET',
129
- headers: headerParameters,
130
- query: queryParameters,
131
- }, initOverrides);
132
- return new runtime.JSONApiResponse(response);
133
- });
134
- }
135
- /**
136
- */
137
- getSettings(tenantCode, initOverrides) {
138
- return __awaiter(this, void 0, void 0, function* () {
139
- const response = yield this.getSettingsRaw({ tenantCode: tenantCode }, initOverrides);
140
- return yield response.value();
141
- });
142
- }
143
- /**
144
- */
145
- patchSettingsRaw(requestParameters, initOverrides) {
146
- return __awaiter(this, void 0, void 0, function* () {
147
- if (requestParameters['tenantCode'] == null) {
148
- throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling patchSettings().');
149
- }
150
- if (requestParameters['tenantSettingsPatchRequest'] == null) {
151
- throw new runtime.RequiredError('tenantSettingsPatchRequest', 'Required parameter "tenantSettingsPatchRequest" was null or undefined when calling patchSettings().');
152
- }
153
- const queryParameters = {};
154
- const headerParameters = {};
155
- headerParameters['Content-Type'] = 'application/json';
156
- if (this.configuration && this.configuration.accessToken) {
157
- const token = this.configuration.accessToken;
158
- const tokenString = yield token('bearerToken', ['internal']);
159
- if (tokenString) {
160
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
161
- }
162
- }
163
- const response = yield this.request({
164
- path: `/api/v1/tenants/{tenant_code}/settings`.replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode']))),
165
- method: 'PATCH',
166
- headers: headerParameters,
167
- query: queryParameters,
168
- body: requestParameters['tenantSettingsPatchRequest'],
169
- }, initOverrides);
170
- return new runtime.VoidApiResponse(response);
171
- });
172
- }
173
- /**
174
- */
175
- patchSettings(tenantCode, tenantSettingsPatchRequest, initOverrides) {
176
- return __awaiter(this, void 0, void 0, function* () {
177
- yield this.patchSettingsRaw({ tenantCode: tenantCode, tenantSettingsPatchRequest: tenantSettingsPatchRequest }, initOverrides);
178
- });
179
- }
180
- }
@@ -1,50 +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 { GetTransactionInformationResponse } from '../models/index';
13
- import * as runtime from '../runtime';
14
- export interface TransactionDetailsApiGetItemRequest {
15
- companyCode: string;
16
- connectionId: string;
17
- transactionId: string;
18
- }
19
- /**
20
- * TransactionDetailsApi - interface
21
- *
22
- * @export
23
- * @interface TransactionDetailsApiInterface
24
- */
25
- export interface TransactionDetailsApiInterface {
26
- /**
27
- *
28
- * @param {string} companyCode
29
- * @param {string} connectionId
30
- * @param {string} transactionId
31
- * @param {*} [options] Override http request option.
32
- * @throws {RequiredError}
33
- * @memberof TransactionDetailsApiInterface
34
- */
35
- getItemRaw(requestParameters: TransactionDetailsApiGetItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetTransactionInformationResponse>>;
36
- /**
37
- */
38
- getItem(companyCode: string, connectionId: string, transactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetTransactionInformationResponse>;
39
- }
40
- /**
41
- *
42
- */
43
- export declare class TransactionDetailsApi extends runtime.BaseAPI implements TransactionDetailsApiInterface {
44
- /**
45
- */
46
- getItemRaw(requestParameters: TransactionDetailsApiGetItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetTransactionInformationResponse>>;
47
- /**
48
- */
49
- getItem(companyCode: string, connectionId: string, transactionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetTransactionInformationResponse>;
50
- }
@@ -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 TransactionDetailsApi extends runtime.BaseAPI {
15
- /**
16
- */
17
- getItemRaw(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 getItem().');
21
- }
22
- if (requestParameters['connectionId'] == null) {
23
- throw new runtime.RequiredError('connectionId', 'Required parameter "connectionId" was null or undefined when calling getItem().');
24
- }
25
- if (requestParameters['transactionId'] == null) {
26
- throw new runtime.RequiredError('transactionId', 'Required parameter "transactionId" was null or undefined when calling getItem().');
27
- }
28
- const queryParameters = {};
29
- const headerParameters = {};
30
- if (this.configuration && this.configuration.accessToken) {
31
- const token = this.configuration.accessToken;
32
- const tokenString = yield token('bearerToken', ['internal']);
33
- if (tokenString) {
34
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
35
- }
36
- }
37
- const response = yield this.request({
38
- path: `/api/v1/c/{company_code}/connections/{connection_id}/transactions/{transaction_id}`
39
- .replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
40
- .replace(`{${'connection_id'}}`, encodeURIComponent(String(requestParameters['connectionId'])))
41
- .replace(`{${'transaction_id'}}`, encodeURIComponent(String(requestParameters['transactionId']))),
42
- method: 'GET',
43
- headers: headerParameters,
44
- query: queryParameters,
45
- }, initOverrides);
46
- return new runtime.JSONApiResponse(response);
47
- });
48
- }
49
- /**
50
- */
51
- getItem(companyCode, connectionId, transactionId, initOverrides) {
52
- return __awaiter(this, void 0, void 0, function* () {
53
- const response = yield this.getItemRaw({ companyCode: companyCode, connectionId: connectionId, transactionId: transactionId }, initOverrides);
54
- return yield response.value();
55
- });
56
- }
57
- }
@@ -1,114 +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 { Authorization, UserGetResponse, UserGetResponseItem } from '../models/index';
13
- import * as runtime from '../runtime';
14
- export interface UsersApiDeleteRequest {
15
- tenantCode: string;
16
- userId: string;
17
- }
18
- export interface UsersApiGetRequest {
19
- tenantCode: string;
20
- }
21
- export interface UsersApiGetItemRequest {
22
- tenantCode: string;
23
- userId: string;
24
- }
25
- export interface UsersApiPutRequest {
26
- tenantCode: string;
27
- userId: string;
28
- authorization: Authorization;
29
- }
30
- /**
31
- * UsersApi - interface
32
- *
33
- * @export
34
- * @interface UsersApiInterface
35
- */
36
- export interface UsersApiInterface {
37
- /**
38
- *
39
- * @param {string} tenantCode
40
- * @param {string} userId
41
- * @param {*} [options] Override http request option.
42
- * @throws {RequiredError}
43
- * @memberof UsersApiInterface
44
- */
45
- deleteRaw(requestParameters: UsersApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
46
- /**
47
- */
48
- delete(tenantCode: string, userId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
49
- /**
50
- *
51
- * @param {string} tenantCode
52
- * @param {*} [options] Override http request option.
53
- * @throws {RequiredError}
54
- * @memberof UsersApiInterface
55
- */
56
- getRaw(requestParameters: UsersApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserGetResponse>>;
57
- /**
58
- */
59
- get(tenantCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserGetResponse>;
60
- /**
61
- *
62
- * @param {string} tenantCode
63
- * @param {string} userId
64
- * @param {*} [options] Override http request option.
65
- * @throws {RequiredError}
66
- * @memberof UsersApiInterface
67
- */
68
- getItemRaw(requestParameters: UsersApiGetItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserGetResponseItem>>;
69
- /**
70
- */
71
- getItem(tenantCode: string, userId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserGetResponseItem>;
72
- /**
73
- *
74
- * @param {string} tenantCode
75
- * @param {string} userId
76
- * @param {Authorization} authorization
77
- * @param {*} [options] Override http request option.
78
- * @throws {RequiredError}
79
- * @memberof UsersApiInterface
80
- */
81
- putRaw(requestParameters: UsersApiPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
82
- /**
83
- */
84
- put(tenantCode: string, userId: string, authorization: Authorization, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
85
- }
86
- /**
87
- *
88
- */
89
- export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterface {
90
- /**
91
- */
92
- deleteRaw(requestParameters: UsersApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
93
- /**
94
- */
95
- delete(tenantCode: string, userId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
96
- /**
97
- */
98
- getRaw(requestParameters: UsersApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserGetResponse>>;
99
- /**
100
- */
101
- get(tenantCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserGetResponse>;
102
- /**
103
- */
104
- getItemRaw(requestParameters: UsersApiGetItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserGetResponseItem>>;
105
- /**
106
- */
107
- getItem(tenantCode: string, userId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserGetResponseItem>;
108
- /**
109
- */
110
- putRaw(requestParameters: UsersApiPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
111
- /**
112
- */
113
- put(tenantCode: string, userId: string, authorization: Authorization, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
114
- }
@@ -1,165 +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 UsersApi extends runtime.BaseAPI {
15
- /**
16
- */
17
- deleteRaw(requestParameters, initOverrides) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- if (requestParameters['tenantCode'] == null) {
20
- throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling delete().');
21
- }
22
- if (requestParameters['userId'] == null) {
23
- throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling delete().');
24
- }
25
- const queryParameters = {};
26
- const headerParameters = {};
27
- if (this.configuration && this.configuration.accessToken) {
28
- const token = this.configuration.accessToken;
29
- const tokenString = yield token('bearerToken', ['internal']);
30
- if (tokenString) {
31
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
32
- }
33
- }
34
- const response = yield this.request({
35
- path: `/api/v1/t/{tenant_code}/users/{user_id}`
36
- .replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode'])))
37
- .replace(`{${'user_id'}}`, encodeURIComponent(String(requestParameters['userId']))),
38
- method: 'DELETE',
39
- headers: headerParameters,
40
- query: queryParameters,
41
- }, initOverrides);
42
- return new runtime.VoidApiResponse(response);
43
- });
44
- }
45
- /**
46
- */
47
- delete(tenantCode, userId, initOverrides) {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- yield this.deleteRaw({ tenantCode: tenantCode, userId: userId }, initOverrides);
50
- });
51
- }
52
- /**
53
- */
54
- getRaw(requestParameters, initOverrides) {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- if (requestParameters['tenantCode'] == null) {
57
- throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling get().');
58
- }
59
- const queryParameters = {};
60
- const headerParameters = {};
61
- if (this.configuration && this.configuration.accessToken) {
62
- const token = this.configuration.accessToken;
63
- const tokenString = yield token('bearerToken', ['internal']);
64
- if (tokenString) {
65
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
66
- }
67
- }
68
- const response = yield this.request({
69
- path: `/api/v1/t/{tenant_code}/users`.replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode']))),
70
- method: 'GET',
71
- headers: headerParameters,
72
- query: queryParameters,
73
- }, initOverrides);
74
- return new runtime.JSONApiResponse(response);
75
- });
76
- }
77
- /**
78
- */
79
- get(tenantCode, initOverrides) {
80
- return __awaiter(this, void 0, void 0, function* () {
81
- const response = yield this.getRaw({ tenantCode: tenantCode }, initOverrides);
82
- return yield response.value();
83
- });
84
- }
85
- /**
86
- */
87
- getItemRaw(requestParameters, initOverrides) {
88
- return __awaiter(this, void 0, void 0, function* () {
89
- if (requestParameters['tenantCode'] == null) {
90
- throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling getItem().');
91
- }
92
- if (requestParameters['userId'] == null) {
93
- throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getItem().');
94
- }
95
- const queryParameters = {};
96
- const headerParameters = {};
97
- if (this.configuration && this.configuration.accessToken) {
98
- const token = this.configuration.accessToken;
99
- const tokenString = yield token('bearerToken', ['internal']);
100
- if (tokenString) {
101
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
102
- }
103
- }
104
- const response = yield this.request({
105
- path: `/api/v1/t/{tenant_code}/users/{user_id}`
106
- .replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode'])))
107
- .replace(`{${'user_id'}}`, encodeURIComponent(String(requestParameters['userId']))),
108
- method: 'GET',
109
- headers: headerParameters,
110
- query: queryParameters,
111
- }, initOverrides);
112
- return new runtime.JSONApiResponse(response);
113
- });
114
- }
115
- /**
116
- */
117
- getItem(tenantCode, userId, initOverrides) {
118
- return __awaiter(this, void 0, void 0, function* () {
119
- const response = yield this.getItemRaw({ tenantCode: tenantCode, userId: userId }, initOverrides);
120
- return yield response.value();
121
- });
122
- }
123
- /**
124
- */
125
- putRaw(requestParameters, initOverrides) {
126
- return __awaiter(this, void 0, void 0, function* () {
127
- if (requestParameters['tenantCode'] == null) {
128
- throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling put().');
129
- }
130
- if (requestParameters['userId'] == null) {
131
- throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling put().');
132
- }
133
- if (requestParameters['authorization'] == null) {
134
- throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling put().');
135
- }
136
- const queryParameters = {};
137
- const headerParameters = {};
138
- headerParameters['Content-Type'] = 'application/json';
139
- if (this.configuration && this.configuration.accessToken) {
140
- const token = this.configuration.accessToken;
141
- const tokenString = yield token('bearerToken', ['internal']);
142
- if (tokenString) {
143
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
144
- }
145
- }
146
- const response = yield this.request({
147
- path: `/api/v1/t/{tenant_code}/users/{user_id}/authorization`
148
- .replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode'])))
149
- .replace(`{${'user_id'}}`, encodeURIComponent(String(requestParameters['userId']))),
150
- method: 'PUT',
151
- headers: headerParameters,
152
- query: queryParameters,
153
- body: requestParameters['authorization'],
154
- }, initOverrides);
155
- return new runtime.VoidApiResponse(response);
156
- });
157
- }
158
- /**
159
- */
160
- put(tenantCode, userId, authorization, initOverrides) {
161
- return __awaiter(this, void 0, void 0, function* () {
162
- yield this.putRaw({ tenantCode: tenantCode, userId: userId, authorization: authorization }, initOverrides);
163
- });
164
- }
165
- }
@@ -1,68 +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 { WebhooksSettingsPostRequest, WebhooksSettingsResponse } from '../models/index';
13
- import * as runtime from '../runtime';
14
- export interface WebhooksApiGetWebhooksVersionRequest {
15
- companyCode: string;
16
- }
17
- export interface WebhooksApiPostWebhooksVersionRequest {
18
- companyCode: string;
19
- webhooksSettingsPostRequest: WebhooksSettingsPostRequest;
20
- }
21
- /**
22
- * WebhooksApi - interface
23
- *
24
- * @export
25
- * @interface WebhooksApiInterface
26
- */
27
- export interface WebhooksApiInterface {
28
- /**
29
- *
30
- * @param {string} companyCode
31
- * @param {*} [options] Override http request option.
32
- * @throws {RequiredError}
33
- * @memberof WebhooksApiInterface
34
- */
35
- getWebhooksVersionRaw(requestParameters: WebhooksApiGetWebhooksVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhooksSettingsResponse>>;
36
- /**
37
- */
38
- getWebhooksVersion(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhooksSettingsResponse>;
39
- /**
40
- *
41
- * @param {string} companyCode
42
- * @param {WebhooksSettingsPostRequest} webhooksSettingsPostRequest
43
- * @param {*} [options] Override http request option.
44
- * @throws {RequiredError}
45
- * @memberof WebhooksApiInterface
46
- */
47
- postWebhooksVersionRaw(requestParameters: WebhooksApiPostWebhooksVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhooksSettingsResponse>>;
48
- /**
49
- */
50
- postWebhooksVersion(companyCode: string, webhooksSettingsPostRequest: WebhooksSettingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhooksSettingsResponse>;
51
- }
52
- /**
53
- *
54
- */
55
- export declare class WebhooksApi extends runtime.BaseAPI implements WebhooksApiInterface {
56
- /**
57
- */
58
- getWebhooksVersionRaw(requestParameters: WebhooksApiGetWebhooksVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhooksSettingsResponse>>;
59
- /**
60
- */
61
- getWebhooksVersion(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhooksSettingsResponse>;
62
- /**
63
- */
64
- postWebhooksVersionRaw(requestParameters: WebhooksApiPostWebhooksVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhooksSettingsResponse>>;
65
- /**
66
- */
67
- postWebhooksVersion(companyCode: string, webhooksSettingsPostRequest: WebhooksSettingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhooksSettingsResponse>;
68
- }