Skip to content

AIDC Toolkit / GS1 / IdentifierDescriptor

Interface: IdentifierDescriptor ​

Defined in: src/identifier-descriptor.ts:8

Identifier descriptor. Instantiations of this type are used to parameterize validators and creators.

Extended by ​

Properties ​

identifierType ​

readonly identifierType: IdentifierType

Defined in: src/identifier-descriptor.ts:12

Identifier type. Per the GS1 General Specifications, the identifier type determines the remaining properties.


prefixType ​

readonly prefixType: PrefixType

Defined in: src/identifier-descriptor.ts:18

Prefix type supported by the identifier type. For all identifier types except the GTIN, this is a GS1 Company Prefix. For the GTIN, the prefix type determines the length.


length ​

readonly length: number

Defined in: src/identifier-descriptor.ts:24

Length. For numeric identifier types, the length is fixed; for non-numeric identifier types, the length is the maximum.


referenceCharacterSet ​

readonly referenceCharacterSet: ContentCharacterSet

Defined in: src/identifier-descriptor.ts:29

Reference character set.