scandit-react-native-datacapture-parser 8.0.0 → 8.1.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.
@@ -1,20 +0,0 @@
1
- import { DataCaptureComponent } from 'scandit-react-native-datacapture-core';
2
- import { DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
3
- import { ParsedData } from './ParsedData';
4
- import { ParserDataFormat } from './ParserDataFormat';
5
- export declare class Parser extends DefaultSerializeable implements DataCaptureComponent {
6
- private type;
7
- private dataFormat;
8
- private options;
9
- private _id;
10
- get id(): string;
11
- private proxy;
12
- static create(dataFormat: ParserDataFormat): Promise<Parser>;
13
- private constructor();
14
- setOptions(options: {
15
- [key: string]: any;
16
- }): Promise<void>;
17
- parseString(data: string): Promise<ParsedData>;
18
- parseRawData(data: string): Promise<ParsedData>;
19
- dispose(): void;
20
- }
@@ -1,8 +0,0 @@
1
- export declare enum ParserDataFormat {
2
- GS1AI = "gs1ai",
3
- HIBC = "hibc",
4
- SwissQR = "swissqr",
5
- VIN = "vin",
6
- IataBcbp = "iata_bcbp",
7
- Gs1DigitalLink = "gs1_digital_link"
8
- }
@@ -1,11 +0,0 @@
1
- import { ParserIssueAdditionalInfoKey } from './ParserIssueAdditionalInfoKey';
2
- import { ParserIssueCode } from './ParserIssueCode';
3
- export declare class ParserIssue {
4
- private _code;
5
- get code(): ParserIssueCode;
6
- private _message;
7
- get message(): string;
8
- private _additionalInfo;
9
- get additionalInfo(): Record<ParserIssueAdditionalInfoKey, string>;
10
- private static fromJSON;
11
- }
@@ -1,9 +0,0 @@
1
- export declare enum ParserIssueAdditionalInfoKey {
2
- StartingCharacters = "startingCharacters",
3
- Version = "version",
4
- MinimalVersion = "minimalVersion",
5
- ElementName = "elementName",
6
- String = "string",
7
- Length = "length",
8
- Charset = "charset"
9
- }
@@ -1,18 +0,0 @@
1
- export declare enum ParserIssueCode {
2
- None = "none",
3
- Unspecified = "unspecified",
4
- MandatoryEpdMissing = "mandatoryEpdMissing",
5
- InvalidDate = "invalidDate",
6
- StringTooShort = "stringTooShort",
7
- WrongStartingCharacters = "wrongStartingCharacters",
8
- InvalidSeparationBetweenElements = "invalidSeparationBetweenElements",
9
- UnsupportedVersion = "unsupportedVersion",
10
- IncompleteCode = "incompleteCode",
11
- EmptyElementContent = "emptyElementContent",
12
- InvalidElementLength = "invalidElementLength",
13
- TooLongElement = "tooLongElement",
14
- NonEmptyElementContent = "nonEmptyElementContent",
15
- InvalidCharsetInElement = "invalidCharsetInElement",
16
- TooManyAltPmtFields = "tooManyAltPmtFields",
17
- CannotContainSpaces = "cannotContainSpaces"
18
- }
@@ -1,11 +0,0 @@
1
- import { ParsedData } from '../ParsedData';
2
- declare type Parser = any;
3
- export declare class ParserProxy {
4
- private parser;
5
- static forParser(parser: Parser): ParserProxy;
6
- parseString(data: string): Promise<ParsedData>;
7
- parseRawData(data: string): Promise<ParsedData>;
8
- createUpdateNativeInstance(): Promise<void>;
9
- disposeParser(): Promise<void>;
10
- }
11
- export {};
@@ -1,6 +0,0 @@
1
- import { ParsedData } from '../ParsedData';
2
- import { ParsedFieldJSON } from './PrivateParsedField';
3
- export type ParsedDataJSON = [ParsedFieldJSON];
4
- export interface PrivateParsedData {
5
- fromJSON(json: ParsedDataJSON): ParsedData;
6
- }
@@ -1,11 +0,0 @@
1
- import { ParsedField } from '../ParsedField';
2
- import { ParserIssueJSON } from './PrivateParserIssue';
3
- export interface ParsedFieldJSON {
4
- name: string;
5
- parsed: any;
6
- rawString: string;
7
- warnings?: ParserIssueJSON[];
8
- }
9
- export interface PrivateParsedField {
10
- fromJSON(json: ParsedFieldJSON): ParsedField;
11
- }
@@ -1,10 +0,0 @@
1
- import { PrivateDataCaptureComponent } from 'scandit-datacapture-frameworks-core';
2
- import { ParserProxy } from '../native/ParserProxy';
3
- import { ParserDataFormat } from '../ParserDataFormat';
4
- export interface PrivateParser extends PrivateDataCaptureComponent {
5
- dataFormat: ParserDataFormat;
6
- options: {
7
- [key: string]: any;
8
- };
9
- proxy: ParserProxy;
10
- }
@@ -1,11 +0,0 @@
1
- import { ParserIssueCode } from '../ParserIssueCode';
2
- import { ParserIssueAdditionalInfoKey } from '../ParserIssueAdditionalInfoKey';
3
- import { ParserIssue } from '../ParserIssue';
4
- export interface ParserIssueJSON {
5
- code: ParserIssueCode;
6
- message: string;
7
- additionalInfo: Record<ParserIssueAdditionalInfoKey, string>;
8
- }
9
- export interface PrivateParserIssue {
10
- fromJSON(json: ParserIssueJSON): ParserIssue;
11
- }