@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,126 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Smartbooks Restful API
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: 0.0.1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import type { AsynchronousOperation, InputBatchRequest } from '../models/index';
15
- import * as runtime from '../runtime';
16
-
17
- export interface InputApiPostBatchRequest {
18
- companyCode: string;
19
- inputBatchRequest: InputBatchRequest;
20
- }
21
-
22
- /**
23
- * InputApi - interface
24
- *
25
- * @export
26
- * @interface InputApiInterface
27
- */
28
- export interface InputApiInterface {
29
- /**
30
- * Batch input for a given year and period
31
- * @summary Batch input
32
- * @param {string} companyCode
33
- * @param {InputBatchRequest} inputBatchRequest
34
- * @param {*} [options] Override http request option.
35
- * @throws {RequiredError}
36
- * @memberof InputApiInterface
37
- */
38
- postBatchRaw(
39
- requestParameters: InputApiPostBatchRequest,
40
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
41
- ): Promise<runtime.ApiResponse<AsynchronousOperation>>;
42
-
43
- /**
44
- * Batch input for a given year and period
45
- * Batch input
46
- */
47
- postBatch(
48
- companyCode: string,
49
- inputBatchRequest: InputBatchRequest,
50
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
51
- ): Promise<AsynchronousOperation>;
52
- }
53
-
54
- /**
55
- *
56
- */
57
- export class InputApi extends runtime.BaseAPI implements InputApiInterface {
58
- /**
59
- * Batch input for a given year and period
60
- * Batch input
61
- */
62
- async postBatchRaw(
63
- requestParameters: InputApiPostBatchRequest,
64
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
65
- ): Promise<runtime.ApiResponse<AsynchronousOperation>> {
66
- if (requestParameters['companyCode'] == null) {
67
- throw new runtime.RequiredError(
68
- 'companyCode',
69
- 'Required parameter "companyCode" was null or undefined when calling postBatch().',
70
- );
71
- }
72
-
73
- if (requestParameters['inputBatchRequest'] == null) {
74
- throw new runtime.RequiredError(
75
- 'inputBatchRequest',
76
- 'Required parameter "inputBatchRequest" was null or undefined when calling postBatch().',
77
- );
78
- }
79
-
80
- const queryParameters: any = {};
81
-
82
- const headerParameters: runtime.HTTPHeaders = {};
83
-
84
- headerParameters['Content-Type'] = 'application/json';
85
-
86
- if (this.configuration && this.configuration.accessToken) {
87
- const token = this.configuration.accessToken;
88
- const tokenString = await token('bearerToken', ['input:write']);
89
-
90
- if (tokenString) {
91
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
92
- }
93
- }
94
- const response = await this.request(
95
- {
96
- path: `/api/v1/c/{company_code}/input/batch`.replace(
97
- `{${'company_code'}}`,
98
- encodeURIComponent(String(requestParameters['companyCode'])),
99
- ),
100
- method: 'POST',
101
- headers: headerParameters,
102
- query: queryParameters,
103
- body: requestParameters['inputBatchRequest'],
104
- },
105
- initOverrides,
106
- );
107
-
108
- return new runtime.JSONApiResponse(response);
109
- }
110
-
111
- /**
112
- * Batch input for a given year and period
113
- * Batch input
114
- */
115
- async postBatch(
116
- companyCode: string,
117
- inputBatchRequest: InputBatchRequest,
118
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
119
- ): Promise<AsynchronousOperation> {
120
- const response = await this.postBatchRaw(
121
- { companyCode: companyCode, inputBatchRequest: inputBatchRequest },
122
- initOverrides,
123
- );
124
- return await response.value();
125
- }
126
- }
@@ -1,588 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Smartbooks Restful API
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: 0.0.1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import type {
15
- IcMatchingSynchronization,
16
- IcMatchingSynchronizationCreate,
17
- IcMatchingSynchronizations,
18
- IcMatchingTransactionsWithNextPageToken,
19
- Match,
20
- } from '../models/index';
21
- import * as runtime from '../runtime';
22
-
23
- export interface IntercompanyMatchingApiGetRequest {
24
- companyCode: string;
25
- limit?: number | null;
26
- }
27
-
28
- export interface IntercompanyMatchingApiGetItemRequest {
29
- companyCode: string;
30
- synchronizationId: string;
31
- }
32
-
33
- export interface IntercompanyMatchingApiPostRequest {
34
- companyCode: string;
35
- icMatchingSynchronizationCreate: IcMatchingSynchronizationCreate;
36
- }
37
-
38
- export interface IntercompanyMatchingApiRetrieveMatchRequest {
39
- companyCode: string;
40
- matchId: string;
41
- }
42
-
43
- export interface IntercompanyMatchingApiRetrieveTransactionsRequest {
44
- companyCode: string;
45
- period?: number | null;
46
- year?: number | null;
47
- transactionDateFrom?: string | null;
48
- transactionDateTo?: string | null;
49
- amountFrom?: string | null;
50
- amountTo?: string | null;
51
- accountId?: string | null;
52
- hasMatch?: boolean | null;
53
- view?: string | null;
54
- limit?: number | null;
55
- pageToken?: string | null;
56
- participantCompanyCode?: string | null;
57
- segment?: string | null;
58
- }
59
-
60
- /**
61
- * IntercompanyMatchingApi - interface
62
- *
63
- * @export
64
- * @interface IntercompanyMatchingApiInterface
65
- */
66
- export interface IntercompanyMatchingApiInterface {
67
- /**
68
- *
69
- * @param {string} companyCode
70
- * @param {number} [limit]
71
- * @param {*} [options] Override http request option.
72
- * @throws {RequiredError}
73
- * @memberof IntercompanyMatchingApiInterface
74
- */
75
- getRaw(
76
- requestParameters: IntercompanyMatchingApiGetRequest,
77
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
78
- ): Promise<runtime.ApiResponse<IcMatchingSynchronizations>>;
79
-
80
- /**
81
- */
82
- get(
83
- companyCode: string,
84
- limit?: number | null,
85
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
86
- ): Promise<IcMatchingSynchronizations>;
87
-
88
- /**
89
- *
90
- * @param {string} companyCode
91
- * @param {string} synchronizationId
92
- * @param {*} [options] Override http request option.
93
- * @throws {RequiredError}
94
- * @memberof IntercompanyMatchingApiInterface
95
- */
96
- getItemRaw(
97
- requestParameters: IntercompanyMatchingApiGetItemRequest,
98
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
99
- ): Promise<runtime.ApiResponse<IcMatchingSynchronization>>;
100
-
101
- /**
102
- */
103
- getItem(
104
- companyCode: string,
105
- synchronizationId: string,
106
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
107
- ): Promise<IcMatchingSynchronization>;
108
-
109
- /**
110
- *
111
- * @param {string} companyCode
112
- * @param {IcMatchingSynchronizationCreate} icMatchingSynchronizationCreate
113
- * @param {*} [options] Override http request option.
114
- * @throws {RequiredError}
115
- * @memberof IntercompanyMatchingApiInterface
116
- */
117
- postRaw(
118
- requestParameters: IntercompanyMatchingApiPostRequest,
119
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
120
- ): Promise<runtime.ApiResponse<IcMatchingSynchronization>>;
121
-
122
- /**
123
- */
124
- post(
125
- companyCode: string,
126
- icMatchingSynchronizationCreate: IcMatchingSynchronizationCreate,
127
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
128
- ): Promise<IcMatchingSynchronization>;
129
-
130
- /**
131
- * Retrieve a match by ID
132
- * @summary Retrieve a match by ID
133
- * @param {string} companyCode
134
- * @param {string} matchId
135
- * @param {*} [options] Override http request option.
136
- * @throws {RequiredError}
137
- * @memberof IntercompanyMatchingApiInterface
138
- */
139
- retrieveMatchRaw(
140
- requestParameters: IntercompanyMatchingApiRetrieveMatchRequest,
141
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
142
- ): Promise<runtime.ApiResponse<Match>>;
143
-
144
- /**
145
- * Retrieve a match by ID
146
- * Retrieve a match by ID
147
- */
148
- retrieveMatch(
149
- companyCode: string,
150
- matchId: string,
151
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
152
- ): Promise<Match>;
153
-
154
- /**
155
- * Retrieve transactions for intercompany matching
156
- * @summary Retrieve transactions for intercompany matching
157
- * @param {string} companyCode
158
- * @param {number} [period]
159
- * @param {number} [year]
160
- * @param {string} [transactionDateFrom]
161
- * @param {string} [transactionDateTo]
162
- * @param {string} [amountFrom]
163
- * @param {string} [amountTo]
164
- * @param {string} [accountId]
165
- * @param {boolean} [hasMatch]
166
- * @param {string} [view]
167
- * @param {number} [limit]
168
- * @param {string} [pageToken]
169
- * @param {string} [participantCompanyCode]
170
- * @param {string} [segment]
171
- * @param {*} [options] Override http request option.
172
- * @throws {RequiredError}
173
- * @memberof IntercompanyMatchingApiInterface
174
- */
175
- retrieveTransactionsRaw(
176
- requestParameters: IntercompanyMatchingApiRetrieveTransactionsRequest,
177
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
178
- ): Promise<runtime.ApiResponse<IcMatchingTransactionsWithNextPageToken>>;
179
-
180
- /**
181
- * Retrieve transactions for intercompany matching
182
- * Retrieve transactions for intercompany matching
183
- */
184
- retrieveTransactions(
185
- companyCode: string,
186
- period?: number | null,
187
- year?: number | null,
188
- transactionDateFrom?: string | null,
189
- transactionDateTo?: string | null,
190
- amountFrom?: string | null,
191
- amountTo?: string | null,
192
- accountId?: string | null,
193
- hasMatch?: boolean | null,
194
- view?: string | null,
195
- limit?: number | null,
196
- pageToken?: string | null,
197
- participantCompanyCode?: string | null,
198
- segment?: string | null,
199
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
200
- ): Promise<IcMatchingTransactionsWithNextPageToken>;
201
- }
202
-
203
- /**
204
- *
205
- */
206
- export class IntercompanyMatchingApi extends runtime.BaseAPI implements IntercompanyMatchingApiInterface {
207
- /**
208
- */
209
- async getRaw(
210
- requestParameters: IntercompanyMatchingApiGetRequest,
211
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
212
- ): Promise<runtime.ApiResponse<IcMatchingSynchronizations>> {
213
- if (requestParameters['companyCode'] == null) {
214
- throw new runtime.RequiredError(
215
- 'companyCode',
216
- 'Required parameter "companyCode" was null or undefined when calling get().',
217
- );
218
- }
219
-
220
- const queryParameters: any = {};
221
-
222
- if (requestParameters['limit'] != null) {
223
- queryParameters['limit'] = requestParameters['limit'];
224
- }
225
-
226
- const headerParameters: runtime.HTTPHeaders = {};
227
-
228
- if (this.configuration && this.configuration.accessToken) {
229
- const token = this.configuration.accessToken;
230
- const tokenString = await token('bearerToken', ['internal']);
231
-
232
- if (tokenString) {
233
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
234
- }
235
- }
236
- const response = await this.request(
237
- {
238
- path: `/api/v1/c/{company_code}/ic_matching/synchronizations`.replace(
239
- `{${'company_code'}}`,
240
- encodeURIComponent(String(requestParameters['companyCode'])),
241
- ),
242
- method: 'GET',
243
- headers: headerParameters,
244
- query: queryParameters,
245
- },
246
- initOverrides,
247
- );
248
-
249
- return new runtime.JSONApiResponse(response);
250
- }
251
-
252
- /**
253
- */
254
- async get(
255
- companyCode: string,
256
- limit?: number | null,
257
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
258
- ): Promise<IcMatchingSynchronizations> {
259
- const response = await this.getRaw({ companyCode: companyCode, limit: limit }, initOverrides);
260
- return await response.value();
261
- }
262
-
263
- /**
264
- */
265
- async getItemRaw(
266
- requestParameters: IntercompanyMatchingApiGetItemRequest,
267
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
268
- ): Promise<runtime.ApiResponse<IcMatchingSynchronization>> {
269
- if (requestParameters['companyCode'] == null) {
270
- throw new runtime.RequiredError(
271
- 'companyCode',
272
- 'Required parameter "companyCode" was null or undefined when calling getItem().',
273
- );
274
- }
275
-
276
- if (requestParameters['synchronizationId'] == null) {
277
- throw new runtime.RequiredError(
278
- 'synchronizationId',
279
- 'Required parameter "synchronizationId" was null or undefined when calling getItem().',
280
- );
281
- }
282
-
283
- const queryParameters: any = {};
284
-
285
- const headerParameters: runtime.HTTPHeaders = {};
286
-
287
- if (this.configuration && this.configuration.accessToken) {
288
- const token = this.configuration.accessToken;
289
- const tokenString = await token('bearerToken', ['internal']);
290
-
291
- if (tokenString) {
292
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
293
- }
294
- }
295
- const response = await this.request(
296
- {
297
- path: `/api/v1/c/{company_code}/ic_matching/synchronizations/{synchronization_id}`
298
- .replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
299
- .replace(`{${'synchronization_id'}}`, encodeURIComponent(String(requestParameters['synchronizationId']))),
300
- method: 'GET',
301
- headers: headerParameters,
302
- query: queryParameters,
303
- },
304
- initOverrides,
305
- );
306
-
307
- return new runtime.JSONApiResponse(response);
308
- }
309
-
310
- /**
311
- */
312
- async getItem(
313
- companyCode: string,
314
- synchronizationId: string,
315
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
316
- ): Promise<IcMatchingSynchronization> {
317
- const response = await this.getItemRaw(
318
- { companyCode: companyCode, synchronizationId: synchronizationId },
319
- initOverrides,
320
- );
321
- return await response.value();
322
- }
323
-
324
- /**
325
- */
326
- async postRaw(
327
- requestParameters: IntercompanyMatchingApiPostRequest,
328
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
329
- ): Promise<runtime.ApiResponse<IcMatchingSynchronization>> {
330
- if (requestParameters['companyCode'] == null) {
331
- throw new runtime.RequiredError(
332
- 'companyCode',
333
- 'Required parameter "companyCode" was null or undefined when calling post().',
334
- );
335
- }
336
-
337
- if (requestParameters['icMatchingSynchronizationCreate'] == null) {
338
- throw new runtime.RequiredError(
339
- 'icMatchingSynchronizationCreate',
340
- 'Required parameter "icMatchingSynchronizationCreate" was null or undefined when calling post().',
341
- );
342
- }
343
-
344
- const queryParameters: any = {};
345
-
346
- const headerParameters: runtime.HTTPHeaders = {};
347
-
348
- headerParameters['Content-Type'] = 'application/json';
349
-
350
- if (this.configuration && this.configuration.accessToken) {
351
- const token = this.configuration.accessToken;
352
- const tokenString = await token('bearerToken', ['internal']);
353
-
354
- if (tokenString) {
355
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
356
- }
357
- }
358
- const response = await this.request(
359
- {
360
- path: `/api/v1/c/{company_code}/ic_matching/synchronizations`.replace(
361
- `{${'company_code'}}`,
362
- encodeURIComponent(String(requestParameters['companyCode'])),
363
- ),
364
- method: 'POST',
365
- headers: headerParameters,
366
- query: queryParameters,
367
- body: requestParameters['icMatchingSynchronizationCreate'],
368
- },
369
- initOverrides,
370
- );
371
-
372
- return new runtime.JSONApiResponse(response);
373
- }
374
-
375
- /**
376
- */
377
- async post(
378
- companyCode: string,
379
- icMatchingSynchronizationCreate: IcMatchingSynchronizationCreate,
380
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
381
- ): Promise<IcMatchingSynchronization> {
382
- const response = await this.postRaw(
383
- { companyCode: companyCode, icMatchingSynchronizationCreate: icMatchingSynchronizationCreate },
384
- initOverrides,
385
- );
386
- return await response.value();
387
- }
388
-
389
- /**
390
- * Retrieve a match by ID
391
- * Retrieve a match by ID
392
- */
393
- async retrieveMatchRaw(
394
- requestParameters: IntercompanyMatchingApiRetrieveMatchRequest,
395
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
396
- ): Promise<runtime.ApiResponse<Match>> {
397
- if (requestParameters['companyCode'] == null) {
398
- throw new runtime.RequiredError(
399
- 'companyCode',
400
- 'Required parameter "companyCode" was null or undefined when calling retrieveMatch().',
401
- );
402
- }
403
-
404
- if (requestParameters['matchId'] == null) {
405
- throw new runtime.RequiredError(
406
- 'matchId',
407
- 'Required parameter "matchId" was null or undefined when calling retrieveMatch().',
408
- );
409
- }
410
-
411
- const queryParameters: any = {};
412
-
413
- const headerParameters: runtime.HTTPHeaders = {};
414
-
415
- if (this.configuration && this.configuration.accessToken) {
416
- const token = this.configuration.accessToken;
417
- const tokenString = await token('bearerToken', ['intercompany_matching:read']);
418
-
419
- if (tokenString) {
420
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
421
- }
422
- }
423
- const response = await this.request(
424
- {
425
- path: `/api/v1/c/{company_code}/ic_matching/matches/{match_id}`
426
- .replace(`{${'company_code'}}`, encodeURIComponent(String(requestParameters['companyCode'])))
427
- .replace(`{${'match_id'}}`, encodeURIComponent(String(requestParameters['matchId']))),
428
- method: 'GET',
429
- headers: headerParameters,
430
- query: queryParameters,
431
- },
432
- initOverrides,
433
- );
434
-
435
- return new runtime.JSONApiResponse(response);
436
- }
437
-
438
- /**
439
- * Retrieve a match by ID
440
- * Retrieve a match by ID
441
- */
442
- async retrieveMatch(
443
- companyCode: string,
444
- matchId: string,
445
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
446
- ): Promise<Match> {
447
- const response = await this.retrieveMatchRaw({ companyCode: companyCode, matchId: matchId }, initOverrides);
448
- return await response.value();
449
- }
450
-
451
- /**
452
- * Retrieve transactions for intercompany matching
453
- * Retrieve transactions for intercompany matching
454
- */
455
- async retrieveTransactionsRaw(
456
- requestParameters: IntercompanyMatchingApiRetrieveTransactionsRequest,
457
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
458
- ): Promise<runtime.ApiResponse<IcMatchingTransactionsWithNextPageToken>> {
459
- if (requestParameters['companyCode'] == null) {
460
- throw new runtime.RequiredError(
461
- 'companyCode',
462
- 'Required parameter "companyCode" was null or undefined when calling retrieveTransactions().',
463
- );
464
- }
465
-
466
- const queryParameters: any = {};
467
-
468
- if (requestParameters['period'] != null) {
469
- queryParameters['period'] = requestParameters['period'];
470
- }
471
-
472
- if (requestParameters['year'] != null) {
473
- queryParameters['year'] = requestParameters['year'];
474
- }
475
-
476
- if (requestParameters['transactionDateFrom'] != null) {
477
- queryParameters['transactionDateFrom'] = requestParameters['transactionDateFrom'];
478
- }
479
-
480
- if (requestParameters['transactionDateTo'] != null) {
481
- queryParameters['transactionDateTo'] = requestParameters['transactionDateTo'];
482
- }
483
-
484
- if (requestParameters['amountFrom'] != null) {
485
- queryParameters['amountFrom'] = requestParameters['amountFrom'];
486
- }
487
-
488
- if (requestParameters['amountTo'] != null) {
489
- queryParameters['amountTo'] = requestParameters['amountTo'];
490
- }
491
-
492
- if (requestParameters['accountId'] != null) {
493
- queryParameters['accountId'] = requestParameters['accountId'];
494
- }
495
-
496
- if (requestParameters['hasMatch'] != null) {
497
- queryParameters['hasMatch'] = requestParameters['hasMatch'];
498
- }
499
-
500
- if (requestParameters['view'] != null) {
501
- queryParameters['view'] = requestParameters['view'];
502
- }
503
-
504
- if (requestParameters['limit'] != null) {
505
- queryParameters['limit'] = requestParameters['limit'];
506
- }
507
-
508
- if (requestParameters['pageToken'] != null) {
509
- queryParameters['pageToken'] = requestParameters['pageToken'];
510
- }
511
-
512
- if (requestParameters['participantCompanyCode'] != null) {
513
- queryParameters['participantCompanyCode'] = requestParameters['participantCompanyCode'];
514
- }
515
-
516
- if (requestParameters['segment'] != null) {
517
- queryParameters['segment'] = requestParameters['segment'];
518
- }
519
-
520
- const headerParameters: runtime.HTTPHeaders = {};
521
-
522
- if (this.configuration && this.configuration.accessToken) {
523
- const token = this.configuration.accessToken;
524
- const tokenString = await token('bearerToken', ['intercompany_matching:read']);
525
-
526
- if (tokenString) {
527
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
528
- }
529
- }
530
- const response = await this.request(
531
- {
532
- path: `/api/v1/c/{company_code}/ic_matching/transactions`.replace(
533
- `{${'company_code'}}`,
534
- encodeURIComponent(String(requestParameters['companyCode'])),
535
- ),
536
- method: 'GET',
537
- headers: headerParameters,
538
- query: queryParameters,
539
- },
540
- initOverrides,
541
- );
542
-
543
- return new runtime.JSONApiResponse(response);
544
- }
545
-
546
- /**
547
- * Retrieve transactions for intercompany matching
548
- * Retrieve transactions for intercompany matching
549
- */
550
- async retrieveTransactions(
551
- companyCode: string,
552
- period?: number | null,
553
- year?: number | null,
554
- transactionDateFrom?: string | null,
555
- transactionDateTo?: string | null,
556
- amountFrom?: string | null,
557
- amountTo?: string | null,
558
- accountId?: string | null,
559
- hasMatch?: boolean | null,
560
- view?: string | null,
561
- limit?: number | null,
562
- pageToken?: string | null,
563
- participantCompanyCode?: string | null,
564
- segment?: string | null,
565
- initOverrides?: RequestInit | runtime.InitOverrideFunction,
566
- ): Promise<IcMatchingTransactionsWithNextPageToken> {
567
- const response = await this.retrieveTransactionsRaw(
568
- {
569
- companyCode: companyCode,
570
- period: period,
571
- year: year,
572
- transactionDateFrom: transactionDateFrom,
573
- transactionDateTo: transactionDateTo,
574
- amountFrom: amountFrom,
575
- amountTo: amountTo,
576
- accountId: accountId,
577
- hasMatch: hasMatch,
578
- view: view,
579
- limit: limit,
580
- pageToken: pageToken,
581
- participantCompanyCode: participantCompanyCode,
582
- segment: segment,
583
- },
584
- initOverrides,
585
- );
586
- return await response.value();
587
- }
588
- }