From b78269910016094ba9c214ecf1529b0b041691be Mon Sep 17 00:00:00 2001
From: Jan Loewe <jan.loewe@ptb.de>
Date: Tue, 14 Feb 2023 14:07:48 +0100
Subject: [PATCH] feat(attributes): add refType and refId to further elements

add refType to equipmentClassType, byteDataType, hashType, respPersonType and itemType
add refId to byteDataType
---
 src/DCC.ts | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/DCC.ts b/src/DCC.ts
index 714fcd5..7bec22a 100644
--- a/src/DCC.ts
+++ b/src/DCC.ts
@@ -157,7 +157,7 @@ export class MeasurementResultListType extends DCCXMLElement {
 /** The byteDataType defines a type which allows to add binary encoded files to the measurement result
  * section. */
 export class ByteDataType extends DCCXMLElement {
-  _attr: IIdAttributes;
+  _attr: IIdAndRefIdAndRefTypeAttributes;
 
   name?: TextType;
   description?: RichContentType;
@@ -436,7 +436,7 @@ export class MeasuringEquipmentListType extends DCCXMLElement {
 
 /** Clear name(s) of the item(s) and identifier(s). */
 export class EquipmentClassType extends DCCXMLElement {
-  _attr: IIdAttributes;
+  _attr: IIdAndRefTypeAttributes;
 
   reference: DCCXMLElement;
   classID: DCCXMLElement;
@@ -485,7 +485,7 @@ export class MeasuringEquipmentType extends DCCXMLElement {
 }
 
 export class HashType extends DCCXMLElement {
-  _attr: IIdAttributes;
+  _attr: IIdAndRefTypeAttributes;
 
   referral: TextType;
   referralID: DCCXMLElement;
@@ -700,7 +700,7 @@ export class PrimitiveQuantityType extends DCCXMLElement {
 
 /** A item that is calibrated in this DCC. */
 export class ItemType extends DCCXMLElement {
-  _attr: IIdAttributes;
+  _attr: IIdAndRefTypeAttributes;
 
   name: TextType;
   equipmentClass?: EquipmentClassType[];
@@ -752,7 +752,7 @@ export class IdentificationType extends DCCXMLElement {
 
 /** A person responsible for a DCC. */
 export class RespPersonType extends DCCXMLElement {
-  _attr: IIdAttributes;
+  _attr: IIdAndRefTypeAttributes;
 
   person: ContactNotStrictType;
   description?: RichContentType;
-- 
GitLab