@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/README.md +18 -4
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/resources/fiscal.ts +15 -0
- package/src/types/invoices.ts +0 -2
package/package.json
CHANGED
package/src/resources/fiscal.ts
CHANGED
|
@@ -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
|
}
|
package/src/types/invoices.ts
CHANGED
|
@@ -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 */
|