@invoicetronic/ts-sdk 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +2 -2
  3. package/api.ts +2 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +2 -1
  8. package/dist/api.js +2 -1
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +2 -1
  16. package/dist/esm/api.js +2 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/src/api/company-api.d.ts +16 -11
  26. package/dist/esm/src/api/company-api.js +20 -31
  27. package/dist/esm/src/api/export-api.d.ts +11 -17
  28. package/dist/esm/src/api/export-api.js +6 -14
  29. package/dist/esm/src/api/health-api.d.ts +74 -0
  30. package/dist/esm/src/api/health-api.js +117 -0
  31. package/dist/esm/src/api/log-api.d.ts +11 -6
  32. package/dist/esm/src/api/log-api.js +16 -15
  33. package/dist/esm/src/api/receive-api.d.ts +16 -11
  34. package/dist/esm/src/api/receive-api.js +20 -25
  35. package/dist/esm/src/api/send-api.d.ts +56 -52
  36. package/dist/esm/src/api/send-api.js +76 -105
  37. package/dist/esm/src/api/status-api.d.ts +1 -1
  38. package/dist/esm/src/api/status-api.js +2 -5
  39. package/dist/esm/src/api/update-api.d.ts +11 -11
  40. package/dist/esm/src/api/update-api.js +10 -16
  41. package/dist/esm/src/api/webhook-api.d.ts +1 -1
  42. package/dist/esm/src/api/webhook-api.js +2 -23
  43. package/dist/esm/src/models/company.d.ts +1 -1
  44. package/dist/esm/src/models/company.js +1 -1
  45. package/dist/esm/src/models/document-data.d.ts +15 -0
  46. package/dist/esm/src/models/document-data.js +14 -0
  47. package/dist/esm/src/models/event.d.ts +5 -1
  48. package/dist/esm/src/models/event.js +1 -1
  49. package/dist/esm/src/models/index.d.ts +4 -0
  50. package/dist/esm/src/models/index.js +4 -0
  51. package/dist/esm/src/models/model-error.d.ts +28 -0
  52. package/dist/esm/src/models/model-error.js +14 -0
  53. package/dist/esm/src/models/problem-details.d.ts +19 -0
  54. package/dist/esm/src/models/problem-details.js +14 -0
  55. package/dist/esm/src/models/receive.d.ts +6 -2
  56. package/dist/esm/src/models/receive.js +1 -1
  57. package/dist/esm/src/models/send-reduced.d.ts +39 -0
  58. package/dist/esm/src/models/send-reduced.js +14 -0
  59. package/dist/esm/src/models/send.d.ts +6 -2
  60. package/dist/esm/src/models/send.js +1 -1
  61. package/dist/esm/src/models/status.d.ts +1 -1
  62. package/dist/esm/src/models/status.js +1 -1
  63. package/dist/esm/src/models/update.d.ts +1 -1
  64. package/dist/esm/src/models/update.js +1 -1
  65. package/dist/esm/src/models/web-hook-history.d.ts +1 -1
  66. package/dist/esm/src/models/web-hook-history.js +1 -1
  67. package/dist/esm/src/models/web-hook.d.ts +2 -2
  68. package/dist/esm/src/models/web-hook.js +1 -1
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/src/api/company-api.d.ts +16 -11
  72. package/dist/src/api/company-api.js +19 -30
  73. package/dist/src/api/export-api.d.ts +11 -17
  74. package/dist/src/api/export-api.js +6 -14
  75. package/dist/src/api/health-api.d.ts +74 -0
  76. package/dist/src/api/health-api.js +124 -0
  77. package/dist/src/api/log-api.d.ts +11 -6
  78. package/dist/src/api/log-api.js +15 -14
  79. package/dist/src/api/receive-api.d.ts +16 -11
  80. package/dist/src/api/receive-api.js +19 -24
  81. package/dist/src/api/send-api.d.ts +56 -52
  82. package/dist/src/api/send-api.js +75 -104
  83. package/dist/src/api/status-api.d.ts +1 -1
  84. package/dist/src/api/status-api.js +1 -4
  85. package/dist/src/api/update-api.d.ts +11 -11
  86. package/dist/src/api/update-api.js +9 -15
  87. package/dist/src/api/webhook-api.d.ts +1 -1
  88. package/dist/src/api/webhook-api.js +1 -22
  89. package/dist/src/models/company.d.ts +1 -1
  90. package/dist/src/models/company.js +1 -1
  91. package/dist/src/models/document-data.d.ts +15 -0
  92. package/dist/src/models/document-data.js +15 -0
  93. package/dist/src/models/event.d.ts +5 -1
  94. package/dist/src/models/event.js +1 -1
  95. package/dist/src/models/index.d.ts +4 -0
  96. package/dist/src/models/index.js +4 -0
  97. package/dist/src/models/model-error.d.ts +28 -0
  98. package/dist/src/models/model-error.js +15 -0
  99. package/dist/src/models/problem-details.d.ts +19 -0
  100. package/dist/src/models/problem-details.js +15 -0
  101. package/dist/src/models/receive.d.ts +6 -2
  102. package/dist/src/models/receive.js +1 -1
  103. package/dist/src/models/send-reduced.d.ts +39 -0
  104. package/dist/src/models/send-reduced.js +15 -0
  105. package/dist/src/models/send.d.ts +6 -2
  106. package/dist/src/models/send.js +1 -1
  107. package/dist/src/models/status.d.ts +1 -1
  108. package/dist/src/models/status.js +1 -1
  109. package/dist/src/models/update.d.ts +1 -1
  110. package/dist/src/models/update.js +1 -1
  111. package/dist/src/models/web-hook-history.d.ts +1 -1
  112. package/dist/src/models/web-hook-history.js +1 -1
  113. package/dist/src/models/web-hook.d.ts +2 -2
  114. package/dist/src/models/web-hook.js +1 -1
  115. package/docs/CompanyApi.md +11 -15
  116. package/docs/DocumentData.md +22 -0
  117. package/docs/Error.md +25 -0
  118. package/docs/Event.md +2 -0
  119. package/docs/ExportApi.md +3 -3
  120. package/docs/HealthApi.md +54 -0
  121. package/docs/LogApi.md +6 -4
  122. package/docs/ProblemDetails.md +28 -0
  123. package/docs/Receive.md +3 -1
  124. package/docs/ReceiveApi.md +9 -10
  125. package/docs/Send.md +3 -1
  126. package/docs/SendApi.md +37 -48
  127. package/docs/SendReduced.md +29 -0
  128. package/docs/StatusApi.md +1 -1
  129. package/docs/UpdateApi.md +4 -5
  130. package/docs/WebHook.md +1 -1
  131. package/docs/WebhookApi.md +7 -14
  132. package/index.ts +1 -1
  133. package/package.json +1 -1
  134. package/src/api/company-api.ts +23 -40
  135. package/src/api/export-api.ts +11 -21
  136. package/src/api/health-api.ts +131 -0
  137. package/src/api/log-api.ts +18 -19
  138. package/src/api/receive-api.ts +23 -32
  139. package/src/api/send-api.ts +87 -130
  140. package/src/api/status-api.ts +1 -5
  141. package/src/api/update-api.ts +11 -21
  142. package/src/api/webhook-api.ts +1 -31
  143. package/src/models/company.ts +1 -1
  144. package/src/models/document-data.ts +21 -0
  145. package/src/models/event.ts +5 -1
  146. package/src/models/index.ts +4 -0
  147. package/src/models/model-error.ts +34 -0
  148. package/src/models/problem-details.ts +26 -0
  149. package/src/models/receive.ts +6 -2
  150. package/src/models/send-reduced.ts +45 -0
  151. package/src/models/send.ts +6 -2
  152. package/src/models/status.ts +1 -1
  153. package/src/models/update.ts +1 -1
  154. package/src/models/web-hook-history.ts +1 -1
  155. package/src/models/web-hook.ts +2 -2
@@ -4,7 +4,7 @@
4
4
  * Invoicetronic API
5
5
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
6
6
  *
7
- * The version of the OpenAPI document: 1
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: info@invoicetronic.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,8 +26,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
26
26
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../../base';
27
27
  // @ts-ignore
28
28
  import type { Event } from '../../src/models';
29
- // @ts-ignore
30
- import type { ProblemHttpResult } from '../../src/models';
31
29
  /**
32
30
  * LogApi - axios parameter creator
33
31
  */
@@ -50,10 +48,11 @@ export const LogApiAxiosParamCreator = function (configuration?: Configuration)
50
48
  * @param {boolean} [success]
51
49
  * @param {string} [dateTimeFrom] Date and time of the event
52
50
  * @param {string} [dateTimeTo] Date and time of the event
51
+ * @param {string} [userAgent]
53
52
  * @param {*} [options] Override http request option.
54
53
  * @throws {RequiredError}
55
54
  */
56
- logGet: async (companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
55
+ logGet: async (companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57
56
  const localVarPath = `/log`;
58
57
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
59
58
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -66,10 +65,6 @@ export const LogApiAxiosParamCreator = function (configuration?: Configuration)
66
65
  const localVarHeaderParameter = {} as any;
67
66
  const localVarQueryParameter = {} as any;
68
67
 
69
- // authentication Basic required
70
- // http basic authentication required
71
- setBasicAuthToObject(localVarRequestOptions, configuration)
72
-
73
68
  if (companyId !== undefined) {
74
69
  localVarQueryParameter['company_id'] = companyId;
75
70
  }
@@ -134,6 +129,10 @@ export const LogApiAxiosParamCreator = function (configuration?: Configuration)
134
129
  dateTimeTo;
135
130
  }
136
131
 
132
+ if (userAgent !== undefined) {
133
+ localVarQueryParameter['user_agent'] = userAgent;
134
+ }
135
+
137
136
  localVarHeaderParameter['Accept'] = 'application/json';
138
137
 
139
138
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -168,10 +167,6 @@ export const LogApiAxiosParamCreator = function (configuration?: Configuration)
168
167
  const localVarHeaderParameter = {} as any;
169
168
  const localVarQueryParameter = {} as any;
170
169
 
171
- // authentication Basic required
172
- // http basic authentication required
173
- setBasicAuthToObject(localVarRequestOptions, configuration)
174
-
175
170
  localVarHeaderParameter['Accept'] = 'application/json';
176
171
 
177
172
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -209,11 +204,12 @@ export const LogApiFp = function(configuration?: Configuration) {
209
204
  * @param {boolean} [success]
210
205
  * @param {string} [dateTimeFrom] Date and time of the event
211
206
  * @param {string} [dateTimeTo] Date and time of the event
207
+ * @param {string} [userAgent]
212
208
  * @param {*} [options] Override http request option.
213
209
  * @throws {RequiredError}
214
210
  */
215
- async logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Event>>> {
216
- const localVarAxiosArgs = await localVarAxiosParamCreator.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options);
211
+ async logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Event>>> {
212
+ const localVarAxiosArgs = await localVarAxiosParamCreator.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options);
217
213
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
218
214
  const localVarOperationServerBasePath = operationServerMap['LogApi.logGet']?.[localVarOperationServerIndex]?.url;
219
215
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -257,11 +253,12 @@ export const LogApiFactory = function (configuration?: Configuration, basePath?:
257
253
  * @param {boolean} [success]
258
254
  * @param {string} [dateTimeFrom] Date and time of the event
259
255
  * @param {string} [dateTimeTo] Date and time of the event
256
+ * @param {string} [userAgent]
260
257
  * @param {*} [options] Override http request option.
261
258
  * @throws {RequiredError}
262
259
  */
263
- logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>> {
264
- return localVarFp.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options).then((request) => request(axios, basePath));
260
+ logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>> {
261
+ return localVarFp.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options).then((request) => request(axios, basePath));
265
262
  },
266
263
  /**
267
264
  * Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
@@ -297,10 +294,11 @@ export interface LogApiInterface {
297
294
  * @param {boolean} [success]
298
295
  * @param {string} [dateTimeFrom] Date and time of the event
299
296
  * @param {string} [dateTimeTo] Date and time of the event
297
+ * @param {string} [userAgent]
300
298
  * @param {*} [options] Override http request option.
301
299
  * @throws {RequiredError}
302
300
  */
303
- logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
301
+ logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
304
302
 
305
303
  /**
306
304
  * Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
@@ -334,11 +332,12 @@ export class LogApi extends BaseAPI implements LogApiInterface {
334
332
  * @param {boolean} [success]
335
333
  * @param {string} [dateTimeFrom] Date and time of the event
336
334
  * @param {string} [dateTimeTo] Date and time of the event
335
+ * @param {string} [userAgent]
337
336
  * @param {*} [options] Override http request option.
338
337
  * @throws {RequiredError}
339
338
  */
340
- public logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig) {
341
- return LogApiFp(this.configuration).logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options).then((request) => request(this.axios, this.basePath));
339
+ public logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig) {
340
+ return LogApiFp(this.configuration).logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options).then((request) => request(this.axios, this.basePath));
342
341
  }
343
342
 
344
343
  /**
@@ -4,7 +4,7 @@
4
4
  * Invoicetronic API
5
5
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
6
6
  *
7
- * The version of the OpenAPI document: 1
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: info@invoicetronic.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,8 +27,6 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
27
27
  // @ts-ignore
28
28
  import type { ProblemDetails } from '../../src/models';
29
29
  // @ts-ignore
30
- import type { ProblemHttpResult } from '../../src/models';
31
- // @ts-ignore
32
30
  import type { Receive } from '../../src/models';
33
31
  /**
34
32
  * ReceiveApi - axios parameter creator
@@ -36,7 +34,7 @@ import type { Receive } from '../../src/models';
36
34
  export const ReceiveApiAxiosParamCreator = function (configuration?: Configuration) {
37
35
  return {
38
36
  /**
39
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
37
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
40
38
  * @summary List incoming invoices
41
39
  * @param {number} [companyId] Company id
42
40
  * @param {string} [identifier] SDI identifier.
@@ -55,10 +53,11 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
55
53
  * @param {number} [page] Page number.
56
54
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
57
55
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
56
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
58
57
  * @param {*} [options] Override http request option.
59
58
  * @throws {RequiredError}
60
59
  */
61
- receiveGet: async (companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
60
+ receiveGet: async (companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
62
61
  const localVarPath = `/receive`;
63
62
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
64
63
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -71,10 +70,6 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
71
70
  const localVarHeaderParameter = {} as any;
72
71
  const localVarQueryParameter = {} as any;
73
72
 
74
- // authentication Basic required
75
- // http basic authentication required
76
- setBasicAuthToObject(localVarRequestOptions, configuration)
77
-
78
73
  if (companyId !== undefined) {
79
74
  localVarQueryParameter['company_id'] = companyId;
80
75
  }
@@ -155,6 +150,10 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
155
150
  localVarQueryParameter['sort'] = sort;
156
151
  }
157
152
 
153
+ if (q !== undefined) {
154
+ localVarQueryParameter['q'] = q;
155
+ }
156
+
158
157
  localVarHeaderParameter['Accept'] = 'application/json';
159
158
 
160
159
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -189,10 +188,6 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
189
188
  const localVarHeaderParameter = {} as any;
190
189
  const localVarQueryParameter = {} as any;
191
190
 
192
- // authentication Basic required
193
- // http basic authentication required
194
- setBasicAuthToObject(localVarRequestOptions, configuration)
195
-
196
191
  localVarHeaderParameter['Accept'] = 'application/json';
197
192
 
198
193
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -228,10 +223,6 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
228
223
  const localVarHeaderParameter = {} as any;
229
224
  const localVarQueryParameter = {} as any;
230
225
 
231
- // authentication Basic required
232
- // http basic authentication required
233
- setBasicAuthToObject(localVarRequestOptions, configuration)
234
-
235
226
  if (includePayload !== undefined) {
236
227
  localVarQueryParameter['include_payload'] = includePayload;
237
228
  }
@@ -270,10 +261,6 @@ export const ReceiveApiAxiosParamCreator = function (configuration?: Configurati
270
261
  const localVarHeaderParameter = {} as any;
271
262
  const localVarQueryParameter = {} as any;
272
263
 
273
- // authentication Basic required
274
- // http basic authentication required
275
- setBasicAuthToObject(localVarRequestOptions, configuration)
276
-
277
264
  localVarHeaderParameter['Accept'] = 'application/problem+json';
278
265
 
279
266
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -295,7 +282,7 @@ export const ReceiveApiFp = function(configuration?: Configuration) {
295
282
  const localVarAxiosParamCreator = ReceiveApiAxiosParamCreator(configuration)
296
283
  return {
297
284
  /**
298
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
285
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
299
286
  * @summary List incoming invoices
300
287
  * @param {number} [companyId] Company id
301
288
  * @param {string} [identifier] SDI identifier.
@@ -314,11 +301,12 @@ export const ReceiveApiFp = function(configuration?: Configuration) {
314
301
  * @param {number} [page] Page number.
315
302
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
316
303
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
304
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
317
305
  * @param {*} [options] Override http request option.
318
306
  * @throws {RequiredError}
319
307
  */
320
- async receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Receive>>> {
321
- const localVarAxiosArgs = await localVarAxiosParamCreator.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options);
308
+ async receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Receive>>> {
309
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options);
322
310
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
323
311
  const localVarOperationServerBasePath = operationServerMap['ReceiveApi.receiveGet']?.[localVarOperationServerIndex]?.url;
324
312
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -373,7 +361,7 @@ export const ReceiveApiFactory = function (configuration?: Configuration, basePa
373
361
  const localVarFp = ReceiveApiFp(configuration)
374
362
  return {
375
363
  /**
376
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
364
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
377
365
  * @summary List incoming invoices
378
366
  * @param {number} [companyId] Company id
379
367
  * @param {string} [identifier] SDI identifier.
@@ -392,11 +380,12 @@ export const ReceiveApiFactory = function (configuration?: Configuration, basePa
392
380
  * @param {number} [page] Page number.
393
381
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
394
382
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
383
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
395
384
  * @param {*} [options] Override http request option.
396
385
  * @throws {RequiredError}
397
386
  */
398
- receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>> {
399
- return localVarFp.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(axios, basePath));
387
+ receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>> {
388
+ return localVarFp.receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(axios, basePath));
400
389
  },
401
390
  /**
402
391
  * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
@@ -437,7 +426,7 @@ export const ReceiveApiFactory = function (configuration?: Configuration, basePa
437
426
  */
438
427
  export interface ReceiveApiInterface {
439
428
  /**
440
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
429
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
441
430
  * @summary List incoming invoices
442
431
  * @param {number} [companyId] Company id
443
432
  * @param {string} [identifier] SDI identifier.
@@ -456,10 +445,11 @@ export interface ReceiveApiInterface {
456
445
  * @param {number} [page] Page number.
457
446
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
458
447
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
448
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
459
449
  * @param {*} [options] Override http request option.
460
450
  * @throws {RequiredError}
461
451
  */
462
- receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>>;
452
+ receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Receive>>;
463
453
 
464
454
  /**
465
455
  * Permanently delete a receive invoice by its internal id. This action cannot be undone. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
@@ -496,7 +486,7 @@ export interface ReceiveApiInterface {
496
486
  */
497
487
  export class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
498
488
  /**
499
- * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, and document number. Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
489
+ * Retrieve a paginated list of receive invoices. Results can be filtered by various criteria such as company, date ranges, sender, document number, and free-text search (`q`). Returns invoice metadata; set `include_payload` to true to include the full invoice content. Invoices are marked as read (`is_read` = true) only when `include_payload` is true. **Receive** invoices are inbound purchase invoices received from suppliers through Italy\'s SDI (Sistema di Interscambio). Preserved for two years in the live environment and 24 hours in the [Sandbox](https://invoicetronic.com/en/docs/sandbox/).
500
490
  * @summary List incoming invoices
501
491
  * @param {number} [companyId] Company id
502
492
  * @param {string} [identifier] SDI identifier.
@@ -515,11 +505,12 @@ export class ReceiveApi extends BaseAPI implements ReceiveApiInterface {
515
505
  * @param {number} [page] Page number.
516
506
  * @param {number} [pageSize] Items per page. Cannot be greater than 200.
517
507
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
508
+ * @param {string} [q] Full-text search across committente, prestatore, identifier, and file name.
518
509
  * @param {*} [options] Override http request option.
519
510
  * @throws {RequiredError}
520
511
  */
521
- public receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig) {
522
- return ReceiveApiFp(this.configuration).receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
512
+ public receiveGet(companyId?: number, identifier?: string, unread?: boolean, committente?: string, prestatore?: string, fileName?: string, lastUpdateFrom?: string, lastUpdateTo?: string, dateSentFrom?: string, dateSentTo?: string, documentDateFrom?: string, documentDateTo?: string, documentNumber?: string, includePayload?: boolean, page?: number, pageSize?: number, sort?: string, q?: string, options?: RawAxiosRequestConfig) {
513
+ return ReceiveApiFp(this.configuration).receiveGet(companyId, identifier, unread, committente, prestatore, fileName, lastUpdateFrom, lastUpdateTo, dateSentFrom, dateSentTo, documentDateFrom, documentDateTo, documentNumber, includePayload, page, pageSize, sort, q, options).then((request) => request(this.axios, this.basePath));
523
514
  }
524
515
 
525
516
  /**