@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.
Files changed (155) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/api.ts +2 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +2 -1
  8. package/dist/api.js +2 -1
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +2 -1
  16. package/dist/esm/api.js +2 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/src/api/company-api.d.ts +16 -11
  26. package/dist/esm/src/api/company-api.js +20 -31
  27. package/dist/esm/src/api/export-api.d.ts +11 -17
  28. package/dist/esm/src/api/export-api.js +6 -14
  29. package/dist/esm/src/api/health-api.d.ts +74 -0
  30. package/dist/esm/src/api/health-api.js +117 -0
  31. package/dist/esm/src/api/log-api.d.ts +11 -6
  32. package/dist/esm/src/api/log-api.js +16 -15
  33. package/dist/esm/src/api/receive-api.d.ts +16 -11
  34. package/dist/esm/src/api/receive-api.js +20 -25
  35. package/dist/esm/src/api/send-api.d.ts +56 -52
  36. package/dist/esm/src/api/send-api.js +76 -105
  37. package/dist/esm/src/api/status-api.d.ts +1 -1
  38. package/dist/esm/src/api/status-api.js +2 -5
  39. package/dist/esm/src/api/update-api.d.ts +11 -11
  40. package/dist/esm/src/api/update-api.js +10 -16
  41. package/dist/esm/src/api/webhook-api.d.ts +1 -1
  42. package/dist/esm/src/api/webhook-api.js +2 -23
  43. package/dist/esm/src/models/company.d.ts +1 -1
  44. package/dist/esm/src/models/company.js +1 -1
  45. package/dist/esm/src/models/document-data.d.ts +15 -0
  46. package/dist/esm/src/models/document-data.js +14 -0
  47. package/dist/esm/src/models/event.d.ts +5 -1
  48. package/dist/esm/src/models/event.js +1 -1
  49. package/dist/esm/src/models/index.d.ts +4 -0
  50. package/dist/esm/src/models/index.js +4 -0
  51. package/dist/esm/src/models/model-error.d.ts +28 -0
  52. package/dist/esm/src/models/model-error.js +14 -0
  53. package/dist/esm/src/models/problem-details.d.ts +19 -0
  54. package/dist/esm/src/models/problem-details.js +14 -0
  55. package/dist/esm/src/models/receive.d.ts +6 -2
  56. package/dist/esm/src/models/receive.js +1 -1
  57. package/dist/esm/src/models/send-reduced.d.ts +39 -0
  58. package/dist/esm/src/models/send-reduced.js +14 -0
  59. package/dist/esm/src/models/send.d.ts +6 -2
  60. package/dist/esm/src/models/send.js +1 -1
  61. package/dist/esm/src/models/status.d.ts +1 -1
  62. package/dist/esm/src/models/status.js +1 -1
  63. package/dist/esm/src/models/update.d.ts +1 -1
  64. package/dist/esm/src/models/update.js +1 -1
  65. package/dist/esm/src/models/web-hook-history.d.ts +1 -1
  66. package/dist/esm/src/models/web-hook-history.js +1 -1
  67. package/dist/esm/src/models/web-hook.d.ts +2 -2
  68. package/dist/esm/src/models/web-hook.js +1 -1
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/src/api/company-api.d.ts +16 -11
  72. package/dist/src/api/company-api.js +19 -30
  73. package/dist/src/api/export-api.d.ts +11 -17
  74. package/dist/src/api/export-api.js +6 -14
  75. package/dist/src/api/health-api.d.ts +74 -0
  76. package/dist/src/api/health-api.js +124 -0
  77. package/dist/src/api/log-api.d.ts +11 -6
  78. package/dist/src/api/log-api.js +15 -14
  79. package/dist/src/api/receive-api.d.ts +16 -11
  80. package/dist/src/api/receive-api.js +19 -24
  81. package/dist/src/api/send-api.d.ts +56 -52
  82. package/dist/src/api/send-api.js +75 -104
  83. package/dist/src/api/status-api.d.ts +1 -1
  84. package/dist/src/api/status-api.js +1 -4
  85. package/dist/src/api/update-api.d.ts +11 -11
  86. package/dist/src/api/update-api.js +9 -15
  87. package/dist/src/api/webhook-api.d.ts +1 -1
  88. package/dist/src/api/webhook-api.js +1 -22
  89. package/dist/src/models/company.d.ts +1 -1
  90. package/dist/src/models/company.js +1 -1
  91. package/dist/src/models/document-data.d.ts +15 -0
  92. package/dist/src/models/document-data.js +15 -0
  93. package/dist/src/models/event.d.ts +5 -1
  94. package/dist/src/models/event.js +1 -1
  95. package/dist/src/models/index.d.ts +4 -0
  96. package/dist/src/models/index.js +4 -0
  97. package/dist/src/models/model-error.d.ts +28 -0
  98. package/dist/src/models/model-error.js +15 -0
  99. package/dist/src/models/problem-details.d.ts +19 -0
  100. package/dist/src/models/problem-details.js +15 -0
  101. package/dist/src/models/receive.d.ts +6 -2
  102. package/dist/src/models/receive.js +1 -1
  103. package/dist/src/models/send-reduced.d.ts +39 -0
  104. package/dist/src/models/send-reduced.js +15 -0
  105. package/dist/src/models/send.d.ts +6 -2
  106. package/dist/src/models/send.js +1 -1
  107. package/dist/src/models/status.d.ts +1 -1
  108. package/dist/src/models/status.js +1 -1
  109. package/dist/src/models/update.d.ts +1 -1
  110. package/dist/src/models/update.js +1 -1
  111. package/dist/src/models/web-hook-history.d.ts +1 -1
  112. package/dist/src/models/web-hook-history.js +1 -1
  113. package/dist/src/models/web-hook.d.ts +2 -2
  114. package/dist/src/models/web-hook.js +1 -1
  115. package/docs/CompanyApi.md +11 -15
  116. package/docs/DocumentData.md +22 -0
  117. package/docs/Error.md +25 -0
  118. package/docs/Event.md +2 -0
  119. package/docs/ExportApi.md +3 -3
  120. package/docs/HealthApi.md +54 -0
  121. package/docs/LogApi.md +6 -4
  122. package/docs/ProblemDetails.md +28 -0
  123. package/docs/Receive.md +3 -1
  124. package/docs/ReceiveApi.md +9 -10
  125. package/docs/Send.md +3 -1
  126. package/docs/SendApi.md +37 -48
  127. package/docs/SendReduced.md +29 -0
  128. package/docs/StatusApi.md +1 -1
  129. package/docs/UpdateApi.md +4 -5
  130. package/docs/WebHook.md +1 -1
  131. package/docs/WebhookApi.md +7 -14
  132. package/index.ts +1 -1
  133. package/package.json +1 -1
  134. package/src/api/company-api.ts +23 -40
  135. package/src/api/export-api.ts +11 -21
  136. package/src/api/health-api.ts +131 -0
  137. package/src/api/log-api.ts +18 -19
  138. package/src/api/receive-api.ts +23 -32
  139. package/src/api/send-api.ts +87 -130
  140. package/src/api/status-api.ts +1 -5
  141. package/src/api/update-api.ts +11 -21
  142. package/src/api/webhook-api.ts +1 -31
  143. package/src/models/company.ts +1 -1
  144. package/src/models/document-data.ts +21 -0
  145. package/src/models/event.ts +5 -1
  146. package/src/models/index.ts +4 -0
  147. package/src/models/model-error.ts +34 -0
  148. package/src/models/problem-details.ts +26 -0
  149. package/src/models/receive.ts +6 -2
  150. package/src/models/send-reduced.ts +45 -0
  151. package/src/models/send.ts +6 -2
  152. package/src/models/status.ts +1 -1
  153. package/src/models/update.ts +1 -1
  154. package/src/models/web-hook-history.ts +1 -1
  155. package/src/models/web-hook.ts +2 -2
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * 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/
4
4
  *
5
- * The version of the OpenAPI document: 1
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,7 +19,7 @@ export declare const ExportApiAxiosParamCreator: (configuration?: Configuration)
19
19
  /**
20
20
  * 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.
21
21
  * @summary Export invoices as a ZIP archive
22
- * @param {ExportGetTypeEnum} [type]
22
+ * @param {string} [type]
23
23
  * @param {number} [companyId] Company id
24
24
  * @param {number} [year]
25
25
  * @param {number} [month]
@@ -29,7 +29,7 @@ export declare const ExportApiAxiosParamCreator: (configuration?: Configuration)
29
29
  * @param {*} [options] Override http request option.
30
30
  * @throws {RequiredError}
31
31
  */
32
- exportGet: (type?: ExportGetTypeEnum, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32
+ exportGet: (type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33
33
  };
34
34
  /**
35
35
  * ExportApi - functional programming interface
@@ -38,7 +38,7 @@ export declare const ExportApiFp: (configuration?: Configuration) => {
38
38
  /**
39
39
  * 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.
40
40
  * @summary Export invoices as a ZIP archive
41
- * @param {ExportGetTypeEnum} [type]
41
+ * @param {string} [type]
42
42
  * @param {number} [companyId] Company id
43
43
  * @param {number} [year]
44
44
  * @param {number} [month]
@@ -48,7 +48,7 @@ export declare const ExportApiFp: (configuration?: Configuration) => {
48
48
  * @param {*} [options] Override http request option.
49
49
  * @throws {RequiredError}
50
50
  */
51
- exportGet(type?: ExportGetTypeEnum, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
51
+ exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
52
52
  };
53
53
  /**
54
54
  * ExportApi - factory interface
@@ -57,7 +57,7 @@ export declare const ExportApiFactory: (configuration?: Configuration, basePath?
57
57
  /**
58
58
  * 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.
59
59
  * @summary Export invoices as a ZIP archive
60
- * @param {ExportGetTypeEnum} [type]
60
+ * @param {string} [type]
61
61
  * @param {number} [companyId] Company id
62
62
  * @param {number} [year]
63
63
  * @param {number} [month]
@@ -67,7 +67,7 @@ export declare const ExportApiFactory: (configuration?: Configuration, basePath?
67
67
  * @param {*} [options] Override http request option.
68
68
  * @throws {RequiredError}
69
69
  */
70
- exportGet(type?: ExportGetTypeEnum, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
70
+ exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
71
71
  };
72
72
  /**
73
73
  * ExportApi - interface
@@ -76,7 +76,7 @@ export interface ExportApiInterface {
76
76
  /**
77
77
  * 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.
78
78
  * @summary Export invoices as a ZIP archive
79
- * @param {ExportGetTypeEnum} [type]
79
+ * @param {string} [type]
80
80
  * @param {number} [companyId] Company id
81
81
  * @param {number} [year]
82
82
  * @param {number} [month]
@@ -86,7 +86,7 @@ export interface ExportApiInterface {
86
86
  * @param {*} [options] Override http request option.
87
87
  * @throws {RequiredError}
88
88
  */
89
- exportGet(type?: ExportGetTypeEnum, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
89
+ exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
90
90
  }
91
91
  /**
92
92
  * ExportApi - object-oriented interface
@@ -95,7 +95,7 @@ export declare class ExportApi extends BaseAPI implements ExportApiInterface {
95
95
  /**
96
96
  * 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.
97
97
  * @summary Export invoices as a ZIP archive
98
- * @param {ExportGetTypeEnum} [type]
98
+ * @param {string} [type]
99
99
  * @param {number} [companyId] Company id
100
100
  * @param {number} [year]
101
101
  * @param {number} [month]
@@ -105,11 +105,5 @@ export declare class ExportApi extends BaseAPI implements ExportApiInterface {
105
105
  * @param {*} [options] Override http request option.
106
106
  * @throws {RequiredError}
107
107
  */
108
- exportGet(type?: ExportGetTypeEnum, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
108
+ exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
109
109
  }
110
- export declare const ExportGetTypeEnum: {
111
- readonly Send: "Send";
112
- readonly Receive: "Receive";
113
- readonly Both: "Both";
114
- };
115
- export type ExportGetTypeEnum = typeof ExportGetTypeEnum[keyof typeof ExportGetTypeEnum];
@@ -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).
@@ -26,7 +26,7 @@ import globalAxios from 'axios';
26
26
  import { URL } from 'url';
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
29
- import { DUMMY_BASE_URL, setBasicAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../../common';
29
+ import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../../common';
30
30
  // @ts-ignore
31
31
  import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
32
32
  /**
@@ -37,7 +37,7 @@ export const ExportApiAxiosParamCreator = function (configuration) {
37
37
  /**
38
38
  * 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.
39
39
  * @summary Export invoices as a ZIP archive
40
- * @param {ExportGetTypeEnum} [type]
40
+ * @param {string} [type]
41
41
  * @param {number} [companyId] Company id
42
42
  * @param {number} [year]
43
43
  * @param {number} [month]
@@ -58,9 +58,6 @@ export const ExportApiAxiosParamCreator = function (configuration) {
58
58
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
59
59
  const localVarHeaderParameter = {};
60
60
  const localVarQueryParameter = {};
61
- // authentication Basic required
62
- // http basic authentication required
63
- setBasicAuthToObject(localVarRequestOptions, configuration);
64
61
  if (type !== undefined) {
65
62
  localVarQueryParameter['type'] = type;
66
63
  }
@@ -106,7 +103,7 @@ export const ExportApiFp = function (configuration) {
106
103
  /**
107
104
  * 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.
108
105
  * @summary Export invoices as a ZIP archive
109
- * @param {ExportGetTypeEnum} [type]
106
+ * @param {string} [type]
110
107
  * @param {number} [companyId] Company id
111
108
  * @param {number} [year]
112
109
  * @param {number} [month]
@@ -136,7 +133,7 @@ export const ExportApiFactory = function (configuration, basePath, axios) {
136
133
  /**
137
134
  * 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.
138
135
  * @summary Export invoices as a ZIP archive
139
- * @param {ExportGetTypeEnum} [type]
136
+ * @param {string} [type]
140
137
  * @param {number} [companyId] Company id
141
138
  * @param {number} [year]
142
139
  * @param {number} [month]
@@ -158,7 +155,7 @@ export class ExportApi extends BaseAPI {
158
155
  /**
159
156
  * 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.
160
157
  * @summary Export invoices as a ZIP archive
161
- * @param {ExportGetTypeEnum} [type]
158
+ * @param {string} [type]
162
159
  * @param {number} [companyId] Company id
163
160
  * @param {number} [year]
164
161
  * @param {number} [month]
@@ -172,8 +169,3 @@ export class ExportApi extends BaseAPI {
172
169
  return ExportApiFp(this.configuration).exportGet(type, companyId, year, month, quarter, documentDateFrom, documentDateTo, options).then((request) => request(this.axios, this.basePath));
173
170
  }
174
171
  }
175
- export const ExportGetTypeEnum = {
176
- Send: 'Send',
177
- Receive: 'Receive',
178
- Both: 'Both'
179
- };
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Invoicetronic API
3
+ * 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/
4
+ *
5
+ * The version of the OpenAPI document: 1.6.1
6
+ * Contact: info@invoicetronic.com
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 { Configuration } from '../../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../../base';
15
+ /**
16
+ * HealthApi - axios parameter creator
17
+ */
18
+ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
19
+ /**
20
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
21
+ * @summary Health check
22
+ * @param {*} [options] Override http request option.
23
+ * @throws {RequiredError}
24
+ */
25
+ healthGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26
+ };
27
+ /**
28
+ * HealthApi - functional programming interface
29
+ */
30
+ export declare const HealthApiFp: (configuration?: Configuration) => {
31
+ /**
32
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
33
+ * @summary Health check
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ healthGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
38
+ };
39
+ /**
40
+ * HealthApi - factory interface
41
+ */
42
+ export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
43
+ /**
44
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
45
+ * @summary Health check
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ healthGet(options?: RawAxiosRequestConfig): AxiosPromise<void>;
50
+ };
51
+ /**
52
+ * HealthApi - interface
53
+ */
54
+ export interface HealthApiInterface {
55
+ /**
56
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
57
+ * @summary Health check
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ */
61
+ healthGet(options?: RawAxiosRequestConfig): AxiosPromise<void>;
62
+ }
63
+ /**
64
+ * HealthApi - object-oriented interface
65
+ */
66
+ export declare class HealthApi extends BaseAPI implements HealthApiInterface {
67
+ /**
68
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
69
+ * @summary Health check
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ healthGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
74
+ }
@@ -0,0 +1,117 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // URLSearchParams not necessarily used
25
+ // @ts-ignore
26
+ import { URL } from 'url';
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../../common';
30
+ // @ts-ignore
31
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
32
+ /**
33
+ * HealthApi - axios parameter creator
34
+ */
35
+ export const HealthApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
39
+ * @summary Health check
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ healthGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
44
+ const localVarPath = `/health`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
55
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
57
+ return {
58
+ url: toPathString(localVarUrlObj),
59
+ options: localVarRequestOptions,
60
+ };
61
+ }),
62
+ };
63
+ };
64
+ /**
65
+ * HealthApi - functional programming interface
66
+ */
67
+ export const HealthApiFp = function (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
+ healthGet(options) {
77
+ return __awaiter(this, void 0, void 0, function* () {
78
+ var _a, _b, _c;
79
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.healthGet(options);
80
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
81
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['HealthApi.healthGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
82
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
83
+ });
84
+ },
85
+ };
86
+ };
87
+ /**
88
+ * HealthApi - factory interface
89
+ */
90
+ export const HealthApiFactory = function (configuration, basePath, axios) {
91
+ const localVarFp = HealthApiFp(configuration);
92
+ return {
93
+ /**
94
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
95
+ * @summary Health check
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ healthGet(options) {
100
+ return localVarFp.healthGet(options).then((request) => request(axios, basePath));
101
+ },
102
+ };
103
+ };
104
+ /**
105
+ * HealthApi - object-oriented interface
106
+ */
107
+ export class HealthApi extends BaseAPI {
108
+ /**
109
+ * Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
110
+ * @summary Health check
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ healthGet(options) {
115
+ return HealthApiFp(this.configuration).healthGet(options).then((request) => request(this.axios, this.basePath));
116
+ }
117
+ }
@@ -2,7 +2,7 @@
2
2
  * Invoicetronic API
3
3
  * 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/
4
4
  *
5
- * The version of the OpenAPI document: 1
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,10 +34,11 @@ export declare const LogApiAxiosParamCreator: (configuration?: Configuration) =>
34
34
  * @param {boolean} [success]
35
35
  * @param {string} [dateTimeFrom] Date and time of the event
36
36
  * @param {string} [dateTimeTo] Date and time of the event
37
+ * @param {string} [userAgent]
37
38
  * @param {*} [options] Override http request option.
38
39
  * @throws {RequiredError}
39
40
  */
40
- logGet: (companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
41
+ logGet: (companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
41
42
  /**
42
43
  * Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
43
44
  * @summary Get an event by id
@@ -68,10 +69,11 @@ export declare const LogApiFp: (configuration?: Configuration) => {
68
69
  * @param {boolean} [success]
69
70
  * @param {string} [dateTimeFrom] Date and time of the event
70
71
  * @param {string} [dateTimeTo] Date and time of the event
72
+ * @param {string} [userAgent]
71
73
  * @param {*} [options] Override http request option.
72
74
  * @throws {RequiredError}
73
75
  */
74
- logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Event>>>;
76
+ logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Event>>>;
75
77
  /**
76
78
  * Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
77
79
  * @summary Get an event by id
@@ -102,10 +104,11 @@ export declare const LogApiFactory: (configuration?: Configuration, basePath?: s
102
104
  * @param {boolean} [success]
103
105
  * @param {string} [dateTimeFrom] Date and time of the event
104
106
  * @param {string} [dateTimeTo] Date and time of the event
107
+ * @param {string} [userAgent]
105
108
  * @param {*} [options] Override http request option.
106
109
  * @throws {RequiredError}
107
110
  */
108
- logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
111
+ logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
109
112
  /**
110
113
  * Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
111
114
  * @summary Get an event by id
@@ -136,10 +139,11 @@ export interface LogApiInterface {
136
139
  * @param {boolean} [success]
137
140
  * @param {string} [dateTimeFrom] Date and time of the event
138
141
  * @param {string} [dateTimeTo] Date and time of the event
142
+ * @param {string} [userAgent]
139
143
  * @param {*} [options] Override http request option.
140
144
  * @throws {RequiredError}
141
145
  */
142
- logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
146
+ logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
143
147
  /**
144
148
  * Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
145
149
  * @summary Get an event by id
@@ -170,10 +174,11 @@ export declare class LogApi extends BaseAPI implements LogApiInterface {
170
174
  * @param {boolean} [success]
171
175
  * @param {string} [dateTimeFrom] Date and time of the event
172
176
  * @param {string} [dateTimeTo] Date and time of the event
177
+ * @param {string} [userAgent]
173
178
  * @param {*} [options] Override http request option.
174
179
  * @throws {RequiredError}
175
180
  */
176
- logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Event[], any, {}>>;
181
+ logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Event[], any, {}>>;
177
182
  /**
178
183
  * Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
179
184
  * @summary Get an event by id
@@ -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).
@@ -26,7 +26,7 @@ import globalAxios from 'axios';
26
26
  import { URL } from 'url';
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
29
- import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../../common';
29
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../../common';
30
30
  // @ts-ignore
31
31
  import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
32
32
  /**
@@ -51,10 +51,11 @@ export const LogApiAxiosParamCreator = function (configuration) {
51
51
  * @param {boolean} [success]
52
52
  * @param {string} [dateTimeFrom] Date and time of the event
53
53
  * @param {string} [dateTimeTo] Date and time of the event
54
+ * @param {string} [userAgent]
54
55
  * @param {*} [options] Override http request option.
55
56
  * @throws {RequiredError}
56
57
  */
57
- logGet: (companyId_1, endpoint_1, method_1, apiVerion_1, statusCode_1, dateCreatedFrom_1, dateCreatedTo_1, page_1, pageSize_1, sort_1, query_1, success_1, dateTimeFrom_1, dateTimeTo_1, ...args_1) => __awaiter(this, [companyId_1, endpoint_1, method_1, apiVerion_1, statusCode_1, dateCreatedFrom_1, dateCreatedTo_1, page_1, pageSize_1, sort_1, query_1, success_1, dateTimeFrom_1, dateTimeTo_1, ...args_1], void 0, function* (companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options = {}) {
58
+ logGet: (companyId_1, endpoint_1, method_1, apiVerion_1, statusCode_1, dateCreatedFrom_1, dateCreatedTo_1, page_1, pageSize_1, sort_1, query_1, success_1, dateTimeFrom_1, dateTimeTo_1, userAgent_1, ...args_1) => __awaiter(this, [companyId_1, endpoint_1, method_1, apiVerion_1, statusCode_1, dateCreatedFrom_1, dateCreatedTo_1, page_1, pageSize_1, sort_1, query_1, success_1, dateTimeFrom_1, dateTimeTo_1, userAgent_1, ...args_1], void 0, function* (companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options = {}) {
58
59
  const localVarPath = `/log`;
59
60
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
60
61
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -65,9 +66,6 @@ export const LogApiAxiosParamCreator = function (configuration) {
65
66
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
66
67
  const localVarHeaderParameter = {};
67
68
  const localVarQueryParameter = {};
68
- // authentication Basic required
69
- // http basic authentication required
70
- setBasicAuthToObject(localVarRequestOptions, configuration);
71
69
  if (companyId !== undefined) {
72
70
  localVarQueryParameter['company_id'] = companyId;
73
71
  }
@@ -118,6 +116,9 @@ export const LogApiAxiosParamCreator = function (configuration) {
118
116
  dateTimeTo.toISOString() :
119
117
  dateTimeTo;
120
118
  }
119
+ if (userAgent !== undefined) {
120
+ localVarQueryParameter['user_agent'] = userAgent;
121
+ }
121
122
  localVarHeaderParameter['Accept'] = 'application/json';
122
123
  setSearchParams(localVarUrlObj, localVarQueryParameter);
123
124
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -148,9 +149,6 @@ export const LogApiAxiosParamCreator = function (configuration) {
148
149
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
149
150
  const localVarHeaderParameter = {};
150
151
  const localVarQueryParameter = {};
151
- // authentication Basic required
152
- // http basic authentication required
153
- setBasicAuthToObject(localVarRequestOptions, configuration);
154
152
  localVarHeaderParameter['Accept'] = 'application/json';
155
153
  setSearchParams(localVarUrlObj, localVarQueryParameter);
156
154
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -185,13 +183,14 @@ export const LogApiFp = function (configuration) {
185
183
  * @param {boolean} [success]
186
184
  * @param {string} [dateTimeFrom] Date and time of the event
187
185
  * @param {string} [dateTimeTo] Date and time of the event
186
+ * @param {string} [userAgent]
188
187
  * @param {*} [options] Override http request option.
189
188
  * @throws {RequiredError}
190
189
  */
191
- logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options) {
190
+ logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options) {
192
191
  return __awaiter(this, void 0, void 0, function* () {
193
192
  var _a, _b, _c;
194
- const localVarAxiosArgs = yield localVarAxiosParamCreator.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options);
193
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options);
195
194
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
196
195
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LogApi.logGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
197
196
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -238,11 +237,12 @@ export const LogApiFactory = function (configuration, basePath, axios) {
238
237
  * @param {boolean} [success]
239
238
  * @param {string} [dateTimeFrom] Date and time of the event
240
239
  * @param {string} [dateTimeTo] Date and time of the event
240
+ * @param {string} [userAgent]
241
241
  * @param {*} [options] Override http request option.
242
242
  * @throws {RequiredError}
243
243
  */
244
- logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options) {
245
- return localVarFp.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options).then((request) => request(axios, basePath));
244
+ logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options) {
245
+ return localVarFp.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options).then((request) => request(axios, basePath));
246
246
  },
247
247
  /**
248
248
  * Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
@@ -277,11 +277,12 @@ export class LogApi extends BaseAPI {
277
277
  * @param {boolean} [success]
278
278
  * @param {string} [dateTimeFrom] Date and time of the event
279
279
  * @param {string} [dateTimeTo] Date and time of the event
280
+ * @param {string} [userAgent]
280
281
  * @param {*} [options] Override http request option.
281
282
  * @throws {RequiredError}
282
283
  */
283
- logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options) {
284
- return LogApiFp(this.configuration).logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options).then((request) => request(this.axios, this.basePath));
284
+ logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options) {
285
+ return LogApiFp(this.configuration).logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options).then((request) => request(this.axios, this.basePath));
285
286
  }
286
287
  /**
287
288
  * Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).