@invoicetronic/ts-sdk 1.4.0 → 1.5.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 (90) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/api.ts +1 -0
  4. package/configuration.ts +1 -1
  5. package/dist/api.d.ts +1 -0
  6. package/dist/api.js +1 -0
  7. package/dist/configuration.js +1 -1
  8. package/dist/esm/api.d.ts +1 -0
  9. package/dist/esm/api.js +1 -0
  10. package/dist/esm/configuration.js +1 -1
  11. package/dist/esm/src/api/company-api.d.ts +15 -10
  12. package/dist/esm/src/api/company-api.js +18 -11
  13. package/dist/esm/src/api/export-api.d.ts +10 -16
  14. package/dist/esm/src/api/export-api.js +4 -9
  15. package/dist/esm/src/api/health-api.d.ts +74 -0
  16. package/dist/esm/src/api/health-api.js +120 -0
  17. package/dist/esm/src/api/receive-api.d.ts +15 -10
  18. package/dist/esm/src/api/receive-api.js +18 -11
  19. package/dist/esm/src/api/send-api.d.ts +55 -51
  20. package/dist/esm/src/api/send-api.js +74 -67
  21. package/dist/esm/src/api/update-api.d.ts +10 -10
  22. package/dist/esm/src/api/update-api.js +8 -8
  23. package/dist/esm/src/models/document-data.d.ts +15 -0
  24. package/dist/esm/src/models/document-data.js +14 -0
  25. package/dist/esm/src/models/index.d.ts +5 -0
  26. package/dist/esm/src/models/index.js +5 -0
  27. package/dist/esm/src/models/model-error.d.ts +28 -0
  28. package/dist/esm/src/models/model-error.js +14 -0
  29. package/dist/esm/src/models/problem-details.d.ts +19 -0
  30. package/dist/esm/src/models/problem-details.js +14 -0
  31. package/dist/esm/src/models/problem-http-result.d.ts +17 -0
  32. package/dist/esm/src/models/problem-http-result.js +14 -0
  33. package/dist/esm/src/models/receive.d.ts +4 -0
  34. package/dist/esm/src/models/send-reduced.d.ts +39 -0
  35. package/dist/esm/src/models/send-reduced.js +14 -0
  36. package/dist/esm/src/models/send.d.ts +4 -0
  37. package/dist/src/api/company-api.d.ts +15 -10
  38. package/dist/src/api/company-api.js +18 -11
  39. package/dist/src/api/export-api.d.ts +10 -16
  40. package/dist/src/api/export-api.js +5 -10
  41. package/dist/src/api/health-api.d.ts +74 -0
  42. package/dist/src/api/health-api.js +127 -0
  43. package/dist/src/api/receive-api.d.ts +15 -10
  44. package/dist/src/api/receive-api.js +18 -11
  45. package/dist/src/api/send-api.d.ts +55 -51
  46. package/dist/src/api/send-api.js +74 -67
  47. package/dist/src/api/update-api.d.ts +10 -10
  48. package/dist/src/api/update-api.js +8 -8
  49. package/dist/src/models/document-data.d.ts +15 -0
  50. package/dist/src/models/document-data.js +15 -0
  51. package/dist/src/models/index.d.ts +5 -0
  52. package/dist/src/models/index.js +5 -0
  53. package/dist/src/models/model-error.d.ts +28 -0
  54. package/dist/src/models/model-error.js +15 -0
  55. package/dist/src/models/problem-details.d.ts +19 -0
  56. package/dist/src/models/problem-details.js +15 -0
  57. package/dist/src/models/problem-http-result.d.ts +17 -0
  58. package/dist/src/models/problem-http-result.js +15 -0
  59. package/dist/src/models/receive.d.ts +4 -0
  60. package/dist/src/models/send-reduced.d.ts +39 -0
  61. package/dist/src/models/send-reduced.js +15 -0
  62. package/dist/src/models/send.d.ts +4 -0
  63. package/docs/CompanyApi.md +5 -2
  64. package/docs/DocumentData.md +22 -0
  65. package/docs/Error.md +25 -0
  66. package/docs/ExportApi.md +2 -2
  67. package/docs/HealthApi.md +54 -0
  68. package/docs/ProblemDetails.md +28 -0
  69. package/docs/ProblemHttpResult.md +24 -0
  70. package/docs/Receive.md +2 -0
  71. package/docs/ReceiveApi.md +5 -2
  72. package/docs/Send.md +2 -0
  73. package/docs/SendApi.md +25 -26
  74. package/docs/SendReduced.md +29 -0
  75. package/docs/UpdateApi.md +2 -2
  76. package/package.json +1 -1
  77. package/src/api/company-api.ts +22 -13
  78. package/src/api/export-api.ts +10 -16
  79. package/src/api/health-api.ts +135 -0
  80. package/src/api/receive-api.ts +22 -13
  81. package/src/api/send-api.ts +86 -79
  82. package/src/api/update-api.ts +10 -10
  83. package/src/models/document-data.ts +21 -0
  84. package/src/models/index.ts +5 -0
  85. package/src/models/model-error.ts +34 -0
  86. package/src/models/problem-details.ts +26 -0
  87. package/src/models/problem-http-result.ts +25 -0
  88. package/src/models/receive.ts +4 -0
  89. package/src/models/send-reduced.ts +45 -0
  90. package/src/models/send.ts +4 -0
@@ -35,7 +35,7 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
35
35
  export const UpdateApiAxiosParamCreator = function (configuration) {
36
36
  return {
37
37
  /**
38
- * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
38
+ * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
39
39
  * @summary List updates
40
40
  * @param {number} [companyId] Company id
41
41
  * @param {string} [identifier] SDI identifier.
@@ -124,7 +124,7 @@ export const UpdateApiAxiosParamCreator = function (configuration) {
124
124
  };
125
125
  }),
126
126
  /**
127
- * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
127
+ * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
128
128
  * @summary Get an update by id
129
129
  * @param {number} id Item id
130
130
  * @param {*} [options] Override http request option.
@@ -165,7 +165,7 @@ export const UpdateApiFp = function (configuration) {
165
165
  const localVarAxiosParamCreator = UpdateApiAxiosParamCreator(configuration);
166
166
  return {
167
167
  /**
168
- * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
168
+ * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
169
169
  * @summary List updates
170
170
  * @param {number} [companyId] Company id
171
171
  * @param {string} [identifier] SDI identifier.
@@ -193,7 +193,7 @@ export const UpdateApiFp = function (configuration) {
193
193
  });
194
194
  },
195
195
  /**
196
- * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
196
+ * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
197
197
  * @summary Get an update by id
198
198
  * @param {number} id Item id
199
199
  * @param {*} [options] Override http request option.
@@ -217,7 +217,7 @@ export const UpdateApiFactory = function (configuration, basePath, axios) {
217
217
  const localVarFp = UpdateApiFp(configuration);
218
218
  return {
219
219
  /**
220
- * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
220
+ * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
221
221
  * @summary List updates
222
222
  * @param {number} [companyId] Company id
223
223
  * @param {string} [identifier] SDI identifier.
@@ -239,7 +239,7 @@ export const UpdateApiFactory = function (configuration, basePath, axios) {
239
239
  return localVarFp.updateGet(companyId, identifier, prestatore, unread, sendId, state, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, page, pageSize, sort, options).then((request) => request(axios, basePath));
240
240
  },
241
241
  /**
242
- * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
242
+ * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
243
243
  * @summary Get an update by id
244
244
  * @param {number} id Item id
245
245
  * @param {*} [options] Override http request option.
@@ -255,7 +255,7 @@ export const UpdateApiFactory = function (configuration, basePath, axios) {
255
255
  */
256
256
  export class UpdateApi extends BaseAPI {
257
257
  /**
258
- * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
258
+ * Retrieve a paginated list of updates. Results can be filtered by various criteria such as company, send item, SDI state, and date ranges. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
259
259
  * @summary List updates
260
260
  * @param {number} [companyId] Company id
261
261
  * @param {string} [identifier] SDI identifier.
@@ -277,7 +277,7 @@ export class UpdateApi extends BaseAPI {
277
277
  return UpdateApiFp(this.configuration).updateGet(companyId, identifier, prestatore, unread, sendId, state, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
278
278
  }
279
279
  /**
280
- * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
280
+ * Retrieve an update by its internal id. **Updates** are status notifications from Italy\'s SDI (Sistema di Interscambio) about invoices you sent. Multiple updates can exist for the same send item as the invoice progresses through the SDI workflow. The `state` field is the most important property and can have the following values: | Value | Name | Description | |-------|------|-------------| | 2 | `Inviato` | Sent to the SDI. | | 5 | `Consegnato` | Delivered to the recipient. | | 6 | `NonConsegnato` | Not delivered to the recipient. Only relevant for public administration entities. | | 7 | `Scartato` | Rejected by the SDI. | | 8 | `AccettatoDalDestinatario` | Accepted by the recipient. Only relevant for public administration entities. | | 9 | `RifiutatoDalDestinatario` | Rejected by the recipient. Only relevant for public administration entities. | | 10 | `ImpossibilitaDiRecapito` | Available on the recipient\'s tax drawer, but it was not possible to deliver it to the recipient\'s reception system. | | 11 | `DecorrenzaTermini` | A public administration entity has not responded for more than 15 days. The document is considered delivered. | | 12 | `AttestazioneTrasmissioneFattura` | A public administration entity has received the document, but has not yet processed it. | **Cost:** Querying this endpoint is free and does not count as an operation against your plan limits. **Important:** Always monitor the state of your sent invoices. A state of `Inviato` only means the invoice has been submitted to SDI, not that it has been delivered. A state like `Scartato` indicates that the invoice was **not** successfully delivered and may require corrective action, such as fixing validation errors and resubmitting. In that case, `description` contains the reason for the rejection.
281
281
  * @summary Get an update by id
282
282
  * @param {number} id Item id
283
283
  * @param {*} [options] Override http request option.
@@ -0,0 +1,15 @@
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
+ * 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
+ export interface DocumentData {
13
+ 'number'?: string | null;
14
+ 'date'?: string;
15
+ }
@@ -0,0 +1,14 @@
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
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
+ export {};
@@ -1,7 +1,12 @@
1
1
  export * from './company';
2
+ export * from './document-data';
2
3
  export * from './event';
4
+ export * from './model-error';
5
+ export * from './problem-details';
6
+ export * from './problem-http-result';
3
7
  export * from './receive';
4
8
  export * from './send';
9
+ export * from './send-reduced';
5
10
  export * from './status';
6
11
  export * from './update';
7
12
  export * from './web-hook';
@@ -1,7 +1,12 @@
1
1
  export * from './company';
2
+ export * from './document-data';
2
3
  export * from './event';
4
+ export * from './model-error';
5
+ export * from './problem-details';
6
+ export * from './problem-http-result';
3
7
  export * from './receive';
4
8
  export * from './send';
9
+ export * from './send-reduced';
5
10
  export * from './status';
6
11
  export * from './update';
7
12
  export * from './web-hook';
@@ -0,0 +1,28 @@
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
+ * 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
+ /**
13
+ * Validation error from the SDI.
14
+ */
15
+ export interface ModelError {
16
+ /**
17
+ * Error code.
18
+ */
19
+ 'code'?: string | null;
20
+ /**
21
+ * Error description.
22
+ */
23
+ 'description'?: string | null;
24
+ /**
25
+ * Hint on how to solve the issue.
26
+ */
27
+ 'hint'?: string | null;
28
+ }
@@ -0,0 +1,14 @@
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
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
+ export {};
@@ -0,0 +1,19 @@
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
+ * 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
+ export interface ProblemDetails {
13
+ [key: string]: any;
14
+ 'type'?: string | null;
15
+ 'title'?: string | null;
16
+ 'status'?: number | null;
17
+ 'detail'?: string | null;
18
+ 'instance'?: string | null;
19
+ }
@@ -0,0 +1,14 @@
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
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
+ export {};
@@ -0,0 +1,17 @@
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
+ * 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 { ProblemDetails } from './problem-details';
13
+ export interface ProblemHttpResult {
14
+ 'problem_details'?: ProblemDetails;
15
+ 'content_type'?: string | null;
16
+ 'status_code'?: number;
17
+ }
@@ -0,0 +1,14 @@
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
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
+ export {};
@@ -74,6 +74,10 @@ export interface Receive {
74
74
  * Whether the payload is Base64 encoded or a plain XML (text).
75
75
  */
76
76
  'encoding'?: ReceiveEncodingEnum;
77
+ /**
78
+ * Business name of the prestatore (supplier/seller) extracted from the invoice XML.
79
+ */
80
+ 'nome_prestatore'?: string | null;
77
81
  /**
78
82
  * Whether the invoice has been read at least once. Set to true only when the invoice is requested with include_payload=true.
79
83
  */
@@ -0,0 +1,39 @@
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
+ * 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 { DocumentData } from './document-data';
13
+ /**
14
+ * Reduced Send data for Update responses, containing only the essential fields.
15
+ */
16
+ export interface SendReduced {
17
+ /**
18
+ * SDI identifier.
19
+ */
20
+ 'identifier'?: string | null;
21
+ /**
22
+ * VAT number of the Cedente/Prestatore (vendor).
23
+ */
24
+ 'prestatore'?: string | null;
25
+ /**
26
+ * Optional metadata, as json.
27
+ */
28
+ 'meta_data'?: {
29
+ [key: string]: string;
30
+ } | null;
31
+ /**
32
+ * The invoices included in the payload.
33
+ */
34
+ 'documents'?: Array<DocumentData> | null;
35
+ /**
36
+ * When the invoice was sent to SDI.
37
+ */
38
+ 'date_sent'?: string | null;
39
+ }
@@ -0,0 +1,14 @@
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
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
+ export {};
@@ -75,6 +75,10 @@ export interface Send {
75
75
  * Whether the payload is Base64 encoded or a plain XML (text).
76
76
  */
77
77
  'encoding'?: SendEncodingEnum;
78
+ /**
79
+ * Business name of the committente (client/buyer) extracted from the invoice XML.
80
+ */
81
+ 'nome_committente'?: string | null;
78
82
  /**
79
83
  * Optional metadata, as json.
80
84
  */
@@ -18,15 +18,16 @@ import type { Company } from '../../src/models';
18
18
  */
19
19
  export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration) => {
20
20
  /**
21
- * 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.
21
+ * 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.
22
22
  * @summary List companies
23
23
  * @param {number} [page] Page number.
24
24
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
25
25
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
26
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
26
27
  * @param {*} [options] Override http request option.
27
28
  * @throws {RequiredError}
28
29
  */
29
- companyGet: (page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30
+ companyGet: (page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30
31
  /**
31
32
  * 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.
32
33
  * @summary Delete a company
@@ -74,15 +75,16 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
74
75
  */
75
76
  export declare const CompanyApiFp: (configuration?: Configuration) => {
76
77
  /**
77
- * 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.
78
+ * 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.
78
79
  * @summary List companies
79
80
  * @param {number} [page] Page number.
80
81
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
81
82
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
83
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
82
84
  * @param {*} [options] Override http request option.
83
85
  * @throws {RequiredError}
84
86
  */
85
- companyGet(page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Company>>>;
87
+ companyGet(page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Company>>>;
86
88
  /**
87
89
  * 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.
88
90
  * @summary Delete a company
@@ -130,15 +132,16 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
130
132
  */
131
133
  export declare const CompanyApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
132
134
  /**
133
- * 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.
135
+ * 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.
134
136
  * @summary List companies
135
137
  * @param {number} [page] Page number.
136
138
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
137
139
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
140
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
138
141
  * @param {*} [options] Override http request option.
139
142
  * @throws {RequiredError}
140
143
  */
141
- companyGet(page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Company>>;
144
+ companyGet(page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Company>>;
142
145
  /**
143
146
  * 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.
144
147
  * @summary Delete a company
@@ -186,15 +189,16 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
186
189
  */
187
190
  export interface CompanyApiInterface {
188
191
  /**
189
- * 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.
192
+ * 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.
190
193
  * @summary List companies
191
194
  * @param {number} [page] Page number.
192
195
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
193
196
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
197
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
194
198
  * @param {*} [options] Override http request option.
195
199
  * @throws {RequiredError}
196
200
  */
197
- companyGet(page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Company>>;
201
+ companyGet(page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Company>>;
198
202
  /**
199
203
  * 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.
200
204
  * @summary Delete a company
@@ -242,15 +246,16 @@ export interface CompanyApiInterface {
242
246
  */
243
247
  export declare class CompanyApi extends BaseAPI implements CompanyApiInterface {
244
248
  /**
245
- * 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.
249
+ * 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.
246
250
  * @summary List companies
247
251
  * @param {number} [page] Page number.
248
252
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
249
253
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
254
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
250
255
  * @param {*} [options] Override http request option.
251
256
  * @throws {RequiredError}
252
257
  */
253
- companyGet(page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company[], any, {}>>;
258
+ companyGet(page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company[], any, {}>>;
254
259
  /**
255
260
  * 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.
256
261
  * @summary Delete a company
@@ -38,15 +38,16 @@ const base_1 = require("../../base");
38
38
  const CompanyApiAxiosParamCreator = function (configuration) {
39
39
  return {
40
40
  /**
41
- * 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.
41
+ * 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.
42
42
  * @summary List companies
43
43
  * @param {number} [page] Page number.
44
44
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
45
45
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
46
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
46
47
  * @param {*} [options] Override http request option.
47
48
  * @throws {RequiredError}
48
49
  */
49
- companyGet: (page_1, pageSize_1, sort_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, sort_1, ...args_1], void 0, function* (page, pageSize, sort, options = {}) {
50
+ companyGet: (page_1, pageSize_1, sort_1, q_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, sort_1, q_1, ...args_1], void 0, function* (page, pageSize, sort, q, options = {}) {
50
51
  const localVarPath = `/company`;
51
52
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
53
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -69,6 +70,9 @@ const CompanyApiAxiosParamCreator = function (configuration) {
69
70
  if (sort !== undefined) {
70
71
  localVarQueryParameter['sort'] = sort;
71
72
  }
73
+ if (q !== undefined) {
74
+ localVarQueryParameter['q'] = q;
75
+ }
72
76
  localVarHeaderParameter['Accept'] = 'application/json';
73
77
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
74
78
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -259,18 +263,19 @@ const CompanyApiFp = function (configuration) {
259
263
  const localVarAxiosParamCreator = (0, exports.CompanyApiAxiosParamCreator)(configuration);
260
264
  return {
261
265
  /**
262
- * 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.
266
+ * 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.
263
267
  * @summary List companies
264
268
  * @param {number} [page] Page number.
265
269
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
266
270
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
271
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
267
272
  * @param {*} [options] Override http request option.
268
273
  * @throws {RequiredError}
269
274
  */
270
- companyGet(page, pageSize, sort, options) {
275
+ companyGet(page, pageSize, sort, q, options) {
271
276
  return __awaiter(this, void 0, void 0, function* () {
272
277
  var _a, _b, _c;
273
- const localVarAxiosArgs = yield localVarAxiosParamCreator.companyGet(page, pageSize, sort, options);
278
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.companyGet(page, pageSize, sort, q, options);
274
279
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
275
280
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CompanyApi.companyGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
276
281
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -367,16 +372,17 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
367
372
  const localVarFp = (0, exports.CompanyApiFp)(configuration);
368
373
  return {
369
374
  /**
370
- * 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.
375
+ * 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.
371
376
  * @summary List companies
372
377
  * @param {number} [page] Page number.
373
378
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
374
379
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
380
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
375
381
  * @param {*} [options] Override http request option.
376
382
  * @throws {RequiredError}
377
383
  */
378
- companyGet(page, pageSize, sort, options) {
379
- return localVarFp.companyGet(page, pageSize, sort, options).then((request) => request(axios, basePath));
384
+ companyGet(page, pageSize, sort, q, options) {
385
+ return localVarFp.companyGet(page, pageSize, sort, q, options).then((request) => request(axios, basePath));
380
386
  },
381
387
  /**
382
388
  * 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.
@@ -437,16 +443,17 @@ exports.CompanyApiFactory = CompanyApiFactory;
437
443
  */
438
444
  class CompanyApi extends base_1.BaseAPI {
439
445
  /**
440
- * 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.
446
+ * 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.
441
447
  * @summary List companies
442
448
  * @param {number} [page] Page number.
443
449
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
444
450
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
451
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
445
452
  * @param {*} [options] Override http request option.
446
453
  * @throws {RequiredError}
447
454
  */
448
- companyGet(page, pageSize, sort, options) {
449
- return (0, exports.CompanyApiFp)(this.configuration).companyGet(page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
455
+ companyGet(page, pageSize, sort, q, options) {
456
+ return (0, exports.CompanyApiFp)(this.configuration).companyGet(page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
450
457
  }
451
458
  /**
452
459
  * 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.