@idscan/idvc2 3.11.0 → 3.12.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 +9 -0
- package/dist/idvc.js +1 -1
- package/dist/idvc.js.gzip +0 -0
- package/dist/types/idvc.d.ts +7 -0
- package/dist/types/integrations/splitTrackString.d.ts +14 -0
- package/package.json +1 -1
package/dist/idvc.js.gzip
CHANGED
|
Binary file
|
package/dist/types/idvc.d.ts
CHANGED
|
@@ -3,7 +3,14 @@ import type { SupportedLanguage } from './environment/langs';
|
|
|
3
3
|
import type { IDocumentTypeConfig } from './modules/validator';
|
|
4
4
|
export { prepareRequestDataForDiveApi, } from './integrations/prepareRequestDataForDiveApi';
|
|
5
5
|
export type { IPrepareRequestDataForDiveApiParams } from './integrations/prepareRequestDataForDiveApi';
|
|
6
|
+
export { splitTrackString } from './integrations/splitTrackString';
|
|
7
|
+
export type { ITrackStringParts } from './integrations/splitTrackString';
|
|
6
8
|
export default class VideoCapturing {
|
|
9
|
+
/**
|
|
10
|
+
* Splits the captured track string (`<data>.<barcodeParams>`) into its parts.
|
|
11
|
+
* Available on the class for integrations that load IDVC from the CDN.
|
|
12
|
+
*/
|
|
13
|
+
static splitTrackString: (trackString: string) => import("./integrations/splitTrackString").ITrackStringParts;
|
|
7
14
|
constructor(config: IConfig);
|
|
8
15
|
get version(): string;
|
|
9
16
|
/**
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ITrackStringParts {
|
|
2
|
+
data: string;
|
|
3
|
+
barcodeParams: string | null;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Splits the captured track string (`<data>.<barcodeParams>`) into its parts,
|
|
7
|
+
* e.g. for the `trackString` object of Dive API v5.
|
|
8
|
+
*
|
|
9
|
+
* @param trackString - Track string as IDVC returns it in the step data
|
|
10
|
+
*
|
|
11
|
+
* @returns The track string data and the barcode parameters
|
|
12
|
+
* (`barcodeParams` is null when the track string has no parameters)
|
|
13
|
+
*/
|
|
14
|
+
export declare const splitTrackString: (trackString: string) => ITrackStringParts;
|