fiskalizacija2 0.5.1 → 0.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/README.md +4 -2
- package/dist/_tsup-dts-rollup.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,8 +61,10 @@ Moguće generiranje zahtjeva koristeći pomoćne metode:
|
|
|
61
61
|
|
|
62
62
|
Objekti koji zadovoljavaju sučelja `IERacun` odnosno `IRacun` mogu se generirati iz UBL dokumenata `Invoice` ili `CreditNote`:
|
|
63
63
|
|
|
64
|
-
- `getERacunFromUbl(
|
|
65
|
-
- `getRacunFromUbl(
|
|
64
|
+
- `getERacunFromUbl(doc: string | Buffer | XmlDocument | XmlElement): IERacun`
|
|
65
|
+
- `getRacunFromUbl(doc: string | Buffer | XmlDocument | XmlElement): IRacun`
|
|
66
|
+
|
|
67
|
+
Funkcije prihvaćaju XML kao string, Buffer, ili već parsirane `XmlDocument`/`XmlElement` objekte iz `libxml2-wasm` biblioteke. Automatski prepoznaju i obrađuju StandardBusinessDocument (SBD) omot oko UBL dokumenta.
|
|
66
68
|
|
|
67
69
|
## Primjeri
|
|
68
70
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XmlDocument } from 'libxml2-wasm';
|
|
2
|
-
import
|
|
2
|
+
import { XmlElement } from 'libxml2-wasm';
|
|
3
3
|
|
|
4
4
|
export declare class ArtiklIdentifikatorKlasifikacija implements ArtiklIdentifikatorKlasifikacijaSerializable {
|
|
5
5
|
private readonly _prefix;
|
|
@@ -336,7 +336,7 @@ export declare function getElementContent(parentEl: XmlElement, tag: string, ns:
|
|
|
336
336
|
|
|
337
337
|
export declare function getElementContentNumber(parentEl: XmlElement, tag: string, ns: Record<string, string>, options?: ExtractionOptions): number;
|
|
338
338
|
|
|
339
|
-
declare function getERacunFromUbl(doc: string | Buffer | XmlDocument): IERacun;
|
|
339
|
+
declare function getERacunFromUbl(doc: string | Buffer | XmlDocument | XmlElement): IERacun;
|
|
340
340
|
export { getERacunFromUbl }
|
|
341
341
|
export { getERacunFromUbl as getERacunFromUbl_alias_1 }
|
|
342
342
|
|
|
@@ -364,7 +364,7 @@ export declare function getOptionalElementContent(parentEl: XmlElement, tag: str
|
|
|
364
364
|
|
|
365
365
|
export declare function getOptionalElementContentNumber(parentEl: XmlElement, tag: string, ns: Record<string, string>, options?: ExtractionOptions): number | undefined;
|
|
366
366
|
|
|
367
|
-
declare function getRacunFromUbl(doc: string | Buffer | XmlDocument): IRacun;
|
|
367
|
+
declare function getRacunFromUbl(doc: string | Buffer | XmlDocument | XmlElement): IRacun;
|
|
368
368
|
export { getRacunFromUbl }
|
|
369
369
|
export { getRacunFromUbl as getRacunFromUbl_alias_1 }
|
|
370
370
|
|