@invoicetronic/ts-sdk 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +2 -2
- package/api.ts +2 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +2 -1
- package/dist/esm/api.js +2 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/src/api/company-api.d.ts +16 -11
- package/dist/esm/src/api/company-api.js +20 -31
- package/dist/esm/src/api/export-api.d.ts +11 -17
- package/dist/esm/src/api/export-api.js +6 -14
- package/dist/esm/src/api/health-api.d.ts +74 -0
- package/dist/esm/src/api/health-api.js +117 -0
- package/dist/esm/src/api/log-api.d.ts +11 -6
- package/dist/esm/src/api/log-api.js +16 -15
- package/dist/esm/src/api/receive-api.d.ts +16 -11
- package/dist/esm/src/api/receive-api.js +20 -25
- package/dist/esm/src/api/send-api.d.ts +56 -52
- package/dist/esm/src/api/send-api.js +76 -105
- package/dist/esm/src/api/status-api.d.ts +1 -1
- package/dist/esm/src/api/status-api.js +2 -5
- package/dist/esm/src/api/update-api.d.ts +11 -11
- package/dist/esm/src/api/update-api.js +10 -16
- package/dist/esm/src/api/webhook-api.d.ts +1 -1
- package/dist/esm/src/api/webhook-api.js +2 -23
- package/dist/esm/src/models/company.d.ts +1 -1
- package/dist/esm/src/models/company.js +1 -1
- package/dist/esm/src/models/document-data.d.ts +15 -0
- package/dist/esm/src/models/document-data.js +14 -0
- package/dist/esm/src/models/event.d.ts +5 -1
- package/dist/esm/src/models/event.js +1 -1
- package/dist/esm/src/models/index.d.ts +4 -0
- package/dist/esm/src/models/index.js +4 -0
- package/dist/esm/src/models/model-error.d.ts +28 -0
- package/dist/esm/src/models/model-error.js +14 -0
- package/dist/esm/src/models/problem-details.d.ts +19 -0
- package/dist/esm/src/models/problem-details.js +14 -0
- package/dist/esm/src/models/receive.d.ts +6 -2
- package/dist/esm/src/models/receive.js +1 -1
- package/dist/esm/src/models/send-reduced.d.ts +39 -0
- package/dist/esm/src/models/send-reduced.js +14 -0
- package/dist/esm/src/models/send.d.ts +6 -2
- package/dist/esm/src/models/send.js +1 -1
- package/dist/esm/src/models/status.d.ts +1 -1
- package/dist/esm/src/models/status.js +1 -1
- package/dist/esm/src/models/update.d.ts +1 -1
- package/dist/esm/src/models/update.js +1 -1
- package/dist/esm/src/models/web-hook-history.d.ts +1 -1
- package/dist/esm/src/models/web-hook-history.js +1 -1
- package/dist/esm/src/models/web-hook.d.ts +2 -2
- package/dist/esm/src/models/web-hook.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/src/api/company-api.d.ts +16 -11
- package/dist/src/api/company-api.js +19 -30
- package/dist/src/api/export-api.d.ts +11 -17
- package/dist/src/api/export-api.js +6 -14
- package/dist/src/api/health-api.d.ts +74 -0
- package/dist/src/api/health-api.js +124 -0
- package/dist/src/api/log-api.d.ts +11 -6
- package/dist/src/api/log-api.js +15 -14
- package/dist/src/api/receive-api.d.ts +16 -11
- package/dist/src/api/receive-api.js +19 -24
- package/dist/src/api/send-api.d.ts +56 -52
- package/dist/src/api/send-api.js +75 -104
- package/dist/src/api/status-api.d.ts +1 -1
- package/dist/src/api/status-api.js +1 -4
- package/dist/src/api/update-api.d.ts +11 -11
- package/dist/src/api/update-api.js +9 -15
- package/dist/src/api/webhook-api.d.ts +1 -1
- package/dist/src/api/webhook-api.js +1 -22
- package/dist/src/models/company.d.ts +1 -1
- package/dist/src/models/company.js +1 -1
- package/dist/src/models/document-data.d.ts +15 -0
- package/dist/src/models/document-data.js +15 -0
- package/dist/src/models/event.d.ts +5 -1
- package/dist/src/models/event.js +1 -1
- package/dist/src/models/index.d.ts +4 -0
- package/dist/src/models/index.js +4 -0
- package/dist/src/models/model-error.d.ts +28 -0
- package/dist/src/models/model-error.js +15 -0
- package/dist/src/models/problem-details.d.ts +19 -0
- package/dist/src/models/problem-details.js +15 -0
- package/dist/src/models/receive.d.ts +6 -2
- package/dist/src/models/receive.js +1 -1
- package/dist/src/models/send-reduced.d.ts +39 -0
- package/dist/src/models/send-reduced.js +15 -0
- package/dist/src/models/send.d.ts +6 -2
- package/dist/src/models/send.js +1 -1
- package/dist/src/models/status.d.ts +1 -1
- package/dist/src/models/status.js +1 -1
- package/dist/src/models/update.d.ts +1 -1
- package/dist/src/models/update.js +1 -1
- package/dist/src/models/web-hook-history.d.ts +1 -1
- package/dist/src/models/web-hook-history.js +1 -1
- package/dist/src/models/web-hook.d.ts +2 -2
- package/dist/src/models/web-hook.js +1 -1
- package/docs/CompanyApi.md +11 -15
- package/docs/DocumentData.md +22 -0
- package/docs/Error.md +25 -0
- package/docs/Event.md +2 -0
- package/docs/ExportApi.md +3 -3
- package/docs/HealthApi.md +54 -0
- package/docs/LogApi.md +6 -4
- package/docs/ProblemDetails.md +28 -0
- package/docs/Receive.md +3 -1
- package/docs/ReceiveApi.md +9 -10
- package/docs/Send.md +3 -1
- package/docs/SendApi.md +37 -48
- package/docs/SendReduced.md +29 -0
- package/docs/StatusApi.md +1 -1
- package/docs/UpdateApi.md +4 -5
- package/docs/WebHook.md +1 -1
- package/docs/WebhookApi.md +7 -14
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/api/company-api.ts +23 -40
- package/src/api/export-api.ts +11 -21
- package/src/api/health-api.ts +131 -0
- package/src/api/log-api.ts +18 -19
- package/src/api/receive-api.ts +23 -32
- package/src/api/send-api.ts +87 -130
- package/src/api/status-api.ts +1 -5
- package/src/api/update-api.ts +11 -21
- package/src/api/webhook-api.ts +1 -31
- package/src/models/company.ts +1 -1
- package/src/models/document-data.ts +21 -0
- package/src/models/event.ts +5 -1
- package/src/models/index.ts +4 -0
- package/src/models/model-error.ts +34 -0
- package/src/models/problem-details.ts +26 -0
- package/src/models/receive.ts +6 -2
- package/src/models/send-reduced.ts +45 -0
- package/src/models/send.ts +6 -2
- package/src/models/status.ts +1 -1
- package/src/models/update.ts +1 -1
- package/src/models/web-hook-history.ts +1 -1
- package/src/models/web-hook.ts +2 -2
package/docs/WebhookApi.md
CHANGED
|
@@ -69,7 +69,7 @@ const { status, data } = await apiInstance.webhookGet(
|
|
|
69
69
|
|
|
70
70
|
### Authorization
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
No authorization required
|
|
73
73
|
|
|
74
74
|
### HTTP request headers
|
|
75
75
|
|
|
@@ -82,7 +82,6 @@ const { status, data } = await apiInstance.webhookGet(
|
|
|
82
82
|
|-------------|-------------|------------------|
|
|
83
83
|
|**200** | OK | - |
|
|
84
84
|
|**404** | Not Found | - |
|
|
85
|
-
|**400** | Bad Request | - |
|
|
86
85
|
|
|
87
86
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
88
87
|
|
|
@@ -122,7 +121,7 @@ const { status, data } = await apiInstance.webhookIdDelete(
|
|
|
122
121
|
|
|
123
122
|
### Authorization
|
|
124
123
|
|
|
125
|
-
|
|
124
|
+
No authorization required
|
|
126
125
|
|
|
127
126
|
### HTTP request headers
|
|
128
127
|
|
|
@@ -134,9 +133,6 @@ const { status, data } = await apiInstance.webhookIdDelete(
|
|
|
134
133
|
| Status code | Description | Response headers |
|
|
135
134
|
|-------------|-------------|------------------|
|
|
136
135
|
|**200** | OK | - |
|
|
137
|
-
|**422** | Unprocessable Content | - |
|
|
138
|
-
|**400** | Bad Request | - |
|
|
139
|
-
|**409** | Conflict | - |
|
|
140
136
|
|**404** | Not Found | - |
|
|
141
137
|
|
|
142
138
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -177,7 +173,7 @@ const { status, data } = await apiInstance.webhookIdGet(
|
|
|
177
173
|
|
|
178
174
|
### Authorization
|
|
179
175
|
|
|
180
|
-
|
|
176
|
+
No authorization required
|
|
181
177
|
|
|
182
178
|
### HTTP request headers
|
|
183
179
|
|
|
@@ -230,7 +226,7 @@ const { status, data } = await apiInstance.webhookPost(
|
|
|
230
226
|
|
|
231
227
|
### Authorization
|
|
232
228
|
|
|
233
|
-
|
|
229
|
+
No authorization required
|
|
234
230
|
|
|
235
231
|
### HTTP request headers
|
|
236
232
|
|
|
@@ -242,7 +238,6 @@ const { status, data } = await apiInstance.webhookPost(
|
|
|
242
238
|
| Status code | Description | Response headers |
|
|
243
239
|
|-------------|-------------|------------------|
|
|
244
240
|
|**201** | Created | - |
|
|
245
|
-
|**400** | Bad Request | - |
|
|
246
241
|
|**422** | Unprocessable Content | - |
|
|
247
242
|
|
|
248
243
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -284,7 +279,7 @@ const { status, data } = await apiInstance.webhookPut(
|
|
|
284
279
|
|
|
285
280
|
### Authorization
|
|
286
281
|
|
|
287
|
-
|
|
282
|
+
No authorization required
|
|
288
283
|
|
|
289
284
|
### HTTP request headers
|
|
290
285
|
|
|
@@ -297,7 +292,6 @@ const { status, data } = await apiInstance.webhookPut(
|
|
|
297
292
|
|-------------|-------------|------------------|
|
|
298
293
|
|**200** | OK | - |
|
|
299
294
|
|**422** | Unprocessable Content | - |
|
|
300
|
-
|**400** | Bad Request | - |
|
|
301
295
|
|
|
302
296
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
303
297
|
|
|
@@ -346,7 +340,7 @@ const { status, data } = await apiInstance.webhookhistoryGet(
|
|
|
346
340
|
|
|
347
341
|
### Authorization
|
|
348
342
|
|
|
349
|
-
|
|
343
|
+
No authorization required
|
|
350
344
|
|
|
351
345
|
### HTTP request headers
|
|
352
346
|
|
|
@@ -359,7 +353,6 @@ const { status, data } = await apiInstance.webhookhistoryGet(
|
|
|
359
353
|
|-------------|-------------|------------------|
|
|
360
354
|
|**200** | OK | - |
|
|
361
355
|
|**404** | Not Found | - |
|
|
362
|
-
|**400** | Bad Request | - |
|
|
363
356
|
|
|
364
357
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
365
358
|
|
|
@@ -399,7 +392,7 @@ const { status, data } = await apiInstance.webhookhistoryIdGet(
|
|
|
399
392
|
|
|
400
393
|
### Authorization
|
|
401
394
|
|
|
402
|
-
|
|
395
|
+
No authorization required
|
|
403
396
|
|
|
404
397
|
### HTTP request headers
|
|
405
398
|
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1
|
|
7
|
+
* The version of the OpenAPI document: 1.6.1
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
package/src/api/company-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1
|
|
7
|
+
* The version of the OpenAPI document: 1.6.1
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,23 +28,22 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
28
28
|
import type { Company } from '../../src/models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import type { ProblemDetails } from '../../src/models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import type { ProblemHttpResult } from '../../src/models';
|
|
33
31
|
/**
|
|
34
32
|
* CompanyApi - axios parameter creator
|
|
35
33
|
*/
|
|
36
34
|
export const CompanyApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
37
35
|
return {
|
|
38
36
|
/**
|
|
39
|
-
* Retrieve a paginated list of companies. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
37
|
+
* Retrieve a paginated list of companies. Results can be filtered by free-text search (`q`) across name, VAT number, and fiscal code. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
40
38
|
* @summary List companies
|
|
41
39
|
* @param {number} [page] Page number.
|
|
42
40
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
43
41
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
42
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
44
43
|
* @param {*} [options] Override http request option.
|
|
45
44
|
* @throws {RequiredError}
|
|
46
45
|
*/
|
|
47
|
-
companyGet: async (page?: number, pageSize?: number, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
companyGet: async (page?: number, pageSize?: number, sort?: string, q?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
47
|
const localVarPath = `/company`;
|
|
49
48
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
49
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -57,10 +56,6 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
57
56
|
const localVarHeaderParameter = {} as any;
|
|
58
57
|
const localVarQueryParameter = {} as any;
|
|
59
58
|
|
|
60
|
-
// authentication Basic required
|
|
61
|
-
// http basic authentication required
|
|
62
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
63
|
-
|
|
64
59
|
if (page !== undefined) {
|
|
65
60
|
localVarQueryParameter['page'] = page;
|
|
66
61
|
}
|
|
@@ -73,6 +68,10 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
73
68
|
localVarQueryParameter['sort'] = sort;
|
|
74
69
|
}
|
|
75
70
|
|
|
71
|
+
if (q !== undefined) {
|
|
72
|
+
localVarQueryParameter['q'] = q;
|
|
73
|
+
}
|
|
74
|
+
|
|
76
75
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
77
76
|
|
|
78
77
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -108,10 +107,6 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
108
107
|
const localVarHeaderParameter = {} as any;
|
|
109
108
|
const localVarQueryParameter = {} as any;
|
|
110
109
|
|
|
111
|
-
// authentication Basic required
|
|
112
|
-
// http basic authentication required
|
|
113
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
114
|
-
|
|
115
110
|
if (force !== undefined) {
|
|
116
111
|
localVarQueryParameter['force'] = force;
|
|
117
112
|
}
|
|
@@ -150,10 +145,6 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
150
145
|
const localVarHeaderParameter = {} as any;
|
|
151
146
|
const localVarQueryParameter = {} as any;
|
|
152
147
|
|
|
153
|
-
// authentication Basic required
|
|
154
|
-
// http basic authentication required
|
|
155
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
156
|
-
|
|
157
148
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
158
149
|
|
|
159
150
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -187,10 +178,6 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
187
178
|
const localVarHeaderParameter = {} as any;
|
|
188
179
|
const localVarQueryParameter = {} as any;
|
|
189
180
|
|
|
190
|
-
// authentication Basic required
|
|
191
|
-
// http basic authentication required
|
|
192
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
193
|
-
|
|
194
181
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
195
182
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
196
183
|
|
|
@@ -226,10 +213,6 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
226
213
|
const localVarHeaderParameter = {} as any;
|
|
227
214
|
const localVarQueryParameter = {} as any;
|
|
228
215
|
|
|
229
|
-
// authentication Basic required
|
|
230
|
-
// http basic authentication required
|
|
231
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
232
|
-
|
|
233
216
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
234
217
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
235
218
|
|
|
@@ -266,10 +249,6 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
266
249
|
const localVarHeaderParameter = {} as any;
|
|
267
250
|
const localVarQueryParameter = {} as any;
|
|
268
251
|
|
|
269
|
-
// authentication Basic required
|
|
270
|
-
// http basic authentication required
|
|
271
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
272
|
-
|
|
273
252
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
274
253
|
|
|
275
254
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -291,16 +270,17 @@ export const CompanyApiFp = function(configuration?: Configuration) {
|
|
|
291
270
|
const localVarAxiosParamCreator = CompanyApiAxiosParamCreator(configuration)
|
|
292
271
|
return {
|
|
293
272
|
/**
|
|
294
|
-
* Retrieve a paginated list of companies. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
273
|
+
* Retrieve a paginated list of companies. Results can be filtered by free-text search (`q`) across name, VAT number, and fiscal code. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
295
274
|
* @summary List companies
|
|
296
275
|
* @param {number} [page] Page number.
|
|
297
276
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
298
277
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
278
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
299
279
|
* @param {*} [options] Override http request option.
|
|
300
280
|
* @throws {RequiredError}
|
|
301
281
|
*/
|
|
302
|
-
async companyGet(page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Company>>> {
|
|
303
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.companyGet(page, pageSize, sort, options);
|
|
282
|
+
async companyGet(page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Company>>> {
|
|
283
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.companyGet(page, pageSize, sort, q, options);
|
|
304
284
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
305
285
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.companyGet']?.[localVarOperationServerIndex]?.url;
|
|
306
286
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -381,16 +361,17 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
|
|
|
381
361
|
const localVarFp = CompanyApiFp(configuration)
|
|
382
362
|
return {
|
|
383
363
|
/**
|
|
384
|
-
* Retrieve a paginated list of companies. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
364
|
+
* Retrieve a paginated list of companies. Results can be filtered by free-text search (`q`) across name, VAT number, and fiscal code. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
385
365
|
* @summary List companies
|
|
386
366
|
* @param {number} [page] Page number.
|
|
387
367
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
388
368
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
369
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
389
370
|
* @param {*} [options] Override http request option.
|
|
390
371
|
* @throws {RequiredError}
|
|
391
372
|
*/
|
|
392
|
-
companyGet(page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Company>> {
|
|
393
|
-
return localVarFp.companyGet(page, pageSize, sort, options).then((request) => request(axios, basePath));
|
|
373
|
+
companyGet(page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Company>> {
|
|
374
|
+
return localVarFp.companyGet(page, pageSize, sort, q, options).then((request) => request(axios, basePath));
|
|
394
375
|
},
|
|
395
376
|
/**
|
|
396
377
|
* Delete a company by its internal id. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received. **Warning:** Deleting a company will permanently remove all associated data, including sent invoices, received invoices, invoice updates from SDI, logs, and webhooks. If the company has any linked invoices, you must explicitly confirm deletion by adding `?force=true` to the request. Without this parameter, the API will return `409 Conflict` with details about the linked data.
|
|
@@ -451,15 +432,16 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
|
|
|
451
432
|
*/
|
|
452
433
|
export interface CompanyApiInterface {
|
|
453
434
|
/**
|
|
454
|
-
* Retrieve a paginated list of companies. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
435
|
+
* Retrieve a paginated list of companies. Results can be filtered by free-text search (`q`) across name, VAT number, and fiscal code. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
455
436
|
* @summary List companies
|
|
456
437
|
* @param {number} [page] Page number.
|
|
457
438
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
458
439
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
440
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
459
441
|
* @param {*} [options] Override http request option.
|
|
460
442
|
* @throws {RequiredError}
|
|
461
443
|
*/
|
|
462
|
-
companyGet(page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Company>>;
|
|
444
|
+
companyGet(page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Company>>;
|
|
463
445
|
|
|
464
446
|
/**
|
|
465
447
|
* Delete a company by its internal id. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received. **Warning:** Deleting a company will permanently remove all associated data, including sent invoices, received invoices, invoice updates from SDI, logs, and webhooks. If the company has any linked invoices, you must explicitly confirm deletion by adding `?force=true` to the request. Without this parameter, the API will return `409 Conflict` with details about the linked data.
|
|
@@ -514,16 +496,17 @@ export interface CompanyApiInterface {
|
|
|
514
496
|
*/
|
|
515
497
|
export class CompanyApi extends BaseAPI implements CompanyApiInterface {
|
|
516
498
|
/**
|
|
517
|
-
* Retrieve a paginated list of companies. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
499
|
+
* Retrieve a paginated list of companies. Results can be filtered by free-text search (`q`) across name, VAT number, and fiscal code. **Companies** are the entities that send and receive invoices. They are automatically created from invoice data when invoices are sent or received.
|
|
518
500
|
* @summary List companies
|
|
519
501
|
* @param {number} [page] Page number.
|
|
520
502
|
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
521
503
|
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
504
|
+
* @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
|
|
522
505
|
* @param {*} [options] Override http request option.
|
|
523
506
|
* @throws {RequiredError}
|
|
524
507
|
*/
|
|
525
|
-
public companyGet(page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig) {
|
|
526
|
-
return CompanyApiFp(this.configuration).companyGet(page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
|
|
508
|
+
public companyGet(page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig) {
|
|
509
|
+
return CompanyApiFp(this.configuration).companyGet(page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
|
|
527
510
|
}
|
|
528
511
|
|
|
529
512
|
/**
|
package/src/api/export-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Invoicetronic API
|
|
5
5
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1
|
|
7
|
+
* The version of the OpenAPI document: 1.6.1
|
|
8
8
|
* Contact: info@invoicetronic.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
34
34
|
/**
|
|
35
35
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
36
36
|
* @summary Export invoices as a ZIP archive
|
|
37
|
-
* @param {
|
|
37
|
+
* @param {string} [type]
|
|
38
38
|
* @param {number} [companyId] Company id
|
|
39
39
|
* @param {number} [year]
|
|
40
40
|
* @param {number} [month]
|
|
@@ -44,7 +44,7 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
45
45
|
* @throws {RequiredError}
|
|
46
46
|
*/
|
|
47
|
-
exportGet: async (type?:
|
|
47
|
+
exportGet: async (type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
48
|
const localVarPath = `/export`;
|
|
49
49
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
50
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -57,10 +57,6 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
57
57
|
const localVarHeaderParameter = {} as any;
|
|
58
58
|
const localVarQueryParameter = {} as any;
|
|
59
59
|
|
|
60
|
-
// authentication Basic required
|
|
61
|
-
// http basic authentication required
|
|
62
|
-
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
63
|
-
|
|
64
60
|
if (type !== undefined) {
|
|
65
61
|
localVarQueryParameter['type'] = type;
|
|
66
62
|
}
|
|
@@ -116,7 +112,7 @@ export const ExportApiFp = function(configuration?: Configuration) {
|
|
|
116
112
|
/**
|
|
117
113
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
118
114
|
* @summary Export invoices as a ZIP archive
|
|
119
|
-
* @param {
|
|
115
|
+
* @param {string} [type]
|
|
120
116
|
* @param {number} [companyId] Company id
|
|
121
117
|
* @param {number} [year]
|
|
122
118
|
* @param {number} [month]
|
|
@@ -126,7 +122,7 @@ export const ExportApiFp = function(configuration?: Configuration) {
|
|
|
126
122
|
* @param {*} [options] Override http request option.
|
|
127
123
|
* @throws {RequiredError}
|
|
128
124
|
*/
|
|
129
|
-
async exportGet(type?:
|
|
125
|
+
async exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
130
126
|
const localVarAxiosArgs = await localVarAxiosParamCreator.exportGet(type, companyId, year, month, quarter, documentDateFrom, documentDateTo, options);
|
|
131
127
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
132
128
|
const localVarOperationServerBasePath = operationServerMap['ExportApi.exportGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -144,7 +140,7 @@ export const ExportApiFactory = function (configuration?: Configuration, basePat
|
|
|
144
140
|
/**
|
|
145
141
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
146
142
|
* @summary Export invoices as a ZIP archive
|
|
147
|
-
* @param {
|
|
143
|
+
* @param {string} [type]
|
|
148
144
|
* @param {number} [companyId] Company id
|
|
149
145
|
* @param {number} [year]
|
|
150
146
|
* @param {number} [month]
|
|
@@ -154,7 +150,7 @@ export const ExportApiFactory = function (configuration?: Configuration, basePat
|
|
|
154
150
|
* @param {*} [options] Override http request option.
|
|
155
151
|
* @throws {RequiredError}
|
|
156
152
|
*/
|
|
157
|
-
exportGet(type?:
|
|
153
|
+
exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
158
154
|
return localVarFp.exportGet(type, companyId, year, month, quarter, documentDateFrom, documentDateTo, options).then((request) => request(axios, basePath));
|
|
159
155
|
},
|
|
160
156
|
};
|
|
@@ -167,7 +163,7 @@ export interface ExportApiInterface {
|
|
|
167
163
|
/**
|
|
168
164
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
169
165
|
* @summary Export invoices as a ZIP archive
|
|
170
|
-
* @param {
|
|
166
|
+
* @param {string} [type]
|
|
171
167
|
* @param {number} [companyId] Company id
|
|
172
168
|
* @param {number} [year]
|
|
173
169
|
* @param {number} [month]
|
|
@@ -177,7 +173,7 @@ export interface ExportApiInterface {
|
|
|
177
173
|
* @param {*} [options] Override http request option.
|
|
178
174
|
* @throws {RequiredError}
|
|
179
175
|
*/
|
|
180
|
-
exportGet(type?:
|
|
176
|
+
exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
181
177
|
|
|
182
178
|
}
|
|
183
179
|
|
|
@@ -188,7 +184,7 @@ export class ExportApi extends BaseAPI implements ExportApiInterface {
|
|
|
188
184
|
/**
|
|
189
185
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
190
186
|
* @summary Export invoices as a ZIP archive
|
|
191
|
-
* @param {
|
|
187
|
+
* @param {string} [type]
|
|
192
188
|
* @param {number} [companyId] Company id
|
|
193
189
|
* @param {number} [year]
|
|
194
190
|
* @param {number} [month]
|
|
@@ -198,14 +194,8 @@ export class ExportApi extends BaseAPI implements ExportApiInterface {
|
|
|
198
194
|
* @param {*} [options] Override http request option.
|
|
199
195
|
* @throws {RequiredError}
|
|
200
196
|
*/
|
|
201
|
-
public exportGet(type?:
|
|
197
|
+
public exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig) {
|
|
202
198
|
return ExportApiFp(this.configuration).exportGet(type, companyId, year, month, quarter, documentDateFrom, documentDateTo, options).then((request) => request(this.axios, this.basePath));
|
|
203
199
|
}
|
|
204
200
|
}
|
|
205
201
|
|
|
206
|
-
export const ExportGetTypeEnum = {
|
|
207
|
-
Send: 'Send',
|
|
208
|
-
Receive: 'Receive',
|
|
209
|
-
Both: 'Both'
|
|
210
|
-
} as const;
|
|
211
|
-
export type ExportGetTypeEnum = typeof ExportGetTypeEnum[keyof typeof ExportGetTypeEnum];
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Invoicetronic API
|
|
5
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.6.1
|
|
8
|
+
* Contact: info@invoicetronic.com
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// URLSearchParams not necessarily used
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { URL, URLSearchParams } from 'url';
|
|
22
|
+
// Some imports not used depending on template conditions
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../../common';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../../base';
|
|
27
|
+
/**
|
|
28
|
+
* HealthApi - axios parameter creator
|
|
29
|
+
*/
|
|
30
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
34
|
+
* @summary Health check
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
healthGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
|
+
const localVarPath = `/health`;
|
|
40
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42
|
+
let baseOptions;
|
|
43
|
+
if (configuration) {
|
|
44
|
+
baseOptions = configuration.baseOptions;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
48
|
+
const localVarHeaderParameter = {} as any;
|
|
49
|
+
const localVarQueryParameter = {} as any;
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
url: toPathString(localVarUrlObj),
|
|
58
|
+
options: localVarRequestOptions,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* HealthApi - functional programming interface
|
|
66
|
+
*/
|
|
67
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
68
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
69
|
+
return {
|
|
70
|
+
/**
|
|
71
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
72
|
+
* @summary Health check
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
async healthGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
77
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.healthGet(options);
|
|
78
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
79
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.healthGet']?.[localVarOperationServerIndex]?.url;
|
|
80
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
81
|
+
},
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* HealthApi - factory interface
|
|
87
|
+
*/
|
|
88
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
89
|
+
const localVarFp = HealthApiFp(configuration)
|
|
90
|
+
return {
|
|
91
|
+
/**
|
|
92
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
93
|
+
* @summary Health check
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
healthGet(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
98
|
+
return localVarFp.healthGet(options).then((request) => request(axios, basePath));
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* HealthApi - interface
|
|
105
|
+
*/
|
|
106
|
+
export interface HealthApiInterface {
|
|
107
|
+
/**
|
|
108
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
109
|
+
* @summary Health check
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
healthGet(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* HealthApi - object-oriented interface
|
|
119
|
+
*/
|
|
120
|
+
export class HealthApi extends BaseAPI implements HealthApiInterface {
|
|
121
|
+
/**
|
|
122
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
123
|
+
* @summary Health check
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
public healthGet(options?: RawAxiosRequestConfig) {
|
|
128
|
+
return HealthApiFp(this.configuration).healthGet(options).then((request) => request(this.axios, this.basePath));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|