@ombori/epc-ean
Version:
EPC Tag Data Standard encoding and decoding library, written in javascript
41 lines (40 loc) • 1.35 kB
TypeScript
export class Grai170 extends Epc {
clone(): Grai170;
getType(): string;
fromTagURI(uri: any): Grai170;
toTagURI(): string;
toIdURI(): string;
toBarcode(): string;
getTotalBits(): number;
getHeader(): number;
getPartition(): number;
setPartition(value: any): Grai170;
getGrai(): string;
setGrai(grai: any): Grai170;
getCompanyPrefix(): number;
setCompanyPrefix(value: any): Grai170;
getAssetType(): number;
setAssetType(value: any): Grai170;
getSerial(): string;
/**
* All values permitted by GS1 General Specifications (up to 16 alphanumeric characters)
* @param value
*/
setSerial(value: any): Grai170;
}
export namespace Grai170 {
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 SERIAL_BITS: number;
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, asset: any, serial: any): string;
export function PID_URI_TEMPLATE(company: any, asset: any, serial: any): string;
}
import { Epc } from '../epc';