LCOV - code coverage report
Current view: top level - schemas/api - name_reminders.clj Coverage Total Hit
Test: lcov.info Lines: 100.0 % 28 28
Test Date: 2026-11-23 18:11:10 Functions: - 0 0

            Line data    Source code
       1            4 : (ns schemas.api.name-reminders
       2              :   "Schemas for the name-confirmation nudges: the organizer's group reminder and the
       3              :    app's report that the Telegram bot may message the user.")
       4              : 
       5              : 
       6            4 : (def NameReminderMessageBody
       7           20 :   [:map {:swagger/title "NameReminderMessageBody"}
       8           12 :    [:message :string]])
       9              : 
      10              : 
      11            4 : (def NameReminderStatusData
      12           28 :   [:map {:swagger/title       "NameReminderStatusData"
      13              :          :swagger/description "Reminder state of an event"}
      14           24 :    [:unconfirmed-count {:description "Players whose name is not confirmed"}
      15              :     :int]
      16           24 :    [:linked-chat-count {:description "Telegram chats linked to the event"}
      17              :     :int]
      18           20 :    [:retry-after-seconds {:description
      19              :                           "Seconds until the next reminder can be posted; null when allowed now"}
      20           12 :     [:maybe :int]]])
      21              : 
      22              : 
      23            4 : (def NameReminderStatusBody
      24           20 :   [:map {:swagger/title "NameReminderStatusBody"}
      25           12 :    [:message :string]
      26           12 :    [:data NameReminderStatusData]])
      27              : 
      28              : 
      29            4 : (def NameReminderStatusResponseSchema
      30            8 :   [:or
      31           40 :    [:map [:status [:= 200]] [:body NameReminderStatusBody]]
      32           40 :    [:map [:status [:= 404]] [:body NameReminderMessageBody]]])
      33              : 
      34              : 
      35            4 : (def NameReminderPostResponseSchema
      36            8 :   [:or
      37           40 :    [:map [:status [:= 202]] [:body NameReminderStatusBody]]
      38           40 :    [:map [:status [:= 400]] [:body NameReminderMessageBody]]
      39           40 :    [:map [:status [:= 404]] [:body NameReminderMessageBody]]
      40           40 :    [:map [:status [:= 429]] [:body NameReminderStatusBody]]])
      41              : 
      42              : 
      43            4 : (def TelegramBotAccessResponseSchema
      44            8 :   [:or
      45           40 :    [:map [:status [:= 200]] [:body NameReminderMessageBody]]
      46           40 :    [:map [:status [:= 400]] [:body NameReminderMessageBody]]])
        

Generated by: LCOV version 2.0-1