@invoicetronic/ts-sdk 1.6.0 → 1.8.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 (151) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/api.ts +1 -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 +1 -1
  8. package/dist/api.js +1 -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 +1 -1
  16. package/dist/esm/api.js +1 -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 +1 -1
  26. package/dist/esm/src/api/company-api.js +20 -2
  27. package/dist/esm/src/api/export-api.d.ts +1 -1
  28. package/dist/esm/src/api/export-api.js +5 -2
  29. package/dist/esm/src/api/health-api.d.ts +1 -1
  30. package/dist/esm/src/api/health-api.js +5 -2
  31. package/dist/esm/src/api/log-api.d.ts +1 -1
  32. package/dist/esm/src/api/log-api.js +8 -2
  33. package/dist/esm/src/api/receive-api.d.ts +16 -16
  34. package/dist/esm/src/api/receive-api.js +26 -14
  35. package/dist/esm/src/api/send-api.d.ts +16 -11
  36. package/dist/esm/src/api/send-api.js +56 -13
  37. package/dist/esm/src/api/status-api.d.ts +1 -1
  38. package/dist/esm/src/api/status-api.js +5 -2
  39. package/dist/esm/src/api/update-api.d.ts +1 -1
  40. package/dist/esm/src/api/update-api.js +8 -2
  41. package/dist/esm/src/api/webhook-api.d.ts +1 -1
  42. package/dist/esm/src/api/webhook-api.js +23 -2
  43. package/dist/esm/src/models/company.d.ts +3 -3
  44. package/dist/esm/src/models/company.js +1 -1
  45. package/dist/esm/src/models/document-data.d.ts +1 -1
  46. package/dist/esm/src/models/document-data.js +1 -1
  47. package/dist/esm/src/models/event.d.ts +2 -2
  48. package/dist/esm/src/models/event.js +1 -1
  49. package/dist/esm/src/models/model-error.d.ts +1 -1
  50. package/dist/esm/src/models/model-error.js +1 -1
  51. package/dist/esm/src/models/problem-details.d.ts +1 -1
  52. package/dist/esm/src/models/problem-details.js +1 -1
  53. package/dist/esm/src/models/receive.d.ts +5 -5
  54. package/dist/esm/src/models/receive.js +1 -1
  55. package/dist/esm/src/models/send-reduced.d.ts +17 -1
  56. package/dist/esm/src/models/send-reduced.js +12 -2
  57. package/dist/esm/src/models/send.d.ts +21 -5
  58. package/dist/esm/src/models/send.js +12 -1
  59. package/dist/esm/src/models/status.d.ts +9 -1
  60. package/dist/esm/src/models/status.js +1 -1
  61. package/dist/esm/src/models/update.d.ts +2 -2
  62. package/dist/esm/src/models/update.js +1 -1
  63. package/dist/esm/src/models/web-hook-history.d.ts +7 -3
  64. package/dist/esm/src/models/web-hook-history.js +1 -1
  65. package/dist/esm/src/models/web-hook.d.ts +8 -4
  66. package/dist/esm/src/models/web-hook.js +1 -1
  67. package/dist/index.d.ts +1 -1
  68. package/dist/index.js +1 -1
  69. package/dist/src/api/company-api.d.ts +1 -1
  70. package/dist/src/api/company-api.js +19 -1
  71. package/dist/src/api/export-api.d.ts +1 -1
  72. package/dist/src/api/export-api.js +4 -1
  73. package/dist/src/api/health-api.d.ts +1 -1
  74. package/dist/src/api/health-api.js +4 -1
  75. package/dist/src/api/log-api.d.ts +1 -1
  76. package/dist/src/api/log-api.js +7 -1
  77. package/dist/src/api/receive-api.d.ts +16 -16
  78. package/dist/src/api/receive-api.js +25 -13
  79. package/dist/src/api/send-api.d.ts +16 -11
  80. package/dist/src/api/send-api.js +55 -12
  81. package/dist/src/api/status-api.d.ts +1 -1
  82. package/dist/src/api/status-api.js +4 -1
  83. package/dist/src/api/update-api.d.ts +1 -1
  84. package/dist/src/api/update-api.js +7 -1
  85. package/dist/src/api/webhook-api.d.ts +1 -1
  86. package/dist/src/api/webhook-api.js +22 -1
  87. package/dist/src/models/company.d.ts +3 -3
  88. package/dist/src/models/company.js +1 -1
  89. package/dist/src/models/document-data.d.ts +1 -1
  90. package/dist/src/models/document-data.js +1 -1
  91. package/dist/src/models/event.d.ts +2 -2
  92. package/dist/src/models/event.js +1 -1
  93. package/dist/src/models/model-error.d.ts +1 -1
  94. package/dist/src/models/model-error.js +1 -1
  95. package/dist/src/models/problem-details.d.ts +1 -1
  96. package/dist/src/models/problem-details.js +1 -1
  97. package/dist/src/models/receive.d.ts +5 -5
  98. package/dist/src/models/receive.js +1 -1
  99. package/dist/src/models/send-reduced.d.ts +17 -1
  100. package/dist/src/models/send-reduced.js +13 -1
  101. package/dist/src/models/send.d.ts +21 -5
  102. package/dist/src/models/send.js +13 -2
  103. package/dist/src/models/status.d.ts +9 -1
  104. package/dist/src/models/status.js +1 -1
  105. package/dist/src/models/update.d.ts +2 -2
  106. package/dist/src/models/update.js +1 -1
  107. package/dist/src/models/web-hook-history.d.ts +7 -3
  108. package/dist/src/models/web-hook-history.js +1 -1
  109. package/dist/src/models/web-hook.d.ts +8 -4
  110. package/dist/src/models/web-hook.js +1 -1
  111. package/docs/Company.md +4 -4
  112. package/docs/CompanyApi.md +6 -6
  113. package/docs/Event.md +3 -3
  114. package/docs/ExportApi.md +1 -1
  115. package/docs/HealthApi.md +1 -1
  116. package/docs/LogApi.md +2 -2
  117. package/docs/Receive.md +12 -12
  118. package/docs/ReceiveApi.md +7 -7
  119. package/docs/Send.md +15 -13
  120. package/docs/SendApi.md +16 -13
  121. package/docs/SendReduced.md +2 -0
  122. package/docs/Status.md +4 -0
  123. package/docs/StatusApi.md +1 -1
  124. package/docs/Update.md +3 -3
  125. package/docs/UpdateApi.md +2 -2
  126. package/docs/WebHook.md +7 -5
  127. package/docs/WebHookHistory.md +6 -4
  128. package/docs/WebhookApi.md +7 -7
  129. package/index.ts +1 -1
  130. package/package.json +1 -1
  131. package/src/api/company-api.ts +25 -1
  132. package/src/api/export-api.ts +5 -1
  133. package/src/api/health-api.ts +5 -1
  134. package/src/api/log-api.ts +9 -1
  135. package/src/api/receive-api.ts +32 -16
  136. package/src/api/send-api.ts +71 -14
  137. package/src/api/status-api.ts +5 -1
  138. package/src/api/update-api.ts +9 -1
  139. package/src/api/webhook-api.ts +29 -1
  140. package/src/models/company.ts +3 -3
  141. package/src/models/document-data.ts +1 -1
  142. package/src/models/event.ts +2 -2
  143. package/src/models/model-error.ts +1 -1
  144. package/src/models/problem-details.ts +1 -1
  145. package/src/models/receive.ts +5 -5
  146. package/src/models/send-reduced.ts +20 -1
  147. package/src/models/send.ts +22 -5
  148. package/src/models/status.ts +9 -1
  149. package/src/models/update.ts +2 -2
  150. package/src/models/web-hook-history.ts +7 -3
  151. package/src/models/web-hook.ts +8 -4
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,7 +15,7 @@ import type { DocumentData } from './document-data';
15
15
  */
16
16
  export interface Receive {
17
17
  /**
18
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
18
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
19
19
  */
20
20
  'id'?: number;
21
21
  /**
@@ -27,11 +27,11 @@ export interface Receive {
27
27
  */
28
28
  'version'?: number;
29
29
  /**
30
- * User id.
30
+ * User id. It is set automatically based on the authenticated user.
31
31
  */
32
32
  'user_id'?: number;
33
33
  /**
34
- * Company id. On send, this is the sender and must be set in advance. On receive, it will be automatically set based on the recipient\'s VAT number. If a matching company is not found, the invoice will be rejected until the company is created.
34
+ * Company id. It is set automatically based on the VAT number extracted from the invoice payload (the sender for `send`, the recipient for `receive`).
35
35
  */
36
36
  'company_id'?: number;
37
37
  /**
@@ -47,7 +47,7 @@ export interface Receive {
47
47
  */
48
48
  'identifier'?: string | null;
49
49
  /**
50
- * Xml file name.
50
+ * Xml file name. If not provided on send, it will be auto-generated.
51
51
  */
52
52
  'file_name'?: string | null;
53
53
  /**
@@ -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.6.1
7
+ * The version of the OpenAPI document: 1.12.0
8
8
  * Contact: info@invoicetronic.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,4 +36,20 @@ export interface SendReduced {
36
36
  * When the invoice was sent to SDI.
37
37
  */
38
38
  'date_sent'?: string | null;
39
+ /**
40
+ * Current SDI state of the invoice. Reflects the most recent update received from SDI.
41
+ */
42
+ 'latest_state'?: SendReducedLatestStateEnum | null;
39
43
  }
44
+ export declare const SendReducedLatestStateEnum: {
45
+ readonly Inviato: "Inviato";
46
+ readonly Consegnato: "Consegnato";
47
+ readonly NonConsegnato: "NonConsegnato";
48
+ readonly Scartato: "Scartato";
49
+ readonly AccettatoDalDestinatario: "AccettatoDalDestinatario";
50
+ readonly RifiutatoDalDestinatario: "RifiutatoDalDestinatario";
51
+ readonly ImpossibilitaDiRecapito: "ImpossibilitaDiRecapito";
52
+ readonly DecorrenzaTermini: "DecorrenzaTermini";
53
+ readonly AttestazioneTrasmissioneFattura: "AttestazioneTrasmissioneFattura";
54
+ };
55
+ export type SendReducedLatestStateEnum = typeof SendReducedLatestStateEnum[keyof typeof SendReducedLatestStateEnum];
@@ -4,11 +4,21 @@
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.6.1
7
+ * The version of the OpenAPI document: 1.12.0
8
8
  * Contact: info@invoicetronic.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export {};
14
+ export const SendReducedLatestStateEnum = {
15
+ Inviato: 'Inviato',
16
+ Consegnato: 'Consegnato',
17
+ NonConsegnato: 'NonConsegnato',
18
+ Scartato: 'Scartato',
19
+ AccettatoDalDestinatario: 'AccettatoDalDestinatario',
20
+ RifiutatoDalDestinatario: 'RifiutatoDalDestinatario',
21
+ ImpossibilitaDiRecapito: 'ImpossibilitaDiRecapito',
22
+ DecorrenzaTermini: 'DecorrenzaTermini',
23
+ AttestazioneTrasmissioneFattura: 'AttestazioneTrasmissioneFattura'
24
+ };
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,7 +16,7 @@ import type { DocumentData } from './document-data';
16
16
  */
17
17
  export interface Send {
18
18
  /**
19
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
19
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
20
20
  */
21
21
  'id'?: number;
22
22
  /**
@@ -28,11 +28,11 @@ export interface Send {
28
28
  */
29
29
  'version'?: number;
30
30
  /**
31
- * User id.
31
+ * User id. It is set automatically based on the authenticated user.
32
32
  */
33
33
  'user_id'?: number;
34
34
  /**
35
- * Company id. On send, this is the sender and must be set in advance. On receive, it will be automatically set based on the recipient\'s VAT number. If a matching company is not found, the invoice will be rejected until the company is created.
35
+ * Company id. It is set automatically based on the VAT number extracted from the invoice payload (the sender for `send`, the recipient for `receive`).
36
36
  */
37
37
  'company_id'?: number;
38
38
  /**
@@ -48,7 +48,7 @@ export interface Send {
48
48
  */
49
49
  'identifier'?: string | null;
50
50
  /**
51
- * Xml file name.
51
+ * Xml file name. If not provided on send, it will be auto-generated.
52
52
  */
53
53
  'file_name'?: string | null;
54
54
  /**
@@ -85,6 +85,10 @@ export interface Send {
85
85
  'meta_data'?: {
86
86
  [key: string]: string;
87
87
  } | null;
88
+ /**
89
+ * Current SDI state of the invoice. Reflects the most recent update received from SDI. Null when no update has been received yet.
90
+ */
91
+ 'latest_state'?: SendLatestStateEnum | null;
88
92
  'company'?: Company;
89
93
  }
90
94
  export declare const SendEncodingEnum: {
@@ -92,3 +96,15 @@ export declare const SendEncodingEnum: {
92
96
  readonly Base64: "Base64";
93
97
  };
94
98
  export type SendEncodingEnum = typeof SendEncodingEnum[keyof typeof SendEncodingEnum];
99
+ export declare const SendLatestStateEnum: {
100
+ readonly Inviato: "Inviato";
101
+ readonly Consegnato: "Consegnato";
102
+ readonly NonConsegnato: "NonConsegnato";
103
+ readonly Scartato: "Scartato";
104
+ readonly AccettatoDalDestinatario: "AccettatoDalDestinatario";
105
+ readonly RifiutatoDalDestinatario: "RifiutatoDalDestinatario";
106
+ readonly ImpossibilitaDiRecapito: "ImpossibilitaDiRecapito";
107
+ readonly DecorrenzaTermini: "DecorrenzaTermini";
108
+ readonly AttestazioneTrasmissioneFattura: "AttestazioneTrasmissioneFattura";
109
+ };
110
+ export type SendLatestStateEnum = typeof SendLatestStateEnum[keyof typeof SendLatestStateEnum];
@@ -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.6.1
7
+ * The version of the OpenAPI document: 1.12.0
8
8
  * Contact: info@invoicetronic.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,3 +15,14 @@ export const SendEncodingEnum = {
15
15
  Xml: 'Xml',
16
16
  Base64: 'Base64'
17
17
  };
18
+ export const SendLatestStateEnum = {
19
+ Inviato: 'Inviato',
20
+ Consegnato: 'Consegnato',
21
+ NonConsegnato: 'NonConsegnato',
22
+ Scartato: 'Scartato',
23
+ AccettatoDalDestinatario: 'AccettatoDalDestinatario',
24
+ RifiutatoDalDestinatario: 'RifiutatoDalDestinatario',
25
+ ImpossibilitaDiRecapito: 'ImpossibilitaDiRecapito',
26
+ DecorrenzaTermini: 'DecorrenzaTermini',
27
+ AttestazioneTrasmissioneFattura: 'AttestazioneTrasmissioneFattura'
28
+ };
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,4 +21,12 @@ export interface Status {
21
21
  * Signatures left.
22
22
  */
23
23
  'signature_left'?: number;
24
+ /**
25
+ * Whether the current API key has an active Desk seat.
26
+ */
27
+ 'has_active_seat'?: boolean;
28
+ /**
29
+ * Whether the current API key is a sub-key (restricted key).
30
+ */
31
+ 'is_sub_key'?: boolean;
24
32
  }
@@ -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.6.1
7
+ * The version of the OpenAPI document: 1.12.0
8
8
  * Contact: info@invoicetronic.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,7 +15,7 @@ import type { SendReduced } from './send-reduced';
15
15
  */
16
16
  export interface Update {
17
17
  /**
18
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
18
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
19
19
  */
20
20
  'id'?: number;
21
21
  /**
@@ -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.6.1
7
+ * The version of the OpenAPI document: 1.12.0
8
8
  * Contact: info@invoicetronic.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,7 +14,7 @@
14
14
  */
15
15
  export interface WebHookHistory {
16
16
  /**
17
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
17
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
18
18
  */
19
19
  'id'?: number;
20
20
  /**
@@ -38,9 +38,13 @@ export interface WebHookHistory {
38
38
  */
39
39
  'event'?: string | null;
40
40
  /**
41
- * Status code.
41
+ * HTTP status code returned by the webhook endpoint. A value of 0 means the request could not be completed due to a network error (e.g., DNS resolution failure, connection refused, or timeout). This typically indicates that the endpoint URL is misconfigured or no longer exists.
42
42
  */
43
43
  'status_code'?: number;
44
+ /**
45
+ * Error description, if any. Null when the delivery is successful (2xx). Contains the exception message for network errors (status code 0) or the response body for non-2xx HTTP responses.
46
+ */
47
+ 'error'?: string | null;
44
48
  /**
45
49
  * Date and time of the request.
46
50
  */
@@ -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.6.1
7
+ * The version of the OpenAPI document: 1.12.0
8
8
  * Contact: info@invoicetronic.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,7 +14,7 @@
14
14
  */
15
15
  export interface WebHook {
16
16
  /**
17
- * Unique identifier. Leave it at 0 for new records as it will be set automatically.
17
+ * Unique identifier. For POST requests, leave it at `0` the server will assign one automatically. For PUT requests, set it to the id of the record you want to update.
18
18
  */
19
19
  'id'?: number;
20
20
  /**
@@ -26,11 +26,11 @@ export interface WebHook {
26
26
  */
27
27
  'version'?: number;
28
28
  /**
29
- * User id.
29
+ * User id. It is set automatically based on the authenticated user.
30
30
  */
31
31
  'user_id'?: number;
32
32
  /**
33
- * Company id.
33
+ * Optional company id. If set, the webhook is restricted to events for that company; if omitted, it fires for all companies on the account.
34
34
  */
35
35
  'company_id'?: number | null;
36
36
  /**
@@ -53,4 +53,8 @@ export interface WebHook {
53
53
  * List of events that trigger the webhook. See Invoicetronic.SupportedEvents.Available for a list of valid event names.
54
54
  */
55
55
  'events'?: Array<string> | null;
56
+ /**
57
+ * Timestamp of the last failure notification email sent for this webhook. Set by the notifier service; reset to null on successful delivery.
58
+ */
59
+ 'failure_notified_at'?: string | null;
56
60
  }
@@ -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.6.1
7
+ * The version of the OpenAPI document: 1.12.0
8
8
  * Contact: info@invoicetronic.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * 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/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * 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/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -58,6 +58,9 @@ const CompanyApiAxiosParamCreator = 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
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
61
64
  if (page !== undefined) {
62
65
  localVarQueryParameter['page'] = page;
63
66
  }
@@ -101,6 +104,9 @@ const CompanyApiAxiosParamCreator = function (configuration) {
101
104
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
102
105
  const localVarHeaderParameter = {};
103
106
  const localVarQueryParameter = {};
107
+ // authentication Basic required
108
+ // http basic authentication required
109
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
104
110
  if (force !== undefined) {
105
111
  localVarQueryParameter['force'] = force;
106
112
  }
@@ -134,6 +140,9 @@ const CompanyApiAxiosParamCreator = function (configuration) {
134
140
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
135
141
  const localVarHeaderParameter = {};
136
142
  const localVarQueryParameter = {};
143
+ // authentication Basic required
144
+ // http basic authentication required
145
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
137
146
  localVarHeaderParameter['Accept'] = 'application/json';
138
147
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
139
148
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -163,6 +172,9 @@ const CompanyApiAxiosParamCreator = function (configuration) {
163
172
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
164
173
  const localVarHeaderParameter = {};
165
174
  const localVarQueryParameter = {};
175
+ // authentication Basic required
176
+ // http basic authentication required
177
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
166
178
  localVarHeaderParameter['Content-Type'] = 'application/json';
167
179
  localVarHeaderParameter['Accept'] = 'application/json';
168
180
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -194,6 +206,9 @@ const CompanyApiAxiosParamCreator = function (configuration) {
194
206
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
195
207
  const localVarHeaderParameter = {};
196
208
  const localVarQueryParameter = {};
209
+ // authentication Basic required
210
+ // http basic authentication required
211
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
197
212
  localVarHeaderParameter['Content-Type'] = 'application/json';
198
213
  localVarHeaderParameter['Accept'] = 'application/json';
199
214
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -226,6 +241,9 @@ const CompanyApiAxiosParamCreator = function (configuration) {
226
241
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
227
242
  const localVarHeaderParameter = {};
228
243
  const localVarQueryParameter = {};
244
+ // authentication Basic required
245
+ // http basic authentication required
246
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
229
247
  localVarHeaderParameter['Accept'] = 'application/json';
230
248
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
231
249
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * 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/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -61,6 +61,9 @@ const ExportApiAxiosParamCreator = function (configuration) {
61
61
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
62
62
  const localVarHeaderParameter = {};
63
63
  const localVarQueryParameter = {};
64
+ // authentication Basic required
65
+ // http basic authentication required
66
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
64
67
  if (type !== undefined) {
65
68
  localVarQueryParameter['type'] = type;
66
69
  }
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * 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/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -54,6 +54,9 @@ const HealthApiAxiosParamCreator = function (configuration) {
54
54
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
55
55
  const localVarHeaderParameter = {};
56
56
  const localVarQueryParameter = {};
57
+ // authentication Basic required
58
+ // http basic authentication required
59
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
57
60
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
58
61
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
59
62
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.12.0
6
6
  * Contact: info@invoicetronic.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Invoicetronic API
6
6
  * 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/
7
7
  *
8
- * The version of the OpenAPI document: 1.6.1
8
+ * The version of the OpenAPI document: 1.12.0
9
9
  * Contact: info@invoicetronic.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -69,6 +69,9 @@ const LogApiAxiosParamCreator = function (configuration) {
69
69
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
70
70
  const localVarHeaderParameter = {};
71
71
  const localVarQueryParameter = {};
72
+ // authentication Basic required
73
+ // http basic authentication required
74
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
72
75
  if (companyId !== undefined) {
73
76
  localVarQueryParameter['company_id'] = companyId;
74
77
  }
@@ -152,6 +155,9 @@ const LogApiAxiosParamCreator = function (configuration) {
152
155
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
153
156
  const localVarHeaderParameter = {};
154
157
  const localVarQueryParameter = {};
158
+ // authentication Basic required
159
+ // http basic authentication required
160
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
155
161
  localVarHeaderParameter['Accept'] = 'application/json';
156
162
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
157
163
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};