From b859f6978c813320ca08ee77847d594181d4b508 Mon Sep 17 00:00:00 2001
From: Alexander <gubinalexander0598@gmail.com>
Date: Tue, 10 Sep 2024 23:12:02 +0300
Subject: [PATCH] SP-17577: Add rfid models

---
 rt-text-data.yml | 79 ++++++++++++++++++++++++++++++++++++++++++++++++
 rt.yml           | 15 +++++++++
 2 files changed, 94 insertions(+)

diff --git a/rt-text-data.yml b/rt-text-data.yml
index f7f1d67..0262090 100644
--- a/rt-text-data.yml
+++ b/rt-text-data.yml
@@ -13,6 +13,85 @@ components:
               $ref: "#/components/schemas/DocVisualExtendedInfo"
         - $ref: "./rt.yml#/components/schemas/ResultItem"
 
+    RawDataResult:
+      type: object
+      title: "Raw Data"
+      description: ""
+      properties:
+        nFields:
+          type: integer
+          description: "Count of array fields"
+        pArrayFields:
+          type: array
+          description: ""
+          items:
+            $ref: "#/components/schemas/TBinaryData"
+
+    BinaryDataResult:
+      type: object
+      title: "Binary Data"
+      description: ""
+      properties:
+        nFields:
+          type: integer
+          description: "Count of array fields"
+        pArrayFields:
+          type: array
+          description: ""
+          items:
+            $ref: "#/components/schemas/TBinaryData"
+
+    OriginalGraphicsResult:
+      type: object
+      title: "Graphic Data"
+      description: ""
+      properties:
+        nFields:
+          type: integer
+          description: "Count of array fields"
+        pArrayFields:
+          type: array
+          description: ""
+          items:
+            $ref: "#/components/schemas/TOriginalRFIDGraphics"
+
+    TOriginalRFIDGraphics:
+      type: object
+      description: ""
+      properties:
+        FieldType:
+          type: integer
+        GraphicsType:
+          type: integer
+        RFID_OriginDG:
+          type: integer
+        RFID_OriginDGTag:
+          type: integer
+        RFID_OriginTagEntry:
+          type: integer
+        RFID_OriginEntryView:
+          type: integer
+        Buf_Length:
+          type: integer
+        Buffer:
+          type: string
+          format: byte
+
+    TBinaryData:
+      type: object
+      description: "Container for extracted text fields. Fields are identified by type and language"
+      properties:
+        FieldType:
+          type: integer
+        FieldName:
+          type: string
+        Buf_Length:
+          type: integer
+        Buffer:
+          type: string
+          format: byte
+
+
     DocVisualExtendedInfo:
       type: object
       description: "Container for extracted text fields. Fields are identified by type and language"
diff --git a/rt.yml b/rt.yml
index e381956..bd253d2 100644
--- a/rt.yml
+++ b/rt.yml
@@ -130,8 +130,11 @@ components:
           49: "EncryptedRCLResult"
           50: "LicenseResult"
           85: "DocumentPositionResult"
+          101: "RawDataResult"
           102: "TextDataResult"
           103: "GraphicsResult"
+          104: "BinaryDataResult"
+          105: "OriginalGraphicsResult"
 
     ContainerList:
       type: object
@@ -161,6 +164,9 @@ components:
               - $ref: "#/components/schemas/DocBarCodeInfo"
               - $ref: "#/components/schemas/LicenseResult"
               - $ref: "#/components/schemas/EncryptedRCLResult"
+              - $ref: "#/components/schemas/RawDataResult"
+              - $ref: "#/components/schemas/BinaryDataResult"
+              - $ref: "#/components/schemas/OriginalGraphicsResult"
 
     DocumentPositionResult:
       $ref: "./rt-document-position.yml#/components/schemas/DocumentPositionResult"
@@ -183,6 +189,15 @@ components:
     TextDataResult:
       $ref: "./rt-text-data.yml#/components/schemas/TextDataResult"
 
+    RawDataResult:
+      $ref: "./rt-text-data.yml#/components/schemas/RawDataResult"
+
+    BinaryDataResult:
+      $ref: "./rt-text-data.yml#/components/schemas/BinaryDataResult"
+
+    OriginalGraphicsResult:
+      $ref: "./rt-text-data.yml#/components/schemas/OriginalGraphicsResult"
+
     GraphicsResult:
       $ref: "./rt-image-data.yml#/components/schemas/GraphicsResult"