@scell/sdk 1.8.0 → 1.9.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scell/sdk",
3
- "version": "1.8.0",
3
+ "version": "1.9.2",
4
4
  "description": "Official TypeScript SDK for Scell.io - Electronic invoicing (Factur-X) and signatures (eIDAS) API",
5
5
  "author": "Scell.io <contact@scell.io>",
6
6
  "license": "MIT",
@@ -125,4 +125,19 @@ export class FiscalResource {
125
125
  async forensicExport(options: FiscalForensicExportOptions, requestOptions?: RequestOptions): Promise<SingleResponse<Record<string, unknown>>> {
126
126
  return this.http.get<SingleResponse<Record<string, unknown>>>('/tenant/fiscal/forensic-export', options as unknown as Record<string, string | number | boolean | undefined>, requestOptions);
127
127
  }
128
+
129
+ /** Download the ISCA measures register as PDF */
130
+ async downloadMeasuresRegister(): Promise<Blob | ArrayBuffer> {
131
+ return this.http.get('tenant/fiscal/isca/measures-register/download');
132
+ }
133
+
134
+ /** Download the ISCA technical dossier as PDF */
135
+ async downloadTechnicalDossier(): Promise<Blob | ArrayBuffer> {
136
+ return this.http.get('tenant/fiscal/isca/technical-dossier/download');
137
+ }
138
+
139
+ /** Download the ISCA self-attestation as PDF */
140
+ async downloadSelfAttestation(): Promise<Blob | ArrayBuffer> {
141
+ return this.http.get('tenant/fiscal/isca/self-attestation/download');
142
+ }
128
143
  }
@@ -120,8 +120,6 @@ export interface InvoiceLineInput {
120
120
  export interface CreateInvoiceInput {
121
121
  /** Your external reference ID */
122
122
  external_id?: string | undefined;
123
- /** Invoice number (required) */
124
- invoice_number: string;
125
123
  /** Direction: outgoing (sale) or incoming (purchase) */
126
124
  direction: InvoiceDirection;
127
125
  /** Output format for electronic invoice */