@invoicetronic/ts-sdk 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +2 -2
- package/api.ts +2 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +2 -1
- package/dist/esm/api.js +2 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/src/api/company-api.d.ts +16 -11
- package/dist/esm/src/api/company-api.js +20 -31
- package/dist/esm/src/api/export-api.d.ts +11 -17
- package/dist/esm/src/api/export-api.js +6 -14
- package/dist/esm/src/api/health-api.d.ts +74 -0
- package/dist/esm/src/api/health-api.js +117 -0
- package/dist/esm/src/api/log-api.d.ts +11 -6
- package/dist/esm/src/api/log-api.js +16 -15
- package/dist/esm/src/api/receive-api.d.ts +16 -11
- package/dist/esm/src/api/receive-api.js +20 -25
- package/dist/esm/src/api/send-api.d.ts +56 -52
- package/dist/esm/src/api/send-api.js +76 -105
- package/dist/esm/src/api/status-api.d.ts +1 -1
- package/dist/esm/src/api/status-api.js +2 -5
- package/dist/esm/src/api/update-api.d.ts +11 -11
- package/dist/esm/src/api/update-api.js +10 -16
- package/dist/esm/src/api/webhook-api.d.ts +1 -1
- package/dist/esm/src/api/webhook-api.js +2 -23
- package/dist/esm/src/models/company.d.ts +1 -1
- package/dist/esm/src/models/company.js +1 -1
- package/dist/esm/src/models/document-data.d.ts +15 -0
- package/dist/esm/src/models/document-data.js +14 -0
- package/dist/esm/src/models/event.d.ts +5 -1
- package/dist/esm/src/models/event.js +1 -1
- package/dist/esm/src/models/index.d.ts +4 -0
- package/dist/esm/src/models/index.js +4 -0
- package/dist/esm/src/models/model-error.d.ts +28 -0
- package/dist/esm/src/models/model-error.js +14 -0
- package/dist/esm/src/models/problem-details.d.ts +19 -0
- package/dist/esm/src/models/problem-details.js +14 -0
- package/dist/esm/src/models/receive.d.ts +6 -2
- package/dist/esm/src/models/receive.js +1 -1
- package/dist/esm/src/models/send-reduced.d.ts +39 -0
- package/dist/esm/src/models/send-reduced.js +14 -0
- package/dist/esm/src/models/send.d.ts +6 -2
- package/dist/esm/src/models/send.js +1 -1
- package/dist/esm/src/models/status.d.ts +1 -1
- package/dist/esm/src/models/status.js +1 -1
- package/dist/esm/src/models/update.d.ts +1 -1
- package/dist/esm/src/models/update.js +1 -1
- package/dist/esm/src/models/web-hook-history.d.ts +1 -1
- package/dist/esm/src/models/web-hook-history.js +1 -1
- package/dist/esm/src/models/web-hook.d.ts +2 -2
- package/dist/esm/src/models/web-hook.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/src/api/company-api.d.ts +16 -11
- package/dist/src/api/company-api.js +19 -30
- package/dist/src/api/export-api.d.ts +11 -17
- package/dist/src/api/export-api.js +6 -14
- package/dist/src/api/health-api.d.ts +74 -0
- package/dist/src/api/health-api.js +124 -0
- package/dist/src/api/log-api.d.ts +11 -6
- package/dist/src/api/log-api.js +15 -14
- package/dist/src/api/receive-api.d.ts +16 -11
- package/dist/src/api/receive-api.js +19 -24
- package/dist/src/api/send-api.d.ts +56 -52
- package/dist/src/api/send-api.js +75 -104
- package/dist/src/api/status-api.d.ts +1 -1
- package/dist/src/api/status-api.js +1 -4
- package/dist/src/api/update-api.d.ts +11 -11
- package/dist/src/api/update-api.js +9 -15
- package/dist/src/api/webhook-api.d.ts +1 -1
- package/dist/src/api/webhook-api.js +1 -22
- package/dist/src/models/company.d.ts +1 -1
- package/dist/src/models/company.js +1 -1
- package/dist/src/models/document-data.d.ts +15 -0
- package/dist/src/models/document-data.js +15 -0
- package/dist/src/models/event.d.ts +5 -1
- package/dist/src/models/event.js +1 -1
- package/dist/src/models/index.d.ts +4 -0
- package/dist/src/models/index.js +4 -0
- package/dist/src/models/model-error.d.ts +28 -0
- package/dist/src/models/model-error.js +15 -0
- package/dist/src/models/problem-details.d.ts +19 -0
- package/dist/src/models/problem-details.js +15 -0
- package/dist/src/models/receive.d.ts +6 -2
- package/dist/src/models/receive.js +1 -1
- package/dist/src/models/send-reduced.d.ts +39 -0
- package/dist/src/models/send-reduced.js +15 -0
- package/dist/src/models/send.d.ts +6 -2
- package/dist/src/models/send.js +1 -1
- package/dist/src/models/status.d.ts +1 -1
- package/dist/src/models/status.js +1 -1
- package/dist/src/models/update.d.ts +1 -1
- package/dist/src/models/update.js +1 -1
- package/dist/src/models/web-hook-history.d.ts +1 -1
- package/dist/src/models/web-hook-history.js +1 -1
- package/dist/src/models/web-hook.d.ts +2 -2
- package/dist/src/models/web-hook.js +1 -1
- package/docs/CompanyApi.md +11 -15
- package/docs/DocumentData.md +22 -0
- package/docs/Error.md +25 -0
- package/docs/Event.md +2 -0
- package/docs/ExportApi.md +3 -3
- package/docs/HealthApi.md +54 -0
- package/docs/LogApi.md +6 -4
- package/docs/ProblemDetails.md +28 -0
- package/docs/Receive.md +3 -1
- package/docs/ReceiveApi.md +9 -10
- package/docs/Send.md +3 -1
- package/docs/SendApi.md +37 -48
- package/docs/SendReduced.md +29 -0
- package/docs/StatusApi.md +1 -1
- package/docs/UpdateApi.md +4 -5
- package/docs/WebHook.md +1 -1
- package/docs/WebhookApi.md +7 -14
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/api/company-api.ts +23 -40
- package/src/api/export-api.ts +11 -21
- package/src/api/health-api.ts +131 -0
- package/src/api/log-api.ts +18 -19
- package/src/api/receive-api.ts +23 -32
- package/src/api/send-api.ts +87 -130
- package/src/api/status-api.ts +1 -5
- package/src/api/update-api.ts +11 -21
- package/src/api/webhook-api.ts +1 -31
- package/src/models/company.ts +1 -1
- package/src/models/document-data.ts +21 -0
- package/src/models/event.ts +5 -1
- package/src/models/index.ts +4 -0
- package/src/models/model-error.ts +34 -0
- package/src/models/problem-details.ts +26 -0
- package/src/models/receive.ts +6 -2
- package/src/models/send-reduced.ts +45 -0
- package/src/models/send.ts +6 -2
- package/src/models/status.ts +1 -1
- package/src/models/update.ts +1 -1
- package/src/models/web-hook-history.ts +1 -1
- package/src/models/web-hook.ts +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Invoicetronic API
|
|
3
3
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1
|
|
5
|
+
* The version of the OpenAPI document: 1.6.1
|
|
6
6
|
* Contact: info@invoicetronic.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,7 +19,7 @@ export declare const ExportApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
19
19
|
/**
|
|
20
20
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
21
21
|
* @summary Export invoices as a ZIP archive
|
|
22
|
-
* @param {
|
|
22
|
+
* @param {string} [type]
|
|
23
23
|
* @param {number} [companyId] Company id
|
|
24
24
|
* @param {number} [year]
|
|
25
25
|
* @param {number} [month]
|
|
@@ -29,7 +29,7 @@ export declare const ExportApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
29
29
|
* @param {*} [options] Override http request option.
|
|
30
30
|
* @throws {RequiredError}
|
|
31
31
|
*/
|
|
32
|
-
exportGet: (type?:
|
|
32
|
+
exportGet: (type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
35
|
* ExportApi - functional programming interface
|
|
@@ -38,7 +38,7 @@ export declare const ExportApiFp: (configuration?: Configuration) => {
|
|
|
38
38
|
/**
|
|
39
39
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
40
40
|
* @summary Export invoices as a ZIP archive
|
|
41
|
-
* @param {
|
|
41
|
+
* @param {string} [type]
|
|
42
42
|
* @param {number} [companyId] Company id
|
|
43
43
|
* @param {number} [year]
|
|
44
44
|
* @param {number} [month]
|
|
@@ -48,7 +48,7 @@ export declare const ExportApiFp: (configuration?: Configuration) => {
|
|
|
48
48
|
* @param {*} [options] Override http request option.
|
|
49
49
|
* @throws {RequiredError}
|
|
50
50
|
*/
|
|
51
|
-
exportGet(type?:
|
|
51
|
+
exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
54
|
* ExportApi - factory interface
|
|
@@ -57,7 +57,7 @@ export declare const ExportApiFactory: (configuration?: Configuration, basePath?
|
|
|
57
57
|
/**
|
|
58
58
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
59
59
|
* @summary Export invoices as a ZIP archive
|
|
60
|
-
* @param {
|
|
60
|
+
* @param {string} [type]
|
|
61
61
|
* @param {number} [companyId] Company id
|
|
62
62
|
* @param {number} [year]
|
|
63
63
|
* @param {number} [month]
|
|
@@ -67,7 +67,7 @@ export declare const ExportApiFactory: (configuration?: Configuration, basePath?
|
|
|
67
67
|
* @param {*} [options] Override http request option.
|
|
68
68
|
* @throws {RequiredError}
|
|
69
69
|
*/
|
|
70
|
-
exportGet(type?:
|
|
70
|
+
exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
73
|
* ExportApi - interface
|
|
@@ -76,7 +76,7 @@ export interface ExportApiInterface {
|
|
|
76
76
|
/**
|
|
77
77
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
78
78
|
* @summary Export invoices as a ZIP archive
|
|
79
|
-
* @param {
|
|
79
|
+
* @param {string} [type]
|
|
80
80
|
* @param {number} [companyId] Company id
|
|
81
81
|
* @param {number} [year]
|
|
82
82
|
* @param {number} [month]
|
|
@@ -86,7 +86,7 @@ export interface ExportApiInterface {
|
|
|
86
86
|
* @param {*} [options] Override http request option.
|
|
87
87
|
* @throws {RequiredError}
|
|
88
88
|
*/
|
|
89
|
-
exportGet(type?:
|
|
89
|
+
exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* ExportApi - object-oriented interface
|
|
@@ -95,7 +95,7 @@ export declare class ExportApi extends BaseAPI implements ExportApiInterface {
|
|
|
95
95
|
/**
|
|
96
96
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
97
97
|
* @summary Export invoices as a ZIP archive
|
|
98
|
-
* @param {
|
|
98
|
+
* @param {string} [type]
|
|
99
99
|
* @param {number} [companyId] Company id
|
|
100
100
|
* @param {number} [year]
|
|
101
101
|
* @param {number} [month]
|
|
@@ -105,11 +105,5 @@ export declare class ExportApi extends BaseAPI implements ExportApiInterface {
|
|
|
105
105
|
* @param {*} [options] Override http request option.
|
|
106
106
|
* @throws {RequiredError}
|
|
107
107
|
*/
|
|
108
|
-
exportGet(type?:
|
|
108
|
+
exportGet(type?: string, companyId?: number, year?: number, month?: number, quarter?: number, documentDateFrom?: string, documentDateTo?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
109
109
|
}
|
|
110
|
-
export declare const ExportGetTypeEnum: {
|
|
111
|
-
readonly Send: "Send";
|
|
112
|
-
readonly Receive: "Receive";
|
|
113
|
-
readonly Both: "Both";
|
|
114
|
-
};
|
|
115
|
-
export type ExportGetTypeEnum = typeof ExportGetTypeEnum[keyof typeof ExportGetTypeEnum];
|
|
@@ -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
|
|
8
|
+
* The version of the OpenAPI document: 1.6.1
|
|
9
9
|
* Contact: info@invoicetronic.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.ExportApi = exports.ExportApiFactory = exports.ExportApiFp = exports.ExportApiAxiosParamCreator = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// URLSearchParams not necessarily used
|
|
28
28
|
// @ts-ignore
|
|
@@ -40,7 +40,7 @@ const ExportApiAxiosParamCreator = function (configuration) {
|
|
|
40
40
|
/**
|
|
41
41
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
42
42
|
* @summary Export invoices as a ZIP archive
|
|
43
|
-
* @param {
|
|
43
|
+
* @param {string} [type]
|
|
44
44
|
* @param {number} [companyId] Company id
|
|
45
45
|
* @param {number} [year]
|
|
46
46
|
* @param {number} [month]
|
|
@@ -61,9 +61,6 @@ 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);
|
|
67
64
|
if (type !== undefined) {
|
|
68
65
|
localVarQueryParameter['type'] = type;
|
|
69
66
|
}
|
|
@@ -110,7 +107,7 @@ const ExportApiFp = function (configuration) {
|
|
|
110
107
|
/**
|
|
111
108
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
112
109
|
* @summary Export invoices as a ZIP archive
|
|
113
|
-
* @param {
|
|
110
|
+
* @param {string} [type]
|
|
114
111
|
* @param {number} [companyId] Company id
|
|
115
112
|
* @param {number} [year]
|
|
116
113
|
* @param {number} [month]
|
|
@@ -141,7 +138,7 @@ const ExportApiFactory = function (configuration, basePath, axios) {
|
|
|
141
138
|
/**
|
|
142
139
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
143
140
|
* @summary Export invoices as a ZIP archive
|
|
144
|
-
* @param {
|
|
141
|
+
* @param {string} [type]
|
|
145
142
|
* @param {number} [companyId] Company id
|
|
146
143
|
* @param {number} [year]
|
|
147
144
|
* @param {number} [month]
|
|
@@ -164,7 +161,7 @@ class ExportApi extends base_1.BaseAPI {
|
|
|
164
161
|
/**
|
|
165
162
|
* Export invoices as a ZIP archive of FatturaPA XML files, suitable for import into accounting software (TeamSystem, Zucchetti, etc.). **Sent invoices** are only included when they have reached a definitive state (e.g., `Consegnato` for private recipients, `AccettatoDalDestinatario`, `DecorrenzaTermini`, etc.). Invoices still being processed by SDI are excluded. **Received invoices** are always included. Unread invoices are automatically marked as read and counted as operations. ### Period filters You can filter by period using either: - `year` + `month` (e.g., `year=2026&month=3` for March 2026) - `year` + `quarter` (e.g., `year=2026&quarter=1` for Q1 Jan-Mar) - `document_date_from` / `document_date_to` for a custom date range These options are mutually exclusive. The `year` parameter alone is not valid and requires either `month` or `quarter`. ### Response Returns `200` with a ZIP archive, or `204 No Content` if no invoices match the given filters. Files in the archive are organized by company VAT number (`{vat}/send/`, `{vat}/receive/`). ### Rate limiting This endpoint has a dedicated rate limit: only one export request per user can be processed at a time. Concurrent requests will receive a `429 Too Many Requests` response.
|
|
166
163
|
* @summary Export invoices as a ZIP archive
|
|
167
|
-
* @param {
|
|
164
|
+
* @param {string} [type]
|
|
168
165
|
* @param {number} [companyId] Company id
|
|
169
166
|
* @param {number} [year]
|
|
170
167
|
* @param {number} [month]
|
|
@@ -179,8 +176,3 @@ class ExportApi extends base_1.BaseAPI {
|
|
|
179
176
|
}
|
|
180
177
|
}
|
|
181
178
|
exports.ExportApi = ExportApi;
|
|
182
|
-
exports.ExportGetTypeEnum = {
|
|
183
|
-
Send: 'Send',
|
|
184
|
-
Receive: 'Receive',
|
|
185
|
-
Both: 'Both'
|
|
186
|
-
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invoicetronic API
|
|
3
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.6.1
|
|
6
|
+
* Contact: info@invoicetronic.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../../base';
|
|
15
|
+
/**
|
|
16
|
+
* HealthApi - axios parameter creator
|
|
17
|
+
*/
|
|
18
|
+
export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
19
|
+
/**
|
|
20
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
21
|
+
* @summary Health check
|
|
22
|
+
* @param {*} [options] Override http request option.
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
*/
|
|
25
|
+
healthGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* HealthApi - functional programming interface
|
|
29
|
+
*/
|
|
30
|
+
export declare const HealthApiFp: (configuration?: Configuration) => {
|
|
31
|
+
/**
|
|
32
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
33
|
+
* @summary Health check
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
healthGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* HealthApi - factory interface
|
|
41
|
+
*/
|
|
42
|
+
export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
43
|
+
/**
|
|
44
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
45
|
+
* @summary Health check
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
healthGet(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* HealthApi - interface
|
|
53
|
+
*/
|
|
54
|
+
export interface HealthApiInterface {
|
|
55
|
+
/**
|
|
56
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
57
|
+
* @summary Health check
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
healthGet(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* HealthApi - object-oriented interface
|
|
65
|
+
*/
|
|
66
|
+
export declare class HealthApi extends BaseAPI implements HealthApiInterface {
|
|
67
|
+
/**
|
|
68
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
69
|
+
* @summary Health check
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
healthGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Invoicetronic API
|
|
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
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.6.1
|
|
9
|
+
* Contact: info@invoicetronic.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const url_1 = require("url");
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("../../common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("../../base");
|
|
35
|
+
/**
|
|
36
|
+
* HealthApi - axios parameter creator
|
|
37
|
+
*/
|
|
38
|
+
const HealthApiAxiosParamCreator = function (configuration) {
|
|
39
|
+
return {
|
|
40
|
+
/**
|
|
41
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
42
|
+
* @summary Health check
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
healthGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
47
|
+
const localVarPath = `/health`;
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
55
|
+
const localVarHeaderParameter = {};
|
|
56
|
+
const localVarQueryParameter = {};
|
|
57
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
58
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
60
|
+
return {
|
|
61
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
62
|
+
options: localVarRequestOptions,
|
|
63
|
+
};
|
|
64
|
+
}),
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
|
|
68
|
+
/**
|
|
69
|
+
* HealthApi - functional programming interface
|
|
70
|
+
*/
|
|
71
|
+
const HealthApiFp = function (configuration) {
|
|
72
|
+
const localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
|
|
73
|
+
return {
|
|
74
|
+
/**
|
|
75
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
76
|
+
* @summary Health check
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
healthGet(options) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
var _a, _b, _c;
|
|
83
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.healthGet(options);
|
|
84
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
85
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HealthApi.healthGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
86
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
87
|
+
});
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
exports.HealthApiFp = HealthApiFp;
|
|
92
|
+
/**
|
|
93
|
+
* HealthApi - factory interface
|
|
94
|
+
*/
|
|
95
|
+
const HealthApiFactory = function (configuration, basePath, axios) {
|
|
96
|
+
const localVarFp = (0, exports.HealthApiFp)(configuration);
|
|
97
|
+
return {
|
|
98
|
+
/**
|
|
99
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
100
|
+
* @summary Health check
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
healthGet(options) {
|
|
105
|
+
return localVarFp.healthGet(options).then((request) => request(axios, basePath));
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
exports.HealthApiFactory = HealthApiFactory;
|
|
110
|
+
/**
|
|
111
|
+
* HealthApi - object-oriented interface
|
|
112
|
+
*/
|
|
113
|
+
class HealthApi extends base_1.BaseAPI {
|
|
114
|
+
/**
|
|
115
|
+
* Returns the health status of the API and its dependencies. No authentication required. Rate limited to 12 requests per minute.
|
|
116
|
+
* @summary Health check
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
healthGet(options) {
|
|
121
|
+
return (0, exports.HealthApiFp)(this.configuration).healthGet(options).then((request) => request(this.axios, this.basePath));
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.HealthApi = HealthApi;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Invoicetronic API
|
|
3
3
|
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1
|
|
5
|
+
* The version of the OpenAPI document: 1.6.1
|
|
6
6
|
* Contact: info@invoicetronic.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,10 +34,11 @@ export declare const LogApiAxiosParamCreator: (configuration?: Configuration) =>
|
|
|
34
34
|
* @param {boolean} [success]
|
|
35
35
|
* @param {string} [dateTimeFrom] Date and time of the event
|
|
36
36
|
* @param {string} [dateTimeTo] Date and time of the event
|
|
37
|
+
* @param {string} [userAgent]
|
|
37
38
|
* @param {*} [options] Override http request option.
|
|
38
39
|
* @throws {RequiredError}
|
|
39
40
|
*/
|
|
40
|
-
logGet: (companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
|
+
logGet: (companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
42
|
/**
|
|
42
43
|
* Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
|
|
43
44
|
* @summary Get an event by id
|
|
@@ -68,10 +69,11 @@ export declare const LogApiFp: (configuration?: Configuration) => {
|
|
|
68
69
|
* @param {boolean} [success]
|
|
69
70
|
* @param {string} [dateTimeFrom] Date and time of the event
|
|
70
71
|
* @param {string} [dateTimeTo] Date and time of the event
|
|
72
|
+
* @param {string} [userAgent]
|
|
71
73
|
* @param {*} [options] Override http request option.
|
|
72
74
|
* @throws {RequiredError}
|
|
73
75
|
*/
|
|
74
|
-
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Event>>>;
|
|
76
|
+
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Event>>>;
|
|
75
77
|
/**
|
|
76
78
|
* Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
|
|
77
79
|
* @summary Get an event by id
|
|
@@ -102,10 +104,11 @@ export declare const LogApiFactory: (configuration?: Configuration, basePath?: s
|
|
|
102
104
|
* @param {boolean} [success]
|
|
103
105
|
* @param {string} [dateTimeFrom] Date and time of the event
|
|
104
106
|
* @param {string} [dateTimeTo] Date and time of the event
|
|
107
|
+
* @param {string} [userAgent]
|
|
105
108
|
* @param {*} [options] Override http request option.
|
|
106
109
|
* @throws {RequiredError}
|
|
107
110
|
*/
|
|
108
|
-
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
|
|
111
|
+
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
|
|
109
112
|
/**
|
|
110
113
|
* Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
|
|
111
114
|
* @summary Get an event by id
|
|
@@ -136,10 +139,11 @@ export interface LogApiInterface {
|
|
|
136
139
|
* @param {boolean} [success]
|
|
137
140
|
* @param {string} [dateTimeFrom] Date and time of the event
|
|
138
141
|
* @param {string} [dateTimeTo] Date and time of the event
|
|
142
|
+
* @param {string} [userAgent]
|
|
139
143
|
* @param {*} [options] Override http request option.
|
|
140
144
|
* @throws {RequiredError}
|
|
141
145
|
*/
|
|
142
|
-
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
|
|
146
|
+
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
|
|
143
147
|
/**
|
|
144
148
|
* Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
|
|
145
149
|
* @summary Get an event by id
|
|
@@ -170,10 +174,11 @@ export declare class LogApi extends BaseAPI implements LogApiInterface {
|
|
|
170
174
|
* @param {boolean} [success]
|
|
171
175
|
* @param {string} [dateTimeFrom] Date and time of the event
|
|
172
176
|
* @param {string} [dateTimeTo] Date and time of the event
|
|
177
|
+
* @param {string} [userAgent]
|
|
173
178
|
* @param {*} [options] Override http request option.
|
|
174
179
|
* @throws {RequiredError}
|
|
175
180
|
*/
|
|
176
|
-
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Event[], any, {}>>;
|
|
181
|
+
logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, userAgent?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Event[], any, {}>>;
|
|
177
182
|
/**
|
|
178
183
|
* Retrieve a log event by its internal id. **Logs** record every API request. They are preserved for 15 days. You can also view logs in the Events section of the [Dashboard](https://dashboard.invoicetronic.com).
|
|
179
184
|
* @summary Get an event by id
|
package/dist/src/api/log-api.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
|
|
8
|
+
* The version of the OpenAPI document: 1.6.1
|
|
9
9
|
* Contact: info@invoicetronic.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -54,10 +54,11 @@ const LogApiAxiosParamCreator = function (configuration) {
|
|
|
54
54
|
* @param {boolean} [success]
|
|
55
55
|
* @param {string} [dateTimeFrom] Date and time of the event
|
|
56
56
|
* @param {string} [dateTimeTo] Date and time of the event
|
|
57
|
+
* @param {string} [userAgent]
|
|
57
58
|
* @param {*} [options] Override http request option.
|
|
58
59
|
* @throws {RequiredError}
|
|
59
60
|
*/
|
|
60
|
-
logGet: (companyId_1, endpoint_1, method_1, apiVerion_1, statusCode_1, dateCreatedFrom_1, dateCreatedTo_1, page_1, pageSize_1, sort_1, query_1, success_1, dateTimeFrom_1, dateTimeTo_1, ...args_1) => __awaiter(this, [companyId_1, endpoint_1, method_1, apiVerion_1, statusCode_1, dateCreatedFrom_1, dateCreatedTo_1, page_1, pageSize_1, sort_1, query_1, success_1, dateTimeFrom_1, dateTimeTo_1, ...args_1], void 0, function* (companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options = {}) {
|
|
61
|
+
logGet: (companyId_1, endpoint_1, method_1, apiVerion_1, statusCode_1, dateCreatedFrom_1, dateCreatedTo_1, page_1, pageSize_1, sort_1, query_1, success_1, dateTimeFrom_1, dateTimeTo_1, userAgent_1, ...args_1) => __awaiter(this, [companyId_1, endpoint_1, method_1, apiVerion_1, statusCode_1, dateCreatedFrom_1, dateCreatedTo_1, page_1, pageSize_1, sort_1, query_1, success_1, dateTimeFrom_1, dateTimeTo_1, userAgent_1, ...args_1], void 0, function* (companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options = {}) {
|
|
61
62
|
const localVarPath = `/log`;
|
|
62
63
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
63
64
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -68,9 +69,6 @@ const LogApiAxiosParamCreator = function (configuration) {
|
|
|
68
69
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
69
70
|
const localVarHeaderParameter = {};
|
|
70
71
|
const localVarQueryParameter = {};
|
|
71
|
-
// authentication Basic required
|
|
72
|
-
// http basic authentication required
|
|
73
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
74
72
|
if (companyId !== undefined) {
|
|
75
73
|
localVarQueryParameter['company_id'] = companyId;
|
|
76
74
|
}
|
|
@@ -121,6 +119,9 @@ const LogApiAxiosParamCreator = function (configuration) {
|
|
|
121
119
|
dateTimeTo.toISOString() :
|
|
122
120
|
dateTimeTo;
|
|
123
121
|
}
|
|
122
|
+
if (userAgent !== undefined) {
|
|
123
|
+
localVarQueryParameter['user_agent'] = userAgent;
|
|
124
|
+
}
|
|
124
125
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
125
126
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
126
127
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -151,9 +152,6 @@ const LogApiAxiosParamCreator = function (configuration) {
|
|
|
151
152
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
152
153
|
const localVarHeaderParameter = {};
|
|
153
154
|
const localVarQueryParameter = {};
|
|
154
|
-
// authentication Basic required
|
|
155
|
-
// http basic authentication required
|
|
156
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
157
155
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
158
156
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
159
157
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -189,13 +187,14 @@ const LogApiFp = function (configuration) {
|
|
|
189
187
|
* @param {boolean} [success]
|
|
190
188
|
* @param {string} [dateTimeFrom] Date and time of the event
|
|
191
189
|
* @param {string} [dateTimeTo] Date and time of the event
|
|
190
|
+
* @param {string} [userAgent]
|
|
192
191
|
* @param {*} [options] Override http request option.
|
|
193
192
|
* @throws {RequiredError}
|
|
194
193
|
*/
|
|
195
|
-
logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options) {
|
|
194
|
+
logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options) {
|
|
196
195
|
return __awaiter(this, void 0, void 0, function* () {
|
|
197
196
|
var _a, _b, _c;
|
|
198
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options);
|
|
197
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options);
|
|
199
198
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
200
199
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LogApi.logGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
201
200
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -243,11 +242,12 @@ const LogApiFactory = function (configuration, basePath, axios) {
|
|
|
243
242
|
* @param {boolean} [success]
|
|
244
243
|
* @param {string} [dateTimeFrom] Date and time of the event
|
|
245
244
|
* @param {string} [dateTimeTo] Date and time of the event
|
|
245
|
+
* @param {string} [userAgent]
|
|
246
246
|
* @param {*} [options] Override http request option.
|
|
247
247
|
* @throws {RequiredError}
|
|
248
248
|
*/
|
|
249
|
-
logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options) {
|
|
250
|
-
return localVarFp.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options).then((request) => request(axios, basePath));
|
|
249
|
+
logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options) {
|
|
250
|
+
return localVarFp.logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options).then((request) => request(axios, basePath));
|
|
251
251
|
},
|
|
252
252
|
/**
|
|
253
253
|
* 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).
|
|
@@ -283,11 +283,12 @@ class LogApi extends base_1.BaseAPI {
|
|
|
283
283
|
* @param {boolean} [success]
|
|
284
284
|
* @param {string} [dateTimeFrom] Date and time of the event
|
|
285
285
|
* @param {string} [dateTimeTo] Date and time of the event
|
|
286
|
+
* @param {string} [userAgent]
|
|
286
287
|
* @param {*} [options] Override http request option.
|
|
287
288
|
* @throws {RequiredError}
|
|
288
289
|
*/
|
|
289
|
-
logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options) {
|
|
290
|
-
return (0, exports.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));
|
|
290
|
+
logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, userAgent, options) {
|
|
291
|
+
return (0, exports.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));
|
|
291
292
|
}
|
|
292
293
|
/**
|
|
293
294
|
* 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).
|