UNPKG

@ombori/epc-ean

Version:

EPC Tag Data Standard encoding and decoding library, written in javascript

40 lines (39 loc) 1.32 kB
export class Sgtin198 extends Epc { clone(): Sgtin198; getType(): string; fromTagURI(uri: any): Sgtin198; toTagURI(): string; toIdURI(): string; toBarcode(): string; getTotalBits(): number; getHeader(): number; getPartition(): number; setPartition(value: any): Sgtin198; getGtin(): string; setGtin(gtin: any): Sgtin198; getCompanyPrefix(): number; setCompanyPrefix(value: any): Sgtin198; getItemReference(): number; setItemReference(value: any): Sgtin198; getSerial(): string; /** * All values permitted by GS1 General Specifications (up to 20 alphanumeric characters) * @param value */ setSerial(value: any): Sgtin198; } export namespace Sgtin198 { export const EPC_HEADER: number; export const TOTAL_BITS: number; export const PARTITION_OFFSET: number; export const PARTITION_END: number; export const SERIAL_OFFSET: number; import SERIAL_END = TOTAL_BITS; export { SERIAL_END }; export const MAX_SERIAL_LEN: number; export const CHAR_BITS: number; export const TAG_URI: string; export function TAG_URI_TEMPLATE(filter: any, company: any, item: any, serial: any): string; export function PID_URI_TEMPLATE(company: any, item: any, serial: any): string; } import { Epc } from '../epc';