openapi: 3.0.1
info:
  title: OpenAPI definition
  version: v0
servers:
  - url: https://irz.arimr.gov.pl/api/grupowe
    description: Generated server url
paths:
  /dokument/api/prod/zuzs:
    post:
      tags:
        - zwierzeta-grupowe-api-prod-controller
      operationId: zlozDyspozycjeZUZS_1
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DyspozycjaZUZS'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ZlozenieDyspozycjiResponse'
components:
  schemas:
    ZalacznikWeDto:
      type: object
      properties:
        id:
          type: integer
          format: int64
        nazwaZalacznika:
          type: string
        opisZawartosci:
          type: string
        typZalacznika:
          type: string
    ZalacznikWyDto:
      type: object
      properties:
        id:
          type: integer
          format: int64
        nazwaZalacznika:
          type: string
        opisZawartosci:
          type: string
        rodzajPliku:
          type: string
        typZalacznika:
          type: string
        stanZalacznika:
          type: string
          enum:
            - ZAPISANY
            - USUNIETY
        trybWyswietlania:
          type: string
          enum:
            - ZALACZNIK_DODANY
            - ZALACZNIK_USUNIETY
            - ZALACZNIK_TYMCZASOWY
        dataUtworzenia:
          type: string
          format: date-time
    DaneKancelaryjneDTO:
      type: object
      properties:
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataPrzyjecia:
          type: string
          format: date
        sposobWejscia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataNadaniaLubStempla:
          type: string
          format: date
        znakWlasny:
          type: string
        adnotacje:
          type: string
        automatycznieWyznaczNadawce:
          type: boolean
        dataPrzyjeciaDokumentuPrzezPrzedstawicielaGminnego:
          type: string
          format: date
        przedstawicielGminnyId:
          type: integer
          format: int64
        numerProducenta:
          type: string
        numerWlascicielaKoniowatego:
          type: string
        numerDzialalnosci:
          type: string
        imieLubNazwaSkrocona:
          type: string
        nazwiskoLubNazwa:
          type: string
        nip:
          type: string
        regon:
          type: string
        pesel:
          type: string
        dokumentKancelaryjnyId:
          type: integer
          format: int64
        komorkaOrganizacyjna:
          type: string
        ulica:
          type: string
        nrBudynku:
          type: string
        nrLokalu:
          type: string
        miejscowosc:
          type: string
        kodPocztowy:
          type: string
        poczta:
          type: string
        kontekst:
          type: string
        statusDokumentu:
          type: string
          enum:
            - WPROWADZONY
            - WPROWADZONY_POPRAWIONY
            - W_TRAKCIE_WERYFIKACJI
            - W_TRAKCIE_KONTROLI
            - SKIEROWANO_DO_UZUPELNIENIA_BRAKOW_FORMALNYCH
            - SKIEROWANO_DO_WYJASNIEN
            - ZATWIERDZONY
            - ZATWIERDZONY_DECYCJA_POZYTYWNA
            - ZATWIERDZONY_DECYCJA_NEGATYWNA
            - ZATWIERDZONY_CZESCIOWO
            - DO_POPRAWY
            - PRZEKAZANY_DO_UZYTKOWNIKA
            - WYDANY
            - ANULOWANY
            - BRAK_DANYCH_NADAWCY
        wprowadzajacy:
          $ref: '#/components/schemas/UzytkownikDto'
        czyPropozycja:
          type: boolean
        numerDokumentu:
          type: string
        dataZatwierdzenia:
          type: string
          format: date
        dokumentZZalacznikiem:
          type: boolean
        idPowiazanegoDokumentu:
          type: integer
          format: int64
        czyImportXml:
          type: boolean
        idDokumentuPierwotnego:
          type: integer
          format: int64
        gatunek:
          type: string
    KodOpisWartosciDto:
      type: object
      properties:
        kod:
          type: string
        opis:
          type: string
    UzytkownikDto:
      type: object
      properties:
        imieUzytkownika:
          type: string
        nazwiskoUzytkownika:
          type: string
        loginUzytkownika:
          type: string
        jednostkaArimr:
          type: string
        uprawnienia:
          type: array
          items:
            type: string
    Sort:
      type: object
      properties:
        sorted:
          type: boolean
        unsorted:
          type: boolean
        empty:
          type: boolean
    FiltrZdarzenDTO:
      type: object
      properties:
        gatunek:
          type: string
        historiaZdarzen:
          type: string
        stanKorekty:
          type: string
          enum:
            - SKU
            - SKN
        stanZdarzenia:
          type: string
        stanZdarzeniaInvertMatch:
          type: string
        numerIdentyfikacyjnyZwierzecia:
          type: string
        numeryIdentyfikacyjneZwierzat:
          type: array
          items:
            type: string
        typZdarzenia:
          type: string
        numerDzialalnosci:
          type: string
        komplementarnaDzialalnosc:
          type: string
        producentKomplementarny:
          type: string
        numerDzialalnosciFormowaniaWysylki:
          type: string
        dataZdarzenia:
          type: string
          format: date
        dataZdarzeniaOd:
          type: string
          format: date
        dataZdarzeniaDo:
          type: string
          format: date
        tylkoZdarzeniaWplywajaceNaLokalizacje:
          type: boolean
        numerProducenta:
          type: string
        numerPartiiDrobiu:
          type: string
        niepowtarzalnyDozywotniNumerUELN:
          type: string
        numerKodTranspondera:
          type: string
        idKoniowatego:
          type: string
        typKorekty:
          type: string
        rasa:
          type: string
        numerDokumentu:
          type: string
        typDokumentu:
          type: string
        statusDokumentu:
          type: string
        dataWydaniaOd:
          type: string
          format: date
        dataWydaniaDo:
          type: string
          format: date
        dataWplywuDoARiMRDo:
          type: string
          format: date
        dataWplywuDoARiMROd:
          type: string
          format: date
        dataZatwierdzeniaOd:
          type: string
          format: date
        dataZatwierdzeniaDo:
          type: string
          format: date
        nazwaPodmiotuNazwisko:
          type: string
        imieNazwaKoniowatego:
          type: string
        peselRegonNIP:
          type: string
        sposobWejscia:
          type: string
        komorkaOrganizacyjna:
          type: string
        czyZalacznik:
          type: boolean
        tylkoNieterminowe:
          type: boolean
        tylkoZBrakiemZdarzeniaParujacego:
          type: boolean
        tylkoDotyczaceLoch:
          type: boolean
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
        liczbaSwin:
          type: string
        numeryDzialalnosci:
          type: array
          items:
            type: string
        idLochy:
          type: integer
          format: int64
        kodZwiazkuHodowcowKoniowatych:
          type: string
        tylkoNieanulowane:
          type: boolean
        wojewodztwo:
          type: string
        powiat:
          type: string
        gmina:
          type: string
        typyZdarzen:
          type: array
          items:
            type: string
    ZdarzeniaSearchCriteria:
      type: object
      properties:
        filtry:
          type: array
          items:
            $ref: '#/components/schemas/FiltrZdarzenDTO'
        wykluczone:
          type: array
          items:
            type: integer
            format: int64
    Pageable:
      type: object
      properties:
        paged:
          type: boolean
        unpaged:
          type: boolean
        pageNumber:
          type: integer
          format: int32
        pageSize:
          type: integer
          format: int32
        offset:
          type: integer
          format: int64
        sort:
          $ref: '#/components/schemas/Sort'
    PageObject:
      type: object
      properties:
        totalPages:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int64
        number:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        numberOfElements:
          type: integer
          format: int32
        content:
          type: array
          items:
            type: object
        sort:
          $ref: '#/components/schemas/Sort'
        first:
          type: boolean
        last:
          type: boolean
        pageable:
          $ref: '#/components/schemas/Pageable'
        empty:
          type: boolean
    WalidacjaZdarzenDTO:
      type: object
      properties:
        czyBlad:
          type: boolean
        komunikat:
          type: string
    BladDoWezwaniaDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int32
        komunikat:
          type: string
        kodBledu:
          type: string
        typBledu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
    DraftWezwaniaDoZdarzenDTO:
      type: object
      properties:
        typWezwania:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataWezwania:
          type: string
          format: date
        powodWezwania:
          type: string
        sposobDalszejObslugi:
          type: string
        numerProducenta:
          type: string
        imieLubNazwaSkroconaProducenta:
          type: string
        nazwiskoLubNazwaProducenta:
          type: string
        zdarzenia:
          type: array
          items:
            $ref: '#/components/schemas/ZdarzenieZWezwaniaDTO'
        idZdarzen:
          type: array
          items:
            type: string
    ZdarzenieZWezwaniaDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int32
        idZdarzenia:
          type: string
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataZdarzenia:
          type: string
          format: date
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerIdentyfikacyjnyZwierzecia:
          type: string
        numerDzialalnosci:
          type: string
        bledy:
          type: array
          items:
            $ref: '#/components/schemas/BladDoWezwaniaDTO'
    WynikZapisuWezwaniaDTO:
      type: object
      properties:
        idDokumentuKancelaryjnego:
          type: integer
          format: int64
    BladWalidacji:
      type: object
      properties:
        identyfikator:
          type: string
        kodBledu:
          type: string
        komunikat:
          type: string
        typBledu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        kodWystapieniaBledu:
          type: string
        czyUzasadniony:
          type: boolean
        uzasadnienie:
          type: string
        regula:
          type: string
        czyUzasadnialny:
          type: boolean
    DraftWezwaniaDoDokumentuDTO:
      type: object
      properties:
        typWezwania:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataWezwania:
          type: string
          format: date
        powodWezwania:
          type: string
        sposobDalszejObslugi:
          type: string
        numerProducenta:
          type: string
        imieLubNazwaSkroconaProducenta:
          type: string
        nazwiskoLubNazwaProducenta:
          type: string
        bledy:
          type: array
          items:
            $ref: '#/components/schemas/BladWalidacji'
        idKancelaryjneWezwania:
          type: integer
          format: int64
        numerDokumentu:
          type: string
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataPrzyjeciaDokumentu:
          type: string
          format: date
    ZapisSzablonuWydrukuDTO:
      type: object
      properties:
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataObowiazywaniaOd:
          type: string
          format: date
        dataObowiazywaniaDo:
          type: string
          format: date
    WynikZapisuSzablonuWydrukuDTO:
      type: object
      properties:
        czyDanePrawidlowe:
          type: boolean
        komunikat:
          type: string
    ZwierzeGrupowePostepowaniaDTO:
      type: object
      properties:
        id:
          type: string
        numerDzialalnosci:
          type: string
        liczbaSwin:
          type: integer
          format: int64
        liczbaNieprawidlowosciSwin:
          type: integer
          format: int64
        liczbaLoch:
          type: integer
          format: int32
        nieprawidlowosciLoch:
          type: boolean
    BladWalidacjiPozycji:
      type: object
      properties:
        identyfikator:
          type: string
        kodBledu:
          type: string
        komunikat:
          type: string
        typBledu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        kodWystapieniaBledu:
          type: string
        czyUzasadniony:
          type: boolean
        uzasadnienie:
          type: string
        regula:
          type: string
        czyUzasadnialny:
          type: boolean
        numerPozycji:
          type: integer
          format: int32
    WynikWalidacjiZdarzenia:
      type: object
      properties:
        etapWalidacji:
          type: string
        bledyWalidacjiZdarzenia:
          type: array
          items:
            $ref: '#/components/schemas/BladWalidacji'
        bledyWalidacjiPozycji:
          type: array
          items:
            $ref: '#/components/schemas/BladWalidacjiPozycji'
    ZdarzenieGrupoweDTO:
      type: object
      properties:
        id:
          type: string
        numerIdentyfikacyjnyZwierzecia:
          type: string
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        stanZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataZdarzenia:
          type: string
          format: date
        dataKomplementarna:
          type: string
          format: date
        dataWplywuDoArimr:
          type: string
          format: date
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerProducenta:
          type: string
        producentZglaszajacy:
          type: string
        producentKomplementarny:
          type: string
        wynikPrzetwarzania:
          $ref: '#/components/schemas/WynikWalidacjiZdarzenia'
        zglaszajacaDzialalnosc:
          type: string
        komplementarnaDzialalnosc:
          type: string
        idDokumentuKancelaryjnego:
          type: integer
          format: int64
        doDzialalnosci:
          type: string
        numerDokumentuKorekty:
          type: string
        liczbaSwin:
          type: integer
          format: int32
        liczbaLoch:
          type: integer
          format: int32
        identyfikatorGrupy:
          type: string
        zdzialalnosci:
          type: string
    BazowaPozycja:
      type: object
      properties:
        lp:
          type: integer
          format: int64
    BazoweZgloszenie:
      type: object
      properties:
        pozycje:
          type: array
          items:
            $ref: '#/components/schemas/BazowaPozycja'
    BladWalidacjiSekcji:
      type: object
      properties:
        identyfikator:
          type: string
        kodBledu:
          type: string
        komunikat:
          type: string
        typBledu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        kodWystapieniaBledu:
          type: string
        czyUzasadniony:
          type: boolean
        uzasadnienie:
          type: string
        regula:
          type: string
        czyUzasadnialny:
          type: boolean
        nazwaSekcji:
          type: string
        numerElementu:
          type: integer
          format: int32
    DokumentDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        idPropozycji:
          type: integer
          format: int64
        idRaportu:
          type: integer
          format: int64
        idDokumentuPowiazanego:
          type: integer
          format: int64
        idPlikuXml:
          type: integer
          format: int64
        zgloszenie:
          $ref: '#/components/schemas/BazoweZgloszenie'
        daneKancelaryjne:
          $ref: '#/components/schemas/DaneKancelaryjneDTO'
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerDokumentuKancelaryjnego:
          type: string
        uuidTransakcji:
          type: string
        wynikWalidacji:
          $ref: '#/components/schemas/WynikWalidacjiDokumentu'
        notatka:
          type: string
        jednostkaOrganizacyjna:
          $ref: '#/components/schemas/KontekstJednostkiZeZgloszeniaDTO'
    KontekstJednostkiZeZgloszeniaDTO:
      type: object
      properties:
        wojewodztwo:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        powiat:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        jednostkaOrganizacyjna:
          $ref: '#/components/schemas/KodOpisWartosciDto'
    WynikWalidacjiDokumentu:
      type: object
      properties:
        bledyWalidacjiPozycji:
          type: array
          items:
            $ref: '#/components/schemas/BladWalidacjiPozycji'
        bledyWalidacjiZgloszenia:
          type: array
          items:
            $ref: '#/components/schemas/BladWalidacji'
        bledyWalidacjiSekcji:
          type: array
          items:
            $ref: '#/components/schemas/BladWalidacjiSekcji'
        iloscPozycjiNaDokumencie:
          type: integer
          format: int32
        etapWalidacji:
          type: string
    WynikZapisuDokumentuDTO:
      type: object
      properties:
        idDokumentuKancelaryjnego:
          type: integer
          format: int64
        idDokumentu:
          type: integer
          format: int64
        statusDokumentu:
          type: string
          enum:
            - WPROWADZONY
            - WPROWADZONY_POPRAWIONY
            - W_TRAKCIE_WERYFIKACJI
            - W_TRAKCIE_KONTROLI
            - SKIEROWANO_DO_UZUPELNIENIA_BRAKOW_FORMALNYCH
            - SKIEROWANO_DO_WYJASNIEN
            - ZATWIERDZONY
            - ZATWIERDZONY_DECYCJA_POZYTYWNA
            - ZATWIERDZONY_DECYCJA_NEGATYWNA
            - ZATWIERDZONY_CZESCIOWO
            - DO_POPRAWY
            - PRZEKAZANY_DO_UZYTKOWNIKA
            - WYDANY
            - ANULOWANY
            - BRAK_DANYCH_NADAWCY
        dataZlozeniaDokumentu:
          type: string
          format: date
        numerDokumentu:
          type: string
    PoprawaZgloszeniaDTO:
      type: object
      properties:
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        zgloszenie:
          $ref: '#/components/schemas/BazoweZgloszenie'
        idPlikuXml:
          type: integer
          format: int64
        wczytanoXml:
          type: boolean
    IdentyfikatorLochy:
      type: object
      properties:
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
    KategoriaZwierzeciaDTO:
      type: object
      properties:
        kategoriaZwierzecia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        liczbaSztuk:
          type: integer
          format: int32
      description: Kategoria uboju świń. Wartość ze słownika SIA-SL02271.
    PozycjaZPSDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int64
        liczbaSwinUbylo:
          type: integer
          description: Liczba świń.
          format: int32
        transportWlasny:
          type: boolean
          description: True w przypadku transportu własnego.
        wniPrzewoznika:
          type: string
          description: >-
            Weterynaryjny Numer Identyfikacyjny (WNI) przewoźnika, jeśli
            dotyczy.
        numerIdentyfikacyjnyZwierzecia:
          type: string
          description: Numer identyfikacyjny świni/świń
        rodzajSrodkaTransportu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        nrRejestracyjnySrodkaTransportu:
          type: string
          description: Numer rejestracyjny środka transportu, jeśli dotyczy.
        kategoriaZwierzecia:
          type: array
          description: Kategoria uboju świń. Wartość ze słownika SIA-SL02271.
          items:
            $ref: '#/components/schemas/KategoriaZwierzeciaDTO'
        numeryLochy:
          type: array
          items:
            $ref: '#/components/schemas/IdentyfikatorLochy'
        zDzialalnosci:
          type: string
    ZgloszenieZPSDTO:
      type: object
      properties:
        pozycje:
          type: array
          items:
            $ref: '#/components/schemas/PozycjaZPSDTO'
        doDzialalnosci:
          type: string
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        liczbaSwinPrzybylo:
          type: integer
          description: Liczba świń.
          format: int32
        kodKraju:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataZdarzenia:
          type: string
          format: date
    NotatkaWycofaniaDoPoprawyDTO:
      type: object
      properties:
        notatka:
          maxLength: 10000
          minLength: 1
          type: string
    UzasdanienieBleduWalidacjiDTO:
      type: object
      properties:
        identyfikator:
          type: string
        uzasadnienie:
          type: string
    ModyfikacjaDokumentuDTO:
      type: object
      properties:
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        uuidTransakcji:
          type: string
        zgloszenie:
          $ref: '#/components/schemas/BazoweZgloszenie'
        daneKancelaryjne:
          $ref: '#/components/schemas/DaneKancelaryjneDTO'
        idPlikuXml:
          type: integer
          format: int64
    DaneDokumentuDoWydaniaDTO:
      type: object
      properties:
        sposobWydania:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataWydania:
          type: string
          format: date
        adnotacje:
          type: string
        czyZgodnySposobWydaniaIOdbioru:
          type: boolean
        seriaINumerPaszportu:
          type: string
        automatycznyTrybWydania:
          type: boolean
        zatwierdzajacy:
          $ref: '#/components/schemas/UzytkownikDto'
    DanePodmiotu:
      type: object
      properties:
        pesel:
          type: string
        regon:
          type: string
        numerDzialalnosci:
          type: string
    ImportXmlResponse:
      type: object
      properties:
        plikNazwa:
          type: string
        dataUtworzenieZbior:
          type: string
          format: date
        liczbaDokumentowZbior:
          type: integer
          format: int32
        danePodmiotu:
          $ref: '#/components/schemas/DanePodmiotu'
        bladWczytania:
          type: string
        idPliku:
          type: integer
          format: int64
        typDokumentu:
          type: string
    AnulowanieImportuRequest:
      required:
        - idDokumentuKancelaryjnego
        - uzasadnienie
      type: object
      properties:
        idDokumentuKancelaryjnego:
          type: integer
          format: int64
        uzasadnienie:
          type: string
    DokumentPropozycjiDTO:
      type: object
      properties:
        zgloszenie:
          $ref: '#/components/schemas/BazoweZgloszenie'
        daneKancelaryjne:
          $ref: '#/components/schemas/DaneKancelaryjneDTO'
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        notatka:
          type: string
    DyspozycjaZZDOL:
      required:
        - numerProducenta
        - zgloszenie
      type: object
      properties:
        komorkaOrganizacyjna:
          type: string
          description: Komórka organizacyjna ARiMR, do której składana jest dyspozycja
        numerProducenta:
          type: string
          description: Numer producenta, który składa dyspozycję
        zgloszenie:
          $ref: '#/components/schemas/ZgloszenieZZDOLDTO'
    PozycjaZZDOLDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int64
        indywidualnyNumerIdentyfikacyjnyLochyBylo:
          type: string
          description: >-
            Utracony bądź uszkodzony indywidualny numer identyfikacyjny lochy,
            którego dotyczy zgłoszenie.
        indywidualnyNumerIdentyfikacyjnyLochyJest:
          type: string
          description: >-
            Aktualny indywidualny numer identyfikacyjny lochy, którego dotyczy
            zgłoszenie.
        sposobOznakowaniaLochy:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
    ZgloszenieZZDOLDTO:
      type: object
      properties:
        pozycje:
          type: array
          items:
            $ref: '#/components/schemas/PozycjaZZDOLDTO'
        numerDzialalnosci:
          type: string
          description: >-
            Numer działalności (siedziby stada/miejsca gromadzenia/rzeźni itd)
            posiadacza zwierzęcia.
        dataZmianyOznakowania:
          type: string
          description: >-
            Data zmiany oznakowania indywidualnym numerem identyfikacyjnym lochy
            w formacie DD-MM-RRRR.
          format: date
    BladWalidacjiDTO:
      type: object
      properties:
        kodBledu:
          type: string
        komunikat:
          type: string
    ZlozenieDyspozycjiResponse:
      type: object
      properties:
        komunikat:
          type: string
        bledy:
          type: array
          items:
            $ref: '#/components/schemas/BladWalidacjiDTO'
        numerDokumentu:
          type: string
    DyspozycjaZUZS:
      required:
        - numerProducenta
        - zgloszenie
      type: object
      properties:
        komorkaOrganizacyjna:
          type: string
          description: Komórka organizacyjna ARiMR, do której składana jest dyspozycja
        numerProducenta:
          type: string
          description: Numer producenta, który składa dyspozycję
        zgloszenie:
          $ref: '#/components/schemas/ZgloszenieZUZSDTO'
    PozycjaZUZSDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int64
        przyjeteZDzialalnosci:
          type: string
          description: >-
            Numer działalności z której zwierzę zostało przyjęte do zakładu
            przetwórczego lub spalarni.
        dataPrzyjeciaDoZakladu:
          type: string
          description: >-
            Data przyjęcia zwierzęcia do zakładu przetwórczego lub spalarni w
            formacie DD-MM-RRRR.
          format: date
        dataZdarzenia:
          type: string
          description: Data zdarzenia w formacie DD-MM-RRRR.
          format: date
        liczbaSztukZwlokSwin:
          type: integer
          description: Liczba świń.
          format: int32
        czyPozycjaZatwierdzona:
          type: boolean
        numerIdentyfikacyjnyZwierzecia:
          type: string
          description: Numer identyfikacyjny świni/świń
        kategoriaZwierzecia:
          type: array
          description: Kategoria uboju świń. Wartość ze słownika SIA-SL02271.
          items:
            $ref: '#/components/schemas/KategoriaZwierzeciaDTO'
        krajWwozu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numeryLochy:
          type: array
          description: Numery identyfikacyjne loch
          items:
            $ref: '#/components/schemas/IdentyfikatorLochy'
    ZgloszenieZUZSDTO:
      type: object
      properties:
        pozycje:
          type: array
          items:
            $ref: '#/components/schemas/PozycjaZUZSDTO'
        numerZakladuPrzetworczegoLubSpalarni:
          type: string
    DyspozycjaZURS:
      required:
        - numerProducenta
        - zgloszenie
      type: object
      properties:
        komorkaOrganizacyjna:
          type: string
          description: Komórka organizacyjna ARiMR, do której składana jest dyspozycja
        numerProducenta:
          type: string
          description: Numer producenta, który składa dyspozycję
        zgloszenie:
          $ref: '#/components/schemas/ZgloszenieZURSDTO'
    KategoriaZwierzeciaZKlasyfikacjaTuszDTO:
      type: object
      properties:
        kategoriaZwierzecia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        liczbaSztuk:
          type: integer
          format: int32
        klasyfikacjaTusz:
          type: array
          items:
            $ref: '#/components/schemas/KlasyfikacjaTuszDTO'
      description: Kategoria zwierzecia
    KlasyfikacjaTuszDTO:
      type: object
      properties:
        klasyfikacjaTuszy:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        liczbaSztuk:
          type: integer
          format: int32
        masaCialaZwierzecia:
          type: number
          format: double
        masaTuszy:
          type: number
          format: double
        klasyfikacjaTuszLoch:
          type: array
          items:
            $ref: '#/components/schemas/KlasyfikacjaTuszyLochyDTO'
    KlasyfikacjaTuszyLochyDTO:
      type: object
      properties:
        klasyfikacjaTuszy:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
        masaCialaZwierzecia:
          type: number
          format: double
        masaTuszy:
          type: number
          format: double
    PozycjaZURSDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int64
        przyjeteZDzialalnosci:
          type: string
        dataPrzyjeciaDoRzezni:
          type: string
          format: date
        dataUboju:
          type: string
          format: date
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        krajWwozu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        liczbaSwin:
          type: integer
          description: Liczba świń.
          format: int32
        wniPrzewoznika:
          type: string
          description: >-
            Weterynaryjny Numer Identyfikacyjny (WNI) przewoźnika, jeśli
            dotyczy.
        rodzajSrodkaTransportu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        nrRejestracyjnySrodkaTransportu:
          type: string
          description: Numer rejestracyjny środka transportu, jeśli dotyczy.
        transportWlasny:
          type: boolean
          description: True w przypadku transportu własnego.
        numerIdentyfikacyjnyZwierzecia:
          type: string
          description: Numer identyfikacyjny świni/świń
        kategoriaZwierzecia:
          type: array
          description: Kategoria zwierzecia
          items:
            $ref: '#/components/schemas/KategoriaZwierzeciaZKlasyfikacjaTuszDTO'
    ZgloszenieZURSDTO:
      type: object
      properties:
        pozycje:
          type: array
          items:
            $ref: '#/components/schemas/PozycjaZURSDTO'
        numerRzezni:
          type: string
        numerPartiiUboju:
          type: string
    DyspozycjaZPZUS:
      required:
        - numerProducenta
        - zgloszenie
      type: object
      properties:
        komorkaOrganizacyjna:
          type: string
          description: Komórka organizacyjna ARiMR, do której składana jest dyspozycja
        numerProducenta:
          type: string
          description: Numer producenta, który składa dyspozycję
        zgloszenie:
          $ref: '#/components/schemas/ZgloszenieZPZUSDTO'
    ZgloszenieZPZUSDTO:
      type: object
      properties:
        pozycje:
          type: array
          items:
            $ref: '#/components/schemas/BazowaPozycja'
        numerDzialalnosci:
          type: string
          description: >-
            Numer działalności (siedziby stada/miejsca gromadzenia/rzeźni itd)
            posiadacza zwierzęcia.
        numerZakladuPrzetworczegoLubSpalarni:
          type: string
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        typUbojuSwin:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        liczbaSwin:
          type: integer
          description: Liczba świń.
          format: int64
        dataZdarzenia:
          type: string
          format: date
        liczbaSztuk:
          type: integer
          format: int64
        wniPrzewoznika:
          type: string
          description: >-
            Weterynaryjny Numer Identyfikacyjny (WNI) przewoźnika, jeśli
            dotyczy.
        rodzajSrodkaTransportu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        nrRejestracyjnySrodkaTransportu:
          type: string
          description: Numer rejestracyjny środka transportu, jeśli dotyczy.
        transportWlasny:
          type: boolean
          description: True w przypadku transportu własnego.
        numerIdentyfikacyjnyZwierzecia:
          type: string
          description: Numer identyfikacyjny świni/świń
        kategoriaZwierzecia:
          type: array
          items:
            $ref: '#/components/schemas/KategoriaZwierzeciaDTO'
        numeryLochy:
          type: array
          items:
            $ref: '#/components/schemas/IdentyfikatorLochy'
    DyspozycjaZPS:
      required:
        - numerProducenta
        - zgloszenie
      type: object
      properties:
        komorkaOrganizacyjna:
          type: string
          description: Komórka organizacyjna ARiMR, do której składana jest dyspozycja
        numerProducenta:
          type: string
          description: Numer producenta, który składa dyspozycję
        zgloszenie:
          $ref: '#/components/schemas/ZgloszenieZPSDTO'
    DyspozycjaZPRS:
      required:
        - numerProducenta
        - zgloszenie
      type: object
      properties:
        komorkaOrganizacyjna:
          type: string
          description: Komórka organizacyjna ARiMR, do której składana jest dyspozycja
        numerProducenta:
          type: string
          description: Numer producenta, który składa dyspozycję
        zgloszenie:
          $ref: '#/components/schemas/ZgloszenieZPRSDTO'
    PozycjaZPRSDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int64
        liczbaSwin:
          type: integer
          description: Liczba świń.
          format: int32
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataWwozu:
          type: string
          description: Data wwozu zwierzęcia w formacie DD-MM-RRRR.
          format: date
        dataWeterynaryjnejKontroliGranicznej:
          type: string
          description: >-
            Data weterynaryjnej kontroli granicznej zwierzęcia w formacie
            DD-MM-RRRR.
          format: date
        dataOznakowania:
          type: string
          description: Data oznakowania zwierzęcia w formacie DD-MM-RRRR.
          format: date
        kodKraju:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerIdenSwinSpozaKraju:
          type: string
          description: >-
            Numer identyfikacyjny zwierzęcia numer nadany poza granicami Polski,
            której dotyczy zgłoszenie.
        wniPrzewoznika:
          type: string
          description: >-
            Weterynaryjny Numer Identyfikacyjny (WNI) przewoźnika, jeśli
            dotyczy.
        rodzajSrodkaTransportu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        nrRejestracyjnySrodkaTransportu:
          type: string
          description: Numer rejestracyjny środka transportu, jeśli dotyczy.
        transportWlasny:
          type: boolean
          description: True w przypadku transportu własnego.
        rodzajSrodkaIdentyfikacji:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        lokalizacjaTranspondera:
          type: string
          description: Lokalizacja trasportera.
    ZgloszenieZPRSDTO:
      type: object
      properties:
        pozycje:
          type: array
          items:
            $ref: '#/components/schemas/PozycjaZPRSDTO'
        numerDzialalnosci:
          type: string
          description: >-
            Numer działalności (siedziby stada/miejsca gromadzenia/rzeźni itd)
            posiadacza zwierzęcia.
    DyspozycjaZOUS:
      required:
        - numerProducenta
        - zgloszenie
      type: object
      properties:
        komorkaOrganizacyjna:
          type: string
          description: Komórka organizacyjna ARiMR, do której składana jest dyspozycja
        numerProducenta:
          type: string
          description: Numer producenta, który składa dyspozycję
        zgloszenie:
          $ref: '#/components/schemas/ZgloszenieZOUSDTO'
    PozycjaZOUSDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int64
        liczbaSwin:
          type: integer
          description: Liczba świń.
          format: int32
        dataUrodzenia:
          type: string
          description: Data urodzenia zwierzęcia w formacie DD-MM-RRRR
          format: date
        dataOznakowania:
          type: string
          description: Data oznakowania zwierzęcia w formacie DD-MM-RRRR
          format: date
        rodzajSrodkaIdentyfikacji:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        lokalizacjaTranspondera:
          type: string
          description: Lokalizacja trasportera.
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
    ZgloszenieZOUSDTO:
      type: object
      properties:
        pozycje:
          type: array
          items:
            $ref: '#/components/schemas/PozycjaZOUSDTO'
        numerDzialalnosci:
          type: string
          description: >-
            Numer działalności (siedziby stada/miejsca gromadzenia/rzeźni itd)
            posiadacza zwierzęcia.
    DyspozycjaZDOL:
      required:
        - numerProducenta
        - zgloszenie
      type: object
      properties:
        komorkaOrganizacyjna:
          type: string
          description: Komórka organizacyjna ARiMR, do której składana jest dyspozycja
        numerProducenta:
          type: string
          description: Numer producenta, który składa dyspozycję
        zgloszenie:
          $ref: '#/components/schemas/ZgloszenieZDOLDTO'
    PozycjaZDOLDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int64
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
          description: Indywidualny numer identyfikacyjny lochy.
        sposobOznakowaniaLochy:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
    ZgloszenieZDOLDTO:
      type: object
      properties:
        pozycje:
          type: array
          items:
            $ref: '#/components/schemas/PozycjaZDOLDTO'
        numerDzialalnosci:
          type: string
          description: >-
            Numer działalności (siedziby stada/miejsca gromadzenia/rzeźni itd)
            posiadacza zwierzęcia.
        dataOznakowaniaIndywidualnymNumeremIdentyfikacyjnymLochy:
          type: string
          description: >-
            Data oznakowania indywidualnym numerem identyfikacyjnym lochy w
            formacie DD-MM-RRRR.
          format: date
    DyspozycjaSSSS:
      required:
        - numerProducenta
        - zgloszenie
      type: object
      properties:
        komorkaOrganizacyjna:
          type: string
          description: Komórka organizacyjna ARiMR, do której składana jest dyspozycja
        numerProducenta:
          type: string
          description: Numer producenta, który składa dyspozycję
        zgloszenie:
          $ref: '#/components/schemas/ZgloszenieSSSSDTO'
    ZgloszenieSSSSDTO:
      type: object
      properties:
        pozycje:
          type: array
          items:
            $ref: '#/components/schemas/BazowaPozycja'
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerDzialalnosci:
          type: string
        liczbaSwinOznakowanych:
          type: integer
          format: int32
        liczbaSwinNieoznakowanych:
          type: integer
          format: int32
        liczbaSwin:
          type: integer
          format: int32
        technologiaProdukcji:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        systemUtrzymaniaSwin:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataZdarzenia:
          type: string
          format: date
        numeryLochy:
          type: array
          items:
            $ref: '#/components/schemas/IdentyfikatorLochy'
    PobieranieZwierzatGrupowychIWRequest:
      type: object
      properties:
        historiaZdarzen:
          type: string
          description: Kod wartości słownikowej - Historia zdarzeń zwierzęcia (SIA-SL02196)
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
          description: Indywidualny numer identyfikacyjny lochy
        numerDzialalnosci:
          type: string
          description: Numer działalności
        wojewodztwo:
          type: string
          description: Województwo
        powiat:
          type: string
          description: Powiat
        gmina:
          type: string
          description: Gmina
        stanDanychNaDzien:
          type: string
          description: Stan danych na dzień
          format: date
      description: Dane pobierania zwierząt grupowych przez API dla IW
    PobieranieZwierzatGrupowychIWResponse:
      type: object
      properties:
        komunikat:
          type: string
          description: Komunikat
        listaSwin:
          type: array
          description: Lista świń
          items:
            $ref: '#/components/schemas/ZwierzeGrupoweIWDTO'
      description: Pobieranie zwierząt grupowych dla API IW
    ZwierzeGrupoweIWDTO:
      type: object
      properties:
        lp:
          type: integer
          description: Liczba porządkowa
          format: int32
        numerDzialalnosci:
          type: string
          description: Numer działalności
        liczbaSwin:
          type: integer
          description: Liczba świń
          format: int32
        liczbaLoch:
          type: integer
          description: Liczba loch
          format: int32
        nieprawidlowosciLoch:
          type: boolean
          description: Czy występują nieprawidłowości loch
        liczbaNieprawidlowosciDlaSwin:
          type: integer
          description: Liczba nieprawidłowości dla świń
          format: int32
      description: Dane zwierzat grupowych dla API IW
    SzczegolyZdarzeniaDTO:
      type: object
    ZdarzenieDTO:
      type: object
      properties:
        id:
          type: string
        numerIdentyfikacyjnyZwierzecia:
          type: string
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        stanZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataZdarzenia:
          type: string
          format: date
        dataKomplementarna:
          type: string
          format: date
        dataWplywuDoArimr:
          type: string
          format: date
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerProducenta:
          type: string
        producentZglaszajacy:
          type: string
        producentKomplementarny:
          type: string
        wynikPrzetwarzania:
          $ref: '#/components/schemas/WynikWalidacjiZdarzenia'
        zglaszajacaDzialalnosc:
          type: string
        komplementarnaDzialalnosc:
          type: string
        idDokumentuKancelaryjnego:
          type: integer
          format: int64
        doDzialalnosci:
          type: string
        numerDokumentuKorekty:
          type: string
        zdzialalnosci:
          type: string
    Attachment:
      type: object
      properties:
        id:
          type: integer
          format: int64
        name:
          type: string
        type:
          type: string
          enum:
            - INVOICE
        description:
          type: string
    DaneKorektyDTO:
      type: object
      properties:
        numerProducenta:
          type: string
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        pozycje:
          type: array
          items:
            type: object
    Field:
      type: object
      properties:
        name:
          type: string
        value:
          type: object
        label:
          type: string
        type:
          type: string
          enum:
            - select
            - multiselect
            - text
            - number
            - date
            - radio
            - checkbox
            - textarea
            - separator
            - teryt
            - hidden
            - terytAdres
            - terytJednostka
            - numerDzialalnosci
            - wlascicielKoniowatego
            - barCode
            - numerProducentaKontekst
            - staticField
            - previewOnly
        viewType:
          type: string
          enum:
            - select
            - multiselect
            - text
            - number
            - date
            - radio
            - checkbox
            - textarea
            - separator
            - teryt
            - hidden
            - terytAdres
            - terytJednostka
            - numerDzialalnosci
            - wlascicielKoniowatego
            - barCode
            - numerProducentaKontekst
            - staticField
            - previewOnly
        order:
          type: integer
          format: int32
        dictionaryName:
          type: string
        dictionaryValueCode:
          type: string
        tooltip:
          type: string
        placeholder:
          type: string
        options:
          type: array
          items:
            $ref: '#/components/schemas/FieldOption'
        validators:
          type: array
          items:
            $ref: '#/components/schemas/FieldValidator'
        fieldConditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldCondition'
        position:
          type: string
          enum:
            - HORIZONTAL
            - VERTICAL
        key:
          type: string
        editable:
          type: boolean
        additionalCode:
          type: boolean
        actionUrl:
          type: string
        mask:
          type: string
        maskGuide:
          type: boolean
        visible:
          type: boolean
        codeName:
          type: string
        toUpperCase:
          type: boolean
        unselectableRadioButton:
          type: boolean
        cssClass:
          type: string
        blockCommaSeparator:
          type: boolean
        customParams:
          type: object
          additionalProperties:
            type: object
            additionalProperties:
              type: string
    FieldCondition:
      type: object
      properties:
        relatedFieldName:
          type: string
        operator:
          type: string
          enum:
            - EQUAL
            - NOT_EQUAL
            - IN
            - NOT_IN
        value:
          type: object
        conditionType:
          type: string
          enum:
            - visible
            - editable
            - checked
            - changeActionUrl
            - visibleOnlyForRoles
            - updateFieldValue
            - updateFieldValueFromParent
            - updateFieldValueNumerProducentaZNumeruDzialalnosci
            - sumFieldValues
            - select
            - checkWhenAllRelatedChecked
            - required
        preventClearWhenNotPassed:
          type: boolean
        concatenationType:
          type: string
          enum:
            - AND_ON_FALSE
            - AND_ON_TRUE
        concatenationId:
          type: string
        valueWhenPassed:
          type: object
        valueWhenNotPassed:
          type: object
    FieldOption:
      type: object
      properties:
        value:
          type: object
        label:
          type: string
    FieldValidator:
      type: object
      properties:
        name:
          type: string
          enum:
            - required
            - minLength
            - maxLength
            - minValue
            - maxValue
            - pattern
            - email
        value:
          type: object
    FieldValue:
      type: object
      properties:
        property:
          type: string
        label:
          type: string
        actionUrl:
          type: string
        visible:
          type: boolean
        codeName:
          type: string
        type:
          type: string
          enum:
            - select
            - multiselect
            - text
            - number
            - date
            - radio
            - checkbox
            - textarea
            - separator
            - teryt
            - hidden
            - terytAdres
            - terytJednostka
            - numerDzialalnosci
            - wlascicielKoniowatego
            - barCode
            - numerProducentaKontekst
            - staticField
            - previewOnly
    FormAction:
      type: object
      properties:
        action:
          type: string
          enum:
            - addAttachment
            - addAnimal
            - back
            - cancel
            - quit
            - saveDocument
            - saveCorrection
            - next
            - addPosition
            - deletePosition
            - savePosition
            - continue
            - approve
            - modifyDocument
            - historyOperations
            - createCall
            - withdrawForCorrection
            - chooseEvents
            - verifyDocument
            - fillList
            - correctDocument
            - importXML
        label:
          type: string
        actionUrl:
          type: string
        cssClass:
          type: string
        visible:
          type: boolean
    FormDefinition:
      type: object
      properties:
        type:
          type: string
          enum:
            - ZBDR
            - ZP
            - ZW
            - ZZW
            - ZPZU
            - ZR
            - ZUR
            - KZR
            - WPPNSI
            - ZUZ
            - ZZO
            - ZAEI
            - ZRD
            - ZZSSD
            - ZURD
            - ZUZD
            - SS
            - KZP
            - KZPZU
            - KZUR
            - KZUZ
            - KZZO
            - KZAEI
            - KZRD
            - KZZSSD
            - KZURD
            - KZUZD
            - WPNDSI
            - ZRKON
            - ZPKON
            - ZZEIKON
            - KZZEIKON
            - ZPZUKON
            - ZURKON
            - ZUZKON
            - WDDIKON
            - WWTKON
            - WNZNKON
            - IWLZKON
            - OZWKON
            - KZRKON
            - KZPKON
            - KZPZUKON
            - KZURKON
            - KZUZKON
            - ZTUKU
            - PB
            - DJP1
            - DJP2
            - DJP3
            - ZA
            - KZA
            - ZAS
            - KZAS
            - ZDARZENIE_ZRPR
            - ZDARZENIE_ZRPU
            - ZDARZENIE_ZRPI
            - ZDARZENIE_ZPPZ
            - ZDARZENIE_ZPPD
            - ZDARZENIE_ZPPU
            - ZDARZENIE_ZPPI
            - ZDARZENIE_ZPZUPA
            - ZDARZENIE_ZPZUZA
            - ZDARZENIE_ZPZUUG
            - ZDARZENIE_ZPZUUK
            - ZDARZENIE_ZPZUUNAK
            - ZDARZENIE_ZPZUUWS
            - ZDARZENIE_ZPZUUIS
            - ZDARZENIE_ZPZUSZ
            - ZDARZENIE_ZURUR
            - ZDARZENIE_ZURUW
            - ZDARZENIE_ZUZUZ
            - ZDARZENIE_ZRUR
            - ZDARZENIE_ZZOZO
            - ZDARZENIE_ZAPR
            - ZDARZENIE_ZAWY
            - ZDARZENIE_ZAEIAEI
            - ZDARZENIE_SSSSA
            - ZDARZENIE_ZASAK
            - ZDARZENIE_ZASAKAR
            - ZDARZENIE_ZRDPR
            - ZDARZENIE_ZRDPU
            - ZDARZENIE_ZRDPI
            - ZDARZENIE_ZRDWJW
            - ZDARZENIE_ZZSSDPZ
            - ZDARZENIE_ZZSSDPD
            - ZDARZENIE_ZZSSDPU
            - ZDARZENIE_ZZSSDPI
            - ZDARZENIE_ZZSSDPA
            - ZDARZENIE_ZZSSDZA
            - ZDARZENIE_ZZSSDUG
            - ZDARZENIE_ZZSSDUK
            - ZDARZENIE_ZURDUR
            - ZDARZENIE_ZURDUW
            - ZDARZENIE_ZUZDUZ
            - ZDARZENIE_ZRDUR
            - ZDARZENIE_ZRKONPR
            - ZDARZENIE_ZRKONUR
            - ZDARZENIE_ZRKONPU
            - ZDARZENIE_ZRKONPD
            - ZDARZENIE_ZRKONPI
            - ZDARZENIE_ZPKONPZ
            - ZDARZENIE_ZPKONPD
            - ZDARZENIE_ZPKONPU
            - ZDARZENIE_ZPKONPI
            - ZDARZENIE_ZPZUKONPA
            - ZDARZENIE_ZPZUKONZA
            - ZDARZENIE_ZPZUKONUG
            - ZDARZENIE_ZPZUKONUK
            - ZDARZENIE_ZURKONUR
            - ZDARZENIE_ZURKONUW
            - ZDARZENIE_ZUZKONUZ
            - ZDARZENIE_ZZEIKONZA
            - ZDARZENIE_ZOUSUR
            - ZDARZENIE_ZDOLOL
            - ZDARZENIE_ZPRSU
            - ZDARZENIE_ZPRSI
            - ZDARZENIE_ZPZUSPA
            - ZDARZENIE_ZPZUSZA
            - ZDARZENIE_ZPZUSU
            - ZDARZENIE_ZUZSUZ
            - ZDARZENIE_ZURSUR
            - ZDARZENIE_ZURSUW
            - ZDARZENIE_ZZDOLZOL
            - ZDARZENIE_ZPSZ
            - ZDARZENIE_ZPSD
            - ZDARZENIE_ZPSU
            - ZDARZENIE_ZPSI
            - ZDARZENIE_ZAKONPR
            - ZDARZENIE_ZAKONWY
            - ZWP_INDYWIDUALNE
            - ZWP_KONIOWATE
            - ZWP_DROB
            - ZWP_REJESTR_LOCH
            - ZWP_SWINIE
            - DWPNDSI
            - DWPPNSI
            - OWPPNSI
            - DORD
            - DOZDD
            - ZRDPZDZ
            - ZOUS
            - ZPZUS
            - ZPS
            - ZPRS
            - ZDOL
            - ZUZS
            - ZZDOL
            - ZURS
            - SSSS
            - KZOUS
            - KZPRS
            - KZPZUS
            - KZDOL
            - KZZDOL
            - KSSSS
            - KZUZS
            - KZPS
            - KZURS
            - KZW
            - WZZSI
            - RAP01
            - RAP02
            - RAP03
            - RAP04
            - RAP05
            - RAP06
            - RAP07
            - RAP08
            - RAP09
            - RAP10
            - DWZZSI
            - OWZZSI
            - ZAKON
            - ZAD
            - KZAD
            - ZDARZENIE_ZADAK
            - KZAKON
        forms:
          type: array
          items:
            $ref: '#/components/schemas/FormDetails'
        parametry:
          type: object
          additionalProperties:
            type: string
    FormDetails:
      type: object
      properties:
        header:
          type: string
        sections:
          type: array
          items:
            $ref: '#/components/schemas/Section'
        tooltip:
          type: string
        formType:
          type: string
          enum:
            - documentDefinition
            - details
            - saveForm
            - correction
            - processSummary
            - events
            - animal
            - decision
            - passport
        actions:
          type: array
          items:
            $ref: '#/components/schemas/FormAction'
    Section:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        order:
          type: integer
          format: int32
        fields:
          type: array
          items:
            $ref: '#/components/schemas/Field'
        lists:
          type: array
          items:
            $ref: '#/components/schemas/SectionList'
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/Attachment'
        actions:
          type: array
          items:
            $ref: '#/components/schemas/FormAction'
        cssClass:
          type: string
        sectionConditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldCondition'
    SectionList:
      type: object
      properties:
        key:
          type: string
        headers:
          type: array
          items:
            type: string
        dataSet:
          type: array
          items:
            type: object
        columns:
          type: array
          items:
            $ref: '#/components/schemas/FieldValue'
        rowForm:
          $ref: '#/components/schemas/FormDetails'
        expandedRow:
          type: array
          items:
            $ref: '#/components/schemas/FieldValue'
        hideExpander:
          type: boolean
    TworzenieKorektyDTO:
      type: object
      properties:
        definicjaFormularza:
          $ref: '#/components/schemas/FormDefinition'
        daneKorekty:
          $ref: '#/components/schemas/DaneKorektyDTO'
    PobieranieZdarzenApiRequest:
      type: object
      properties:
        gatunek:
          type: string
          description: Kod wartości słownikowej – Gatunek (SIA-SL02164)
        historiaZdarzen:
          type: string
          description: Kod wartości słownikowej - Historia zdarzeń zwierzęcia (SIA-SL02196)
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
          description: Indywidualny numer identyfikacyjny lochy
        numerDzialalnosci:
          type: string
          description: Numer działalności
        stanZdarzenia:
          type: string
          description: Stan zdarzenia
        typZdarzenia:
          type: string
          description: Typ zdarzenia
        dataZdarzeniaOd:
          type: string
          description: Data zdarzenia od
          format: date
        dataZdarzeniaDo:
          type: string
          description: Data zdarzenia do
          format: date
      description: Request pobierania zdarzeń przez API produkcyjne
    PobieranieZdarzenApiResponse:
      type: object
      properties:
        komunikat:
          type: string
          description: Komunikat
        listaZdarzenie:
          type: array
          description: Lista zdarzenia
          items:
            $ref: '#/components/schemas/ZdarzenieDTO'
      description: Response pobierania zdarzeń przez API produkcyjne
    PodgladWezwaniaDTO:
      type: object
      properties:
        powodWezwania:
          type: string
        sposobDalszejObslugi:
          type: string
    WezwanieListaDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int32
        idKancelaryjneWezwania:
          type: integer
          format: int64
        numerWezwania:
          type: string
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        status:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataUtworzenia:
          type: string
          format: date
    WartoscSlownikowaDto:
      type: object
      properties:
        id:
          type: integer
          format: int64
        idSlownika:
          type: integer
          format: int64
        dataCzasOstatniejModyfikacji:
          type: string
          format: date-time
        czyEdytowalna:
          type: boolean
        dataObowiazywaniaOd:
          type: string
          format: date
        dataObowiazywaniaDo:
          type: string
          format: date
        kod:
          type: string
        nazwa:
          type: string
        kolejnosc:
          type: integer
          format: int32
        parametryTechniczne:
          type: object
          additionalProperties:
            type: object
    OperacjaDto:
      type: object
      properties:
        id:
          type: integer
          format: int64
        adnotacje:
          type: string
        dataOperacji:
          type: string
          format: date-time
        typOperacji:
          type: string
        stanDokumentu:
          type: string
        imieUzytkownika:
          type: string
        nazwiskoUzytkownika:
          type: string
        loginUzytkownika:
          type: string
        jednostkaArimr:
          type: string
        nazwaJednostki:
          type: string
    PageOperacjaDto:
      type: object
      properties:
        totalPages:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int64
        number:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        numberOfElements:
          type: integer
          format: int32
        content:
          type: array
          items:
            $ref: '#/components/schemas/OperacjaDto'
        sort:
          $ref: '#/components/schemas/Sort'
        first:
          type: boolean
        last:
          type: boolean
        pageable:
          $ref: '#/components/schemas/Pageable'
        empty:
          type: boolean
    Table:
      type: object
      properties:
        tableColumns:
          type: array
          items:
            $ref: '#/components/schemas/TableColumn'
    TableColumn:
      type: object
      properties:
        label:
          type: string
        propertyName:
          type: string
        sortableProperty:
          type: string
        type:
          type: string
        icon:
          type: string
        link:
          type: string
    Filter:
      type: object
      properties:
        formKey:
          type: string
        type:
          type: string
          enum:
            - select
            - text
            - number
            - date
            - checkbox
            - dateRange
            - teryt
            - terytSelect
        label:
          type: string
        placeholder:
          type: string
        defaultValue:
          type: object
        uniqueFormKey:
          type: string
        dictionaryKey:
          type: string
        dictionaryContext:
          type: string
        tooltip:
          type: string
        apiUrl:
          type: string
        mask:
          type: string
        maskGuide:
          type: boolean
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FilterCondition'
        toUpperCase:
          type: boolean
        oneOfRequiredFilters:
          type: boolean
        terytType:
          type: string
          enum:
            - wojewodztwo
            - powiat
            - gmina
            - miejscowosc
            - ulica
            - jednostka
            - poczta
        dictionaryAllValues:
          type: boolean
    FilterCondition:
      type: object
      properties:
        relatedFieldName:
          type: string
        value:
          type: object
        operator:
          type: string
          enum:
            - EQUAL
    Filters:
      type: object
      properties:
        filters:
          type: array
          items:
            $ref: '#/components/schemas/Filter'
        menuFilters:
          type: array
          items:
            $ref: '#/components/schemas/Filter'
    SzablonWydrukuDTO:
      type: object
      properties:
        typDokumentu:
          type: string
        dataObowiazywaniaOd:
          type: string
          format: date
        dataObowiazywaniaDo:
          type: string
          format: date
        nazwaPliku:
          type: string
    PageSzablonWydrukuListaDTO:
      type: object
      properties:
        totalPages:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int64
        number:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        numberOfElements:
          type: integer
          format: int32
        content:
          type: array
          items:
            $ref: '#/components/schemas/SzablonWydrukuListaDTO'
        sort:
          $ref: '#/components/schemas/Sort'
        first:
          type: boolean
        last:
          type: boolean
        pageable:
          $ref: '#/components/schemas/Pageable'
        empty:
          type: boolean
    SzablonWydrukuListaDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        typDokumentu:
          type: string
        dataObowiazywaniaOd:
          type: string
          format: date
        dataObowiazywaniaDo:
          type: string
          format: date
        nazwaPliku:
          type: string
    ZwierzeGrupoweListItemDTO:
      type: object
      properties:
        id:
          type: string
        numerDzialalnosci:
          type: string
        liczbaSwin:
          type: integer
          format: int32
        liczbaNieprawidlowosciSwin:
          type: integer
          format: int32
        liczbaLoch:
          type: integer
          format: int32
        nieprawidlowosciLoch:
          type: boolean
        historiaZdarzen:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
    ZdarzenieZwierzeGrupoweDTO:
      type: object
      properties:
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        zglaszajacaDzialalnosc:
          type: string
        numerDokumentu:
          type: string
        dataZdarzenia:
          type: string
          format: date
        stanZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        idZdarzenia:
          type: string
    DaneSzczegoloweOKlasyfikacjiTuszDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int32
        klasyfikacjaTuszy:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        liczbaSztuk:
          type: integer
          format: int32
        masaCialaZwierzecia:
          type: number
          format: double
        masaTuszy:
          type: number
          format: double
        klasyfikacjaTuszLoch:
          type: array
          items:
            $ref: '#/components/schemas/KlasyfikacjaTuszyLochyDTO'
    InformacjeOKlasyfikacjiTuszDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int32
        numerRzezni:
          type: string
        dataZdarzenia:
          type: string
          format: date
        dataPrzyjeciaDoRzezni:
          type: string
          format: date
        klasyfikacjaTusz:
          type: array
          items:
            $ref: '#/components/schemas/DaneSzczegoloweOKlasyfikacjiTuszDTO'
    DokumentZwierzeGrupoweDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerDokumentu:
          type: string
        statusDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerDzialalnosci:
          type: string
        dataPrzyjeciaDokumentu:
          type: string
          format: date
    NumerLochyDto:
      type: object
      properties:
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
    ZwierzeGupoweSearchCriteriaDTO:
      type: object
      properties:
        historiaZdarzen:
          type: string
        numerIdentyfikacyjnyLochy:
          type: string
        numerDzialalnosci:
          type: string
        wojewodztwo:
          type: string
        powiat:
          type: string
        gmina:
          type: string
        stanNaDzien:
          type: string
          format: date
        czyZablokowane:
          type: boolean
        dataOd:
          type: string
          format: date
        dataDo:
          type: string
          format: date
    PageZwierzeGrupoweListItemDTO:
      type: object
      properties:
        totalPages:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int64
        number:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        numberOfElements:
          type: integer
          format: int32
        content:
          type: array
          items:
            $ref: '#/components/schemas/ZwierzeGrupoweListItemDTO'
        sort:
          $ref: '#/components/schemas/Sort'
        first:
          type: boolean
        last:
          type: boolean
        pageable:
          $ref: '#/components/schemas/Pageable'
        empty:
          type: boolean
    PobieranieZwierzatApiRequest:
      type: object
      properties:
        numerProducenta:
          type: string
          description: Numer producenta
        numerDzialalnosci:
          type: string
          description: Numer działalności
        czyRejestrLoch:
          type: boolean
          description: Czy Rejestr loch
        czyDaneLoch:
          type: boolean
          description: Czy Dane loch
        numerIdentyfikacyjnyLochy:
          type: string
          description: Indywidualny numer identyfikacyjny lochy
        stanDanychNaDzien:
          type: string
          description: Stan danych na dzień
          format: date
      description: Request pobierania zwierząt przez API produkcyjne
    DaneLochDTO:
      type: object
      properties:
        lp:
          type: integer
          description: Liczba porządkowa
          format: int32
        numerDzialalnosci:
          type: string
          description: Numer działalności
        zmianaOznakowania:
          type: boolean
          description: Zmiana oznakowania
        rejestrLoch:
          type: array
          description: Lista z rejestru loch
          items:
            $ref: '#/components/schemas/RejestrLochDTO'
        listaHistoriaZmianOznakowania:
          type: array
          description: Lista z historii zmian oznakowania
          items:
            $ref: '#/components/schemas/HistoriaZmianOznakowaniaDTO'
        indywidualnyNumerLochy:
          type: string
          description: Indywidualny numer identyfikacyjny lochy
      description: Dane lochy
    HistoriaZmianOznakowaniaDTO:
      type: object
      properties:
        lp:
          type: integer
          description: Liczba porządkowa
          format: int32
        numerDzialalnosci:
          type: string
          description: Numer działalności
        aktualnyNumerLochy:
          type: string
          description: Indywidualny numer identyfikacyjny lochy
        poprzedniNumerLochy:
          type: string
          description: Poprzedni indywidualny numer identyfikacyjny lochy
        dataOznakowania:
          type: string
          description: Data oznakowania/zmiany oznakowania
          format: date
      description: Dane historii zmian oznakowania
    PobieranieZwierzatApiResponse:
      type: object
      properties:
        komunikat:
          type: string
          description: Komunikat
        daneZwierzatZGatunkuSwinie:
          type: array
          description: Lista zwierząt z gatunku świnie
          items:
            $ref: '#/components/schemas/ZwierzetaDTO'
        daneLoch:
          type: array
          description: Lista danych loch
          items:
            $ref: '#/components/schemas/DaneLochDTO'
      description: Response pobierania zwierząt przez API produkcyjne
    RejestrLochDTO:
      type: object
      properties:
        lp:
          type: integer
          description: Liczba porządkowa
          format: int32
        numerIdentyfikacyjnyLochy:
          type: string
          description: Indywidualny numer identyfikacyjny lochy
        numerDzialalnosci:
          type: string
          description: Numer działalności
        oznakowanie:
          type: boolean
          description: Oznakowanie w siedzibie
        dataPrzybycia:
          type: string
          description: Data przybycia/oznakowania
          format: date
        dataWybycia:
          type: string
          description: Data wybycia
          format: date
        niespojnaHistoria:
          type: boolean
          description: Niespójna historia
      description: Dane rejestru lochy
    ZwierzetaDTO:
      type: object
      properties:
        lp:
          type: integer
          description: Liczba porządkowa
          format: int32
        numerDzialalnosci:
          type: string
          description: Numer partii drobiu
        liczbaLoch:
          type: integer
          description: Liczba loch
          format: int32
        nieprawidlowosciLoch:
          type: boolean
          description: Nieprawidłowości loch
        ogolnaLiczbaSwin:
          type: integer
          description: Liczba świń
          format: int32
        nieprawidlowosci:
          type: integer
          description: Nieprawidłowości
          format: int32
      description: Dane zwierzęcia
    LochaSzczegolyDTO:
      type: object
      properties:
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
        dataOznakowania:
          type: string
          format: date
        numerDzialalnosci:
          type: string
        sposobOznakowaniaLochy:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataPrzybyciaDoDzialalnosci:
          type: string
          format: date
        dataWybycia:
          type: string
          format: date
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
    DokumentLochyDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerDokumentu:
          type: string
        statusDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerDzialalnosci:
          type: string
        dataPrzyjeciaDokumentu:
          type: string
          format: date
    RejestrLochyListItemDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        idLochy:
          type: string
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
        numerDzialalnosci:
          type: string
        czyOznakowanie:
          type: boolean
        dataPrzybyciaLubOznakowania:
          type: string
          format: date
        dataWybycia:
          type: string
          format: date
        niespojnaHistoria:
          type: boolean
        zmianaOznakowania:
          type: boolean
    RejestrLochySearchCriteriaDTO:
      type: object
      properties:
        numerDzialalnosci:
          type: string
        numerIdentyfikacyjnyLochy:
          type: string
        zmianaOznakowania:
          type: boolean
        stanNaDzien:
          type: string
          format: date
    PageRejestrLochyListItemDTO:
      type: object
      properties:
        totalPages:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int64
        number:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        numberOfElements:
          type: integer
          format: int32
        content:
          type: array
          items:
            $ref: '#/components/schemas/RejestrLochyListItemDTO'
        sort:
          $ref: '#/components/schemas/Sort'
        first:
          type: boolean
        last:
          type: boolean
        pageable:
          $ref: '#/components/schemas/Pageable'
        empty:
          type: boolean
    PrzemieszczenieZwierzatWyszukiwanieFiltrDTO:
      required:
        - dataOd
        - gatunek
        - numerDzialalnosci
        - typZdarzenia
      type: object
      properties:
        numerDzialalnosci:
          type: string
        typZdarzenia:
          type: array
          items:
            type: string
        gatunek:
          type: string
        kodKraju:
          type: string
        dataOd:
          type: string
          format: date
        dataDo:
          type: string
          format: date
        kierunekPrzybycia:
          type: boolean
        kierunekWybycia:
          type: boolean
    PagePrzemieszczenieZwierzatWyszukiwanieResultDTO:
      type: object
      properties:
        totalPages:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int64
        number:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        numberOfElements:
          type: integer
          format: int32
        content:
          type: array
          items:
            $ref: '#/components/schemas/PrzemieszczenieZwierzatWyszukiwanieResultDTO'
        sort:
          $ref: '#/components/schemas/Sort'
        first:
          type: boolean
        last:
          type: boolean
        pageable:
          $ref: '#/components/schemas/Pageable'
        empty:
          type: boolean
    PrzemieszczenieZwierzatWyszukiwanieResultDTO:
      type: object
      properties:
        dzialalnoscNumer:
          type: string
        wspolrzednaX:
          type: number
        wspolrzednaY:
          type: number
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        data:
          type: string
          format: date
        ilosc:
          type: integer
          format: int64
        kraj:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        odpytywanaDzialalnoscWspX:
          type: number
        odpytywanaDzialalnoscWspY:
          type: number
    PagePropozycjaDTO:
      type: object
      properties:
        totalPages:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int64
        number:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        numberOfElements:
          type: integer
          format: int32
        content:
          type: array
          items:
            $ref: '#/components/schemas/PropozycjaDTO'
        sort:
          $ref: '#/components/schemas/Sort'
        first:
          type: boolean
        last:
          type: boolean
        pageable:
          $ref: '#/components/schemas/Pageable'
        empty:
          type: boolean
    PropozycjaDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        numerProducenta:
          type: string
        zgloszenie:
          $ref: '#/components/schemas/BazoweZgloszenie'
        doDzialalnosci:
          type: string
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataZdarzenia:
          type: string
          format: date
        czyOdczytana:
          type: boolean
        dataWaznosci:
          type: string
          format: date
        dataUtworzenia:
          type: string
          format: date
        notatka:
          type: string
        idDokumentuKancelaryjnego:
          type: integer
          format: int64
        zdzialalnosci:
          type: string
    ZwierzeGrupoweListItemPortalDTO:
      type: object
      properties:
        id:
          type: string
        numerDzialalnosci:
          type: string
        liczbaSwin:
          type: integer
          format: int32
        liczbaNieprawidlowosciSwin:
          type: integer
          format: int32
        liczbaLoch:
          type: integer
          format: int32
        nieprawidlowosciLoch:
          type: boolean
        historiaZdarzen:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
    ZdarzenieZwierzeGrupowePortalDTO:
      type: object
      properties:
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        zglaszajacaDzialalnosc:
          type: string
        numerDokumentu:
          type: string
        dataZdarzenia:
          type: string
          format: date
        stanZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        idZdarzenia:
          type: string
    DaneSzczegoloweOKlasyfikacjiTuszPortalDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int32
        klasyfikacjaTuszy:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        liczbaSztuk:
          type: integer
          format: int32
        masaCialaZwierzecia:
          type: number
          format: double
        masaTuszy:
          type: number
          format: double
        klasyfikacjaTuszLoch:
          type: array
          items:
            $ref: '#/components/schemas/KlasyfikacjaTuszyLochyDTO'
    InformacjeOKlasyfikacjiTuszPortalDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int32
        numerRzezni:
          type: string
        dataZdarzenia:
          type: string
          format: date
        dataPrzyjeciaDoRzezni:
          type: string
          format: date
        klasyfikacjaTusz:
          type: array
          items:
            $ref: '#/components/schemas/DaneSzczegoloweOKlasyfikacjiTuszPortalDTO'
    DokumentZwierzeGrupowePortalDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerDokumentu:
          type: string
        status:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerDzialalnosci:
          type: string
        dataPrzyjecia:
          type: string
          format: date
    ZwierzeGupoweSearchCriteriaPortalDTO:
      type: object
      properties:
        historiaZdarzen:
          type: string
        numerProducenta:
          type: string
        numerIdentyfikacyjnyLochy:
          type: string
        numerDzialalnosci:
          type: string
        stanNaDzien:
          type: string
          format: date
    PageZwierzeGrupoweListItemPortalDTO:
      type: object
      properties:
        totalPages:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int64
        number:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        numberOfElements:
          type: integer
          format: int32
        content:
          type: array
          items:
            $ref: '#/components/schemas/ZwierzeGrupoweListItemPortalDTO'
        sort:
          $ref: '#/components/schemas/Sort'
        first:
          type: boolean
        last:
          type: boolean
        pageable:
          $ref: '#/components/schemas/Pageable'
        empty:
          type: boolean
    LochaSzczegolyPortalDTO:
      type: object
      properties:
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
        dataOznakowania:
          type: string
          format: date
        numerDzialalnosci:
          type: string
        sposobOznakowaniaLochy:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataPrzybyciaDoDzialalnosci:
          type: string
          format: date
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
    DokumentLochyPortalDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        typDokumentu:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerDokumentu:
          type: string
        status:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dzialalnosc:
          type: string
        dataPrzyjecia:
          type: string
          format: date
    RejestrLochyListItemPortalDTO:
      type: object
      properties:
        id:
          type: integer
          format: int64
        idLochy:
          type: integer
          format: int64
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
        numerDzialalnosci:
          type: string
        czyOznakowanie:
          type: boolean
        dataPrzybyciaLubOznakowania:
          type: string
          format: date
        dataWybycia:
          type: string
          format: date
        niespojnaHistoria:
          type: boolean
    RejestrLochySearchCriteriaPortalDTO:
      type: object
      properties:
        numerProducenta:
          type: string
        numerDzialalnosci:
          type: string
        numerIdentyfikacyjnyLochy:
          type: string
        stanNaDzien:
          type: string
          format: date
    PageRejestrLochyListItemPortalDTO:
      type: object
      properties:
        totalPages:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int64
        number:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        numberOfElements:
          type: integer
          format: int32
        content:
          type: array
          items:
            $ref: '#/components/schemas/RejestrLochyListItemPortalDTO'
        sort:
          $ref: '#/components/schemas/Sort'
        first:
          type: boolean
        last:
          type: boolean
        pageable:
          $ref: '#/components/schemas/Pageable'
        empty:
          type: boolean
    PrzemieszczenieZwierzatWyszukiwanieFiltrPortalDTO:
      required:
        - dataOd
        - gatunek
        - numerDzialalnosci
        - typZdarzenia
      type: object
      properties:
        numerDzialalnosci:
          type: string
        typZdarzenia:
          type: array
          items:
            type: string
        gatunek:
          type: string
        kodKraju:
          type: string
        dataOd:
          type: string
          format: date
        dataDo:
          type: string
          format: date
        kierunekPrzybycia:
          type: boolean
        kierunekWybycia:
          type: boolean
    PagePrzemieszczenieZwierzatWyszukiwanieResultPortalDTO:
      type: object
      properties:
        totalPages:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int64
        number:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        numberOfElements:
          type: integer
          format: int32
        content:
          type: array
          items:
            $ref: >-
              #/components/schemas/PrzemieszczenieZwierzatWyszukiwanieResultPortalDTO
        sort:
          $ref: '#/components/schemas/Sort'
        first:
          type: boolean
        last:
          type: boolean
        pageable:
          $ref: '#/components/schemas/Pageable'
        empty:
          type: boolean
    PrzemieszczenieZwierzatWyszukiwanieResultPortalDTO:
      type: object
      properties:
        dzialalnoscNumer:
          type: string
        wspolrzednaX:
          type: number
        wspolrzednaY:
          type: number
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        data:
          type: string
          format: date
        ilosc:
          type: integer
          format: int64
        kraj:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        odpytywanaDzialalnoscWspX:
          type: number
        odpytywanaDzialalnoscWspY:
          type: number
    HistoriaZmianOznakowaniaLochyDTO:
      type: object
      properties:
        numerIdentyfikacyjnyLochyJest:
          type: string
        numerIdentyfikacyjnyLochyBylo:
          type: string
        numerDzialalnosci:
          type: string
        dataOznakowaniaLubZmianyOznakowania:
          type: string
          format: date
        czyZdarzenieOznakowania:
          type: boolean
        czyOstatniWpis:
          type: boolean
    PodgladDokumentuDTO:
      type: object
      properties:
        daneDokumentu:
          $ref: '#/components/schemas/DokumentDTO'
    Konfiguracja:
      type: object
      properties:
        dozwoloneRozszerzenia:
          type: array
          items:
            $ref: '#/components/schemas/RozszerzenieDto'
        rozmiarPliku:
          $ref: '#/components/schemas/RozmiarPliku'
        nazwaZalacznika:
          $ref: '#/components/schemas/NazwaZalacznika'
        opisZawartosci:
          $ref: '#/components/schemas/OpisZawartosci'
    NazwaZalacznika:
      type: object
      properties:
        maxLength:
          type: integer
          format: int32
    OpisZawartosci:
      type: object
      properties:
        maxLength:
          type: integer
          format: int32
    RozmiarPliku:
      type: object
      properties:
        bytes:
          type: integer
          format: int32
        formatted:
          type: string
    RozszerzenieDto:
      type: object
      properties:
        rozszerzenie:
          type: string
        czyPodglad:
          type: boolean
    PobieranieLochIWApiRequest:
      type: object
      properties:
        numerDzialalnosci:
          type: string
          description: Numer działalności
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
          description: Indywidualnu numer identyfikacyjny lochy
        zmianaOznakowania:
          type: boolean
          description: Zmiana oznakowania
        stanDanychNaDzien:
          type: string
          description: 'Stan danych na dzień '
          format: date
      description: Parametry wejsciowe pobierania listy loch dla API IW
    PobieranieLochIWApiResponse:
      type: object
      properties:
        komunikat:
          type: string
          description: Komunikat
        listaLoch:
          type: array
          description: Lista loch
          items:
            $ref: '#/components/schemas/RejestrLochyApiDTO'
      description: Parametry wyjsciowe pobierania listy loch dla API IW
    RejestrLochyApiDTO:
      type: object
      properties:
        lp:
          type: integer
          description: Liczba porządkowa
          format: int32
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
          description: Indywidualnu numer identyfikacyjny lochy
        numerDzialalnosci:
          type: string
          description: Numer działalności
        oznakowanieWSiedzibie:
          type: boolean
          description: Oznakowanie w siedzibie
        dataPrzybyciaOznakowania:
          type: string
          description: Data przybycia/oznakowania
          format: date
        dataWybycia:
          type: string
          description: Data wybycia
          format: date
        niespojnaHistoria:
          type: boolean
          description: Niespójna historia
        zmianaOznakowania:
          type: boolean
          description: Zmiana oznakowania
      description: Dane z rejestru loch dla API IW
    PobieranieKontekstuJednostkiRequest:
      type: object
      properties:
        numerProducenta:
          type: string
        numerDzialalnosci:
          type: string
        typDokumentu:
          type: string
    PobieranieKontekstuJednostkiDTO:
      type: object
      properties:
        wojewodztwo:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        powiat:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        jednostkaOrganizacyjna:
          $ref: '#/components/schemas/KodOpisWartosciDto'
    ZwierzetaDzialalnosciDTO:
      type: object
      properties:
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        liczbaZwierzat:
          type: integer
          format: int32
        liczbaNieprawidlowosci:
          type: integer
          format: int32
        liczbaZwierzatOpis:
          type: string
        liczbaNieprawidlowosciOpis:
          type: string
        statusGatunku:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        zablokowaneZwierzeta:
          type: boolean
    US02521LiczbaZwierzatDomain:
      type: object
      properties:
        liczbaZwierzat:
          type: integer
          format: int64
        liczbaZwierzatPoczatekRoku:
          type: integer
          format: int64
    US02521LiczbaZwierzatDzialalnosciDomain:
      type: object
      properties:
        numerDzialalnosci:
          type: string
        liczbaZwierzatGatunku:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/US02521LiczbaZwierzatDomain'
    ObiektPostepowaniaZwieGrInternalDomain:
      type: object
      properties:
        numerProducenta:
          type: string
        idObiektu:
          type: integer
          format: int64
        numerDzialalnosci:
          type: string
        liczbaSwin:
          type: integer
          format: int64
        liczbaNieprawidlowosciSwin:
          type: integer
          format: int64
        liczbaLoch:
          type: integer
          format: int32
        nieprawidlowosciLoch:
          type: boolean
    LiczbaZwierzatNaDateDomain:
      type: object
      properties:
        liczbaZwierzat:
          type: integer
          format: int32
        data:
          type: string
          format: date
    LochaSzczegolyDto:
      type: object
      properties:
        indywidualnyNumerIdentyfikacyjnyLochy:
          type: string
        dataOznakowania:
          type: string
          format: date
        numerDzialalnosci:
          type: string
        sposobOznakowaniaLochy:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataPrzybyciaDoDzialalnosci:
          type: string
          format: date
        dataWybycia:
          type: string
          format: date
    ZwierzetaDlaDjpSearchCriteria:
      type: object
      properties:
        gatunek:
          type: array
          items:
            type: string
        numerProducenta:
          type: string
        dataOd:
          type: string
          format: date
        dataDo:
          type: string
          format: date
    ZwierzeDlaDjpDomain:
      type: object
      properties:
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        numerDzialalnosci:
          type: string
        numerIdentyfikacyjny:
          type: string
        plec:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        rasa:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataUrodzenia:
          type: string
          format: date
        dataPrzybycia:
          type: string
          format: date
        dataWybycia:
          type: string
          format: date
        dataZdarzenia:
          type: string
          format: date
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        liczbaSztukNaZdarzeniu:
          type: integer
          format: int32
        liczbaSztukPoZdarzeniu:
          type: integer
          format: int32
        liczbaNieprawidlowosci:
          type: integer
          format: int32
        typUbojuSwin:
          $ref: '#/components/schemas/KodOpisWartosciDto'
    SzczegolyWskaznikowDlaGatunku:
      type: object
      properties:
        liczbaDjpMiesiacI:
          type: number
          format: double
        liczbaDjpMiesiacII:
          type: number
          format: double
        liczbaDjpMiesiacIII:
          type: number
          format: double
        liczbaDjpMiesiacIV:
          type: number
          format: double
        liczbaDjpMiesiacV:
          type: number
          format: double
        liczbaDjpMiesiacVI:
          type: number
          format: double
        liczbaDjpMiesiacVII:
          type: number
          format: double
        liczbaDjpMiesiacVIII:
          type: number
          format: double
        liczbaDjpMiesiacIX:
          type: number
          format: double
        liczbaDjpMiesiacX:
          type: number
          format: double
        liczbaDjpMiesiacXI:
          type: number
          format: double
        liczbaDjpMiesiacXII:
          type: number
          format: double
    WskaznikiDJP3Domain:
      type: object
      properties:
        gmina:
          type: string
        powiat:
          type: string
        wojewodztwo:
          type: string
        rodzajGminy:
          type: string
        numerDzialalnosci:
          type: string
        bydlo:
          $ref: '#/components/schemas/SzczegolyWskaznikowDlaGatunku'
        owce:
          $ref: '#/components/schemas/SzczegolyWskaznikowDlaGatunku'
        kozy:
          $ref: '#/components/schemas/SzczegolyWskaznikowDlaGatunku'
        swinie:
          $ref: '#/components/schemas/SzczegolyWskaznikowDlaGatunku'
        konie:
          $ref: '#/components/schemas/SzczegolyWskaznikowDlaGatunku'
    ObiektPostepowaniaZdarzGrInternalDomain:
      type: object
      properties:
        numerProducenta:
          type: string
        idObiektu:
          type: integer
          format: int64
        liczbaSwin:
          type: integer
          format: int32
        liczbaLoch:
          type: integer
          format: int32
        typZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        stanZdarzenia:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        dataZdarzenia:
          type: string
          format: date
        dataWplywuDokumentu:
          type: string
          format: date
        zglaszajacaDzialanosc:
          type: string
        komplementarnaDzialanosc:
          type: string
    ZdarzeniaDzialalnosciDTO:
      type: object
      properties:
        lp:
          type: integer
          format: int32
        gatunek:
          $ref: '#/components/schemas/KodOpisWartosciDto'
        liczbaPrzybyc:
          type: integer
          format: int64
        liczbaWybyc:
          type: integer
          format: int64
    GatunekZwierzatProducentaDTO:
      type: object
      properties:
        gatunekOpis:
          type: string
          xml:
            name: opis
        gatunekKod:
          type: string
          xml:
            name: kod
        ile:
          type: integer
          format: int32
          xml:
            name: liczbaSztuk
    GatunkiZwierzatProducentaDTO:
      type: object
      properties:
        dataDanychIRZ:
          type: string
          format: date
          xml:
            attribute: true
        zwierzetaProducenta:
          type: array
          xml:
            name: gatunkiUProducenta
            wrapped: true
          items:
            $ref: '#/components/schemas/GatunekZwierzatProducentaDTO'
      xml:
        name: zwierzeta
    WystapienieBleduDTO:
      type: object
      properties:
        kod:
          type: string
        kodReguly:
          type: string
        trescReguly:
          type: string
        kodKomunikatu:
          type: string
        trescKomunikatu:
          type: string
        dotyczy:
          type: string
        warstwaDanych:
          type: string
        wyrazenieZaleznosci:
          type: string
    PobieranieDokumentuApiRequest:
      required:
        - numerDokumentu
        - numerProducenta
      type: object
      properties:
        numerProducenta:
          type: string
          description: Numer producenta, w kontekście którego odbywa się pobranie danych
        numerDokumentu:
          type: string
          description: Numer dyspozycji (dokumentu)
      description: Request pobierania dokumentu
    PobieranieDokumentuResponse:
      type: object
      properties:
        komunikat:
          type: string
          description: Komunikat
        numerDokumentu:
          type: string
          description: Numer dokumentu
        szczegoly:
          $ref: '#/components/schemas/BazoweZgloszenie'
        blad:
          type: array
          description: Bład
          items:
            $ref: '#/components/schemas/PobieranieDokumentuResponse'
      description: Wynik pobierania dokumentu
