@spaceinvoices/js-sdk 18.14.0 → 18.15.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/dist/generated/e-invoicing/e-invoicing.d.cts +1 -1
- package/dist/generated/e-invoicing/e-invoicing.d.ts +1 -1
- package/dist/generated/model/eInvoicingDeliveryRoute.d.cts +17 -0
- package/dist/generated/model/eInvoicingDeliveryRoute.d.ts +17 -0
- package/dist/generated/model/eInvoicingSubmission.d.cts +3 -0
- package/dist/generated/model/eInvoicingSubmission.d.ts +3 -0
- package/dist/generated/model/eInvoicingSubmissionDetail.d.cts +3 -0
- package/dist/generated/model/eInvoicingSubmissionDetail.d.ts +3 -0
- package/dist/generated/model/index.d.cts +1 -0
- package/dist/generated/model/index.d.ts +1 -0
- package/dist/generated-zod/e-invoicing/e-invoicing.d.cts +4 -1
- package/dist/generated-zod/e-invoicing/e-invoicing.d.ts +4 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -797,7 +797,7 @@ export type searchEInvoicingCustomerResponse = (searchEInvoicingCustomerResponse
|
|
|
797
797
|
export declare const getSearchEInvoicingCustomerUrl: () => string;
|
|
798
798
|
export declare const searchEInvoicingCustomer: (eInvoicingCustomerSearchRequest: EInvoicingCustomerSearchRequest, options?: RequestInit) => Promise<searchEInvoicingCustomerResponse>;
|
|
799
799
|
/**
|
|
800
|
-
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address.
|
|
800
|
+
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address. Slovenian senders invoicing a Slovenian customer with a valid Slovenian tax number may omit the Peppol address (or give only the VAT-derived 9949 address): candidates are tried in order — the explicit address, the customer's tax number under scheme 9949 with and without the SI prefix (for example 9949:SI12345678, then 9949:12345678), UJP (known budget users only), then the bizBox gateway (9949:bizbox) — and the first registered recipient supporting the document type is used. UJP and bizBox route to the recipient by its Slovenian tax number, which the customer must therefore have. The chosen route is returned as delivery_route.
|
|
801
801
|
* @summary Send document
|
|
802
802
|
*/
|
|
803
803
|
export type sendEInvoicingDocumentResponse201 = {
|
|
@@ -797,7 +797,7 @@ export type searchEInvoicingCustomerResponse = (searchEInvoicingCustomerResponse
|
|
|
797
797
|
export declare const getSearchEInvoicingCustomerUrl: () => string;
|
|
798
798
|
export declare const searchEInvoicingCustomer: (eInvoicingCustomerSearchRequest: EInvoicingCustomerSearchRequest, options?: RequestInit) => Promise<searchEInvoicingCustomerResponse>;
|
|
799
799
|
/**
|
|
800
|
-
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address.
|
|
800
|
+
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address. Slovenian senders invoicing a Slovenian customer with a valid Slovenian tax number may omit the Peppol address (or give only the VAT-derived 9949 address): candidates are tried in order — the explicit address, the customer's tax number under scheme 9949 with and without the SI prefix (for example 9949:SI12345678, then 9949:12345678), UJP (known budget users only), then the bizBox gateway (9949:bizbox) — and the first registered recipient supporting the document type is used. UJP and bizBox route to the recipient by its Slovenian tax number, which the customer must therefore have. The chosen route is returned as delivery_route.
|
|
801
801
|
* @summary Send document
|
|
802
802
|
*/
|
|
803
803
|
export type sendEInvoicingDocumentResponse201 = {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Space Invoices API
|
|
5
|
+
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Peppol delivery route: `direct` — the recipient's own Peppol registration; `ujp` — UJP, the single Peppol access point for Slovenian public budget users; `bizbox` — the bizBox gateway, which forwards to Slovenian recipients by their tax number. `null` for non-Peppol submissions.
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
export type EInvoicingDeliveryRoute = typeof EInvoicingDeliveryRoute[keyof typeof EInvoicingDeliveryRoute] | null;
|
|
13
|
+
export declare const EInvoicingDeliveryRoute: {
|
|
14
|
+
readonly direct: "direct";
|
|
15
|
+
readonly ujp: "ujp";
|
|
16
|
+
readonly bizbox: "bizbox";
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Space Invoices API
|
|
5
|
+
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Peppol delivery route: `direct` — the recipient's own Peppol registration; `ujp` — UJP, the single Peppol access point for Slovenian public budget users; `bizbox` — the bizBox gateway, which forwards to Slovenian recipients by their tax number. `null` for non-Peppol submissions.
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
export type EInvoicingDeliveryRoute = typeof EInvoicingDeliveryRoute[keyof typeof EInvoicingDeliveryRoute] | null;
|
|
13
|
+
export declare const EInvoicingDeliveryRoute: {
|
|
14
|
+
readonly direct: "direct";
|
|
15
|
+
readonly ujp: "ujp";
|
|
16
|
+
readonly bizbox: "bizbox";
|
|
17
|
+
};
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { EInvoicingDeliveryRoute } from './eInvoicingDeliveryRoute.cjs';
|
|
8
9
|
import type { EInvoicingSubmissionMetadata } from './eInvoicingSubmissionMetadata.cjs';
|
|
9
10
|
/**
|
|
10
11
|
* E-invoice submission status
|
|
@@ -78,5 +79,7 @@ export interface EInvoicingSubmission {
|
|
|
78
79
|
delivered_at?: string | null;
|
|
79
80
|
created_at: string;
|
|
80
81
|
updated_at: string;
|
|
82
|
+
/** Delivery network, e.g. peppol or france_e_invoicing. */
|
|
81
83
|
network?: string;
|
|
84
|
+
delivery_route?: EInvoicingDeliveryRoute | null;
|
|
82
85
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { EInvoicingDeliveryRoute } from './eInvoicingDeliveryRoute.js';
|
|
8
9
|
import type { EInvoicingSubmissionMetadata } from './eInvoicingSubmissionMetadata.js';
|
|
9
10
|
/**
|
|
10
11
|
* E-invoice submission status
|
|
@@ -78,5 +79,7 @@ export interface EInvoicingSubmission {
|
|
|
78
79
|
delivered_at?: string | null;
|
|
79
80
|
created_at: string;
|
|
80
81
|
updated_at: string;
|
|
82
|
+
/** Delivery network, e.g. peppol or france_e_invoicing. */
|
|
81
83
|
network?: string;
|
|
84
|
+
delivery_route?: EInvoicingDeliveryRoute | null;
|
|
82
85
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { EInvoicingDeliveryRoute } from './eInvoicingDeliveryRoute.cjs';
|
|
8
9
|
import type { EInvoicingSubmissionDetailMetadata } from './eInvoicingSubmissionDetailMetadata.cjs';
|
|
9
10
|
/**
|
|
10
11
|
* E-invoice submission detail including generated UBL XML
|
|
@@ -82,5 +83,7 @@ export interface EInvoicingSubmissionDetail {
|
|
|
82
83
|
delivered_at?: string | null;
|
|
83
84
|
created_at: string;
|
|
84
85
|
updated_at: string;
|
|
86
|
+
/** Delivery network, e.g. peppol or france_e_invoicing. */
|
|
85
87
|
network?: string;
|
|
88
|
+
delivery_route?: EInvoicingDeliveryRoute | null;
|
|
86
89
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { EInvoicingDeliveryRoute } from './eInvoicingDeliveryRoute.js';
|
|
8
9
|
import type { EInvoicingSubmissionDetailMetadata } from './eInvoicingSubmissionDetailMetadata.js';
|
|
9
10
|
/**
|
|
10
11
|
* E-invoice submission detail including generated UBL XML
|
|
@@ -82,5 +83,7 @@ export interface EInvoicingSubmissionDetail {
|
|
|
82
83
|
delivered_at?: string | null;
|
|
83
84
|
created_at: string;
|
|
84
85
|
updated_at: string;
|
|
86
|
+
/** Delivery network, e.g. peppol or france_e_invoicing. */
|
|
85
87
|
network?: string;
|
|
88
|
+
delivery_route?: EInvoicingDeliveryRoute | null;
|
|
86
89
|
}
|
|
@@ -533,6 +533,7 @@ export * from './eetFiscalizationResponseStatus.cjs';
|
|
|
533
533
|
export * from './eInvoiceDeliveryAddress.cjs';
|
|
534
534
|
export * from './eInvoicingCustomerSearchRequest.cjs';
|
|
535
535
|
export * from './eInvoicingCustomerSearchResult.cjs';
|
|
536
|
+
export * from './eInvoicingDeliveryRoute.cjs';
|
|
536
537
|
export * from './eInvoicingEnrollment.cjs';
|
|
537
538
|
export * from './eInvoicingEnrollmentAuthorizationResponse.cjs';
|
|
538
539
|
export * from './eInvoicingEnrollmentChannel.cjs';
|
|
@@ -533,6 +533,7 @@ export * from './eetFiscalizationResponseStatus.js';
|
|
|
533
533
|
export * from './eInvoiceDeliveryAddress.js';
|
|
534
534
|
export * from './eInvoicingCustomerSearchRequest.js';
|
|
535
535
|
export * from './eInvoicingCustomerSearchResult.js';
|
|
536
|
+
export * from './eInvoicingDeliveryRoute.js';
|
|
536
537
|
export * from './eInvoicingEnrollment.js';
|
|
537
538
|
export * from './eInvoicingEnrollmentAuthorizationResponse.js';
|
|
538
539
|
export * from './eInvoicingEnrollmentChannel.js';
|
|
@@ -708,7 +708,7 @@ export declare const SearchEInvoicingCustomerResponse: zod.ZodObject<{
|
|
|
708
708
|
}, zod.z.core.$strip>>;
|
|
709
709
|
}, zod.z.core.$strip>;
|
|
710
710
|
/**
|
|
711
|
-
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address.
|
|
711
|
+
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address. Slovenian senders invoicing a Slovenian customer with a valid Slovenian tax number may omit the Peppol address (or give only the VAT-derived 9949 address): candidates are tried in order — the explicit address, the customer's tax number under scheme 9949 with and without the SI prefix (for example 9949:SI12345678, then 9949:12345678), UJP (known budget users only), then the bizBox gateway (9949:bizbox) — and the first registered recipient supporting the document type is used. UJP and bizBox route to the recipient by its Slovenian tax number, which the customer must therefore have. The chosen route is returned as delivery_route.
|
|
712
712
|
* @summary Send document
|
|
713
713
|
*/
|
|
714
714
|
export declare const SendEInvoicingDocumentParams: zod.ZodObject<{
|
|
@@ -841,6 +841,7 @@ export declare const ListEInvoicingSubmissionsResponse: zod.ZodObject<{
|
|
|
841
841
|
created_at: zod.z.ZodISODateTime;
|
|
842
842
|
updated_at: zod.z.ZodISODateTime;
|
|
843
843
|
network: zod.ZodOptional<zod.ZodString>;
|
|
844
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
844
845
|
}, zod.z.core.$strip>>;
|
|
845
846
|
pagination: zod.ZodObject<{
|
|
846
847
|
total: zod.ZodNumber;
|
|
@@ -903,6 +904,7 @@ export declare const GetEInvoicingSubmissionByIdResponse: zod.ZodObject<{
|
|
|
903
904
|
created_at: zod.z.ZodISODateTime;
|
|
904
905
|
updated_at: zod.z.ZodISODateTime;
|
|
905
906
|
network: zod.ZodOptional<zod.ZodString>;
|
|
907
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
906
908
|
}, zod.z.core.$strip>;
|
|
907
909
|
/**
|
|
908
910
|
* Retry a failed or rejected e-invoice submission.
|
|
@@ -956,4 +958,5 @@ export declare const RetryEInvoicingSubmissionByIdResponse: zod.ZodObject<{
|
|
|
956
958
|
created_at: zod.z.ZodISODateTime;
|
|
957
959
|
updated_at: zod.z.ZodISODateTime;
|
|
958
960
|
network: zod.ZodOptional<zod.ZodString>;
|
|
961
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
959
962
|
}, zod.z.core.$strip>;
|
|
@@ -708,7 +708,7 @@ export declare const SearchEInvoicingCustomerResponse: zod.ZodObject<{
|
|
|
708
708
|
}, zod.z.core.$strip>>;
|
|
709
709
|
}, zod.z.core.$strip>;
|
|
710
710
|
/**
|
|
711
|
-
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address.
|
|
711
|
+
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address. Slovenian senders invoicing a Slovenian customer with a valid Slovenian tax number may omit the Peppol address (or give only the VAT-derived 9949 address): candidates are tried in order — the explicit address, the customer's tax number under scheme 9949 with and without the SI prefix (for example 9949:SI12345678, then 9949:12345678), UJP (known budget users only), then the bizBox gateway (9949:bizbox) — and the first registered recipient supporting the document type is used. UJP and bizBox route to the recipient by its Slovenian tax number, which the customer must therefore have. The chosen route is returned as delivery_route.
|
|
712
712
|
* @summary Send document
|
|
713
713
|
*/
|
|
714
714
|
export declare const SendEInvoicingDocumentParams: zod.ZodObject<{
|
|
@@ -841,6 +841,7 @@ export declare const ListEInvoicingSubmissionsResponse: zod.ZodObject<{
|
|
|
841
841
|
created_at: zod.z.ZodISODateTime;
|
|
842
842
|
updated_at: zod.z.ZodISODateTime;
|
|
843
843
|
network: zod.ZodOptional<zod.ZodString>;
|
|
844
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
844
845
|
}, zod.z.core.$strip>>;
|
|
845
846
|
pagination: zod.ZodObject<{
|
|
846
847
|
total: zod.ZodNumber;
|
|
@@ -903,6 +904,7 @@ export declare const GetEInvoicingSubmissionByIdResponse: zod.ZodObject<{
|
|
|
903
904
|
created_at: zod.z.ZodISODateTime;
|
|
904
905
|
updated_at: zod.z.ZodISODateTime;
|
|
905
906
|
network: zod.ZodOptional<zod.ZodString>;
|
|
907
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
906
908
|
}, zod.z.core.$strip>;
|
|
907
909
|
/**
|
|
908
910
|
* Retry a failed or rejected e-invoice submission.
|
|
@@ -956,4 +958,5 @@ export declare const RetryEInvoicingSubmissionByIdResponse: zod.ZodObject<{
|
|
|
956
958
|
created_at: zod.z.ZodISODateTime;
|
|
957
959
|
updated_at: zod.z.ZodISODateTime;
|
|
958
960
|
network: zod.ZodOptional<zod.ZodString>;
|
|
961
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
959
962
|
}, zod.z.core.$strip>;
|