{"openapi":"3.0.0","info":{"title":"Product Service API","description":"Mahsulot sifati nazorati - tegirmon, maskanga xulosa, tozalov dalolatnomalari","version":"1.0.0"},"servers":[{"url":"https:\/\/backend.uzagroin.uz","description":"Current Server"}],"paths":{"\/api\/v1\/media\/{media}":{"delete":{"tags":["Media"],"summary":"Faylni o'chirish","description":"Bitta faylni ID orqali o'chirish (barcha modellar uchun ishlaydi)","operationId":"mediaDestroy","parameters":[{"name":"media","in":"path","description":"Media ID","required":true,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"Fayl muvaffaqiyatli o'chirildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Fayl muvaffaqiyatli o'chirildi"}},"type":"object"}}}},"404":{"description":"Fayl topilmadi"}}}},"\/api\/v1\/cotton-conclusions":{"get":{"tags":["Cotton Conclusions"],"summary":"Paxta arbitraj xulosalarini ro'yxatini olish","operationId":"642d11549ab49930b29102ee77a2d8db","parameters":[{"name":"per_page","in":"query","description":"Sahifadagi yozuvlar soni (-1 = hammasi)","required":false,"schema":{"type":"integer","default":15,"maximum":100,"minimum":-1}},{"name":"status","in":"query","description":"waiting (kutilmoqda), rejected (rad etilgan), signed (imzolangan)","required":false,"schema":{"type":"string","example":"waiting","nullable":true,"default":"waiting","enum":["waiting","rejected","signed"]}},{"name":"search","in":"query","description":"Korxona nomi,stir va maskan nomi bo'icha qidiruv","required":false,"schema":{"type":"string","default":"Nimadir"}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id","enum":["id","arbitraj_group_number","conclusion_number","enterprise_name","stir","status","region_id","district_id","reweight_date","created_at","updated_at"]}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/CottonConclusionResponse"}},"meta":{"properties":{"total":{"type":"integer","example":50},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1},"last_page":{"type":"integer","example":4},"from":{"type":"integer","example":1},"to":{"type":"integer","example":15}},"type":"object"},"links":{"properties":{"first":{"type":"string"},"last":{"type":"string"},"prev":{"type":"string","nullable":true},"next":{"type":"string","nullable":true}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}},"post":{"tags":["Cotton Conclusions"],"summary":"Paxta arbitraj xulosasini qo'shish","description":"Yangi paxta arbitraj xulosasini yaratadi","operationId":"cottonConclusionsStore","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/CottonConclusionRequest"}}}},"responses":{"201":{"description":"Xulosa muvaffaqiyatli yaratildi","content":{"application\/json":{"schema":{"required":["success","message","data"],"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli yaratildi"},"data":{"$ref":"#\/components\/schemas\/CottonConclusionResponse"}},"type":"object"}}}},"422":{"description":"Validatsiya xatosi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Validatsiya xatosi"},"errors":{"type":"object","example":{"region_id":["Region maydoni to'ldirilishi shart"]}}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/cotton-conclusions\/{cottonConclusion}":{"get":{"tags":["Cotton Conclusions"],"summary":"Paxta arbitraj xulosasini ko'rish","description":"Bitta CottonConclusion yozuvini ID orqali qaytaradi","operationId":"cottonConclusionsShow","parameters":[{"name":"cottonConclusion","in":"path","description":"CottonConclusion ID","required":true,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"Xulosa muvaffaqiyatli olindi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli olindi"},"data":{"$ref":"#\/components\/schemas\/CottonConclusionResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Cotton Conclusions"],"summary":"Paxta arbitraj xulosasini yangilash","description":"CottonConclusion ma'lumotlarini yangilaydi","operationId":"cottonConclusionsUpdate","parameters":[{"name":"cottonConclusion","in":"path","description":"CottonConclusion ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/CottonConclusionRequest"}}}},"responses":{"200":{"description":"Xulosa muvaffaqiyatli yangilandi","content":{"application\/json":{"schema":{"required":["success","message","data"],"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli yangilandi"},"data":{"$ref":"#\/components\/schemas\/CottonConclusionResponse"}},"type":"object"}}}},"422":{"description":"Validatsiya xatosi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Validatsiya xatosi"},"errors":{"type":"object"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Cotton Conclusions"],"summary":"Paxta arbitraj xulosasini o'chirish","description":"CottonConclusion yozuvini o'chiradi","operationId":"112ccfff7ac835be5a9b6a204b817ba4","parameters":[{"name":"cottonConclusion","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"O'chirildi"},"404":{"description":"Topilmadi"}}}},"\/api\/v1\/cotton-conclusions\/{cottonConclusion}\/reject":{"post":{"tags":["Cotton Conclusions"],"summary":"Paxta arbitraj xulosasini rad etish","description":"Xulosani rad etadi va sababini saqlaydi","operationId":"cottonConclusionReject","parameters":[{"name":"cottonConclusion","in":"path","description":"Paxta xulosa ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["comment"],"properties":{"comment":{"description":"Rad etish sababi","type":"string","example":"Ma'lumotlar noto'g'ri kiritilgan"}},"type":"object"}}}},"responses":{"200":{"description":"Xulosa rad etildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa rad etildi"}},"type":"object"}}}},"400":{"description":"Bu xulosa bilan amal qilish imkoni yo'q"},"403":{"description":"Yaratuvchi rad eta olmaydi"},"404":{"description":"Xulosa topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/cotton-conclusions\/{cottonConclusion}\/sign":{"post":{"tags":["Cotton Conclusions"],"summary":"Paxta arbitraj xulosasini imzolash","description":"Xulosani ECP bilan imzolash","operationId":"cottonConclusionSign","parameters":[{"name":"cottonConclusion","in":"path","description":"Paxta xulosa ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"required":["signature"],"properties":{"signature":{"description":"Imzo (base64\/pkcs7 formatda)","type":"string","example":"base64_signature_data"},"file":{"description":"Imzolangan xulosa fayli (PDF)","type":"string","format":"binary","nullable":true}},"type":"object"}}}},"responses":{"200":{"description":"Xulosa imzolandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Imzo muvaffaqiyatli qo'yildi"},"data":{"properties":{"all_signed":{"type":"boolean","example":false}},"type":"object"}},"type":"object"}}}},"400":{"description":"Bu xulosa bilan amal qilish imkoni yo'q"},"404":{"description":"Xulosa topilmadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/grain-conclusions":{"get":{"tags":["Grain Conclusions"],"summary":"Don arbitraj xulosalarini ro'yxatini olish","operationId":"a9983414abf1d764361eda0056cdf954","parameters":[{"name":"per_page","in":"query","description":"Sahifadagi yozuvlar soni (-1 = hammasi)","required":false,"schema":{"type":"integer","default":15,"maximum":100,"minimum":-1}},{"name":"status","in":"query","description":"waiting (kutilmoqda), rejected (rad etilgan), signed (imzolangan)","required":false,"schema":{"type":"string","example":"waiting","nullable":true,"default":"waiting","enum":["waiting","rejected","signed"]}},{"name":"search","in":"query","description":"Korxona nomi,stir va maskan nomi bo'icha qidiruv","required":false,"schema":{"type":"string","default":"Nimadir"}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id","enum":["id","arbitraj_group_number","conclusion_number","enterprise_name","stir","status","region_id","district_id","reweight_date","created_at","updated_at"]}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/GrainConclusionResponse"}},"meta":{"properties":{"total":{"type":"integer","example":50},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1},"last_page":{"type":"integer","example":4},"from":{"type":"integer","example":1},"to":{"type":"integer","example":15}},"type":"object"},"links":{"properties":{"first":{"type":"string"},"last":{"type":"string"},"prev":{"type":"string","nullable":true},"next":{"type":"string","nullable":true}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}},"post":{"tags":["Grain Conclusions"],"summary":"Don arbitraj xulosasini qo'shish","description":"Yangi don arbitraj xulosasini yaratadi","operationId":"grainConclusionsStore","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/GrainConclusionRequest"}}}},"responses":{"201":{"description":"Xulosa muvaffaqiyatli yaratildi","content":{"application\/json":{"schema":{"required":["success","message","data"],"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli yaratildi"},"data":{"$ref":"#\/components\/schemas\/GrainConclusionResponse"}},"type":"object"}}}},"422":{"description":"Validatsiya xatosi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Validatsiya xatosi"},"errors":{"type":"object","example":{"region_id":["Region maydoni to'ldirilishi shart"]}}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/grain-conclusions\/{grainConclusion}":{"get":{"tags":["Grain Conclusions"],"summary":"Don arbitraj xulosasini ko'rish","description":"Bitta GrainConclusion yozuvini ID orqali qaytaradi","operationId":"grainConclusionsShow","parameters":[{"name":"grainConclusion","in":"path","description":"GrainConclusion ID","required":true,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"Xulosa muvaffaqiyatli olindi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli olindi"},"data":{"$ref":"#\/components\/schemas\/GrainConclusionResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Grain Conclusions"],"summary":"Don arbitraj xulosasini yangilash","description":"GrainConclusion ma'lumotlarini yangilaydi","operationId":"grainConclusionsUpdate","parameters":[{"name":"grainConclusion","in":"path","description":"GrainConclusion ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/GrainConclusionRequest"}}}},"responses":{"200":{"description":"Xulosa muvaffaqiyatli yangilandi","content":{"application\/json":{"schema":{"required":["success","message","data"],"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli yangilandi"},"data":{"$ref":"#\/components\/schemas\/GrainConclusionResponse"}},"type":"object"}}}},"422":{"description":"Validatsiya xatosi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Validatsiya xatosi"},"errors":{"type":"object"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Grain Conclusions"],"summary":"Don arbitraj xulosasini o'chirish","description":"GrainConclusion yozuvini o'chiradi","operationId":"4018c5d00edd282aec9f2915b64e868f","parameters":[{"name":"grainConclusion","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"O'chirildi"},"404":{"description":"Topilmadi"}}}},"\/api\/v1\/claster-conclusions":{"get":{"tags":["Claster Conclusions"],"summary":"Klaster xulosalarini ro'yxatini olish","operationId":"91f9a5f95a4fb7a998231640117d031f","parameters":[{"name":"per_page","in":"query","description":"Sahifadagi yozuvlar soni (-1 = hammasi)","required":false,"schema":{"type":"integer","default":15,"maximum":100,"minimum":-1}},{"name":"status","in":"query","description":"waiting (kutilmoqda), rejected (rad etilgan), signed (imzolangan)","required":false,"schema":{"type":"string","example":"waiting","nullable":true,"default":"waiting","enum":["waiting","rejected","signed"]}},{"name":"search","in":"query","description":"Korxona nomi,stir, maskan manzili va maskan nomi bo'icha qidiruv","required":false,"schema":{"type":"string","default":"Nimadir"}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id","enum":["id","number","date","name","stir","status","type","regional_department_id","district_id","created_at","updated_at"]}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ClasterConclusionResponse"}},"meta":{"properties":{"total":{"type":"integer","example":50},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1},"last_page":{"type":"integer","example":4},"from":{"type":"integer","example":1},"to":{"type":"integer","example":15}},"type":"object"},"links":{"properties":{"first":{"type":"string"},"last":{"type":"string"},"prev":{"type":"string","nullable":true},"next":{"type":"string","nullable":true}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}},"post":{"tags":["Claster Conclusions"],"summary":"Klaster xulosasini qo'shish","description":"Klaster xulosasi qo'shiladi","operationId":"clasterConclusionsStore","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/ClasterConclusionRequest"}}}},"responses":{"201":{"description":"Xulosa muvaffaqiyatli yaratildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli yaratildi"},"data":{"$ref":"#\/components\/schemas\/ClasterConclusionResponse"}},"type":"object"}}}},"422":{"description":"Validatsiya xatosi"},"401":{"description":"Autentifikatsiya talab qilinadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/claster-conclusions\/{clasterConclusion}":{"get":{"tags":["Claster Conclusions"],"summary":"Klaster xulosasini ko'rish","description":"Bitta Claster Conclusion yozuvini ID orqali qaytaradi","operationId":"clasterConclusionsShow","parameters":[{"name":"clasterConclusion","in":"path","description":"clasterConclusion ID","required":true,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"Xulosa muvaffaqiyatli olindi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli olindi"},"data":{"$ref":"#\/components\/schemas\/ClasterConclusionResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Claster Conclusions"],"summary":"Klaster xulosasini yangilash","description":"Xulosa ma'lumotlarini qisman yangilaydi","operationId":"clasterConclusionsUpdate","parameters":[{"name":"clasterConclusion","in":"path","description":"clasterConclusion ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/ClasterConclusionRequest"}}}},"responses":{"200":{"description":"Xulosa muvaffaqiyatli yangilandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli o'zgartirildi"},"data":{"$ref":"#\/components\/schemas\/ClasterConclusionResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Claster Conclusions"],"summary":"Klaster xulosasini o'chirish","description":"Xulosani o'chirish","operationId":"08e8748a637c8bba6dd7b7f60d838c38","parameters":[{"name":"clasterConclusion","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"O'chirildi"},"404":{"description":"Topilmadi"}}}},"\/api\/v1\/claster-conclusions\/{clasterConclusion}\/reject":{"post":{"tags":["Claster Conclusions"],"summary":"Klaster dalolatnomasini rad etish","description":"Klaster dalolatnomasini rad etadi va sababini saqlaydi","operationId":"clasterConclusionReject","parameters":[{"name":"clasterConclusion","in":"path","description":"Klaster xulosa ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["comment"],"properties":{"comment":{"description":"Rad etish sababi","type":"string","example":"Ma'lumotlar noto'g'ri kiritilgan"}},"type":"object"}}}},"responses":{"200":{"description":"Dalolatnoma rad etildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma rad etildi"}},"type":"object"}}}},"400":{"description":"Bu dalolatnoma bilan amal qilish imkoni yo'q"},"404":{"description":"Dalolatnoma topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/claster-conclusions\/{clasterConclusion}\/sign":{"post":{"tags":["Claster Conclusions"],"summary":"Klaster dalolatnomasini imzolash","description":"Klaster dalolatnomasini ECP bilan imzolash","operationId":"clasterConclusionSign","parameters":[{"name":"clasterConclusion","in":"path","description":"Klaster xulosa ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"required":["signature"],"properties":{"signature":{"description":"Imzo (base64\/pkcs7 formatda)","type":"string","example":"base64_signature_data"},"file":{"description":"Imzolangan dalolatnoma fayli (PDF)","type":"string","format":"binary","nullable":true}},"type":"object"}}}},"responses":{"200":{"description":"Dalolatnoma imzolandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Imzo muvaffaqiyatli qo'yildi"},"data":{"properties":{"all_signed":{"type":"boolean","example":false}},"type":"object"}},"type":"object"}}}},"400":{"description":"Bu dalolatnoma bilan amal qilish imkoni yo'q"},"404":{"description":"Dalolatnoma topilmadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/cooperation-conclusions":{"get":{"tags":["Cooperation Conclusions"],"summary":"Kooperatsiya xulosalarini ro'yxatini olish","operationId":"fcc2fb0c0fac90943bc0cf47ff47db36","parameters":[{"name":"per_page","in":"query","description":"Sahifadagi yozuvlar soni (-1 = hammasi)","required":false,"schema":{"type":"integer","default":15,"maximum":100,"minimum":-1}},{"name":"type","in":"query","description":"Dalolatnoma turi bo'icha olish (cooperation_clasters, cooperation_cooperations, seed_clasters, seed_cooperations)","required":false,"schema":{"type":"string","default":"cooperation_clasters","enum":["cooperation_clasters","cooperation_cooperations","seed_clasters","seed_cooperations"]}},{"name":"status","in":"query","description":"waiting (kutilmoqda), rejected (rad etilgan), signed (imzolangan)","required":false,"schema":{"type":"string","example":"waiting","nullable":true,"default":"waiting","enum":["waiting","rejected","signed"]}},{"name":"search","in":"query","description":"Korxona nomi,stir va maskan nomi bo'icha qidiruv","required":false,"schema":{"type":"string","default":"Nimadir"}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id","enum":["id","number","date","name","stir","status","type","regional_department_id","district_id","created_at","updated_at"]}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/CooperationConclusionResponse"}},"meta":{"properties":{"total":{"type":"integer","example":50},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1},"last_page":{"type":"integer","example":4},"from":{"type":"integer","example":1},"to":{"type":"integer","example":15}},"type":"object"},"links":{"properties":{"first":{"type":"string"},"last":{"type":"string"},"prev":{"type":"string","nullable":true},"next":{"type":"string","nullable":true}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}},"post":{"tags":["Cooperation Conclusions"],"summary":"Kooperatsiya xulosasini qo'shish","description":"Kooperatsiya xulosasi qo'shiladi","operationId":"cooperationConclusionsStore","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/CooperationConclusionRequest"}}}},"responses":{"201":{"description":"Xulosa muvaffaqiyatli yaratildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli yaratildi"},"data":{"$ref":"#\/components\/schemas\/CooperationConclusionResponse"}},"type":"object"}}}},"422":{"description":"Validatsiya xatosi"},"401":{"description":"Autentifikatsiya talab qilinadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/cooperation-conclusions\/{cooperationConclusion}":{"get":{"tags":["Cooperation Conclusions"],"summary":"Kooperatsiya xulosasini ko'rish","description":"Bitta CooperationConclusion yozuvini ID orqali qaytaradi","operationId":"cooperationConclusionsShow","parameters":[{"name":"cooperationConclusion","in":"path","description":"CooperationConclusion ID","required":true,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"Xulosa muvaffaqiyatli olindi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli olindi"},"data":{"$ref":"#\/components\/schemas\/CooperationConclusionResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Cooperation Conclusions"],"summary":"Kooperatsiya xulosasini yangilash","description":"Xulosa ma'lumotlarini qisman yangilaydi","operationId":"cooperationConclusionsUpdate","parameters":[{"name":"cooperationConclusion","in":"path","description":"CooperationConclusion ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/CooperationConclusionRequest"}}}},"responses":{"200":{"description":"Xulosa muvaffaqiyatli yangilandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Xulosa muvaffaqiyatli o'zgartirildi"},"data":{"$ref":"#\/components\/schemas\/CooperationConclusionResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"403":{"description":"Imzolangan yoki rad etilgan xulosani o'zgartirish mumkin emas"},"404":{"description":"Topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Cooperation Conclusions"],"summary":"Kooperatsiya xulosasini o'chirish","description":"Xulosani o'chirish","operationId":"4d7320f5a2453f8075171fdfb676e9b0","parameters":[{"name":"cooperationConclusion","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"O'chirildi"},"403":{"description":"Imzolangan yoki rad etilgan xulosani o'chirish mumkin emas"},"404":{"description":"Topilmadi"}}}},"\/api\/v1\/cotton-facility-reports":{"get":{"tags":["Cotton Facility Reports"],"summary":"Paxta maskan dalolatnomalarini ro'yxatini olish","operationId":"9d1dd88c5e2d2c08bb9cca0b4c9ddb73","parameters":[{"name":"per_page","in":"query","description":"Sahifadagi yozuvlar soni (-1 = hammasi)","required":false,"schema":{"type":"integer","default":15,"maximum":100,"minimum":-1}},{"name":"status","in":"query","description":"waiting (kutilmoqda), rejected (rad etilgan), signed (imzolangan)","required":false,"schema":{"type":"string","example":"waiting","nullable":true,"default":"waiting","enum":["waiting","rejected","signed"]}},{"name":"search","in":"query","description":"Korxona nomi, stir, maskan manzili va maskan nomi bo'yicha qidiruv","required":false,"schema":{"type":"string","default":"Nimadir"}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id","enum":["id","number","date","name","stir","status","type","regional_department_id","district_id","created_at","updated_at"]}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/CottonFacilityReportResponse"}},"meta":{"properties":{"total":{"type":"integer","example":50},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1},"last_page":{"type":"integer","example":4},"from":{"type":"integer","example":1},"to":{"type":"integer","example":15}},"type":"object"},"links":{"properties":{"first":{"type":"string"},"last":{"type":"string"},"prev":{"type":"string","nullable":true},"next":{"type":"string","nullable":true}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}},"post":{"tags":["Cotton Facility Reports"],"summary":"Paxta maskan dalolatnomasini qo'shish","description":"Paxta maskan dalolatnomasi qo'shiladi","operationId":"cottonFacilityReportsStore","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/CottonFacilityReportRequest"}}}},"responses":{"201":{"description":"Dalolatnoma muvaffaqiyatli yaratildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Paxta maskan dalolatnomasi muvaffaqiyatli yaratildi"},"data":{"$ref":"#\/components\/schemas\/CottonFacilityReportResponse"}},"type":"object"}}}},"422":{"description":"Validatsiya xatosi"},"401":{"description":"Autentifikatsiya talab qilinadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/cotton-facility-reports\/{cottonFacilityReport}":{"get":{"tags":["Cotton Facility Reports"],"summary":"Paxta maskan dalolatnomasini ko'rish","description":"Bitta paxta maskan dalolatnomasini ID orqali qaytaradi","operationId":"cottonFacilityReportsShow","parameters":[{"name":"cottonFacilityReport","in":"path","description":"cottonFacilityReport ID","required":true,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"Dalolatnoma muvaffaqiyatli olindi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Paxta maskan dalolatnomasi muvaffaqiyatli olindi"},"data":{"$ref":"#\/components\/schemas\/CottonFacilityReportResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Cotton Facility Reports"],"summary":"Paxta maskan dalolatnomasini yangilash","description":"Dalolatnoma ma'lumotlarini qisman yangilaydi","operationId":"cottonFacilityReportsUpdate","parameters":[{"name":"cottonFacilityReport","in":"path","description":"cottonFacilityReport ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/CottonFacilityReportRequest"}}}},"responses":{"200":{"description":"Dalolatnoma muvaffaqiyatli yangilandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Paxta maskan dalolatnomasi muvaffaqiyatli o'zgartirildi"},"data":{"$ref":"#\/components\/schemas\/CottonFacilityReportResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Cotton Facility Reports"],"summary":"Paxta maskan dalolatnomasini o'chirish","description":"Dalolatnomani o'chirish","operationId":"43273ee321da0e07502e251e8494cdbe","parameters":[{"name":"cottonFacilityReport","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"O'chirildi"},"404":{"description":"Topilmadi"}}}},"\/api\/v1\/cotton-facility-reports\/{cottonFacilityReport}\/reject":{"post":{"tags":["Cotton Facility Reports"],"summary":"Paxta maskan dalolatnomasini rad etish","description":"Paxta maskan dalolatnomasini rad etadi va sababini saqlaydi","operationId":"cottonFacilityReportReject","parameters":[{"name":"cottonFacilityReport","in":"path","description":"Paxta maskan dalolatnomasi ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["comment"],"properties":{"comment":{"description":"Rad etish sababi","type":"string","example":"Ma'lumotlar noto'g'ri kiritilgan"}},"type":"object"}}}},"responses":{"200":{"description":"Dalolatnoma rad etildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma rad etildi"}},"type":"object"}}}},"400":{"description":"Bu dalolatnoma bilan amal qilish imkoni yo'q"},"404":{"description":"Dalolatnoma topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/cotton-facility-reports\/{cottonFacilityReport}\/sign":{"post":{"tags":["Cotton Facility Reports"],"summary":"Paxta maskan dalolatnomasini imzolash","description":"Paxta maskan dalolatnomasini ECP bilan imzolash","operationId":"cottonFacilityReportSign","parameters":[{"name":"cottonFacilityReport","in":"path","description":"Paxta maskan dalolatnomasi ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"required":["signature"],"properties":{"signature":{"description":"Imzo (base64\/pkcs7 formatda)","type":"string","example":"base64_signature_data"},"file":{"description":"Imzolangan dalolatnoma fayli (PDF)","type":"string","format":"binary","nullable":true}},"type":"object"}}}},"responses":{"200":{"description":"Dalolatnoma imzolandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Imzo muvaffaqiyatli qo'yildi"},"data":{"properties":{"all_signed":{"type":"boolean","example":false}},"type":"object"}},"type":"object"}}}},"400":{"description":"Bu dalolatnoma bilan amal qilish imkoni yo'q"},"404":{"description":"Dalolatnoma topilmadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/dashboard\/statistics":{"get":{"tags":["Dashboard Statistics"],"summary":"Foydalanuchilar, paxta klasterlari, kooperatsiyalar, yo'g' moy korxonalari, don korxonalari, g'allachilik klasterlari, un ishlab chiqarish tegirmonlari","operationId":"077d258eafb30edc7a1bb6b691760e34","responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Muvaffaqiyatli olindi"},"data":{"properties":{"cotton_clasters":{"type":"integer","example":10},"cooperations":{"type":"integer","example":25},"cotton_intake_points":{"type":"integer","example":15},"oil_fat_enterprises":{"type":"integer","example":8},"grain_enterprises":{"type":"integer","example":12},"grain_clasters":{"type":"integer","example":5},"grain_intake_points":{"type":"integer","example":20},"mill_enterprises":{"type":"integer","example":7}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}}},"\/api\/v1\/dashboard\/statistics-by-grain-arbitraj":{"get":{"tags":["Dashboard Statistics"],"summary":"Don arbitraj ya'ni nizoli holatlar korxona yoki fermer foydasiga hal etilganlari","operationId":"2abd995e5949cf3101bcbbab4827c609","parameters":[{"name":"year","in":"query","description":"Sanasi bo'icha ma'lumotlarni olish.","required":false,"schema":{"type":"string","format":"Y-m-d","example":"2024-01-01"}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Muvaffaqiyatli olindi"},"data":{"properties":{"for_farmer":{"type":"integer","example":10},"for_enterprise":{"type":"integer","example":25}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}}},"\/api\/v1\/dashboard\/statistics-oil-fat-actions":{"get":{"tags":["Dashboard Statistics"],"summary":"Yog' moy korxonalari faoliyatini o'rganish dalolatnomasi tas'sir choralari bo'icha","operationId":"6c305d0dc7c3072302019cbc4f343805","parameters":[{"name":"year","in":"query","description":"Sanasi bo'icha ma'lumotlarni olish.","required":false,"schema":{"type":"string","format":"Y-m-d","example":"2024-01-01"}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Muvaffaqiyatli olindi"},"data":{"properties":{"warning":{"type":"integer","example":10},"written_instruction":{"type":"integer","example":25},"administrative_report":{"type":"integer","example":25}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}}},"\/api\/v1\/dashboard\/statistics-by-cotton-arbitraj":{"get":{"tags":["Dashboard Statistics"],"summary":"Korxonalar statistikasini turlar bo'yicha olish","operationId":"aa2210e57bd46128ed5e0c8f0d0c2041","parameters":[{"name":"year","in":"query","description":"Sanasi bo'icha ma'lumotlarni olish.","required":false,"schema":{"type":"string","format":"Y-m-d","example":"2024-01-01"}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Muvaffaqiyatli olindi"},"data":{"properties":{"for_farmer":{"type":"integer","example":10},"for_enterprise":{"type":"integer","example":25}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}}},"\/api\/v1\/dashboard\/statistics-facility-conclusions":{"get":{"tags":["Dashboard Statistics"],"summary":"Maskanlarga berilgan xulosalar","operationId":"9ef5616f1aaa559cdef36cc01e6d2997","parameters":[{"name":"year","in":"query","description":"Sanasi bo'icha ma'lumotlarni olish.","required":false,"schema":{"type":"string","format":"Y-m-d","example":"2024-01-01"}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Muvaffaqiyatli olindi"},"data":{"properties":{"grain_enterprises":{"type":"integer","example":10},"grain_clasters":{"type":"integer","example":10},"grain_cooperations":{"type":"integer","example":10},"cooperation_clasters":{"type":"integer","example":10},"cooperation_cooperations":{"type":"integer","example":25},"seed_clasters":{"type":"integer","example":5},"seed_cooperations":{"type":"integer","example":7}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}}},"\/api\/v1\/enterprises":{"get":{"tags":["Enterprises"],"summary":"Korxonalar ro'yxatini olish","operationId":"de1e4dfb819df311c2fd84dda9a68d84","parameters":[{"name":"per_page","in":"query","description":"Sahifadagi yozuvlar soni (-1 = hammasi)","required":false,"schema":{"type":"integer","default":15,"maximum":100,"minimum":-1}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id","enum":["id","legal_name","stir","type","created_at","updated_at"]}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Enterprise"}},"meta":{"properties":{"total":{"type":"integer","example":50},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1},"last_page":{"type":"integer","example":4},"from":{"type":"integer","example":1},"to":{"type":"integer","example":15}},"type":"object"},"links":{"properties":{"first":{"type":"string"},"last":{"type":"string"},"prev":{"type":"string","nullable":true},"next":{"type":"string","nullable":true}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}}},"\/api\/v1\/enterprises\/{id}":{"get":{"tags":["Enterprises"],"summary":"Korxonani ID bo'yicha olish","operationId":"670983d10d8753f5f7e99a34e21ee2e6","parameters":[{"name":"id","in":"path","description":"Korxona ID raqami","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Ma'lumot muvaffaqiyatli olindi"},"data":{"$ref":"#\/components\/schemas\/Enterprise"}},"type":"object"}}}},"404":{"description":"Korxona topilmadi"},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}}},"\/api\/v1\/enterprises\/stir\/{stir}":{"get":{"tags":["Enterprises"],"summary":"Korxonani STIR raqami bo'yicha olish","operationId":"f5d9199dfe0e2f665ff922fc1b368a22","parameters":[{"name":"stir","in":"path","description":"Korxona STIR raqami","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Ma'lumot muvaffaqiyatli olindi"},"data":{"$ref":"#\/components\/schemas\/Enterprise"}},"type":"object"}}}},"404":{"description":"Korxona topilmadi"},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}}},"\/api\/v1\/facility-conclusion-reports":{"get":{"tags":["Facility Reports"],"summary":"Maskan moddiy texnika bazasi haqida xulosa berish dalolatnomalarini ro'yxatini olish","operationId":"99459dedec9de864928f7c1051efcddc","parameters":[{"name":"per_page","in":"query","description":"Sahifadagi yozuvlar soni (-1 = hammasi)","required":false,"schema":{"type":"integer","default":15,"maximum":100,"minimum":-1}},{"name":"type","in":"query","description":"Dalolatnoma turi bo'icha chiqarish.(1 - Don korxonlarari, 2 - G'allachilik klasteri, 3 - Kooperatsiyalar)","required":false,"schema":{"type":"integer","default":1,"maximum":3,"minimum":1}},{"name":"status","in":"query","description":"waiting (kutilmoqda), rejected (rad etilgan), signed (imzolangan)","required":false,"schema":{"type":"string","example":"waiting","nullable":true,"default":"waiting","enum":["waiting","rejected","signed"]}},{"name":"search","in":"query","description":"Korxona nomi,stir va maskan nomi bo'icha qidiruv","required":false,"schema":{"type":"string","default":"Nimadir"}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id","enum":["id","company_name","company_stir","report_number","date","status","type","region_id","district_id","created_at","updated_at"]}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/FacilityConclusionReportResponse"}},"meta":{"properties":{"total":{"type":"integer","example":50},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1},"last_page":{"type":"integer","example":4},"from":{"type":"integer","example":1},"to":{"type":"integer","example":15}},"type":"object"},"links":{"properties":{"first":{"type":"string"},"last":{"type":"string"},"prev":{"type":"string","nullable":true},"next":{"type":"string","nullable":true}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}},"post":{"tags":["Facility Reports"],"summary":"Moddiy texnika bazasi haqida maskanga xulosa berish dalolatnomasini qo'shish","description":"Maskanga xulosa berish dalolatnomasi qo'shiladi","operationId":"facilityReportsStore","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/FacilityConclusionReportRequest"}}}},"responses":{"201":{"description":"Dalolatnoma muvaffaqiyatli yaratildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli yaratildi"},"data":{"$ref":"#\/components\/schemas\/FacilityConclusionReportResponse"}},"type":"object"}}}},"422":{"description":"Validatsiya xatosi"},"401":{"description":"Autentifikatsiya talab qilinadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/facility-conclusion-reports\/{facilityConclusionReport}":{"get":{"tags":["Facility Reports"],"summary":"Facility reportni ko'rish (show)","description":"Bitta FacilityConclusionReport yozuvini ID orqali qaytaradi","operationId":"facilityReportsShow","parameters":[{"name":"facilityConclusionReport","in":"path","description":"FacilityConclusionReport ID (Route model binding)","required":true,"schema":{"type":"integer","example":15}}],"responses":{"200":{"description":"Dalolatnoma muvaffaqiyatli olindi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli yaratildi"},"data":{"$ref":"#\/components\/schemas\/FacilityConclusionReportResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi (Not Found)"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Facility Reports"],"summary":"Dalolatnomani yangilash (partial update)","description":"Facility report ma'lumotlarini qisman yangilaydi (faqat yuborilgan fieldlar update qilinadi)","operationId":"facilityReportsUpdate","parameters":[{"name":"facilityConclusionReport","in":"path","description":"FacilityConclusionReport ID","required":true,"schema":{"type":"integer","example":15}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"properties":{"company_name":{"type":"string","example":"MTP Farg'ona 1"},"collection_point":{"type":"string","example":"Qo'qon shahar don qabul punkti"},"date":{"type":"string","format":"date","example":"2026-01-25"},"report_number":{"type":"integer","example":1001},"status":{"description":"Xulosa holati","type":"string","example":"waiting","enum":["waiting","rejected","signed"]},"equipment_and_supply":{"$ref":"#\/components\/schemas\/FacilityEquipmentAndSupply"},"files[elevator][]":{"description":"Elevator fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[warehouse][]":{"description":"Ombor fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[porch][]":{"description":"Navs fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[conclusion][]":{"description":"Xulosa fayllari","type":"array","items":{"type":"string","format":"binary"}}},"type":"object"}}}},"responses":{"200":{"description":"Dalolatnoma muvaffaqiyatli yangilandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli yangilandi"},"data":{"$ref":"#\/components\/schemas\/FacilityConclusionReportResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Facility Reports"],"summary":"Dalolatnoma o'chirish","description":"Maskanga xulosa berish dalolatnomasini o'chirish","operationId":"4123e91374862d2e9ad50c832c1740df","parameters":[{"name":"facilityConclusionReport","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"O'chirildi"},"404":{"description":"Topilmadi"}}}},"\/api\/v1\/facility-conclusion-reports\/{facilityConclusionReport}\/upload-file":{"post":{"tags":["Facility Reports"],"summary":"Maskanga dalolatnomasiga fayl yuklash","description":"Maskanga dalolatnomasiga bitta fayl yuklaydi (jpg, png, pdf, doc, docx va boshqalar)","operationId":"facilityReportsUploadFile","parameters":[{"name":"facilityConclusionReport","in":"path","description":"Dalolatnoma ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"required":["file"],"properties":{"file":{"description":"Yuklash uchun fayl (max 10MB)","type":"string","format":"binary"}},"type":"object"}}}},"responses":{"200":{"description":"Fayl muvaffaqiyatli yuklandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Fayl muvaffaqiyatli yuklandi"},"data":{"$ref":"#\/components\/schemas\/FacilityConclusionReportResponse"}},"type":"object"}}}},"404":{"description":"Dalolatnoma topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/facility-conclusion-reports\/{facilityConclusionReport}\/reject":{"post":{"tags":["Facility Reports"],"summary":"Maskanga dalolatnomasini rad etish","description":"Maskanga dalolatnomasini rad etadi va sababini saqlaydi","operationId":"facilityReportsReject","parameters":[{"name":"facilityConclusionReport","in":"path","description":"Dalolatnoma ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["comment"],"properties":{"comment":{"description":"Rad etish sababi","type":"string","example":"Jihozlar talabga javob bermaydi"}},"type":"object"}}}},"responses":{"200":{"description":"Dalolatnoma rad etildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma rad etildi"},"data":{"$ref":"#\/components\/schemas\/FacilityConclusionReportResponse"}},"type":"object"}}}},"404":{"description":"Dalolatnoma topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/product-manage\/permissions":{"get":{"tags":["Product Permission Management"],"summary":"Ruxsatlar ro'yxati","description":"Product service ruxsatlarini guruhlar bilan olish","operationId":"d2b3fcfe5df143cd7dd3974b2d9d2a4b","responses":{"200":{"description":"Ruxsatlar ro'yxati","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"data":{"type":"array","items":{"properties":{"id":{"type":"integer","example":1},"name":{"type":"string","example":"Tegirmon dalolatnomalari"},"key":{"type":"string","example":"mill-reports"},"permissions":{"type":"array","items":{"properties":{"id":{"type":"integer","example":1},"name":{"type":"string","example":"mill-reports.view"},"display_name":{"type":"string","example":"Ko'rish"}},"type":"object"}}},"type":"object"}}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/product-manage\/roles":{"get":{"tags":["Product Role Management"],"summary":"Rollar ro'yxati","description":"Product service rollarini olish","operationId":"295bfa3cb6fc00ccaccad319cee5ddcf","parameters":[{"name":"with_users","in":"query","description":"Foydalanuvchilar sonini qo'shish","required":false,"schema":{"type":"boolean"}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id","enum":["id","name","created_at","updated_at"]}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Rollar ro'yxati","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"data":{"type":"array","items":{"properties":{"id":{"type":"integer","example":1},"name":{"type":"string","example":"product-admin"},"permissions":{"type":"array","items":{"type":"object"}},"users_count":{"type":"integer","example":5,"nullable":true}},"type":"object"}}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Product Role Management"],"summary":"Yangi rol qo'shish","description":"Product service uchun yangi rol yaratish","operationId":"6dbc81680383d6f81b0cda5f0274dce5","requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["name"],"properties":{"name":{"description":"Rol nomi (faqat harflar, raqamlar, tire va pastki chiziq)","type":"string"},"permissions":{"description":"Ruxsat IDlari","type":"array","items":{"type":"integer"}}},"type":"object"}}}},"responses":{"201":{"description":"Rol muvaffaqiyatli yaratildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Rol muvaffaqiyatli yaratildi"},"data":{"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"},"422":{"description":"Validatsiya xatosi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Validatsiya xatosi"},"errors":{"type":"object"}},"type":"object"}}}}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/product-manage\/roles\/{role}":{"get":{"tags":["Product Role Management"],"summary":"Rol ma'lumotlari","operationId":"0aa14ab7ca6645baf7bcac4c6d07eb5c","parameters":[{"name":"role","in":"path","description":"Rol ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Rol ma'lumotlari","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"data":{"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"},"404":{"description":"Rol topilmadi"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Product Role Management"],"summary":"Rolni yangilash","description":"Rol ma'lumotlarini yangilash","operationId":"88b81d7e16ae4b69bfaf945679d97be4","parameters":[{"name":"role","in":"path","description":"Rol ID","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"properties":{"name":{"description":"Rol nomi","type":"string"},"permissions":{"description":"Ruxsat IDlari","type":"array","items":{"type":"integer"}}},"type":"object"}}}},"responses":{"200":{"description":"Rol muvaffaqiyatli yangilandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Rol muvaffaqiyatli yangilandi"},"data":{"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"},"404":{"description":"Rol topilmadi"},"422":{"description":"Validatsiya xatosi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Validatsiya xatosi"},"errors":{"type":"object"}},"type":"object"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Product Role Management"],"summary":"Rolni o'chirish","operationId":"02150d9aa7bbaf55c2aa03a5f5fb7a0a","parameters":[{"name":"role","in":"path","description":"Rol ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Rol o'chirildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Rol muvaffaqiyatli o'chirildi"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"},"404":{"description":"Rol topilmadi"},"422":{"description":"Rolga biriktirilgan foydalanuvchilar mavjud","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Bu rolga biriktirilgan foydalanuvchilar mavjud"}},"type":"object"}}}}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/product-manage\/roles\/{role}\/permissions":{"post":{"tags":["Product Role Management"],"summary":"Rolga ruxsatlarni biriktirish","description":"Rolga ruxsatlar ro'yxatini sinxronlash","operationId":"6480138528f0784b975d1b1db226a485","parameters":[{"name":"role","in":"path","description":"Rol ID","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["permissions"],"properties":{"permissions":{"description":"Ruxsat IDlari","type":"array","items":{"type":"integer"}}},"type":"object"}}}},"responses":{"200":{"description":"Ruxsatlar muvaffaqiyatli yangilandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Ruxsatlar muvaffaqiyatli yangilandi"},"data":{"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"},"404":{"description":"Rol topilmadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/product-manage\/users":{"get":{"tags":["Product User Management"],"summary":"Foydalanuvchilar ro'yxati","description":"Product service foydalanuvchilarini filterlash va sahifalash bilan olish","operationId":"f92d88c66a9fad4af6acd7dcbb0a0c27","parameters":[{"name":"search","in":"query","description":"Ism, familiya yoki email bo'yicha qidirish","required":false,"schema":{"type":"string","maxLength":255}},{"name":"is_active","in":"query","description":"Faollik holati","required":false,"schema":{"type":"boolean"}},{"name":"role_id","in":"query","description":"Rol ID bo'yicha filterlash","required":false,"schema":{"type":"integer"}},{"name":"per_page","in":"query","description":"Sahifadagi yozuvlar soni (-1 = hammasi)","required":false,"schema":{"type":"integer","default":15,"maximum":100,"minimum":-1}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id"}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Foydalanuvchilar ro'yxati","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"data":{"type":"array","items":{"properties":{"id":{"type":"integer","example":1},"name":{"type":"string","example":"John"},"lastname":{"type":"string","example":"Doe"},"email":{"type":"string","example":"john@example.com"},"is_active":{"type":"boolean","example":true}},"type":"object"}},"meta":{"properties":{"current_page":{"type":"integer"},"last_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Product User Management"],"summary":"Yangi foydalanuvchi qo'shish","description":"Product service uchun yangi foydalanuvchi yaratish","operationId":"025f5c0c7ce45eb558359b53946f0461","requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["name","lastname","email","password","password_confirmation","roles"],"properties":{"name":{"description":"Foydalanuvchi ismi","type":"string","maxLength":255},"lastname":{"description":"Foydalanuvchi familiyasi","type":"string","maxLength":255},"email":{"description":"Email manzil","type":"string","format":"email"},"password":{"description":"Parol (kamida 8 belgi)","type":"string","minLength":8},"password_confirmation":{"description":"Parolni tasdiqlash","type":"string"},"roles":{"description":"Rol IDlari","type":"array","items":{"type":"integer"}},"is_active":{"description":"Faollik holati","type":"boolean"},"phone":{"description":"Telefon raqami","type":"string"}},"type":"object"}}}},"responses":{"201":{"description":"Foydalanuvchi muvaffaqiyatli yaratildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Foydalanuvchi muvaffaqiyatli yaratildi"},"data":{"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"},"422":{"description":"Validatsiya xatosi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Validatsiya xatosi"},"errors":{"type":"object"}},"type":"object"}}}}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/product-manage\/users\/{user}":{"get":{"tags":["Product User Management"],"summary":"Foydalanuvchi ma'lumotlari","operationId":"2a44284fafa3140c69bac3b76c35f558","parameters":[{"name":"user","in":"path","description":"Foydalanuvchi ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Foydalanuvchi ma'lumotlari","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"data":{"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"},"404":{"description":"Foydalanuvchi topilmadi"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Product User Management"],"summary":"Foydalanuvchini yangilash","description":"Foydalanuvchi ma'lumotlarini yangilash. Faqat o'zgartirilishi kerak bo'lgan maydonlarni yuboring.","operationId":"291a7875a3a18687d1f406b1d40853bd","parameters":[{"name":"user","in":"path","description":"Foydalanuvchi ID","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"properties":{"name":{"description":"Foydalanuvchi ismi","type":"string","maxLength":255},"lastname":{"description":"Foydalanuvchi familiyasi","type":"string","maxLength":255},"email":{"description":"Email manzil","type":"string","format":"email"},"password":{"description":"Parol (kamida 8 belgi)","type":"string","minLength":8},"password_confirmation":{"description":"Parolni tasdiqlash","type":"string"},"roles":{"description":"Rol IDlari","type":"array","items":{"type":"integer"}},"is_active":{"description":"Faollik holati","type":"boolean"},"phone":{"description":"Telefon raqami","type":"string"}},"type":"object"}}}},"responses":{"200":{"description":"Foydalanuvchi muvaffaqiyatli yangilandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Foydalanuvchi muvaffaqiyatli yangilandi"},"data":{"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"},"404":{"description":"Foydalanuvchi topilmadi"},"422":{"description":"Validatsiya xatosi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Validatsiya xatosi"},"errors":{"type":"object"}},"type":"object"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Product User Management"],"summary":"Foydalanuvchini o'chirish","operationId":"352c53ae708d70867a229257ebac5048","parameters":[{"name":"user","in":"path","description":"Foydalanuvchi ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Foydalanuvchi o'chirildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Foydalanuvchi muvaffaqiyatli o'chirildi"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"},"403":{"description":"O'zingizni o'chira olmaysiz","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"O'zingizni o'chira olmaysiz"}},"type":"object"}}}},"404":{"description":"Foydalanuvchi topilmadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/product-manage\/users\/{id}\/restore":{"post":{"tags":["Product User Management"],"summary":"O'chirilgan foydalanuvchini tiklash","operationId":"5c7b777f3b9d9ded5aadfeb222d26e74","parameters":[{"name":"id","in":"path","description":"Foydalanuvchi ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Foydalanuvchi tiklandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Foydalanuvchi muvaffaqiyatli tiklandi"},"data":{"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"},"404":{"description":"Foydalanuvchi topilmadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/product-manage\/users\/{user}\/toggle-status":{"post":{"tags":["Product User Management"],"summary":"Foydalanuvchi holatini o'zgartirish","description":"Foydalanuvchining is_active holatini teskari qiymatga o'zgartirish","operationId":"d9ce58b4ca267ac5f8037679edb21ab4","parameters":[{"name":"user","in":"path","description":"Foydalanuvchi ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Holat o'zgartirildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Foydalanuvchi faollashtirildi"},"data":{"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"},"404":{"description":"Foydalanuvchi topilmadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/mill-reports":{"get":{"tags":["Mill Reports"],"summary":"Tegirmon dalolatnomalarini ro'yxatini olish","operationId":"f248844e603254aee33faa780b15a1ad","parameters":[{"name":"per_page","in":"query","description":"Sahifadagi yozuvlar soni (-1 = hammasi)","required":false,"schema":{"type":"integer","default":15,"maximum":100,"minimum":-1}},{"name":"status","in":"query","description":"waiting (kutilmoqda), rejected (rad etilgan), signed (imzolangan)","required":false,"schema":{"type":"string","example":"waiting","nullable":true,"default":"waiting","enum":["waiting","rejected","signed"]}},{"name":"search","in":"query","description":"Korxona nomi,stir va maskan nomi bo'icha qidiruv","required":false,"schema":{"type":"string","default":"Nimadir"}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id","enum":["id","report_date","llc_company_name","company_stir","status","region_id","district_id","created_at","updated_at"]}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/MillReportResponse"}},"meta":{"properties":{"total":{"type":"integer","example":50},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1},"last_page":{"type":"integer","example":4},"from":{"type":"integer","example":1},"to":{"type":"integer","example":15}},"type":"object"},"links":{"properties":{"first":{"type":"string"},"last":{"type":"string"},"prev":{"type":"string","nullable":true},"next":{"type":"string","nullable":true}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}},"post":{"tags":["Mill Reports"],"summary":"Tegirmon holati haqida dalolatnomani qo'shish","description":"Tegirmon holati haqida yangi dalolatnoma yaratadi","operationId":"millReportsStore","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/MillReportRequest"}}}},"responses":{"201":{"description":"Dalolatnoma muvaffaqiyatli yaratildi","content":{"application\/json":{"schema":{"required":["success","message","data"],"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli yaratildi"},"data":{"$ref":"#\/components\/schemas\/MillReportResponse"}},"type":"object"}}}},"422":{"description":"Validatsiya xatosi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Validatsiya xatosi"},"errors":{"type":"object","example":{"district_id":["District maydoni to'ldirilishi shart"]}}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/mill-reports\/{millReport}":{"get":{"tags":["Mill Reports"],"summary":"Tegirmon dalolatnomasini ko'rish (show)","description":"Bitta MillReport yozuvini ID orqali qaytaradi","operationId":"millReportsShow","parameters":[{"name":"millReport","in":"path","description":"MillReport ID (Route model binding)","required":true,"schema":{"type":"integer","example":15}}],"responses":{"200":{"description":"Dalolatnoma muvaffaqiyatli olindi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli olindi"},"data":{"$ref":"#\/components\/schemas\/MillReportResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi (Not Found)"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Mill Reports"],"summary":"Tegirmon dalolatnomasini yangilash","description":"MillReport ma'lumotlarini yangilaydi","operationId":"millReportsUpdate","parameters":[{"name":"millReport","in":"path","description":"MillReport ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/MillReportRequest"}}}},"responses":{"200":{"description":"Dalolatnoma muvaffaqiyatli yangilandi","content":{"application\/json":{"schema":{"required":["success","message","data"],"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli yangilandi"},"data":{"$ref":"#\/components\/schemas\/MillReportResponse"}},"type":"object"}}}},"422":{"description":"Validatsiya xatosi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"Validatsiya xatosi"},"errors":{"type":"object","example":{"district_id":["District maydoni to'ldirilishi shart"]}}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Mill Reports"],"summary":"Dalolatnoma o'chirish","description":"Tegirmon holati dalolatnomasini o'chirish","operationId":"5742ccf4924ffdf9e2dde0eabe8520e8","parameters":[{"name":"millReport","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"O'chirildi"},"404":{"description":"Topilmadi"}}}},"\/api\/v1\/mill-reports\/{millReport}\/reject":{"post":{"tags":["Mill Reports"],"summary":"Tegirmon dalolatnomasini rad etish","description":"Dalolatnomani rad etadi va sababini saqlaydi","operationId":"millReportReject","parameters":[{"name":"millReport","in":"path","description":"Tegirmon dalolatnomasi ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["comment"],"properties":{"comment":{"description":"Rad etish sababi","type":"string","example":"Ma'lumotlar noto'g'ri kiritilgan"}},"type":"object"}}}},"responses":{"200":{"description":"Dalolatnoma rad etildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma rad etildi"}},"type":"object"}}}},"400":{"description":"Bu dalolatnoma bilan amal qilish imkoni yo'q"},"403":{"description":"Yaratuvchi rad eta olmaydi"},"404":{"description":"Dalolatnoma topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/mill-reports\/{millReport}\/sign":{"post":{"tags":["Mill Reports"],"summary":"Tegirmon dalolatnomasini imzolash","description":"Dalolatnomani ECP bilan imzolash","operationId":"millReportSign","parameters":[{"name":"millReport","in":"path","description":"Tegirmon dalolatnomasi ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"required":["signature"],"properties":{"signature":{"description":"Imzo (base64\/pkcs7 formatda)","type":"string","example":"base64_signature_data"},"file":{"description":"Imzolangan dalolatnoma fayli (PDF)","type":"string","format":"binary","nullable":true}},"type":"object"}}}},"responses":{"200":{"description":"Dalolatnoma imzolandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Imzo muvaffaqiyatli qo'yildi"},"data":{"properties":{"all_signed":{"type":"boolean","example":false}},"type":"object"}},"type":"object"}}}},"400":{"description":"Bu dalolatnoma bilan amal qilish imkoni yo'q"},"404":{"description":"Dalolatnoma topilmadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/oil-fat-reports":{"get":{"tags":["Oil Fat Reports"],"summary":"Yog'-moy dalolatnomalarini ro'yxatini olish","operationId":"7cc041ff480e1f5fe2e185480d4ff1cc","parameters":[{"name":"per_page","in":"query","description":"Sahifadagi yozuvlar soni (-1 = hammasi)","required":false,"schema":{"type":"integer","default":15,"maximum":100,"minimum":-1}},{"name":"status","in":"query","description":"waiting (kutilmoqda), rejected (rad etilgan), signed (imzolangan)","required":false,"schema":{"type":"string","example":"waiting","nullable":true,"default":"waiting","enum":["waiting","rejected","signed"]}},{"name":"search","in":"query","description":"Korxona nomi,stir va maskan nomi bo'icha qidiruv","required":false,"schema":{"type":"string","default":"Nimadir"}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id","enum":["id","report_number","report_date","name","stir","status","region_id","district_id","created_at","updated_at"]}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/OilFatReportResponse"}},"meta":{"properties":{"total":{"type":"integer","example":50},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1},"last_page":{"type":"integer","example":4},"from":{"type":"integer","example":1},"to":{"type":"integer","example":15}},"type":"object"},"links":{"properties":{"first":{"type":"string"},"last":{"type":"string"},"prev":{"type":"string","nullable":true},"next":{"type":"string","nullable":true}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}},"post":{"tags":["Oil Fat Reports"],"summary":"Yog'-moy dalolatnomasini qo'shish","description":"Yog'-moy dalolatnomasi qo'shiladi","operationId":"oilFatReportsStore","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/OilFatReportRequest"}}}},"responses":{"201":{"description":"Dalolatnoma muvaffaqiyatli yaratildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli yaratildi"},"data":{"$ref":"#\/components\/schemas\/OilFatReportResponse"}},"type":"object"}}}},"422":{"description":"Validatsiya xatosi"},"401":{"description":"Autentifikatsiya talab qilinadi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/oil-fat-reports\/{oilFatReport}":{"get":{"tags":["Oil Fat Reports"],"summary":"Yog'-moy dalolatnomasini ko'rish","description":"Bitta OilFatReport yozuvini ID orqali qaytaradi","operationId":"oilFatReportsShow","parameters":[{"name":"oilFatReport","in":"path","description":"OilFatReport ID","required":true,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"Dalolatnoma muvaffaqiyatli olindi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli olindi"},"data":{"$ref":"#\/components\/schemas\/OilFatReportResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Oil Fat Reports"],"summary":"Yog'-moy dalolatnomasini yangilash","description":"Dalolatnoma ma'lumotlarini qisman yangilaydi","operationId":"oilFatReportsUpdate","parameters":[{"name":"oilFatReport","in":"path","description":"OilFatReport ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/OilFatReportRequest"}}}},"responses":{"200":{"description":"Dalolatnoma muvaffaqiyatli yangilandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli o'zgartirildi"},"data":{"$ref":"#\/components\/schemas\/OilFatReportResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Oil Fat Reports"],"summary":"Yog'-moy dalolatnomasini o'chirish","description":"Dalolatnomani o'chirish","operationId":"51f69369deb156bb7735f28d3940377a","parameters":[{"name":"oilFatReport","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"O'chirildi"},"404":{"description":"Topilmadi"}}}},"\/api\/v1\/grain-inspection-reports":{"get":{"tags":["Grain Inspection Reports"],"summary":"Tozalov dalolatnomasi 30-shakli ro'yxatini olish","operationId":"f42ec8068714eb42180ffccaf66a1991","parameters":[{"name":"per_page","in":"query","description":"Sahifadagi yozuvlar soni (-1 = hammasi)","required":false,"schema":{"type":"integer","default":15,"maximum":100,"minimum":-1}},{"name":"status","in":"query","description":"Holati: draft (qoralama), waiting (kutilmoqda), rejected (rad etilgan), signed (imzolangan)","required":false,"schema":{"type":"string","example":"draft","nullable":true,"default":"draft","enum":["draft","waiting","rejected","signed"]}},{"name":"search","in":"query","description":"Korxona nomi va stir bo'icha qidiruv","required":false,"schema":{"type":"string","default":"Nimadir"}},{"name":"sort_by","in":"query","description":"Saralash maydoni","required":false,"schema":{"type":"string","default":"id","enum":["id","enterprise_name","company_stir","status","region_id","district_id","created_at","updated_at"]}},{"name":"sort_order","in":"query","description":"Saralash tartibi","required":false,"schema":{"type":"string","default":"desc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Successful operation","content":{"application\/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/GrainInspectionReportResponse"}},"meta":{"properties":{"total":{"type":"integer","example":50},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1},"last_page":{"type":"integer","example":4},"from":{"type":"integer","example":1},"to":{"type":"integer","example":15}},"type":"object"},"links":{"properties":{"first":{"type":"string"},"last":{"type":"string"},"prev":{"type":"string","nullable":true},"next":{"type":"string","nullable":true}},"type":"object"}},"type":"object"}}}},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}},"post":{"tags":["Grain Inspection Reports"],"summary":"Create Grain Inspection Report","operationId":"storeGrainInspectionReport","requestBody":{"required":true,"content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/GrainInspectionReportRequest"},{"properties":{"previous_cleaning_acts":{"type":"array","items":{"$ref":"#\/components\/schemas\/PreviousCleaningAct"},"nullable":true}},"type":"object"}]}}}},"responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"required":["success","message","data"],"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli yaratildi"},"data":{"allOf":[{"$ref":"#\/components\/schemas\/GrainInspectionReportResponse"},{"properties":{"previous_cleaning_acts":{"type":"array","items":{"$ref":"#\/components\/schemas\/PreviousCleaningAct"},"nullable":true}},"type":"object"}]}},"type":"object"}}}},"422":{"description":"Validation error"}}}},"\/api\/v1\/grain-inspection-reports\/{grainInspectionReport}":{"get":{"tags":["Grain Inspection Reports"],"summary":"Tozalov dalolatnomasi 30-shaklini ko\u2018rish","description":"Bitta tozalov dalolatnomasi 30-shakli yozuvini ID orqali qaytaradi","operationId":"grainInspectionReportsShow","parameters":[{"name":"grainInspectionReport","in":"path","description":"grainInspectionReport ID (Route model binding)","required":true,"schema":{"type":"integer","example":15}}],"responses":{"200":{"description":"Dalolatnoma muvaffaqiyatli olindi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli olindi"},"data":{"$ref":"#\/components\/schemas\/GrainInspectionReportResponse"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Topilmadi (Not Found)"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Grain Inspection Reports"],"summary":"Update Grain Inspection Report","description":"Updates a grain inspection report. Optionally updates previous cleaning acts as nested array.","operationId":"updateGrainInspectionReport","parameters":[{"name":"grainInspectionReport","in":"path","description":"Grain inspection report ID","required":true,"schema":{"type":"integer"},"example":1}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/GrainInspectionReportRequest"},{"properties":{"previous_cleaning_acts":{"description":"List of previous cleaning acts to update\/create. If items contain id -> update, if not -> create (implementation-specific).","type":"array","items":{"$ref":"#\/components\/schemas\/PreviousCleaningAct"},"nullable":true}},"type":"object"}]}}}},"responses":{"200":{"description":"Updated","content":{"application\/json":{"schema":{"required":["success","message","data"],"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma muvaffaqiyatli yangilandi"},"data":{"allOf":[{"$ref":"#\/components\/schemas\/GrainInspectionReportResponse"},{"properties":{"previous_cleaning_acts":{"type":"array","items":{"$ref":"#\/components\/schemas\/PreviousCleaningAct"},"nullable":true}},"type":"object"}]}},"type":"object"}}}},"404":{"description":"Not found"},"422":{"description":"Validation error"}}},"delete":{"tags":["Grain Inspection Reports"],"summary":"Dalolatnoma o'chirish","description":"Tozalov dalolatnomasi 30-shakli o'chirish","operationId":"c88d9199c0ca4fd00b850bad11904d83","parameters":[{"name":"grainInspectionReport","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"O'chirildi"},"404":{"description":"Topilmadi"}}}},"\/api\/v1\/grain-inspection-reports\/{grainInspectionReport}\/specialist-report":{"put":{"tags":["Grain Inspection Reports"],"summary":"Mintaqaviy departament mutaxassislari xulosasini yangilash","description":"Mavjud mutaxassis xulosasini tahrirlaydi","operationId":"grainInspectionReportUpdateSpecialistReport","parameters":[{"name":"grainInspectionReport","in":"path","description":"Tozalov dalolatnomasi ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["date","addition_to_quantity_difference","explanation","writeoff_of_shortage","unjustified_shortage_excess_balance","refusal_for_reason","idh_id","financial_responsible_person_full_name"],"properties":{"date":{"type":"string","format":"date","example":"2026-05-09"},"addition_to_quantity_difference":{"type":"object"},"explanation":{"type":"string","example":"Izoh matni"},"writeoff_of_shortage":{"type":"object"},"unjustified_shortage_excess_balance":{"type":"object"},"refusal_for_reason":{"type":"string","example":"Sabab matni"},"idh_id":{"description":"Inspeksiya boshqarma boshlig'i ID","type":"integer","example":1},"financial_responsible_person_full_name":{"type":"string","example":"Toshmatov A.B."}},"type":"object"}}}},"responses":{"200":{"description":"Mutaxassis xulosasi yangilandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Mintaqaviy mutaxassis xulosasi muvaffaqiyatli yangilandi"},"data":{"$ref":"#\/components\/schemas\/RegionalDepartmentSpecialistReport"}},"type":"object"}}}},"404":{"description":"Tozalov dalolatnomasi yoki mutaxassis xulosasi topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Grain Inspection Reports"],"summary":"Mintaqaviy departament mutaxassislari xulosasini yaratish","description":"Tozalov dalolatnomasi uchun mintaqaviy departament mutaxassislari xulosasini yaratadi","operationId":"storeSpecialistReport","parameters":[{"name":"grainInspectionReport","in":"path","description":"Tozalov dalolatnomasi ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["date","specialist_full_name","region","regional_specialist_full_name","specialist_signature","financial_responsible_person_full_name","responsible_person_signature"],"properties":{"date":{"type":"string","format":"date","example":"2026-02-09"},"specialist_full_name":{"type":"string","example":"Karimov Jasur"},"region":{"type":"string","example":"Toshkent"},"status":{"description":"Xulosa holati (draft - Qoralama, waiting - Kutilmoqda, rejected - Rad etilgan, signed - Imzolangan)","type":"string","example":"waiting","nullable":true,"enum":["draft","waiting","rejected","signed"]},"explanation":{"type":"string","nullable":true},"addition_to_quantity_difference":{"description":"Miqdor farqiga qo'shimcha: a(foiz, og'irlik), b(foiz, og'irlik), overall_weight","properties":{"a":{"properties":{"percentage":{"type":"number","example":1.5},"weight":{"type":"number","example":50}},"type":"object"},"b":{"properties":{"percentage":{"type":"number","example":0.8},"weight":{"type":"number","example":25}},"type":"object"},"overall_weight":{"type":"number","example":75}},"type":"object","nullable":true},"writeoff_of_shortage":{"description":"Kamolligini yozib tashlash: grain, a(foiz, og'irlik), b(foiz, og'irlik), v(foiz, og'irlik), total_justification, total_justification_in_words","properties":{"grain":{"type":"string","example":"Bug'doy"},"a":{"properties":{"percentage":{"type":"number","example":1.25},"weight":{"type":"number","example":12.5}},"type":"object"},"b":{"properties":{"percentage":{"type":"number","example":0.5},"weight":{"type":"number","example":5}},"type":"object"},"v":{"properties":{"percentage":{"type":"number","example":0.25},"weight":{"type":"number","example":2.5}},"type":"object"},"total_justification":{"type":"number","example":20},"total_justification_in_words":{"type":"string","example":"Yigirma"}},"type":"object","nullable":true},"unjustified_shortage_excess_balance":{"description":"Asoslanmagan kamollik va ortiqcha balans: defecit, overage","properties":{"defecit":{"type":"integer","example":10},"overage":{"type":"integer","example":0}},"type":"object","nullable":true},"refusal_for_reason":{"type":"string","nullable":true},"idh_id":{"description":"Inspeksiya boshqarmasi boshlig'i","type":"integer","nullable":false},"financial_responsible_person_full_name":{"type":"string","example":"Ismoilov Sardor"}},"type":"object"}}}},"responses":{"201":{"description":"Muvaffaqiyatli yaratildi","content":{"application\/json":{"schema":{"required":["success","message","data"],"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Mintaqaviy mutaxassis xulosasi muvaffaqiyatli yaratildi"},"data":{"$ref":"#\/components\/schemas\/RegionalDepartmentSpecialistReport"}},"type":"object"}}}},"401":{"description":"Autentifikatsiya talab qilinadi"},"404":{"description":"Tozalov dalolatnomasi topilmadi"},"409":{"description":"Bu tozalov uchun allaqachon xulosasi mavjud"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/grain-inspection-reports\/{grainInspectionReport}\/idh-sign":{"post":{"tags":["Grain Inspection Reports"],"summary":"Tozalov dalolatnomasini inspeksiya boshqarma boshlig'i tomonidan imzolash","description":"Tozalov dalolatnomasini inspeksiya boshqarma boshlig'i imzolaydi","operationId":"grainInspectionReportIdhSign","parameters":[{"name":"grainInspectionReport","in":"path","description":"Tozalov dalolatnomasi ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["signature"],"properties":{"signature":{"description":"Inspeksiya boshqarma boshlig'i imzosi","type":"string","example":"signatures\/idh_12345.png"}},"type":"object"}}}},"responses":{"200":{"description":"Dalolatnoma inspeksiya boshqarma boshlig'i tomonidan imzolandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma inspeksiya boshqarma boshlig'i tomonidan imzolandi"},"data":{"$ref":"#\/components\/schemas\/GrainInspectionReportResponse"}},"type":"object"}}}},"400":{"description":"Xatolik"},"404":{"description":"Dalolatnoma topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/grain-inspection-reports\/{grainInspectionReport}\/idh-reject":{"post":{"tags":["Grain Inspection Reports"],"summary":"Tozalov dalolatnomasini inspeksiya boshqarma boshlig'i tomonidan rad etish","description":"Tozalov dalolatnomasini inspeksiya boshqarma boshlig'i rad etadi va sababini saqlaydi","operationId":"grainInspectionReportIdhReject","parameters":[{"name":"grainInspectionReport","in":"path","description":"Tozalov dalolatnomasi ID","required":true,"schema":{"type":"integer","example":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"required":["comment"],"properties":{"comment":{"description":"Rad etish sababi","type":"string","example":"Xatolik topildi, qayta tekshiring"}},"type":"object"}}}},"responses":{"200":{"description":"Dalolatnoma inspeksiya boshqarma boshlig'i tomonidan rad etildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Dalolatnoma inspeksiya boshqarma boshlig'i tomonidan rad etildi"},"data":{"$ref":"#\/components\/schemas\/GrainInspectionReportResponse"}},"type":"object"}}}},"400":{"description":"Xatolik"},"404":{"description":"Dalolatnoma topilmadi"},"422":{"description":"Validatsiya xatosi"}},"security":[{"bearerAuth":[]}]}},"\/api\/v1\/signing":{"post":{"tags":["Sign & Reject"],"summary":"Hisobot yoki xulosani imzolash","operationId":"f683c20b8cf4acb3ed1ce550f2514692","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/SignRequestBody"}}}},"responses":{"200":{"description":"Muvaffaqiyatli imzolandi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Imzo muvaffaqiyatli qo'yildi"},"data":{"properties":{"all_signed":{"type":"boolean","example":false}},"type":"object"}},"type":"object"}}}},"400":{"description":"Xatolik"},"404":{"description":"Hujjat topilmadi"},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}}},"\/api\/v1\/rejecting":{"post":{"tags":["Sign & Reject"],"summary":"Hisobot yoki xulosani rad etish","operationId":"558a9171a2993fe8928124213be046b0","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/RejectRequestBody"}}}},"responses":{"200":{"description":"Muvaffaqiyatli rad etildi","content":{"application\/json":{"schema":{"properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Hujjat rad etildi"}},"type":"object"}}}},"400":{"description":"Xatolik"},"404":{"description":"Hujjat topilmadi"},"401":{"description":"Avtorizatsiyadan o'tilmagan"}}}}},"components":{"schemas":{"CottonConclusionRequest":{"title":"CottonConclusionRequest","description":"Paxta arbitraj guruhi xulosasi - so'rov modeli","required":["arbitraj_group_number","region_id","district_id","users[]"],"properties":{"arbitraj_group_number":{"type":"string","example":"1"},"conclusion_number":{"type":"string","example":"15","nullable":false},"region_id":{"type":"integer","example":3},"district_id":{"type":"integer","example":12},"reweight_date":{"type":"string","format":"date","example":"2026-03-10","nullable":false},"organization_stir":{"description":"Klaster\/kooperatsiya STIR raqami","type":"string","example":"305678912","nullable":false},"organization_name":{"type":"string","example":"Buxoro klaster MChJ","nullable":false},"facility_name":{"type":"string","example":"Kogon paxta tozalash zavodi","nullable":false},"organization_representative_full_name":{"description":"Klaster\/kooperatsiya vakili","type":"string","example":"Toshmatov A.B.","nullable":false},"appealing_organization_type":{"type":"string","example":"cotton_claster","nullable":false,"enum":["cotton_claster","farm"]},"farmer_stir":{"description":"Fermer STIR raqami (9 raqam)","type":"integer","example":123456789,"nullable":true},"farmer_name":{"type":"string","example":"Ahmadov fermer xo'jaligi","nullable":true},"farmer_representive_fullname":{"description":"Fermer vakili to'liq ismi","type":"string","example":"Ahmadov B.T.","nullable":true},"appeal_date":{"type":"string","format":"date","example":"2026-03-08","nullable":false},"conflict_indicator":{"description":"Nizoli ko'rsatkichlar massivi (iflosligi, namligi, fizik vazni)","type":"array","items":{"type":"string","example":"iflosligi"},"nullable":false},"sampled_by":{"type":"string","example":"transport vositasidan","nullable":false},"standards":{"type":"string","example":"O'zMSt 604, ....","nullable":false},"laborant_or_mudir":{"type":"string","example":"laborant","nullable":false,"enum":["laborant","mudir","laboranti","mudiri"]},"laborant_or_mudir_full_name":{"type":"string","example":"Karimov S.T.","nullable":false},"cotton_selection":{"type":"string","example":"Sulton","nullable":false},"picking_type":{"type":"string","example":"by_hand","nullable":false,"enum":["by_hand","by_machine"]},"trailer_number":{"type":"string","example":"3517","nullable":false},"cotton_sort[initial]":{"description":"Dastlabki - paxta navi","type":"string","example":"1","nullable":false},"cotton_sort[arbitraj]":{"description":"Arbitraj - paxta navi","type":"string","example":"1","nullable":false},"cotton_sort[result]":{"description":"Natijasi","type":"string","example":"o'zgardi","nullable":false,"enum":["o'zgardi","o'zgarmadi"]},"cotton_grade[initial]":{"description":"Dastlabki - klass","type":"string","example":"2","nullable":false},"cotton_grade[arbitraj]":{"description":"Arbitraj - klass","type":"string","example":"2","nullable":false},"cotton_grade[result]":{"description":"Natijasi","type":"string","example":"o'zgardi","nullable":false,"enum":["o'zgardi","o'zgarmadi"]},"impurity[initial]":{"description":"Dastlabki - iflosligi","type":"number","example":3.8,"nullable":false},"impurity[arbitraj]":{"description":"Arbitraj - iflosligi","type":"number","example":3.9,"nullable":false},"impurity[result]":{"description":"Natijasi","type":"number","example":"o'zgardi","nullable":false,"enum":["o'zgardi","o'zgarmadi"]},"moisture[initial]":{"description":"Dastlabki - namligi","type":"number","example":6.4,"nullable":false},"moisture[arbitraj]":{"description":"Arbitraj - namligi","type":"number","example":6.4,"nullable":false},"moisture[result]":{"description":"Natijasi","type":"number","example":"o'zgardi","nullable":false,"enum":["o'zgardi","o'zgarmadi"]},"conditioning_weight[initial]":{"description":"Dastlabki - konditsion og'irligi (kg)","type":"number","example":3250,"nullable":false},"conditioning_weight[arbitraj]":{"description":"Arbitraj - konditsion og'irligi (kg)","type":"number","example":3150,"nullable":false},"conditioning_weight[result]":{"description":"Natijasi","type":"number","example":"o'zgardi","nullable":false,"enum":["o'zgardi","o'zgarmadi"]},"comment":{"type":"string","example":"for_farmer","nullable":false,"enum":["for_farmer","for_enterprise"]},"denial_of_signing":{"type":"boolean","example":false,"nullable":false},"users[]":{"description":"Arbitraj guruhi a'zolari ID lari","type":"array","items":{"type":"integer","example":1}},"files[application_letter][]":{"description":"Ariza xati fayllari","type":"array","items":{"type":"string","format":"binary"}}},"type":"object"},"CottonConclusionResponse":{"title":"CottonConclusionResponse","description":"Paxta arbitraj guruhi xulosasi - javob modeli","properties":{"id":{"type":"integer","readOnly":true,"example":1},"arbitraj_group_number":{"type":"string","example":"1"},"conclusion_number":{"type":"string","example":"15","nullable":false},"region_id":{"type":"integer","example":3},"region":{"type":"string","readOnly":true,"example":"Buxoro viloyati"},"district_id":{"type":"integer","example":12},"district":{"type":"string","readOnly":true,"example":"Kogon tumani"},"reweight_date":{"type":"string","format":"date","example":"2026-03-10","nullable":false},"organization_stir":{"type":"string","example":"305678912","nullable":false},"organization_name":{"type":"string","example":"Buxoro klaster MChJ","nullable":false},"facility_name":{"type":"string","example":"Kogon paxta tozalash zavodi","nullable":false},"organization_representative_full_name":{"type":"string","example":"Toshmatov A.B.","nullable":false},"appealing_organization_type":{"type":"string","example":"cotton_claster","nullable":false,"enum":["cotton_claster","farm"]},"farmer_stir":{"type":"integer","example":123456789,"nullable":true},"farmer_name":{"type":"string","example":"Ahmadov fermer xo'jaligi","nullable":true},"farmer_representive_fullname":{"type":"string","example":"Ahmadov B.T.","nullable":true},"appeal_date":{"type":"string","format":"date","example":"2026-03-08","nullable":false},"conflict_indicator":{"description":"Nizoli ko'rsatkichlar massivi","type":"array","items":{"type":"string","example":"iflosligi"},"nullable":false},"sampled_by":{"type":"string","example":"transport vositasidan","nullable":false},"standards":{"type":"string","example":"O'zMSt 604","nullable":false},"laborant_or_mudir":{"type":"string","example":"laborant","nullable":false,"enum":["laborant","mudir","laboranti","mudiri"]},"laborant_or_mudir_full_name":{"type":"string","example":"Karimov S.T.","nullable":false},"cotton_selection":{"type":"string","example":"Sulton","nullable":false},"picking_type":{"type":"string","example":"by_hand","nullable":false,"enum":["by_hand","by_machine"]},"trailer_number":{"type":"string","example":"3517","nullable":false},"cotton_sort":{"description":"Paxta navi","properties":{"initial":{"type":"string","example":"1","nullable":false},"arbitraj":{"type":"string","example":"1","nullable":false},"result":{"type":"string","example":"o'zgardi","nullable":false,"enum":["o'zgardi","o'zgarmadi"]}},"type":"object","nullable":false},"cotton_grade":{"description":"Paxta klassi","properties":{"initial":{"type":"string","example":"2","nullable":false},"arbitraj":{"type":"string","example":"2","nullable":false},"result":{"type":"string","example":"o'zgardi","nullable":false,"enum":["o'zgardi","o'zgarmadi"]}},"type":"object","nullable":false},"impurity":{"description":"Iflosligi (%)","properties":{"initial":{"type":"number","example":3.8,"nullable":false},"arbitraj":{"type":"number","example":3.9,"nullable":false},"result":{"type":"number","example":"o'zgardi","nullable":false,"enum":["o'zgardi","o'zgarmadi"]}},"type":"object","nullable":false},"moisture":{"description":"Namligi (%)","properties":{"initial":{"type":"number","example":6.4,"nullable":false},"arbitraj":{"type":"number","example":6.4,"nullable":false},"result":{"type":"number","example":"o'zgardi","nullable":false,"enum":["o'zgardi","o'zgarmadi"]}},"type":"object","nullable":false},"conditioning_weight":{"description":"Konditsion og'irligi (kg)","properties":{"initial":{"type":"number","example":3250,"nullable":false},"arbitraj":{"type":"number","example":3150,"nullable":false},"result":{"type":"number","example":"o'zgardi","nullable":false,"enum":["o'zgardi","o'zgarmadi"]}},"type":"object","nullable":false},"comment":{"type":"string","example":"for_farmer","nullable":false,"enum":["for_farmer","for_enterprise"]},"denial_of_signing":{"type":"boolean","example":false,"nullable":false},"status":{"type":"string","example":"waiting","enum":["waiting","rejected","signed"]},"members":{"description":"Arbitraj guruhi a'zolari (F.I.Sh. va lavozimi)","type":"array","items":{"properties":{"full_name":{"type":"string","example":"Ahmadov Anvar"},"position":{"type":"string","example":"Mobil arbitraj guruhi rahbari"}},"type":"object"}},"file_path":{"type":"string","readOnly":true,"example":"pdf\/cotton-conclusions\/paxta-arbitraj-xulosa-1.pdf","nullable":false},"file_url":{"type":"string","readOnly":true,"example":"https:\/\/s3.example.com\/pdf\/cotton-conclusions\/paxta-arbitraj-xulosa-1.pdf","nullable":false},"created_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-03-12 14:30:00"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-03-12 14:30:00"},"files":{"properties":{"application_letter":{"description":"Ariza xati fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}}},"type":"object","readOnly":true,"nullable":true}},"type":"object"},"GrainConclusionRequest":{"title":"GrainConclusionRequest","description":"Don arbitraj guruhi xulosasi - so'rov modeli","required":["arbitraj_group_number","region_id","district_id","users[]"],"properties":{"arbitraj_group_number":{"type":"string","example":"1"},"conclusion_number":{"type":"string","example":"15","nullable":true},"region_id":{"type":"integer","example":3},"district_id":{"type":"integer","example":12},"stir":{"description":"Korxona STIR raqami","type":"integer","example":305678912,"nullable":true},"enterprise_name":{"description":"Korxona nomi","type":"string","example":"BUXORO DON MAHSULOTLARI MChJ","nullable":true},"reweight_date":{"type":"string","format":"date","example":"2026-03-10","nullable":true},"claster_cooperation_name":{"type":"string","example":"Buxoro g'allachilik klasteri MChJ","nullable":true},"facility_name":{"type":"string","example":"Kogon don qabul shaxobchasi","nullable":true},"representative_name":{"type":"string","example":"Toshmatov A.B.","nullable":true},"appeal_date":{"type":"string","format":"date","example":"2026-03-08","nullable":true},"conflict_indicator":{"description":"Nizoli ko'rsatkichlar (array)","type":"array","items":{"type":"string","example":"namligi"},"nullable":true},"sampled_by":{"description":"Namuna qayerdan olingan","type":"string","example":"transport vositasidan","nullable":true},"standards":{"type":"string","example":"GOST 13586.3-83, O'zDST 880:2015","nullable":true},"laborant_or_mudir":{"description":"Laborant yoki mudir (laborant = laboratoriya xodimi, mudir = boshqaruvchi)","type":"string","example":"laborant","nullable":true,"enum":["laborant","mudir","laboranti","mudiri"]},"laborant_or_mudir_full_name":{"type":"string","example":"Karimov S.T.","nullable":true},"initial_lab_results[class]":{"description":"Dastlabki laboratoriya - sinf","type":"string","example":"3-sinf","nullable":true},"initial_lab_results[impurity]":{"description":"Dastlabki laboratoriya - aralashma","type":"number","example":2.5,"nullable":true},"initial_lab_results[moisture]":{"description":"Dastlabki laboratoriya - namlik","type":"number","example":13.2,"nullable":true},"initial_lab_results[kleykovina_amount]":{"description":"Dastlabki laboratoriya - kleykovina miqdori","type":"number","example":28,"nullable":true},"initial_lab_results[natura]":{"description":"Dastlabki laboratoriya - natura","type":"number","example":780,"nullable":true},"initial_lab_results[cereal_mixtures]":{"description":"Dastlabki laboratoriya - don aralashmalari","type":"number","example":1.5,"nullable":true},"initial_lab_results[pest_infestation_level]":{"description":"Dastlabki laboratoriya - zararkunandalar darajasi","type":"string","example":"zararlangan","nullable":true},"arbitraj_lab_results[class]":{"description":"Arbitraj laboratoriya - sinf","type":"string","example":"3-sinf","nullable":true},"arbitraj_lab_results[impurity]":{"description":"Arbitraj laboratoriya - aralashma","type":"number","example":2.3,"nullable":true},"arbitraj_lab_results[moisture]":{"description":"Arbitraj laboratoriya - namlik","type":"number","example":13,"nullable":true},"arbitraj_lab_results[kleykovina_amount]":{"description":"Arbitraj laboratoriya - kleykovina miqdori","type":"number","example":28.5,"nullable":true},"arbitraj_lab_results[natura]":{"description":"Arbitraj laboratoriya - natura","type":"number","example":785,"nullable":true},"arbitraj_lab_results[cereal_mixtures]":{"description":"Arbitraj laboratoriya - don aralashmalari","type":"number","example":1.2,"nullable":true},"arbitraj_lab_results[pest_infestation_level]":{"description":"Arbitraj laboratoriya - zararkunandalar darajasi","type":"string","example":"zararlangan","nullable":true},"comment":{"description":"Xulosa (for_farmer = fermer foydasiga, for_enterprise = korxona foydasiga)","type":"string","example":"for_farmer","nullable":true,"enum":["for_farmer","for_enterprise"]},"denial_of_signing":{"type":"boolean","example":false,"nullable":true},"users[]":{"description":"Arbitraj guruhi a'zolari ID lari","type":"array","items":{"type":"integer","example":1}},"files[application_letter][]":{"description":"Ariza xati fayllari","type":"array","items":{"type":"string","format":"binary"}}},"type":"object"},"GrainConclusionResponse":{"title":"GrainConclusionResponse","description":"Don arbitraj guruhi xulosasi - javob modeli","properties":{"id":{"type":"integer","readOnly":true,"example":1},"arbitraj_group_number":{"type":"string","example":"1"},"conclusion_number":{"type":"string","example":"15","nullable":true},"region_id":{"type":"integer","example":3},"region":{"description":"Viloyat nomi","type":"string","readOnly":true,"example":"Buxoro viloyati"},"district_id":{"type":"integer","example":12},"district":{"description":"Tuman nomi","type":"string","readOnly":true,"example":"Kogon tumani"},"stir":{"description":"Korxona STIR raqami","type":"integer","example":305678912,"nullable":true},"enterprise_name":{"description":"Korxona nomi","type":"string","example":"BUXORO DON MAHSULOTLARI MChJ","nullable":true},"reweight_date":{"type":"string","format":"date","example":"2026-03-10","nullable":true},"claster_cooperation_name":{"type":"string","example":"Buxoro g'allachilik klasteri MChJ","nullable":true},"facility_name":{"type":"string","example":"Kogon don qabul shaxobchasi","nullable":true},"representative_name":{"type":"string","example":"Toshmatov A.B.","nullable":true},"appeal_date":{"type":"string","format":"date","example":"2026-03-08","nullable":true},"conflict_indicator":{"description":"Nizoli ko'rsatkichlar (array)","type":"array","items":{"type":"string","example":"namligi"},"nullable":true},"sampled_by":{"description":"Namuna qayerdan olingan","type":"string","example":"transport vositasidan","nullable":true},"standards":{"type":"string","example":"GOST 13586.3-83, O'zDST 880:2015","nullable":true},"laborant_or_mudir":{"description":"Laborant yoki mudir (laborant = laboratoriya xodimi, mudir = boshqaruvchi)","type":"string","example":"laborant","nullable":true,"enum":["laborant","mudir","laboranti","mudiri"]},"laborant_or_mudir_full_name":{"type":"string","example":"Karimov S.T.","nullable":true},"initial_lab_results":{"description":"Dastlabki laboratoriya tahlil natijalari","properties":{"class":{"type":"string","example":"3-sinf","nullable":true},"impurity":{"type":"number","example":2.5,"nullable":true},"moisture":{"type":"number","example":13.2,"nullable":true},"kleykovina_amount":{"type":"number","example":28,"nullable":true},"natura":{"type":"number","example":780,"nullable":true},"cereal_mixtures":{"type":"number","example":1.5,"nullable":true},"pest_infestation_level":{"type":"string","example":"zararlangan","nullable":true}},"type":"object","nullable":true},"arbitraj_lab_results":{"description":"Arbitraj usulida qayta o'tkazilgan laboratoriya tahlil natijalari","properties":{"class":{"type":"string","example":"3-sinf","nullable":true},"impurity":{"type":"number","example":2.3,"nullable":true},"moisture":{"type":"number","example":13,"nullable":true},"kleykovina_amount":{"type":"number","example":28.5,"nullable":true},"natura":{"type":"number","example":785,"nullable":true},"cereal_mixtures":{"type":"number","example":1.2,"nullable":true},"pest_infestation_level":{"type":"string","example":"zararlangan","nullable":true}},"type":"object","nullable":true},"comment":{"description":"Xulosa (for_farmer = fermer foydasiga, for_enterprise = korxona foydasiga)","type":"string","example":"for_farmer","nullable":true,"enum":["for_farmer","for_enterprise"]},"denial_of_signing":{"type":"boolean","example":false,"nullable":true},"status":{"description":"Xulosa holati (waiting - Kutilmoqda, rejected - Rad etilgan, signed - Imzolangan)","type":"string","example":"waiting","enum":["waiting","rejected","signed"]},"users":{"description":"Arbitraj guruhi a'zolari","type":"array","items":{"$ref":"#\/components\/schemas\/User"}},"file_path":{"type":"string","readOnly":true,"example":"pdf\/grain-conclusions\/don-arbitraj-xulosa-1.pdf","nullable":true},"file_url":{"type":"string","readOnly":true,"example":"https:\/\/s3.example.com\/pdf\/grain-conclusions\/don-arbitraj-xulosa-1.pdf","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-03-12 14:30:00"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-03-12 14:30:00"},"files":{"description":"Yuklangan fayllar (collection nomi bo'yicha guruplangan)","properties":{"application_letter":{"description":"Ariza xati fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}}},"type":"object","readOnly":true,"nullable":true}},"type":"object"},"ClasterConclusionRequest":{"title":"ClasterConclusionRequest","description":"Klaster xulosasi - so'rov","required":["district_id","date","stir","claster_name","facility_address","facility_name","capacity"],"properties":{"district_id":{"description":"Tuman ID","type":"integer","example":1},"date":{"description":"Xulosa sanasi","type":"string","format":"date","example":"2026-02-26"},"stir":{"description":"STIR raqami (9 ta raqam)","type":"string","example":"123456789"},"claster_name":{"description":"Klaster nomi","type":"string","example":"PAXTA KLASTERI MChJ"},"facility_address":{"description":"Ob'ekt manzili","type":"string","example":"Farg'ona viloyati, Qo'qon shahri"},"facility_name":{"description":"Ob'ekt nomi","type":"string","example":"Markaziy paxta qabul punkti"},"capacity":{"description":"Sig'im (tonna)","type":"integer","example":5000},"sampling_place[available]":{"description":"Namuna olish joyi - mavjud","type":"integer","example":5,"nullable":true},"sampling_place[functional]":{"description":"Namuna olish joyi - ishlaydigan","type":"integer","example":4,"nullable":true},"sampling_place[defective]":{"description":"Namuna olish joyi - nosoz","type":"integer","example":1,"nullable":true},"etalon_samples[available]":{"description":"Etalon namunalar - mavjud","type":"integer","example":5,"nullable":true},"etalon_samples[functional]":{"description":"Etalon namunalar - ishlaydigan","type":"integer","example":4,"nullable":true},"etalon_samples[defective]":{"description":"Etalon namunalar - nosoz","type":"integer","example":1,"nullable":true},"verified_autoscale[available]":{"description":"Tekshirilgan avtotarozi - mavjud","type":"integer","example":5,"nullable":true},"verified_autoscale[functional]":{"description":"Tekshirilgan avtotarozi - ishlaydigan","type":"integer","example":4,"nullable":true},"verified_autoscale[defective]":{"description":"Tekshirilgan avtotarozi - nosoz","type":"integer","example":1,"nullable":true},"autoscale_integrated[available]":{"description":"I-system ulangan avtotarozi - mavjud","type":"integer","example":5,"nullable":true},"autoscale_integrated[functional]":{"description":"I-system ulangan avtotarozi - ishlaydigan","type":"integer","example":4,"nullable":true},"autoscale_integrated[defective]":{"description":"I-system ulangan avtotarozi - nosoz","type":"integer","example":1,"nullable":true},"certified_staff[available]":{"description":"Sertifikatlangan xodimlar - mavjud","type":"integer","example":10,"nullable":true},"certified_staff[functional]":{"description":"Sertifikatlangan xodimlar - ishlaydigan","type":"integer","example":8,"nullable":true},"certified_staff[defective]":{"description":"Sertifikatlangan xodimlar - nosoz","type":"integer","example":2,"nullable":true},"standards_provided[available]":{"description":"Standartlar ta'minlangan - mavjud","type":"integer","example":5,"nullable":true},"standards_provided[functional]":{"description":"Standartlar ta'minlangan - ishlaydigan","type":"integer","example":5,"nullable":true},"standards_provided[defective]":{"description":"Standartlar ta'minlangan - nosoz","type":"integer","example":0,"nullable":true},"equipment_verified[available]":{"description":"Tekshirilgan uskunalar - mavjud","type":"integer","example":8,"nullable":true},"equipment_verified[functional]":{"description":"Tekshirilgan uskunalar - ishlaydigan","type":"integer","example":7,"nullable":true},"equipment_verified[defective]":{"description":"Tekshirilgan uskunalar - nosoz","type":"integer","example":1,"nullable":true},"storage_room[available]":{"description":"Saqlash xonasi - mavjud","type":"integer","example":3,"nullable":true},"storage_room[functional]":{"description":"Saqlash xonasi - ishlaydigan","type":"integer","example":3,"nullable":true},"storage_room[defective]":{"description":"Saqlash xonasi - nosoz","type":"integer","example":0,"nullable":true},"conveyor_system[available]":{"description":"Konveyer tizimi - mavjud","type":"integer","example":4,"nullable":true},"conveyor_system[functional]":{"description":"Konveyer tizimi - ishlaydigan","type":"integer","example":3,"nullable":true},"conveyor_system[defective]":{"description":"Konveyer tizimi - nosoz","type":"integer","example":1,"nullable":true},"air_ventilation[available]":{"description":"Havo ventilyatsiyasi - mavjud","type":"integer","example":6,"nullable":true},"air_ventilation[functional]":{"description":"Havo ventilyatsiyasi - ishlaydigan","type":"integer","example":5,"nullable":true},"air_ventilation[defective]":{"description":"Havo ventilyatsiyasi - nosoz","type":"integer","example":1,"nullable":true},"cotton_warehouse[available]":{"description":"Paxta ombori - mavjud","type":"integer","example":10,"nullable":true},"cotton_warehouse[functional]":{"description":"Paxta ombori - ishlaydigan","type":"integer","example":8,"nullable":true},"cotton_warehouse[defective]":{"description":"Paxta ombori - nosoz","type":"integer","example":2,"nullable":true},"storage_yard[available]":{"description":"Saqlash maydoni - mavjud","type":"integer","example":5,"nullable":true},"storage_yard[functional]":{"description":"Saqlash maydoni - ishlaydigan","type":"integer","example":4,"nullable":true},"storage_yard[defective]":{"description":"Saqlash maydoni - nosoz","type":"integer","example":1,"nullable":true},"electrical_panel[available]":{"description":"Elektr panel - mavjud","type":"integer","example":8,"nullable":true},"electrical_panel[functional]":{"description":"Elektr panel - ishlaydigan","type":"integer","example":7,"nullable":true},"electrical_panel[defective]":{"description":"Elektr panel - nosoz","type":"integer","example":1,"nullable":true},"lighting_system[available]":{"description":"Yoritish tizimi - mavjud","type":"integer","example":20,"nullable":true},"lighting_system[functional]":{"description":"Yoritish tizimi - ishlaydigan","type":"integer","example":18,"nullable":true},"lighting_system[defective]":{"description":"Yoritish tizimi - nosoz","type":"integer","example":2,"nullable":true},"facility_fence[available]":{"description":"Ob'ekt to'sig'i - mavjud","type":"integer","example":1,"nullable":true},"facility_fence[functional]":{"description":"Ob'ekt to'sig'i - ishlaydigan","type":"integer","example":1,"nullable":true},"facility_fence[defective]":{"description":"Ob'ekt to'sig'i - nosoz","type":"integer","example":0,"nullable":true},"tarpaulin_covers[available]":{"description":"Brezent qoplamalar - mavjud","type":"integer","example":15,"nullable":true},"tarpaulin_covers[functional]":{"description":"Brezent qoplamalar - ishlaydigan","type":"integer","example":13,"nullable":true},"tarpaulin_covers[defective]":{"description":"Brezent qoplamalar - nosoz","type":"integer","example":2,"nullable":true},"fire_trucks[available]":{"description":"O't o'chirish mashinalari - mavjud","type":"integer","example":2,"nullable":true},"fire_trucks[functional]":{"description":"O't o'chirish mashinalari - ishlaydigan","type":"integer","example":1,"nullable":true},"fire_trucks[defective]":{"description":"O't o'chirish mashinalari - nosoz","type":"integer","example":1,"nullable":true},"motor_pumps[available]":{"description":"Motor nasoslar - mavjud","type":"integer","example":3,"nullable":true},"motor_pumps[functional]":{"description":"Motor nasoslar - ishlaydigan","type":"integer","example":2,"nullable":true},"motor_pumps[defective]":{"description":"Motor nasoslar - nosoz","type":"integer","example":1,"nullable":true},"water_pumps[available]":{"description":"Suv nasosvlari - mavjud","type":"integer","example":4,"nullable":true},"water_pumps[functional]":{"description":"Suv nasoslari - ishlaydigan","type":"integer","example":3,"nullable":true},"water_pumps[defective]":{"description":"Suv nasoslari - nosoz","type":"integer","example":1,"nullable":true},"water_reservoirs[available]":{"description":"Suv omborlari - mavjud","type":"integer","example":3,"nullable":true},"water_reservoirs[functional]":{"description":"Suv omborlari - ishlaydigan","type":"integer","example":2,"nullable":true},"water_reservoirs[defective]":{"description":"Suv omborlari - nosoz","type":"integer","example":1,"nullable":true},"fire_panel[available]":{"description":"O't o'chirish qalqoni - mavjud","type":"integer","example":5,"nullable":true},"fire_panel[functional]":{"description":"O't o'chirish qalqoni - ishlaydigan","type":"integer","example":4,"nullable":true},"fire_panel[defective]":{"description":"O't o'chirish qalqoni - nosoz","type":"integer","example":1,"nullable":true},"fire_hoses[available]":{"description":"O't o'chirish yenglari - mavjud","type":"integer","example":10,"nullable":true},"fire_hoses[functional]":{"description":"O't o'chirish yenglari - ishlaydigan","type":"integer","example":9,"nullable":true},"fire_hoses[defective]":{"description":"O't o'chirish yenglari - nosoz","type":"integer","example":1,"nullable":true},"mudirlar":{"description":"Bitta yoki bir nechta xodim qo'shish mumkin","type":"string","example":"Abdullayeva B J","nullable":false},"cotton_reception_status":{"description":"Paxta qabul holati","type":"string","example":"ready","nullable":true,"enum":["ready","not_ready"]},"readiness":{"description":"Tayyor holati","type":"string","example":"ready","nullable":true,"enum":["ready","not_ready"]},"users":{"description":"Komissiya a'zolari","type":"array","items":{"required":["role","full_name"],"properties":{"role":{"type":"string","example":"Komissiya raisi"},"full_name":{"type":"string","example":"Karimov A.A."}},"type":"object"}}},"type":"object"},"ClasterConclusionResponse":{"title":"ClasterConclusionResponse","description":"Klaster xulosasi - javob","properties":{"id":{"type":"integer","readOnly":true,"example":1},"district_id":{"description":"Tuman ID","type":"integer","example":1},"district":{"description":"Tuman nomi","type":"string","readOnly":true,"example":"Qo'qon tumani"},"date":{"description":"Xulosa sanasi","type":"string","format":"date","example":"2026-02-26"},"stir":{"description":"STIR raqami","type":"string","example":"123456789"},"claster_name":{"description":"Klaster nomi","type":"string","example":"PAXTA KLASTERI MChJ"},"facility_address":{"description":"Ob'ekt manzili","type":"string","example":"Farg'ona viloyati, Qo'qon shahri"},"facility_name":{"description":"Ob'ekt nomi","type":"string","example":"Markaziy paxta qabul punkti"},"capacity":{"description":"Sig'im (tonna)","type":"integer","example":5000},"sampling_place":{"description":"Namuna olish joyi","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"etalon_samples":{"description":"Etalon namunalar","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"verified_autoscale":{"description":"Tekshirilgan avtotarozi","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"autoscale_integrated":{"description":"I-system ulangan avtotarozi","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"certified_staff":{"description":"Sertifikatlangan xodimlar","properties":{"available":{"type":"integer","example":10,"nullable":true},"functional":{"type":"integer","example":8,"nullable":true},"defective":{"type":"integer","example":2,"nullable":true}},"type":"object","nullable":true},"standards_provided":{"description":"Standartlar ta'minlangan","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":5,"nullable":true},"defective":{"type":"integer","example":0,"nullable":true}},"type":"object","nullable":true},"equipment_verified":{"description":"Tekshirilgan uskunalar","properties":{"available":{"type":"integer","example":8,"nullable":true},"functional":{"type":"integer","example":7,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"storage_room":{"description":"Saqlash xonasi","properties":{"available":{"type":"integer","example":3,"nullable":true},"functional":{"type":"integer","example":3,"nullable":true},"defective":{"type":"integer","example":0,"nullable":true}},"type":"object","nullable":true},"conveyor_system":{"description":"Konveyer tizimi","properties":{"available":{"type":"integer","example":4,"nullable":true},"functional":{"type":"integer","example":3,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"air_ventilation":{"description":"Havo ventilyatsiyasi","properties":{"available":{"type":"integer","example":6,"nullable":true},"functional":{"type":"integer","example":5,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"cotton_warehouse":{"description":"Paxta ombori","properties":{"available":{"type":"integer","example":10,"nullable":true},"functional":{"type":"integer","example":8,"nullable":true},"defective":{"type":"integer","example":2,"nullable":true}},"type":"object","nullable":true},"storage_yard":{"description":"Saqlash maydoni","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"electrical_panel":{"description":"Elektr panel","properties":{"available":{"type":"integer","example":8,"nullable":true},"functional":{"type":"integer","example":7,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"lighting_system":{"description":"Yoritish tizimi","properties":{"available":{"type":"integer","example":20,"nullable":true},"functional":{"type":"integer","example":18,"nullable":true},"defective":{"type":"integer","example":2,"nullable":true}},"type":"object","nullable":true},"facility_fence":{"description":"Ob'ekt to'sig'i","properties":{"available":{"type":"integer","example":1,"nullable":true},"functional":{"type":"integer","example":1,"nullable":true},"defective":{"type":"integer","example":0,"nullable":true}},"type":"object","nullable":true},"tarpaulin_covers":{"description":"Brezent qoplamalar","properties":{"available":{"type":"integer","example":15,"nullable":true},"functional":{"type":"integer","example":13,"nullable":true},"defective":{"type":"integer","example":2,"nullable":true}},"type":"object","nullable":true},"fire_trucks":{"description":"O't o'chirish mashinalari","properties":{"available":{"type":"integer","example":2,"nullable":true},"functional":{"type":"integer","example":1,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"motor_pumps":{"description":"Motor nasoslar","properties":{"available":{"type":"integer","example":3,"nullable":true},"functional":{"type":"integer","example":2,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"water_pumps":{"description":"Suv nasoslari","properties":{"available":{"type":"integer","example":4,"nullable":true},"functional":{"type":"integer","example":3,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"water_reservoirs":{"description":"Suv omborlari","properties":{"available":{"type":"integer","example":3,"nullable":true},"functional":{"type":"integer","example":2,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"fire_panel":{"description":"O't o'chirish qalqoni","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"fire_hoses":{"description":"O't o'chirish yenglari","properties":{"available":{"type":"integer","example":10,"nullable":true},"functional":{"type":"integer","example":9,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"mudirlar":{"description":"Bitta yoki bir nechta xodim qo'shish mumkin","type":"string","example":"Abdullayeva B J","nullable":false},"cotton_reception_status":{"description":"Paxta qabul holati","type":"string","example":"ready","nullable":true,"enum":["ready","not_ready"]},"readiness":{"description":"Tayyor holati","type":"string","example":"ready","nullable":true,"enum":["ready","not_ready"]},"status":{"description":"Xulosa holati (waiting - Kutilmoqda, rejected - Rad etilgan, signed - Imzolangan)","type":"string","example":"waiting","enum":["waiting","rejected","signed"]},"file_path":{"type":"string","readOnly":true,"example":"pdf\/claster-conclusions\/klaster-xulosasi-1.pdf","nullable":true},"file_url":{"type":"string","readOnly":true,"example":"https:\/\/s3.example.com\/pdf\/claster-conclusions\/klaster-xulosasi-1.pdf","nullable":true},"users":{"description":"Komissiya a'zolari","type":"array","items":{"properties":{"id":{"type":"integer","example":1},"role":{"type":"string","example":"Komissiya raisi"},"full_name":{"type":"string","example":"Karimov A.A."}},"type":"object"}},"created_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-26 14:30:00"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-26 14:30:00"}},"type":"object"},"ClasterConclusionUsers":{"title":"Klaster xulosasini imzolovchilar ro'yxati","description":"Klaster xulosalarini imzolovchilar ro'yxati","properties":{"claster_conclusion_id":{"description":"Klaster xulosasi ID","type":"integer","example":"1"},"full_name":{"description":"To'liq ism, familiya va sharifi","type":"string","example":"FISh"},"role":{"description":"Yashnaobod tuman Elektr tarmoqlari korxonasi boshlig\u2018i","type":"string","example":""}},"type":"object"},"CooperationConclusionRequest":{"title":"CooperationConclusionRequest","description":"Kooperatsiya xulosasi - so'rov","required":["regional_department_id","district_id"],"properties":{"number":{"description":"Xulosa raqami","type":"string","example":"101","nullable":true},"date":{"description":"Xulosa sanasi","type":"string","format":"date","example":"2026-02-26","nullable":true},"type":{"description":"Xulosa turi (cooperation_clasters - paxta klasterlari, cooperation_cooperations - paxta kooperatsiyalari, seed_clasters - urug'chilik klasterlari, seed_cooperations - urug'chilik kooperatsiyalari)","type":"string","example":"cooperation_clasters","nullable":false,"enum":["cooperation_clasters","cooperation_cooperations","seed_clasters","seed_cooperations"]},"regional_department_id":{"description":"Hududiy boshqarma ID","type":"integer","example":1},"district_id":{"description":"Tuman ID","type":"integer","example":1},"users[]":{"description":"Komissiya a'zolari (foydalanuvchi ID lari)","type":"array","items":{"type":"integer","example":1}},"regional_department_head_order[order_number]":{"description":"Boshqarma boshlig'i buyrug'i - buyruq raqami","type":"string","example":"12-son","nullable":true},"regional_department_head_order[order_date]":{"description":"Boshqarma boshlig'i buyrug'i - buyruq sanasi","type":"string","example":"2026-01-01","nullable":true},"business_ombudsman[date]":{"description":"Biznes ombudsman - sana","type":"string","example":"2026-01-01","nullable":true},"business_ombudsman[number]":{"description":"Biznes ombudsman - raqam","type":"string","example":"123-son","nullable":true},"conclusion_info[start_date]":{"description":"Xulosa muddati - boshlanish sanasi","type":"string","example":"2026-02-01","nullable":true},"conclusion_info[end_date]":{"description":"Xulosa muddati - tugash sanasi","type":"string","example":"2026-02-10","nullable":true},"name":{"description":"Korxona nomi","type":"string","example":"PAXTA KOOPERATSIYA MChJ","nullable":true},"stir":{"description":"STIR raqami","type":"integer","example":123456789,"nullable":true},"director_full_name":{"description":"Direktor F.I.SH","type":"string","example":"Ahmadov Anvar Akramovich","nullable":true},"ifut_code":{"description":"IFUT kodi","type":"string","example":"01210","nullable":true},"registration_date":{"description":"Ro'yxatdan o'tgan sana","type":"string","format":"date","example":"2020-05-15","nullable":true},"registration_number":{"description":"Guvohnoma raqami","type":"string","example":"12345","nullable":true},"full_address":{"description":"To'liq manzil","type":"string","example":"Farg'ona viloyati, Qo'qon shahri","nullable":true},"cooperation_members[farmers_number]":{"description":"Kooperatsiya a'zolari - fermerlar soni","type":"string","example":"150","nullable":true},"cooperation_members[farmers_area]":{"description":"Kooperatsiya a'zolari - fermerlar maydoni","type":"string","example":"2500","nullable":true},"cooperation_members[farmers_plan]":{"description":"Kooperatsiya a'zolari - fermerlar rejasi","type":"string","example":"1000","nullable":true},"appeal_letter[date]":{"description":"Murojaat xati - sana","type":"string","example":"2026-01-15","nullable":true},"appeal_letter[number]":{"description":"Murojaat xati - raqam","type":"string","example":"45-son","nullable":true},"own_or_rented":{"description":"Mulk turi (o'z yoki ijara)","type":"string","example":"own","nullable":true,"enum":["own","rent"]},"rent_facility_name":{"description":"Ijara obyekti nomi","type":"string","example":"Paxta tozalash zavodi","nullable":true},"rented_company_name":{"description":"Ijaraga beruvchi korxona","type":"string","example":"AGRO INVEST MChJ","nullable":true},"rented_company_stir":{"description":"Ijaraga beruvchi korxona STIR (INN)","type":"string","example":"123456789","nullable":true},"rent_facility_address":{"description":"Ijara obyekti manzili","type":"string","example":"Sanoat ko'chasi, 15","nullable":true},"rent_contract_number":{"description":"Ijara shartnoma raqami","type":"string","example":"1234","nullable":true},"rent_contract_date":{"description":"Ijara shartnoma sanasi","type":"string","format":"date","example":"2025-09-01","nullable":true},"fvv_conclusion[date]":{"description":"FVV xulosasi - sana","type":"string","example":"2026-01-01","nullable":true},"fvv_conclusion[number]":{"description":"FVV xulosasi - raqam","type":"string","example":"FVV-123","nullable":true},"district_electricity_conclusion[date]":{"description":"Tuman elektr xulosa - sana","type":"string","example":"2026-01-01","nullable":true},"district_electricity_conclusion[number]":{"description":"Tuman elektr xulosa - raqam","type":"string","example":"EL-456","nullable":true},"vehicle_scale_certificate_exists":{"description":"Avtomobil tarozi sertifikati mavjudligi","type":"integer","example":1,"nullable":true,"enum":[0,1]},"vehicle_scale_certificate[date]":{"description":"Avtomobil tarozi sertifikati - sana","type":"string","example":"2026-01-01","nullable":true},"vehicle_scale_certificate[number]":{"description":"Avtomobil tarozi sertifikati - raqam","type":"string","example":"AT-789","nullable":true},"lab_equipment_certificate_exists":{"description":"Laboratoriya jihozlari sertifikati mavjudligi","type":"integer","example":1,"nullable":true,"enum":[0,1]},"lab_equipment_certificate":{"description":"Laboratoriya jihozlari sertifikatlari","type":"array","items":{"properties":{"date":{"description":"Sertifikat berilgan sana","type":"string","example":"2026-01-01","nullable":true},"expiry_date":{"description":"Amal qilish muddati (tugash sanasi)","type":"string","example":"2027-01-01","nullable":true},"number":{"description":"Sertifikat raqami","type":"string","example":"LJ-123","nullable":true}},"type":"object"},"nullable":true},"cotton_intake_point_name":{"description":"Paxta qabul punkti nomi","type":"string","example":"Markaziy qabul punkti","nullable":true},"cotton_intake_point_capacity":{"description":"Qabul punkti sig'imi (tonna)","type":"integer","example":5000,"nullable":true},"sampling_place_exists":{"description":"Namuna olish joyi mavjudligi","type":"integer","example":1,"nullable":true,"enum":[0,1]},"raw_material_etalon_sample_exists":{"description":"Xom ashyo etalon namunasi mavjudligi","type":"integer","example":1,"nullable":true,"enum":[0,1]},"lab_specialist_number":{"description":"Laboratoriya mutaxassislari soni","type":"integer","example":5,"nullable":true},"qualified_specialists":{"description":"Malakali mutaxassislar soni","type":"integer","example":3,"nullable":true},"unqualified_specialists":{"description":"Malakasiz mutaxassislar soni","type":"integer","example":2,"nullable":true},"existing_e_autoscale":{"description":"Mavjud elektron avtotarozi soni","type":"integer","example":4,"nullable":true},"qualified_e_autoscales":{"description":"Qiyoslovdan o'tgan avtotarozilar","type":"integer","example":3,"nullable":true},"unqualified_e_autoscales":{"description":"Qiyoslovdan o'tmagan avtotarozilar","type":"integer","example":1,"nullable":true},"with_isystem_connections":{"description":"I-system ulanganlar soni","type":"integer","example":3,"nullable":true},"without_isystem_connections":{"description":"I-system ulanmaganlar soni","type":"integer","example":1,"nullable":true},"ozmst_380_exists":{"description":"O'zMSt 380 mavjudligi","type":"integer","example":1,"nullable":true,"enum":[0,1]},"ozmst_387_exists":{"description":"O'zMSt 387 mavjudligi","type":"integer","example":1,"nullable":true,"enum":[0,1]},"ozmst_551_exists":{"description":"O'zMSt 551 mavjudligi","type":"integer","example":1,"nullable":true,"enum":[0,1]},"ozmst_552_exists":{"description":"O'zMSt 552 mavjudligi","type":"integer","example":1,"nullable":true,"enum":[0,1]},"ozdst_642_exists":{"description":"O'zDSt 642 mavjudligi","type":"integer","example":1,"nullable":true,"enum":[0,1]},"lab_scale_passed[total]":{"description":"Laboratoriya tarozisi jami soni","type":"integer","example":5,"nullable":true},"lab_scale_passed[ready]":{"description":"Laboratoriya tarozisi tayyor soni","type":"integer","example":3,"nullable":true},"vxs_humidity_detector_passed[total]":{"description":"VXS namlik aniqlagichi jami soni","type":"integer","example":4,"nullable":true},"vxs_humidity_detector_passed[ready]":{"description":"VXS namlik aniqlagichi tayyor soni","type":"integer","example":3,"nullable":true},"lkm_impurity_detector_passed[total]":{"description":"LKM ifloslik aniqlagichi jami soni","type":"integer","example":3,"nullable":true},"lkm_impurity_detector_passed[ready]":{"description":"LKM ifloslik aniqlagichi tayyor soni","type":"integer","example":2,"nullable":true},"lps_sort_detector_passed[total]":{"description":"LPS nav aniqlagichi jami soni","type":"integer","example":2,"nullable":true},"lps_sort_detector_passed[ready]":{"description":"LPS nav aniqlagichi tayyor soni","type":"integer","example":1,"nullable":true},"lab_daily_sample_room_exists":{"description":"Kunlik namuna xonasi mavjudligi","type":"integer","example":1,"nullable":true,"enum":[0,1]},"pl_transporter_works[total]":{"description":"PL transportyor jami soni","type":"integer","example":5,"nullable":true},"pl_transporter_works[ready]":{"description":"PL transportyor ishlayotgan soni","type":"integer","example":4,"nullable":true},"air_suction_fan_works[total]":{"description":"Havo so'rish ventilyatori jami soni","type":"integer","example":6,"nullable":true},"air_suction_fan_works[ready]":{"description":"Havo so'rish ventilyatori ishlayotgan soni","type":"integer","example":5,"nullable":true},"closed_storages_ready[total]":{"description":"Yopiq omborlar jami soni","type":"integer","example":10,"nullable":true},"closed_storages_ready[ready]":{"description":"Yopiq omborlar tayyor soni","type":"integer","example":8,"nullable":true},"garam_fields_ready[total]":{"description":"Garam maydonlari jami soni","type":"integer","example":5,"nullable":true},"garam_fields_ready[ready]":{"description":"Garam maydonlari tayyor soni","type":"integer","example":4,"nullable":true},"electric_cabinet_ready[total]":{"description":"Elektr shkafi jami soni","type":"integer","example":8,"nullable":true},"electric_cabinet_ready[ready]":{"description":"Elektr shkafi tayyor soni","type":"integer","example":7,"nullable":true},"lighting_lights_ready[total]":{"description":"Yoritish chiroqlari jami soni","type":"integer","example":20,"nullable":true},"lighting_lights_ready[ready]":{"description":"Yoritish chiroqlari tayyor soni","type":"integer","example":18,"nullable":true},"tarpaulin_enough":{"description":"Brezent soni","type":"integer","example":1,"nullable":true},"surrounded_by_wall":{"description":"Devor bilan o'ralganlik","type":"string","example":"completely","nullable":true,"enum":["completely","partially","not_at_all"]},"fire_truck_ready[total]":{"description":"O't o'chirish mashinasi jami soni","type":"integer","example":2,"nullable":true},"fire_truck_ready[ready]":{"description":"O't o'chirish mashinasi tayyor soni","type":"integer","example":1,"nullable":true},"motopompa_ready[total]":{"description":"Motopompa jami soni","type":"integer","example":3,"nullable":true},"motopompa_ready[ready]":{"description":"Motopompa tayyor soni","type":"integer","example":2,"nullable":true},"water_pump_ready[total]":{"description":"Suv nasosi jami soni","type":"integer","example":4,"nullable":true},"water_pump_ready[ready]":{"description":"Suv nasosi tayyor soni","type":"integer","example":3,"nullable":true},"water_tank_ready[total]":{"description":"Suv havzasi jami soni","type":"integer","example":3,"nullable":true},"water_tank_ready[ready]":{"description":"Suv havzasi tayyor soni","type":"integer","example":2,"nullable":true},"fire_shield_ready[total]":{"description":"O't o'chirish qalqoni jami soni","type":"integer","example":5,"nullable":true},"fire_shield_ready[ready]":{"description":"O't o'chirish qalqoni tayyor soni","type":"integer","example":4,"nullable":true},"fire_yenglari_ready[total]":{"description":"O't o'chirish yenglari jami soni","type":"integer","example":10,"nullable":true},"fire_yenglari_ready[ready]":{"description":"O't o'chirish yenglari tayyor soni","type":"integer","example":9,"nullable":true},"cotton_intake_date":{"description":"Paxta qabul qilish sanasi","type":"string","format":"date","example":"2026-09-01","nullable":true},"detected_issues":{"description":"Aniqlangan kamchiliklar","type":"string","example":"Laboratoriya jihozlarini yangilash lozim","nullable":true},"conclusion":{"description":"Xulosa","type":"string","example":"Paxta qabul mavsumiga tayyor","nullable":true},"recommendations":{"description":"Tavsiyalar","type":"string","example":"Laboratoriya jihozlarini yangilash tavsiya etiladi","nullable":true},"appendix_to_conclusion":{"description":"Xulosaga ilova","type":"string","example":"Qo'shimcha ma'lumot","nullable":true},"meets_requirements":{"description":"Talablarga muvofiqligi","type":"integer","example":1,"nullable":true,"enum":[0,1]},"files[certificate][]":{"description":"Sertifikat fayllari","type":"array","items":{"type":"string","format":"binary"},"nullable":true},"files[statute][]":{"description":"Ustav fayllari","type":"array","items":{"type":"string","format":"binary"},"nullable":true},"files[appeal_letter][]":{"description":"Murojaat xati fayllari","type":"array","items":{"type":"string","format":"binary"},"nullable":true},"files[lease_agreement][]":{"description":"Ijara shartnomasi fayllari","type":"array","items":{"type":"string","format":"binary"},"nullable":true},"files[conclusion_to_lease_agreement][]":{"description":"Ijara shartnomasiga xulosa fayllari","type":"array","items":{"type":"string","format":"binary"},"nullable":true},"files[fvv_conclusion][]":{"description":"FVV xulosa fayllari","type":"array","items":{"type":"string","format":"binary"},"nullable":true},"files[district_electricity_conclusion][]":{"description":"Tuman elektr xulosa fayllari","type":"array","items":{"type":"string","format":"binary"},"nullable":true},"files[vehicle_scale_certificate][]":{"description":"Avtomobil tarozi sertifikati fayllari","type":"array","items":{"type":"string","format":"binary"},"nullable":true},"files[lab_equipment_certificate][]":{"description":"Laboratoriya jihozlari sertifikati fayllari","type":"array","items":{"type":"string","format":"binary"},"nullable":true}},"type":"object"},"CooperationConclusionResponse":{"title":"CooperationConclusionResponse","description":"Kooperatsiya xulosasi - javob","properties":{"id":{"type":"integer","readOnly":true,"example":1},"number":{"description":"Xulosa raqami","type":"string","example":"101","nullable":true},"date":{"description":"Xulosa sanasi","type":"string","format":"date","example":"2026-02-26","nullable":true},"type":{"description":"Xulosa turi","type":"string","example":"cooperation_clasters","nullable":false,"enum":["cooperation_clasters","cooperation_cooperations","seed_clasters","seed_cooperations"]},"regional_department_id":{"description":"Hududiy boshqarma ID","type":"integer","example":1},"regional_department":{"description":"Hududiy boshqarma nomi","type":"string","readOnly":true,"example":"Farg'ona viloyati"},"district_id":{"description":"Tuman ID","type":"integer","example":1},"district":{"description":"Tuman nomi","type":"string","readOnly":true,"example":"Qo'qon tumani"},"users":{"description":"Komissiya a'zolari","type":"array","items":{"$ref":"#\/components\/schemas\/User"}},"regional_department_head_order":{"description":"Boshqarma boshlig'i buyrug'i","properties":{"order_number":{"type":"string","example":"12-son","nullable":true},"order_date":{"type":"string","example":"2026-01-01","nullable":true}},"type":"object","nullable":true},"business_ombudsman":{"description":"Biznes ombudsman","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"123-son","nullable":true}},"type":"object","nullable":true},"conclusion_info":{"description":"Xulosa muddati","properties":{"start_date":{"type":"string","example":"2026-02-01","nullable":true},"end_date":{"type":"string","example":"2026-02-10","nullable":true}},"type":"object","nullable":true},"name":{"description":"Korxona nomi","type":"string","example":"PAXTA KOOPERATSIYA MChJ","nullable":true},"stir":{"description":"STIR raqami","type":"integer","example":123456789,"nullable":true},"director_full_name":{"description":"Direktor F.I.SH","type":"string","example":"Ahmadov Anvar Akramovich","nullable":true},"ifut_code":{"description":"IFUT kodi","type":"string","example":"01210","nullable":true},"registration_date":{"description":"Ro'yxatdan o'tgan sana","type":"string","format":"date","example":"2020-05-15","nullable":true},"registration_number":{"description":"Guvohnoma raqami","type":"string","example":"12345","nullable":true},"full_address":{"description":"To'liq manzil","type":"string","example":"Farg'ona viloyati, Qo'qon shahri","nullable":true},"cooperation_members":{"description":"Kooperatsiya a'zolari","properties":{"farmers_number":{"type":"string","example":"150","nullable":true},"farmers_area":{"type":"string","example":"2500","nullable":true},"farmers_plan":{"type":"string","example":"1000","nullable":true}},"type":"object","nullable":true},"appeal_letter":{"description":"Murojaat xati","properties":{"date":{"type":"string","example":"2026-01-15","nullable":true},"number":{"type":"string","example":"45-son","nullable":true}},"type":"object","nullable":true},"own_or_rented":{"description":"Mulk turi (o'z yoki ijara)","type":"string","example":"own","nullable":true,"enum":["own","rent"]},"rent_facility_name":{"description":"Ijara obyekti nomi","type":"string","example":"Paxta tozalash zavodi","nullable":true},"rented_company_name":{"description":"Ijaraga beruvchi korxona","type":"string","example":"AGRO INVEST MChJ","nullable":true},"rented_company_stir":{"description":"Ijaraga beruvchi korxona STIR (INN)","type":"string","example":"123456789","nullable":true},"rent_facility_address":{"description":"Ijara obyekti manzili","type":"string","example":"Sanoat ko'chasi, 15","nullable":true},"rent_contract_number":{"description":"Ijara shartnoma raqami","type":"string","example":"1234","nullable":true},"rent_contract_date":{"description":"Ijara shartnoma sanasi","type":"string","format":"date","example":"2025-09-01","nullable":true},"fvv_conclusion":{"description":"FVV xulosasi","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"FVV-123","nullable":true}},"type":"object","nullable":true},"district_electricity_conclusion":{"description":"Tuman elektr xulosa","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"EL-456","nullable":true}},"type":"object","nullable":true},"vehicle_scale_certificate_exists":{"description":"Avtomobil tarozi sertifikati mavjudligi","type":"boolean","example":true,"nullable":true},"vehicle_scale_certificate":{"description":"Avtomobil tarozi sertifikati","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"AT-789","nullable":true}},"type":"object","nullable":true},"lab_equipment_certificate_exists":{"description":"Laboratoriya jihozlari sertifikati mavjudligi","type":"boolean","example":true,"nullable":true},"lab_equipment_certificate":{"description":"Laboratoriya jihozlari sertifikatlari","type":"array","items":{"properties":{"date":{"description":"Sertifikat berilgan sana","type":"string","example":"2026-01-01","nullable":true},"expiry_date":{"description":"Amal qilish muddati (tugash sanasi)","type":"string","example":"2027-01-01","nullable":true},"number":{"description":"Sertifikat raqami","type":"string","example":"LJ-123","nullable":true}},"type":"object"},"nullable":true},"cotton_intake_point_name":{"description":"Paxta qabul punkti nomi","type":"string","example":"Markaziy qabul punkti","nullable":true},"cotton_intake_point_capacity":{"description":"Qabul punkti sig'imi (tonna)","type":"integer","example":5000,"nullable":true},"sampling_place_exists":{"description":"Namuna olish joyi mavjudligi","type":"boolean","example":true,"nullable":true},"raw_material_etalon_sample_exists":{"description":"Xom ashyo etalon namunasi mavjudligi","type":"boolean","example":true,"nullable":true},"lab_specialist_number":{"description":"Laboratoriya mutaxassislari soni","type":"integer","example":5,"nullable":true},"qualified_specialists":{"description":"Malakali mutaxassislar soni","type":"integer","example":3,"nullable":true},"unqualified_specialists":{"description":"Malakasiz mutaxassislar soni","type":"integer","example":2,"nullable":true},"existing_e_autoscale":{"description":"Mavjud elektron avtotarozi soni","type":"integer","example":4,"nullable":true},"qualified_e_autoscales":{"description":"Qiyoslovdan o'tgan avtotarozilar","type":"integer","example":3,"nullable":true},"unqualified_e_autoscales":{"description":"Qiyoslovdan o'tmagan avtotarozilar","type":"integer","example":1,"nullable":true},"with_isystem_connections":{"description":"I-system ulanganlar soni","type":"integer","example":3,"nullable":true},"without_isystem_connections":{"description":"I-system ulanmaganlar soni","type":"integer","example":1,"nullable":true},"ozmst_380_exists":{"description":"O'zMSt 380 mavjudligi","type":"boolean","example":true,"nullable":true},"ozmst_387_exists":{"description":"O'zMSt 387 mavjudligi","type":"boolean","example":true,"nullable":true},"ozmst_551_exists":{"description":"O'zMSt 551 mavjudligi","type":"boolean","example":true,"nullable":true},"ozmst_552_exists":{"description":"O'zMSt 552 mavjudligi","type":"boolean","example":false,"nullable":true},"ozdst_642_exists":{"description":"O'zDSt 642 mavjudligi","type":"boolean","example":true,"nullable":true},"lab_scale_passed":{"description":"Laboratoriya tarozisi","properties":{"total":{"type":"integer","example":5,"nullable":true},"ready":{"type":"integer","example":3,"nullable":true}},"type":"object","nullable":true},"vxs_humidity_detector_passed":{"description":"VXS namlik aniqlagichi","properties":{"total":{"type":"integer","example":4,"nullable":true},"ready":{"type":"integer","example":3,"nullable":true}},"type":"object","nullable":true},"lkm_impurity_detector_passed":{"description":"LKM ifloslik aniqlagichi","properties":{"total":{"type":"integer","example":3,"nullable":true},"ready":{"type":"integer","example":2,"nullable":true}},"type":"object","nullable":true},"lps_sort_detector_passed":{"description":"LPS nav aniqlagichi","properties":{"total":{"type":"integer","example":2,"nullable":true},"ready":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"lab_daily_sample_room_exists":{"description":"Kunlik namuna xonasi mavjudligi","type":"boolean","example":true,"nullable":true},"pl_transporter_works":{"description":"PL transportyor","properties":{"total":{"type":"integer","example":5,"nullable":true},"ready":{"type":"integer","example":4,"nullable":true}},"type":"object","nullable":true},"air_suction_fan_works":{"description":"Havo so'rish ventilyatori","properties":{"total":{"type":"integer","example":6,"nullable":true},"ready":{"type":"integer","example":5,"nullable":true}},"type":"object","nullable":true},"closed_storages_ready":{"description":"Yopiq omborlar","properties":{"total":{"type":"integer","example":10,"nullable":true},"ready":{"type":"integer","example":8,"nullable":true}},"type":"object","nullable":true},"garam_fields_ready":{"description":"Garam maydonlari","properties":{"total":{"type":"integer","example":5,"nullable":true},"ready":{"type":"integer","example":4,"nullable":true}},"type":"object","nullable":true},"electric_cabinet_ready":{"description":"Elektr shkafi","properties":{"total":{"type":"integer","example":8,"nullable":true},"ready":{"type":"integer","example":7,"nullable":true}},"type":"object","nullable":true},"lighting_lights_ready":{"description":"Yoritish chiroqlari","properties":{"total":{"type":"integer","example":20,"nullable":true},"ready":{"type":"integer","example":18,"nullable":true}},"type":"object","nullable":true},"tarpaulin_enough":{"description":"Brezent soni","type":"integer","example":5,"nullable":false},"surrounded_by_wall":{"description":"Devor bilan o'ralganlik","type":"string","example":"completely","nullable":true,"enum":["completely","partially","not_at_all"]},"fire_truck_ready":{"description":"O't o'chirish mashinasi","properties":{"total":{"type":"integer","example":2,"nullable":true},"ready":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"motopompa_ready":{"description":"Motopompa","properties":{"total":{"type":"integer","example":3,"nullable":true},"ready":{"type":"integer","example":2,"nullable":true}},"type":"object","nullable":true},"water_pump_ready":{"description":"Suv nasosi","properties":{"total":{"type":"integer","example":4,"nullable":true},"ready":{"type":"integer","example":3,"nullable":true}},"type":"object","nullable":true},"water_tank_ready":{"description":"Suv havzasi","properties":{"total":{"type":"integer","example":3,"nullable":true},"ready":{"type":"integer","example":2,"nullable":true}},"type":"object","nullable":true},"fire_shield_ready":{"description":"O't o'chirish qalqoni","properties":{"total":{"type":"integer","example":5,"nullable":true},"ready":{"type":"integer","example":4,"nullable":true}},"type":"object","nullable":true},"fire_yenglari_ready":{"description":"O't o'chirish yenglari","properties":{"total":{"type":"integer","example":10,"nullable":true},"ready":{"type":"integer","example":9,"nullable":true}},"type":"object","nullable":true},"cotton_intake_date":{"description":"Paxta qabul qilish sanasi","type":"string","format":"date","example":"2026-09-01","nullable":true},"detected_issues":{"description":"Aniqlangan kamchiliklar","type":"string","example":"Laboratoriya jihozlarini yangilash lozim","nullable":true},"conclusion":{"description":"Xulosa","type":"string","example":"Paxta qabul mavsumiga tayyor","nullable":true},"recommendations":{"description":"Tavsiyalar","type":"string","example":"Laboratoriya jihozlarini yangilash tavsiya etiladi","nullable":true},"appendix_to_conclusion":{"description":"Xulosaga ilova","type":"string","example":"Qo'shimcha ma'lumot","nullable":true},"meets_requirements":{"description":"Talablarga muvofiqligi","type":"boolean","example":true,"nullable":true},"status":{"description":"Xulosa holati (waiting - Kutilmoqda, rejected - Rad etilgan, signed - Imzolangan)","type":"string","example":"waiting","enum":["waiting","rejected","signed"]},"file_path":{"type":"string","readOnly":true,"example":"pdf\/cooperation-conclusions\/kooperatsiya-xulosasi-1.pdf","nullable":true},"file_url":{"type":"string","readOnly":true,"example":"https:\/\/s3.example.com\/pdf\/cooperation-conclusions\/kooperatsiya-xulosasi-1.pdf","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-26 14:30:00"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-26 14:30:00"},"files":{"description":"Yuklangan fayllar (collection nomi bo'yicha guruplangan)","properties":{"certificate":{"description":"Sertifikat fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"statute":{"description":"Ustav fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"appeal_letter":{"description":"Murojaat xati fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"lease_agreement":{"description":"Ijara shartnomasi fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"conclusion_to_lease_agreement":{"description":"Ijara shartnomasiga xulosa fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"fvv_conclusion":{"description":"FVV xulosa fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"district_electricity_conclusion":{"description":"Tuman elektr xulosa fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"vehicle_scale_certificate":{"description":"Avtomobil tarozi sertifikati fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"lab_equipment_certificate":{"description":"Laboratoriya jihozlari sertifikati fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}}},"type":"object","readOnly":true,"nullable":true}},"type":"object"},"CottonFacilityReportRequest":{"title":"CottonFacilityReportRequest","description":"Paxta maskan dalolatnomasi - so'rov","required":["region_id","district_id","date","stir","claster_name","facility_address","facility_name","capacity"],"properties":{"report_number":{"description":"Dalolatnoma raqami","type":"string","example":"D-001","nullable":true},"region_id":{"description":"Viloyat ID","type":"integer","example":1},"district_id":{"description":"Tuman ID","type":"integer","example":1},"date":{"description":"Dalolatnoma sanasi","type":"string","format":"date","example":"2026-02-26"},"stir":{"description":"STIR raqami (9 ta raqam)","type":"string","example":"123456789"},"claster_name":{"description":"Klaster nomi","type":"string","example":"PAXTA KLASTERI MChJ"},"facility_address":{"description":"Ob'ekt manzili","type":"string","example":"Farg'ona viloyati, Qo'qon shahri"},"facility_name":{"description":"Ob'ekt nomi","type":"string","example":"Markaziy paxta qabul punkti"},"capacity":{"description":"Sig'im (tonna)","type":"integer","example":5000},"reception_plan":{"description":"Qabul rejasi","type":"string","example":"3000","nullable":true},"fence_status":{"description":"Devor holati: full=to'liq o'ralgan, partial=qisman o'ralgan, none=o'ralmagan","type":"string","example":"full","nullable":true,"enum":["full","partial","none"]},"director_name":{"description":"Direktor ismi","type":"string","example":"Karimov A.A.","nullable":true},"director_phone":{"description":"Direktor telefoni","type":"string","example":"+998901234567","nullable":true},"lab_equipment":{"description":"Laboratoriya uskunalari","type":"array","items":{"required":["name","count","metrology_status"],"properties":{"name":{"type":"string","example":"Tarozi"},"count":{"type":"string","example":"2"},"metrology_status":{"type":"string","example":"tekshirilgan"}},"type":"object"},"nullable":true},"sampling_place[status]":{"description":"1.1 Namuna olish joyi: true=tayyor, false=tayyor emas","type":"boolean","example":true,"nullable":true},"etalon_samples[status]":{"description":"1.2 Etalon namunalari: true=mavjud, false=mavjud emas","type":"boolean","example":true,"nullable":true},"storage_room[status]":{"description":"1.3 Saqlash xonasi: true=mavjud, false=mavjud emas","type":"boolean","example":true,"nullable":true},"autoscale_details[count]":{"description":"1.4 Avtotarozi soni","type":"integer","example":2,"nullable":true},"autoscale_details[metrology_status]":{"description":"1.4 Metrologik qiyoslov: true=o'tgan, false=o'tmagan","type":"boolean","example":true,"nullable":true},"autoscale_details[system_status]":{"description":"1.4 Axborot tizim: true=ulangan, false=ulanmagan","type":"boolean","example":true,"nullable":true},"staff_details[count]":{"description":"1.5 Laborantlar soni","type":"integer","example":3,"nullable":true},"staff_details[certificate_status]":{"description":"1.5 Malaka sertifikati: true=mavjud, false=mavjud emas","type":"boolean","example":true,"nullable":true},"standards_provided[status]":{"description":"1.6 Standartlar: full=to'liq, partial=qisman, none=ta'minlanmagan","type":"string","example":"full","nullable":true,"enum":["full","partial","none"]},"lab_devices":{"description":"1.7 Lab uskunalari","type":"array","items":{"properties":{"name":{"type":"string","example":"laboratoriya tarozisi"},"count":{"type":"integer","example":2},"metrology_status":{"description":"true=o'tgan, false=o'tmagan","type":"boolean","example":true}},"type":"object"},"nullable":true},"conveyor_system[available]":{"description":"Konveyer tizimi - mavjud","type":"integer","example":4,"nullable":true},"conveyor_system[functional]":{"description":"Konveyer tizimi - ishlaydigan","type":"integer","example":3,"nullable":true},"conveyor_system[defective]":{"description":"Konveyer tizimi - nosoz","type":"integer","example":1,"nullable":true},"air_ventilation[available]":{"description":"Havo ventilyatsiyasi - mavjud","type":"integer","example":6,"nullable":true},"air_ventilation[functional]":{"description":"Havo ventilyatsiyasi - ishlaydigan","type":"integer","example":5,"nullable":true},"air_ventilation[defective]":{"description":"Havo ventilyatsiyasi - nosoz","type":"integer","example":1,"nullable":true},"cotton_warehouse[available]":{"description":"Paxta ombori - mavjud","type":"integer","example":10,"nullable":true},"cotton_warehouse[functional]":{"description":"Paxta ombori - ishlaydigan","type":"integer","example":8,"nullable":true},"cotton_warehouse[defective]":{"description":"Paxta ombori - nosoz","type":"integer","example":2,"nullable":true},"storage_yard[available]":{"description":"Saqlash maydoni - mavjud","type":"integer","example":5,"nullable":true},"storage_yard[functional]":{"description":"Saqlash maydoni - ishlaydigan","type":"integer","example":4,"nullable":true},"storage_yard[defective]":{"description":"Saqlash maydoni - nosoz","type":"integer","example":1,"nullable":true},"electrical_panel[available]":{"description":"Elektr panel - mavjud","type":"integer","example":8,"nullable":true},"electrical_panel[functional]":{"description":"Elektr panel - ishlaydigan","type":"integer","example":7,"nullable":true},"electrical_panel[defective]":{"description":"Elektr panel - nosoz","type":"integer","example":1,"nullable":true},"lighting_system[available]":{"description":"Yoritish tizimi - mavjud","type":"integer","example":20,"nullable":true},"lighting_system[functional]":{"description":"Yoritish tizimi - ishlaydigan","type":"integer","example":18,"nullable":true},"lighting_system[defective]":{"description":"Yoritish tizimi - nosoz","type":"integer","example":2,"nullable":true},"facility_fence[available]":{"description":"Ob'ekt to'sig'i - mavjud","type":"integer","example":1,"nullable":true},"facility_fence[functional]":{"description":"Ob'ekt to'sig'i - ishlaydigan","type":"integer","example":1,"nullable":true},"facility_fence[defective]":{"description":"Ob'ekt to'sig'i - nosoz","type":"integer","example":0,"nullable":true},"tarpaulin_covers[available]":{"description":"Brezent qoplamalar - mavjud","type":"integer","example":15,"nullable":true},"tarpaulin_covers[functional]":{"description":"Brezent qoplamalar - ishlaydigan","type":"integer","example":13,"nullable":true},"tarpaulin_covers[defective]":{"description":"Brezent qoplamalar - nosoz","type":"integer","example":2,"nullable":true},"fire_trucks[available]":{"description":"O't o'chirish mashinalari - mavjud","type":"integer","example":2,"nullable":true},"fire_trucks[functional]":{"description":"O't o'chirish mashinalari - ishlaydigan","type":"integer","example":1,"nullable":true},"fire_trucks[defective]":{"description":"O't o'chirish mashinalari - nosoz","type":"integer","example":1,"nullable":true},"motor_pumps[available]":{"description":"Motor nasoslar - mavjud","type":"integer","example":3,"nullable":true},"motor_pumps[functional]":{"description":"Motor nasoslar - ishlaydigan","type":"integer","example":2,"nullable":true},"motor_pumps[defective]":{"description":"Motor nasoslar - nosoz","type":"integer","example":1,"nullable":true},"water_pumps[available]":{"description":"Suv nasosvlari - mavjud","type":"integer","example":4,"nullable":true},"water_pumps[functional]":{"description":"Suv nasoslari - ishlaydigan","type":"integer","example":3,"nullable":true},"water_pumps[defective]":{"description":"Suv nasoslari - nosoz","type":"integer","example":1,"nullable":true},"water_reservoirs[available]":{"description":"Suv omborlari - mavjud","type":"integer","example":3,"nullable":true},"water_reservoirs[functional]":{"description":"Suv omborlari - ishlaydigan","type":"integer","example":2,"nullable":true},"water_reservoirs[defective]":{"description":"Suv omborlari - nosoz","type":"integer","example":1,"nullable":true},"fire_panel[available]":{"description":"O't o'chirish qalqoni - mavjud","type":"integer","example":5,"nullable":true},"fire_panel[functional]":{"description":"O't o'chirish qalqoni - ishlaydigan","type":"integer","example":4,"nullable":true},"fire_panel[defective]":{"description":"O't o'chirish qalqoni - nosoz","type":"integer","example":1,"nullable":true},"fire_hoses[available]":{"description":"O't o'chirish yenglari - mavjud","type":"integer","example":10,"nullable":true},"fire_hoses[functional]":{"description":"O't o'chirish yenglari - ishlaydigan","type":"integer","example":9,"nullable":true},"fire_hoses[defective]":{"description":"O't o'chirish yenglari - nosoz","type":"integer","example":1,"nullable":true},"conclusion":{"description":"Xulosa matni (ixtiyoriy \u2014 bo'lmasa avtomatik generatsiya)","type":"string","nullable":true},"repair_status":{"description":"Ta'mirlash holati","type":"string","example":"toliq_tamirlangan","nullable":true,"enum":["toliq_tamirlangan","tamirlash_boshlangan","tamirlash_boshlanmagan"]},"cotton_reception_status":{"description":"Paxta qabul holati","type":"string","example":"ready","nullable":true,"enum":["ready","not_ready"]},"readiness":{"description":"Tayyor holati: tayyor \/ qisman tayyor \/ tayyor emas","type":"string","example":"ready","nullable":true,"enum":["ready","partially_ready","not_ready"]},"users":{"description":"Komissiya a'zolari","type":"array","items":{"required":["role","full_name"],"properties":{"role":{"type":"string","example":"Komissiya raisi"},"full_name":{"type":"string","example":"Karimov A.A."}},"type":"object"}}},"type":"object"},"CottonFacilityReportResponse":{"title":"CottonFacilityReportResponse","description":"Paxta maskan dalolatnomasi - javob","properties":{"id":{"type":"integer","readOnly":true,"example":1},"report_number":{"description":"Dalolatnoma raqami","type":"string","example":"D-001","nullable":true},"region_id":{"description":"Viloyat ID","type":"integer","example":1},"region":{"description":"Viloyat nomi","type":"string","readOnly":true,"example":"Farg'ona viloyati"},"district_id":{"description":"Tuman ID","type":"integer","example":1},"district":{"description":"Tuman nomi","type":"string","readOnly":true,"example":"Qo'qon tumani"},"date":{"description":"Dalolatnoma sanasi","type":"string","format":"date","example":"2026-02-26"},"stir":{"description":"STIR raqami","type":"string","example":"123456789"},"claster_name":{"description":"Klaster nomi","type":"string","example":"PAXTA KLASTERI MChJ"},"facility_address":{"description":"Ob'ekt manzili","type":"string","example":"Farg'ona viloyati, Qo'qon shahri"},"facility_name":{"description":"Ob'ekt nomi","type":"string","example":"Markaziy paxta qabul punkti"},"capacity":{"description":"Sig'im (tonna)","type":"integer","example":5000},"reception_plan":{"description":"Qabul rejasi","type":"string","example":"3000","nullable":true},"fence_status":{"description":"Devor holati: full=to'liq o'ralgan, partial=qisman o'ralgan, none=o'ralmagan","type":"string","example":"full","nullable":true,"enum":["full","partial","none"]},"director_name":{"description":"Direktor ismi","type":"string","example":"Karimov A.A.","nullable":true},"director_phone":{"description":"Direktor telefoni","type":"string","example":"+998901234567","nullable":true},"lab_equipment":{"description":"Laboratoriya uskunalari","type":"array","items":{"properties":{"name":{"type":"string","example":"Tarozi"},"count":{"type":"string","example":"2"},"metrology_status":{"type":"string","example":"tekshirilgan"}},"type":"object"},"nullable":true},"sampling_place":{"description":"Namuna olish joyi","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"etalon_samples":{"description":"Etalon namunalar","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"verified_autoscale":{"description":"Tekshirilgan avtotarozi","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"autoscale_integrated":{"description":"I-system ulangan avtotarozi","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"certified_staff":{"description":"Sertifikatlangan xodimlar","properties":{"available":{"type":"integer","example":10,"nullable":true},"functional":{"type":"integer","example":8,"nullable":true},"defective":{"type":"integer","example":2,"nullable":true}},"type":"object","nullable":true},"standards_provided":{"description":"Standartlar ta'minlangan","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":5,"nullable":true},"defective":{"type":"integer","example":0,"nullable":true}},"type":"object","nullable":true},"equipment_verified":{"description":"Tekshirilgan uskunalar","properties":{"available":{"type":"integer","example":8,"nullable":true},"functional":{"type":"integer","example":7,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"storage_room":{"description":"Saqlash xonasi","properties":{"available":{"type":"integer","example":3,"nullable":true},"functional":{"type":"integer","example":3,"nullable":true},"defective":{"type":"integer","example":0,"nullable":true}},"type":"object","nullable":true},"conveyor_system":{"description":"Konveyer tizimi","properties":{"available":{"type":"integer","example":4,"nullable":true},"functional":{"type":"integer","example":3,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"air_ventilation":{"description":"Havo ventilyatsiyasi","properties":{"available":{"type":"integer","example":6,"nullable":true},"functional":{"type":"integer","example":5,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"cotton_warehouse":{"description":"Paxta ombori","properties":{"available":{"type":"integer","example":10,"nullable":true},"functional":{"type":"integer","example":8,"nullable":true},"defective":{"type":"integer","example":2,"nullable":true}},"type":"object","nullable":true},"storage_yard":{"description":"Saqlash maydoni","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"electrical_panel":{"description":"Elektr panel","properties":{"available":{"type":"integer","example":8,"nullable":true},"functional":{"type":"integer","example":7,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"lighting_system":{"description":"Yoritish tizimi","properties":{"available":{"type":"integer","example":20,"nullable":true},"functional":{"type":"integer","example":18,"nullable":true},"defective":{"type":"integer","example":2,"nullable":true}},"type":"object","nullable":true},"facility_fence":{"description":"Ob'ekt to'sig'i","properties":{"available":{"type":"integer","example":1,"nullable":true},"functional":{"type":"integer","example":1,"nullable":true},"defective":{"type":"integer","example":0,"nullable":true}},"type":"object","nullable":true},"tarpaulin_covers":{"description":"Brezent qoplamalar","properties":{"available":{"type":"integer","example":15,"nullable":true},"functional":{"type":"integer","example":13,"nullable":true},"defective":{"type":"integer","example":2,"nullable":true}},"type":"object","nullable":true},"fire_trucks":{"description":"O't o'chirish mashinalari","properties":{"available":{"type":"integer","example":2,"nullable":true},"functional":{"type":"integer","example":1,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"motor_pumps":{"description":"Motor nasoslar","properties":{"available":{"type":"integer","example":3,"nullable":true},"functional":{"type":"integer","example":2,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"water_pumps":{"description":"Suv nasoslari","properties":{"available":{"type":"integer","example":4,"nullable":true},"functional":{"type":"integer","example":3,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"water_reservoirs":{"description":"Suv omborlari","properties":{"available":{"type":"integer","example":3,"nullable":true},"functional":{"type":"integer","example":2,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"fire_panel":{"description":"O't o'chirish qalqoni","properties":{"available":{"type":"integer","example":5,"nullable":true},"functional":{"type":"integer","example":4,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"fire_hoses":{"description":"O't o'chirish yenglari","properties":{"available":{"type":"integer","example":10,"nullable":true},"functional":{"type":"integer","example":9,"nullable":true},"defective":{"type":"integer","example":1,"nullable":true}},"type":"object","nullable":true},"conclusion":{"description":"Xulosa matni (ixtiyoriy \u2014 bo'lmasa avtomatik generatsiya)","type":"string","nullable":true},"repair_status":{"description":"Ta'mirlash holati","type":"string","example":"toliq_tamirlangan","nullable":true,"enum":["toliq_tamirlangan","tamirlash_boshlangan","tamirlash_boshlanmagan"]},"cotton_reception_status":{"description":"Paxta qabul holati","type":"string","example":"ready","nullable":true,"enum":["ready","not_ready"]},"readiness":{"description":"Tayyor holati: tayyor \/ qisman tayyor \/ tayyor emas","type":"string","example":"ready","nullable":true,"enum":["ready","partially_ready","not_ready"]},"status":{"description":"Dalolatnoma holati (waiting - Kutilmoqda, rejected - Rad etilgan, signed - Imzolangan)","type":"string","example":"waiting","enum":["waiting","rejected","signed"]},"file_path":{"type":"string","readOnly":true,"example":"pdf\/cotton-facility-reports\/paxta-maskan-dalolatnomasi-1.pdf","nullable":true},"file_url":{"type":"string","readOnly":true,"example":"https:\/\/s3.example.com\/pdf\/cotton-facility-reports\/paxta-maskan-dalolatnomasi-1.pdf","nullable":true},"users":{"description":"Komissiya a'zolari","type":"array","items":{"properties":{"id":{"type":"integer","example":1},"role":{"type":"string","example":"Komissiya raisi"},"full_name":{"type":"string","example":"Karimov A.A."}},"type":"object"}},"created_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-26 14:30:00"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-26 14:30:00"}},"type":"object"},"CottonFacilityReportUsers":{"title":"Paxta maskan dalolatnomasini imzolovchilar ro'yxati","description":"Paxta maskan dalolatnomalarini imzolovchilar ro'yxati","properties":{"cotton_facility_report_id":{"description":"Paxta maskan dalolatnomasi ID","type":"integer","example":"1"},"full_name":{"description":"To'liq ism, familiya va sharifi","type":"string","example":"FISh"},"role":{"description":"Lavozimi","type":"string","example":""}},"type":"object"},"Enterprise":{"properties":{"id":{"type":"integer","example":1},"type":{"type":"string","example":"yuridik"},"legal_name":{"type":"string","example":"Simplex LLC"},"stir":{"type":"string","example":"123456789"},"director_full_name":{"type":"string","example":"Ivanov Ivan Ivanovich"},"ifut_code":{"type":"string","example":"10611"},"registration_date":{"type":"string","format":"date","example":"2024-01-15"},"registration_number":{"type":"string","example":"001234"},"address":{"type":"string","example":"Toshkent shahar, Chilonzor tumani"},"location":{"type":"object","example":"{\"latitude\": 41.311081, \"longitude\": 69.240562}","nullable":true}},"type":"object"},"FacilityEquipmentAndSupply":{"title":"FacilityEquipmentAndSupply","description":"Moddiy-texnika vositalari","properties":{"elevator":{"properties":{"exists":{"type":"boolean","example":true},"count":{"type":"integer","example":4},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"warehouse":{"properties":{"exists":{"type":"boolean","example":true},"count":{"type":"integer","example":4},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"porch":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"asphalt_area":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"sampling_place":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":2},"ready":{"type":"integer","example":2}},"type":"object","nullable":true},"analytical_laboratory":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"automobile_scale":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"scale_cameras":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":4},"ready":{"type":"integer","example":4}},"type":"object","nullable":true},"surveillance_cameras":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":4},"ready":{"type":"integer","example":4}},"type":"object","nullable":true},"camera_coverage":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":1},"ready":{"type":"integer","example":1}},"type":"object","nullable":true},"video_storage":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":1},"ready":{"type":"integer","example":1}},"type":"object","nullable":true},"wagon_scale":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"seed_preparation_workshop":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"grain_cleaning_machines":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"auto_tipper_dumper":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"mobile_transmission_device":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"tarpaulin":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"water_basin_reservoir":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"fire_shield":{"properties":{"exists":{"type":"boolean","example":true},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"cultural_houshold_premise":{"properties":{"exists":{"type":"boolean","example":true},"units":{"type":"string","example":"m2"},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"provision_normative_document":{"properties":{"exists":{"type":"boolean","example":true},"units":{"type":"string","example":"dona"},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"condition_of_corridor":{"properties":{"exists":{"type":"boolean","example":true},"units":{"type":"string","example":"metr"},"quantity":{"type":"integer","example":7},"ready":{"type":"integer","example":3}},"type":"object"},"as_required":{"type":"boolean","example":true,"nullable":true},"conclusion":{"type":"string","example":"tayyor holatda"},"assessment":{"type":"string","example":"yaxshi"}},"type":"object"},"FacilityConclusionReportRequest":{"title":"FacilityConclusionReportRequest","description":"Maskan haqida dalolatnoma berish - so'rov modeli","required":["company_name","collection_point","date","report_number","equipment_and_supply"],"properties":{"company_name":{"type":"string","example":"MTP Farg'ona"},"company_stir":{"description":"Korxona STIR","type":"integer","example":300000001,"nullable":true},"collection_point":{"type":"string","example":"Farg'ona viloyati, Qo'qon shahar don qabul punkti"},"date":{"type":"string","format":"date","example":"2026-01-30"},"report_number":{"type":"string","example":"123"},"region_id":{"description":"Viloyat ID","type":"integer","example":1,"nullable":true},"district_id":{"description":"Tuman ID","type":"integer","example":1,"nullable":true},"type":{"description":"1-Don korxonalari, 2-G'allachilik klasterlari, 3-Kooperatsiyalar","type":"integer","example":1},"location[latitude]":{"description":"Kenglik","type":"number","format":"float","example":41.311081,"nullable":true},"location[longitude]":{"description":"Uzunlik","type":"number","format":"float","example":69.240562,"nullable":true},"status":{"description":"Xulosa holati","type":"string","example":"waiting","enum":["waiting","rejected","signed"]},"users":{"description":"Komissiya a'zolari","type":"array","items":{"required":["role","full_name"],"properties":{"role":{"type":"string","example":"Komissiya raisi"},"full_name":{"type":"string","example":"Karimov A.A."}},"type":"object"}},"equipment_and_supply[elevator][exists]":{"type":"boolean","example":true},"equipment_and_supply[elevator][count]":{"type":"integer","example":4},"equipment_and_supply[elevator][quantity]":{"type":"integer","example":7},"equipment_and_supply[elevator][ready]":{"type":"integer","example":3},"equipment_and_supply[warehouse][exists]":{"type":"boolean","example":true},"equipment_and_supply[warehouse][count]":{"type":"integer","example":4},"equipment_and_supply[warehouse][quantity]":{"type":"integer","example":7},"equipment_and_supply[warehouse][ready]":{"type":"integer","example":3},"equipment_and_supply[porch][exists]":{"type":"boolean","example":true},"equipment_and_supply[porch][quantity]":{"type":"integer","example":7},"equipment_and_supply[porch][ready]":{"type":"integer","example":3},"equipment_and_supply[asphalt_area][exists]":{"type":"boolean","example":true},"equipment_and_supply[asphalt_area][quantity]":{"type":"integer","example":7},"equipment_and_supply[asphalt_area][ready]":{"type":"integer","example":3},"equipment_and_supply[sampling_place][exists]":{"type":"boolean","example":true},"equipment_and_supply[sampling_place][quantity]":{"type":"integer","example":2},"equipment_and_supply[sampling_place][ready]":{"type":"integer","example":2},"equipment_and_supply[analytical_laboratory][exists]":{"type":"boolean","example":true},"equipment_and_supply[analytical_laboratory][quantity]":{"type":"integer","example":7},"equipment_and_supply[analytical_laboratory][ready]":{"type":"integer","example":3},"equipment_and_supply[automobile_scale][exists]":{"type":"boolean","example":true},"equipment_and_supply[automobile_scale][quantity]":{"type":"integer","example":7},"equipment_and_supply[automobile_scale][ready]":{"type":"integer","example":3},"equipment_and_supply[scale_cameras][exists]":{"type":"boolean","example":true},"equipment_and_supply[scale_cameras][quantity]":{"type":"integer","example":4},"equipment_and_supply[scale_cameras][ready]":{"type":"integer","example":4},"equipment_and_supply[surveillance_cameras][exists]":{"type":"boolean","example":true},"equipment_and_supply[surveillance_cameras][quantity]":{"type":"integer","example":4},"equipment_and_supply[surveillance_cameras][ready]":{"type":"integer","example":4},"equipment_and_supply[camera_coverage][exists]":{"type":"boolean","example":true},"equipment_and_supply[camera_coverage][quantity]":{"type":"integer","example":1},"equipment_and_supply[camera_coverage][ready]":{"type":"integer","example":1},"equipment_and_supply[video_storage][exists]":{"type":"boolean","example":true},"equipment_and_supply[video_storage][quantity]":{"type":"integer","example":1},"equipment_and_supply[video_storage][ready]":{"type":"integer","example":1},"equipment_and_supply[wagon_scale][exists]":{"type":"boolean","example":true},"equipment_and_supply[wagon_scale][quantity]":{"type":"integer","example":7},"equipment_and_supply[wagon_scale][ready]":{"type":"integer","example":3},"equipment_and_supply[seed_preparation_workshop][exists]":{"type":"boolean","example":true},"equipment_and_supply[seed_preparation_workshop][quantity]":{"type":"integer","example":7},"equipment_and_supply[seed_preparation_workshop][ready]":{"type":"integer","example":3},"equipment_and_supply[grain_cleaning_machines][exists]":{"type":"boolean","example":true},"equipment_and_supply[grain_cleaning_machines][quantity]":{"type":"integer","example":7},"equipment_and_supply[grain_cleaning_machines][ready]":{"type":"integer","example":3},"equipment_and_supply[auto_tipper_dumper][exists]":{"type":"boolean","example":true},"equipment_and_supply[auto_tipper_dumper][quantity]":{"type":"integer","example":7},"equipment_and_supply[auto_tipper_dumper][ready]":{"type":"integer","example":3},"equipment_and_supply[mobile_transmission_device][exists]":{"type":"boolean","example":true},"equipment_and_supply[mobile_transmission_device][quantity]":{"type":"integer","example":7},"equipment_and_supply[mobile_transmission_device][ready]":{"type":"integer","example":3},"equipment_and_supply[tarpaulin][exists]":{"type":"boolean","example":true},"equipment_and_supply[tarpaulin][quantity]":{"type":"integer","example":7},"equipment_and_supply[tarpaulin][ready]":{"type":"integer","example":3},"equipment_and_supply[water_basin_reservoir][exists]":{"type":"boolean","example":true},"equipment_and_supply[water_basin_reservoir][quantity]":{"type":"integer","example":7},"equipment_and_supply[water_basin_reservoir][ready]":{"type":"integer","example":3},"equipment_and_supply[fire_shield][exists]":{"type":"boolean","example":true},"equipment_and_supply[fire_shield][quantity]":{"type":"integer","example":7},"equipment_and_supply[fire_shield][ready]":{"type":"integer","example":3},"equipment_and_supply[cultural_houshold_premise][exists]":{"type":"boolean","example":true},"equipment_and_supply[cultural_houshold_premise][units]":{"type":"string","example":"m2"},"equipment_and_supply[cultural_houshold_premise][quantity]":{"type":"integer","example":7},"equipment_and_supply[cultural_houshold_premise][ready]":{"type":"integer","example":3},"equipment_and_supply[provision_normative_document][exists]":{"type":"boolean","example":true},"equipment_and_supply[provision_normative_document][units]":{"type":"string","example":"dona"},"equipment_and_supply[provision_normative_document][quantity]":{"type":"integer","example":7},"equipment_and_supply[provision_normative_document][ready]":{"type":"integer","example":3},"equipment_and_supply[condition_of_corridor][exists]":{"type":"boolean","example":true},"equipment_and_supply[condition_of_corridor][units]":{"type":"string","example":"metr"},"equipment_and_supply[condition_of_corridor][quantity]":{"type":"integer","example":7},"equipment_and_supply[condition_of_corridor][ready]":{"type":"integer","example":3},"equipment_and_supply[as_required]":{"type":"boolean","example":true,"nullable":true},"equipment_and_supply[conclusion]":{"type":"string","example":"tayyor holatda"},"equipment_and_supply[assessment]":{"type":"string","example":"yaxshi"},"files[elevator][]":{"description":"Elevator fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[warehouse][]":{"description":"Ombor fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[porch][]":{"description":"Navs fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[conclusion][]":{"description":"Xulosa fayllari","type":"array","items":{"type":"string","format":"binary"}}},"type":"object"},"FacilityConclusionReportResponse":{"title":"FacilityConclusionReportResponse","description":"Maskan haqida dalolatnoma berish - javob modeli","properties":{"id":{"type":"integer","example":1},"company_name":{"type":"string","example":"MTP Farg'ona"},"company_stir":{"description":"Korxona STIR","type":"integer","example":300000001,"nullable":true},"collection_point":{"type":"string","example":"Farg'ona viloyati, Qo'qon shahar don qabul punkti"},"date":{"type":"string","format":"date","example":"2026-01-30"},"report_number":{"type":"string","example":"123"},"type":{"description":"1-Don korxonalari, 2-G'allachilik klasterlari, 3-Kooperatsiyalar","type":"integer","example":1},"region_id":{"description":"Viloyat ID","type":"integer","example":1,"nullable":true},"district_id":{"description":"Tuman ID","type":"integer","example":1,"nullable":true},"location":{"description":"Geografik joylashuv","properties":{"latitude":{"type":"number","format":"float","example":41.311081,"nullable":true},"longitude":{"type":"number","format":"float","example":69.240562,"nullable":true}},"type":"object","nullable":true},"users":{"description":"Komissiya a'zolari","type":"array","items":{"properties":{"id":{"type":"integer","example":1},"role":{"type":"string","example":"Komissiya raisi"},"full_name":{"type":"string","example":"Karimov A.A."}},"type":"object"}},"file_path":{"type":"string","example":"facility-reports\/report_123.pdf","nullable":true},"file_url":{"type":"string","readOnly":true,"example":"https:\/\/s3.example.com\/facility-reports\/report_123.pdf","nullable":true},"equipment_and_supply":{"$ref":"#\/components\/schemas\/FacilityEquipmentAndSupply"},"status":{"description":"Xulosa holati (waiting - Kutilmoqda, rejected - Rad etilgan, signed - Imzolangan)","type":"string","example":"waiting","enum":["waiting","rejected","signed"]},"signed_at":{"description":"Imzolangan sana","type":"string","format":"date-time","example":null,"nullable":true},"rejected_at":{"description":"Rad etilgan sana","type":"string","format":"date-time","example":null,"nullable":true},"comment":{"description":"Rad etish sababi","type":"string","example":null,"nullable":true},"created_at":{"type":"string","format":"date-time","example":"2026-01-30 14:30:00"},"updated_at":{"type":"string","format":"date-time","example":"2026-01-30 14:30:00"},"files":{"description":"Yuklangan fayllar (elevator, warehouse, porch, conclusion)","properties":{"elevator":{"description":"Elevator fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"warehouse":{"description":"Ombor fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"porch":{"description":"Navs fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"conclusion":{"description":"Xulosa fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}}},"type":"object"}},"type":"object"},"MillReportRequest":{"title":"MillReportRequest","description":"Tegirmon holati haqida dalolatnoma - so'rov modeli","required":["district_id","region_id","address","report_date","llc_company_name","conclusion","electronic_scale","specialists_with_qualifications","laboratory","laboratory_measuring_instruments","closed_containers","conveyor_belts","preparation_wheat_proccessing","wheat_processing_mill","mill_condition","brief_conclusion"],"properties":{"district_id":{"description":"Tuman ID","type":"integer","example":1},"region_id":{"description":"Viloyat ID","type":"integer","example":1},"address":{"description":"Tegirmon manzili","type":"string","example":"Toshkent viloyati, Chirchiq shahri, Sanoat ko'chasi 15-uy"},"report_date":{"type":"string","format":"date","example":"2026-02-09"},"llc_company_name":{"type":"string","example":"BEST FLOUR PRODUCT MChJ"},"company_stir":{"description":"Korxona STIR","type":"integer","example":300000001,"nullable":true},"conclusion":{"type":"string","example":"Korxonada mavjud uskunalar ko'zdan kechirildi. Barcha texnologik liniyalar soz holatda ekanligi aniqlandi. Laboratoriya jihozlari to'liq butlangan va davlat qiyoslov ko'rigidan o'tkazilgan."},"users[]":{"description":"Komissiya a'zolari (foydalanuvchi ID lari)","type":"array","items":{"type":"integer","example":1}},"electronic_scale[units]":{"description":"Birlik","type":"string","example":"dona"},"electronic_scale[availability]":{"description":"Mavjudligi","type":"integer","example":2},"electronic_scale[meets_requirements_or_not]":{"description":"Talabga javob berishi","type":"integer","example":0},"specialists_with_qualifications[units]":{"type":"string","example":"nafar"},"specialists_with_qualifications[availability]":{"type":"integer","example":5},"specialists_with_qualifications[meets_requirements_or_not]":{"type":"integer","example":1},"laboratory[units]":{"type":"string","example":"dona"},"laboratory[availability]":{"type":"integer","example":1},"laboratory[meets_requirements_or_not]":{"type":"integer","example":1},"laboratory_measuring_instruments[units]":{"type":"string","example":"dona"},"laboratory_measuring_instruments[availability]":{"type":"integer","example":8},"laboratory_measuring_instruments[meets_requirements_or_not]":{"type":"integer","example":1},"closed_containers[elevator][units]":{"type":"string","example":"ming tn."},"closed_containers[elevator][availability]":{"type":"integer","example":10},"closed_containers[elevator][meets_requirements_or_not]":{"type":"integer","example":1},"closed_containers[storage][units]":{"type":"string","example":"ming tn."},"closed_containers[storage][availability]":{"type":"integer","example":15},"closed_containers[storage][meets_requirements_or_not]":{"type":"integer","example":1},"closed_containers[porches][units]":{"type":"string","example":"ming tn."},"closed_containers[porches][availability]":{"type":"integer","example":8},"closed_containers[porches][meets_requirements_or_not]":{"type":"integer","example":0},"conveyor_belts[units]":{"type":"string","example":"metr"},"conveyor_belts[availability]":{"type":"integer","example":50},"conveyor_belts[meets_requirements_or_not]":{"type":"integer","example":1},"preparation_wheat_proccessing[units]":{"type":"string","example":"tonna\/sutka"},"preparation_wheat_proccessing[availability]":{"type":"integer","example":100},"preparation_wheat_proccessing[meets_requirements_or_not]":{"type":"integer","example":95},"wheat_processing_mill[grain_cleaning_equipment][units]":{"type":"string","example":"dona"},"wheat_processing_mill[grain_cleaning_equipment][availability]":{"type":"integer","example":5},"wheat_processing_mill[grain_cleaning_equipment][meets_requirements_or_not]":{"type":"integer","example":1},"wheat_processing_mill[hydrothermal_treatment][units]":{"type":"string","example":"dona"},"wheat_processing_mill[hydrothermal_treatment][availability]":{"type":"integer","example":3},"wheat_processing_mill[hydrothermal_treatment][meets_requirements_or_not]":{"type":"integer","example":1},"wheat_processing_mill[first_grinding][units]":{"type":"string","example":"dona"},"wheat_processing_mill[first_grinding][availability]":{"type":"integer","example":4},"wheat_processing_mill[first_grinding][meets_requirements_or_not]":{"type":"integer","example":1},"wheat_processing_mill[flour_sifters][units]":{"type":"string","example":"dona"},"wheat_processing_mill[flour_sifters][availability]":{"type":"integer","example":6},"wheat_processing_mill[flour_sifters][meets_requirements_or_not]":{"type":"integer","example":0},"wheat_processing_mill[finished_product_bunker][units]":{"type":"string","example":"dona"},"wheat_processing_mill[finished_product_bunker][availability]":{"type":"integer","example":8},"wheat_processing_mill[finished_product_bunker][meets_requirements_or_not]":{"type":"integer","example":1},"wheat_processing_mill[packaging_section][units]":{"type":"string","example":"dona"},"wheat_processing_mill[packaging_section][availability]":{"type":"integer","example":2},"wheat_processing_mill[packaging_section][meets_requirements_or_not]":{"type":"integer","example":1},"wheat_processing_mill[finished_product_warehouse][units]":{"type":"string","example":"dona"},"wheat_processing_mill[finished_product_warehouse][availability]":{"type":"integer","example":3},"wheat_processing_mill[finished_product_warehouse][meets_requirements_or_not]":{"type":"integer","example":0},"mill_condition[units]":{"type":"string","example":"ball"},"mill_condition[availability]":{"type":"integer","example":5},"mill_condition[meets_requirements_or_not]":{"type":"integer","example":4},"brief_conclusion":{"type":"string","example":"javob beradi"},"files[electronic_scale][]":{"description":"Elektron tarozi rasmlari (jpg,jpeg,png,gif,bmp,svg,webp) yoki hujjatlari (doc,docx,pdf)","type":"array","items":{"type":"string","format":"binary"}},"files[specialists_with_qualifications][]":{"description":"Mutaxasislar rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[laboratory][]":{"description":"Laboratoriya rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[laboratory_measuring_instruments][]":{"description":"Laboratoriya o'lchov vositalari rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[closed_containers][]":{"description":"Yopiq idishlar rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[conveyor_belts][]":{"description":"Konveyer lentalari rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[preparation_wheat_proccessing][]":{"description":"Bug'doy qayta ishlash tayyorgarlik rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[wheat_processing_mill][]":{"description":"Bug'doy qayta ishlash tegirmoni rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[mill_condition][]":{"description":"Tegirmon holati rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[disputed_cases][]":{"description":"Nizoli holatlar fayllari","type":"array","items":{"type":"string","format":"binary"}}},"type":"object"},"MillReportResponse":{"title":"MillReportResponse","description":"Tegirmon holati haqida dalolatnoma - javob modeli","properties":{"id":{"type":"integer","readOnly":true,"example":1},"district_id":{"description":"Tuman ID","type":"integer","example":1},"district":{"description":"Tuman nomi","type":"string","readOnly":true,"example":"Qo'qon tumani"},"region_id":{"description":"Viloyat ID","type":"integer","example":1},"region":{"description":"Viloyat nomi","type":"string","readOnly":true,"example":"Farg'ona viloyati"},"address":{"description":"Tegirmon manzili","type":"string","example":"Toshkent viloyati, Chirchiq shahri, Sanoat ko'chasi 15-uy"},"report_date":{"type":"string","format":"date","example":"2026-02-09"},"llc_company_name":{"type":"string","example":"BEST FLOUR PRODUCT MChJ"},"company_stir":{"description":"Korxona STIR","type":"integer","example":300000001,"nullable":true},"conclusion":{"type":"string","example":"Korxonada mavjud uskunalar ko'zdan kechirildi. Barcha texnologik liniyalar soz holatda ekanligi aniqlandi. Laboratoriya jihozlari to'liq butlangan va davlat qiyoslov ko'rigidan o'tkazilgan."},"users":{"description":"Komissiya a'zolari","type":"array","items":{"$ref":"#\/components\/schemas\/User"}},"electronic_scale":{"type":"object","example":{"units":"dona","availability":2,"meets_requirements_or_not":0}},"specialists_with_qualifications":{"type":"object","example":{"units":"nafar","availability":5,"meets_requirements_or_not":1}},"laboratory":{"type":"object","example":{"units":"dona","availability":1,"meets_requirements_or_not":1}},"laboratory_measuring_instruments":{"type":"object","example":{"units":"dona","availability":8,"meets_requirements_or_not":1}},"closed_containers":{"type":"object","example":{"elevator":{"units":"ming tn.","availability":10,"meets_requirements_or_not":1},"storage":{"units":"ming tn.","availability":15,"meets_requirements_or_not":1},"porches":{"units":"ming tn.","availability":8,"meets_requirements_or_not":0}}},"conveyor_belts":{"type":"object","example":{"units":"metr","availability":50,"meets_requirements_or_not":1}},"preparation_wheat_proccessing":{"type":"object","example":{"units":"tonna\/sutka","availability":100,"meets_requirements_or_not":95}},"wheat_processing_mill":{"type":"object","example":{"grain_cleaning_equipment":{"units":"dona","availability":5,"meets_requirements_or_not":1},"hydrothermal_treatment":{"units":"dona","availability":3,"meets_requirements_or_not":1},"first_grinding":{"units":"dona","availability":4,"meets_requirements_or_not":1},"flour_sifters":{"units":"dona","availability":6,"meets_requirements_or_not":0},"finished_product_bunker":{"units":"dona","availability":8,"meets_requirements_or_not":1},"packaging_section":{"units":"dona","availability":2,"meets_requirements_or_not":1},"finished_product_warehouse":{"units":"dona","availability":3,"meets_requirements_or_not":0}}},"mill_condition":{"type":"object","example":{"units":"ball","availability":5,"meets_requirements_or_not":4}},"brief_conclusion":{"type":"string","example":"javob beradi"},"status":{"description":"Xulosa holati (waiting - Kutilmoqda, rejected - Rad etilgan, signed - Imzolangan)","type":"string","example":"waiting","enum":["waiting","rejected","signed"]},"file_path":{"type":"string","readOnly":true,"example":"pdf\/mill-reports\/tegirmon-dalolatnoma-1.pdf","nullable":true},"file_url":{"type":"string","readOnly":true,"example":"https:\/\/s3.example.com\/pdf\/mill-reports\/tegirmon-dalolatnoma-1.pdf","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-09 14:30:00"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-09 14:30:00"},"files":{"description":"Yuklangan fayllar (collection nomi bo'yicha guruplangan)","properties":{"electronic_scale":{"description":"Elektron tarozi rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"specialists_with_qualifications":{"description":"Mutaxasislar rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"laboratory":{"description":"Laboratoriya rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"laboratory_measuring_instruments":{"description":"Laboratoriya o'lchov vositalari rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"closed_containers":{"description":"Yopiq idishlar rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"conveyor_belts":{"description":"Konveyer lentalari rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"preparation_wheat_proccessing":{"description":"Bug'doy qayta ishlash tayyorgarlik rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"wheat_processing_mill":{"description":"Bug'doy qayta ishlash tegirmoni rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"mill_condition":{"description":"Tegirmon holati rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"disputed_cases":{"description":"Nizoli holatlar fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}}},"type":"object","readOnly":true,"nullable":true}},"type":"object"},"OilFatReportRequest":{"title":"OilFatReportRequest","description":"Yog'-moy korxonasini o'rganish dalolatnomasi - so'rov (multipart\/form-data)","required":["region_id","district_id"],"properties":{"report_number":{"description":"Dalolatnoma raqami","type":"string","example":"101","nullable":true},"report_date":{"description":"Dalolatnoma sanasi","type":"string","format":"date","example":"2026-02-19","nullable":true},"region_id":{"description":"Viloyat ID","type":"integer","example":1},"district_id":{"description":"Tuman ID","type":"integer","example":1},"status":{"description":"Xulosa holati (waiting - Kutilmoqda, rejected - Rad etilgan, signed - Imzolangan)","type":"string","example":"waiting","nullable":true,"enum":["waiting","rejected","signed"]},"users[]":{"description":"Komissiya a'zolari (foydalanuvchi ID lari)","type":"array","items":{"type":"integer","example":1}},"department_head_order[order_number]":{"description":"Buyruq raqami","type":"string","example":"12-son","nullable":true},"department_head_order[order_date]":{"description":"Buyruq sanasi","type":"string","example":"2026-01-01","nullable":true},"department_head_order[inspection_assignment_date]":{"description":"Tekshirish topshirig'i sanasi","type":"string","example":"2026-01-05","nullable":true},"department_head_order[inspection_assignment_letter_number]":{"description":"Tekshirish topshirig'i xat raqami","type":"string","example":"45-son","nullable":true},"enterprise_application_letter[date]":{"description":"Ariza xati sanasi","type":"string","example":"2026-01-01","nullable":true},"enterprise_application_letter[number]":{"description":"Ariza xati raqami","type":"string","example":"123-son","nullable":true},"business_ombudsman[date]":{"description":"Biznes ombudsman sanasi","type":"string","example":"2026-01-01","nullable":true},"business_ombudsman[number]":{"description":"Biznes ombudsman raqami","type":"string","example":"123-son","nullable":true},"inspection_info[start_date]":{"description":"Tekshirish boshlanish sanasi","type":"string","example":"2026-02-01","nullable":true},"inspection_info[end_date]":{"description":"Tekshirish tugash sanasi","type":"string","example":"2026-02-10","nullable":true},"name":{"description":"Korxona nomi","type":"string","example":"GOLDEN OIL PRODUCT MChJ","nullable":true},"stir":{"description":"STIR raqami","type":"integer","format":"int64","example":123456789,"nullable":true},"director_full_name":{"description":"Direktor F.I.SH","type":"string","example":"Ahmadov Anvar Akramovich","nullable":true},"ifut_code":{"description":"IFUT kodi","type":"string","example":"10411","nullable":true},"registration_date":{"description":"Ro'yxatdan o'tgan sana","type":"string","format":"date","example":"2020-05-15","nullable":true},"registration_number":{"description":"Guvohnoma raqami","type":"string","example":"12345","nullable":true},"full_address":{"description":"To'liq manzil","type":"string","example":"Farg'ona viloyati, Qo'qon shahri, Sanoat ko'chasi 15","nullable":true},"location[latitude]":{"description":"Kenglik","type":"number","format":"float","example":40.5283,"nullable":true},"location[longitude]":{"description":"Uzunlik","type":"number","format":"float","example":70.9426,"nullable":true},"production_capacity":{"description":"Ishlab chiqarish quvvati (tonna\/sutka)","type":"integer","example":500,"nullable":true},"is_representative_required":{"description":"Savdo-sanoat palatasi qatnashishi zaruriyati","type":"boolean","example":true,"nullable":true},"yogmoysanoat_representative_full_name":{"description":"Yog'moysanoat vakili","type":"string","example":"Ismoilov Ilhom Ibrohimovich","nullable":true},"technical_regulation_representative_full_name":{"description":"Texnik tartibga solish vakili","type":"string","example":"Rahimov Rustam Rashidovich","nullable":true},"public_health_representative_full_name":{"description":"Sanitariya-epidemiologik xizmat vakili","type":"string","example":"Salimov Sardor Saidovich","nullable":true},"governor_district_id":{"description":"Hokim tuman ID","type":"integer","example":1,"nullable":true},"governor_report_info[date]":{"description":"Hokim ma'lumotnomasi sanasi","type":"string","example":"2026-01-01","nullable":true},"governor_report_info[number]":{"description":"Hokim ma'lumotnomasi raqami","type":"string","example":"123-son","nullable":true},"studied":{"description":"O'rganish natijasi","type":"string","example":"Jamiyat tomonidan birja savdolari orqali paxta texnik chigiti olinganligi ma'lum bo'ldi.","nullable":true},"storage[exists]":{"description":"Ombor mavjudligi","type":"string","example":"mavjud","nullable":true},"storage[capacity]":{"description":"Ombor sig'imi","type":"string","example":"1000","nullable":true},"confirmed_region_id":{"description":"Tasdiqlangan tuman ID","type":"integer","example":1,"nullable":true},"technological_guidance[date]":{"description":"Texnologik yo'riqnoma sanasi","type":"string","example":"2026-01-01","nullable":true},"technological_guidance[number]":{"description":"Texnologik yo'riqnoma raqami","type":"string","example":"TY-123","nullable":true},"reglament_date":{"description":"Texnologik reglament sanasi","type":"string","format":"date","example":"2025-06-15","nullable":true},"sanepid_region_id":{"description":"Sanepid viloyat ID","type":"integer","example":1,"nullable":true},"sanepid_conclusion[date]":{"description":"Sanepid xulosa sanasi","type":"string","example":"2026-01-01","nullable":true},"sanepid_conclusion[number]":{"description":"Sanepid xulosa raqami","type":"string","example":"SE-123","nullable":true},"sanepid_conclusion[due_date]":{"description":"Sanepid xulosa amal qilish muddati","type":"string","example":"2027-01-01","nullable":true},"sanepid_conclusion[benzapiren_statement_number]":{"description":"Benzapiren bayonnoma raqami","type":"string","example":"B-456","nullable":true},"sanepid_conclusion[gossipol_statement_number]":{"description":"Gossipol bayonnoma raqami","type":"string","example":"G-789","nullable":true},"additional":{"description":"Qo'shimcha ma'lumotlar","type":"string","example":"Qo'shimcha ma'lumot","nullable":true},"permitted_region_id":{"description":"Ruxsat bergan viloyat ID","type":"integer","example":1,"nullable":true},"vet_permit_info[date]":{"description":"Vet ruxsatnoma sanasi","type":"string","example":"2026-01-01","nullable":true},"vet_permit_info[number]":{"description":"Vet ruxsatnoma raqami","type":"string","example":"VP-123","nullable":true},"vet_permit_info[due_date]":{"description":"Vet ruxsatnoma amal qilish muddati","type":"string","example":"2027-01-01","nullable":true},"certificate[date]":{"description":"Sertifikat sanasi","type":"string","example":"2026-01-01","nullable":true},"certificate[number]":{"description":"Sertifikat raqami","type":"string","example":"UZ-ISO-2025-123","nullable":true},"certificate[due_date]":{"description":"Sertifikat amal qilish muddati","type":"string","example":"2027-01-01","nullable":true},"is_lab_available":{"description":"Laboratoriya mavjudligi","type":"boolean","example":true,"nullable":true},"contracted_lab_name":{"description":"Shartnomali laboratoriya nomi","type":"string","example":"Agrokimyo laboratoriyasi","nullable":true},"contract_info[date]":{"description":"Shartnoma sanasi","type":"string","example":"2026-01-01","nullable":true},"contract_info[number]":{"description":"Shartnoma raqami","type":"string","example":"SH-123","nullable":true},"contract_info[due_date]":{"description":"Shartnoma amal qilish muddati","type":"string","example":"2027-01-01","nullable":true},"metrological_checked_district_id":{"description":"Metrologik qiyoslovdan o'tkazilgan tuman ID","type":"integer","example":1,"nullable":true},"checked_tool_name":{"description":"O'lchov vositasi nomi","type":"string","example":"Elektron tarozi, termometr, areometr","nullable":true},"certificate_info[date]":{"description":"Sertifikat sanasi","type":"string","example":"2026-01-01","nullable":true},"certificate_info[due_date]":{"description":"Sertifikat amal qilish muddati","type":"string","example":"2027-01-01","nullable":true},"detected_issues":{"description":"Aniqlangan kamchiliklar","type":"string","example":"Tozalik me'yorlariga rioya qilinishi lozim","nullable":true},"conclusion":{"description":"Xulosa","type":"string","example":"Birja savdolarida qatnashishi maqsadga muvofiq","nullable":true},"recommendation":{"description":"Tavsiya","type":"string","example":"To'liq texnologik siklda ishlab chiqarish tavsiya etiladi","nullable":true},"report_appendix":{"description":"Dalolatnoma ilovasi","type":"string","example":"Dalolatnomaga ilova qilingan qo'shimcha ma'lumotlar","nullable":true},"meets_requirements":{"description":"Talablarga muvofiqligi","type":"boolean","example":true,"nullable":true},"action_taken":{"description":"Ko'rilgan chora","type":"string","example":"warning","nullable":true,"enum":["warning","written_instruction","administrative_report"]},"letter_date":{"description":"Birjaga xat sanasi","type":"string","format":"date","example":"2026-02-20","nullable":true},"letter_number":{"description":"Birjaga xat raqami","type":"string","example":"XAT-123","nullable":true},"brand_name":{"description":"Brend nomi","type":"string","example":"Golden Oil","nullable":true},"iso22000_cert_exists":{"description":"ISO 22000 sertifikati mavjudligi","type":"boolean","example":true,"nullable":true},"permit_type":{"description":"Ruxsatnoma turi","type":"string","example":"mahsulot ishlab chiqarish","nullable":true},"files[enterprise_application][]":{"description":"Korxona murojaati fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[yogmoysanoat_representative][]":{"description":"Yog'moysanoat xulosasi fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[technical_regulation][]":{"description":"Texnik tartibga solish xulosasi fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[public_health_representative][]":{"description":"Sanepid xulosasi fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[acceptance_act][]":{"description":"Qabul dalolatnomasi fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[technological_guidance][]":{"description":"Texnologik yo'riqnoma fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[reglament][]":{"description":"Texnologik reglament fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[sanepid_conclusion][]":{"description":"Sanepid xulosa fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[vet_permit_info][]":{"description":"Veterinariya ruxsatnomasi fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[certificate][]":{"description":"Muvofiqlik sertifikati fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[governor_report][]":{"description":"Hokim ma'lumotnomasi fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[license][]":{"description":"Litsenziya fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[letter][]":{"description":"Ilova fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[effect_measure][]":{"description":"Ta'sir chorasi fayllari","type":"array","items":{"type":"string","format":"binary"}},"files[material_to_law_enforcement][]":{"description":"Huquq-tartibot organlariga materiallar","type":"array","items":{"type":"string","format":"binary"}},"files[core_crushing][]":{"description":"Yadroni maydalash rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[hydrothermal_processing][]":{"description":"Gidrotermik ishlov rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[pressing][]":{"description":"Presslash rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[refining][]":{"description":"Rafinatsiya rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[deodorization][]":{"description":"Deodorizatsiya rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[extraction][]":{"description":"Ekstraktsiya rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[packing][]":{"description":"Qadoqlash rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[expander][]":{"description":"Ekspander rasmlari","type":"array","items":{"type":"string","format":"binary"}},"files[packaging_label][]":{"description":"Qadoq yorlig'i rasmlari","type":"array","items":{"type":"string","format":"binary"}}},"type":"object"},"OilFatReportResponse":{"title":"OilFatReportResponse","description":"Yog'-moy korxonasini o'rganish dalolatnomasi - javob","properties":{"id":{"type":"integer","readOnly":true,"example":1},"report_number":{"description":"Dalolatnoma raqami","type":"string","example":"101","nullable":true},"report_date":{"description":"Dalolatnoma sanasi","type":"string","format":"date","example":"2026-02-19","nullable":true},"region_id":{"description":"Viloyat ID","type":"integer","example":1},"region":{"description":"Viloyat nomi","type":"string","readOnly":true,"example":"Farg'ona viloyati"},"district_id":{"description":"Tuman ID","type":"integer","example":1},"district":{"description":"Tuman nomi","type":"string","readOnly":true,"example":"Qo'qon tumani"},"status":{"description":"Xulosa holati (waiting - Kutilmoqda, rejected - Rad etilgan, signed - Imzolangan)","type":"string","example":"waiting","enum":["waiting","rejected","signed"]},"file_path":{"type":"string","readOnly":true,"example":"pdf\/oil-fat-reports\/yog-moy-dalolatnoma-1.pdf","nullable":true},"file_url":{"type":"string","readOnly":true,"example":"https:\/\/s3.example.com\/pdf\/oil-fat-reports\/yog-moy-dalolatnoma-1.pdf","nullable":true},"users":{"description":"Komissiya a'zolari","type":"array","items":{"$ref":"#\/components\/schemas\/User"}},"department_head_order":{"description":"Boshqarma boshlig'i buyrug'i","properties":{"order_number":{"type":"string","example":"12-son","nullable":true},"order_date":{"type":"string","example":"2026-01-01","nullable":true},"inspection_assignment_date":{"type":"string","example":"2026-01-05","nullable":true},"inspection_assignment_letter_number":{"type":"string","example":"45-son","nullable":true}},"type":"object","nullable":true},"enterprise_application_letter":{"description":"Korxona ariza xati","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"123-son","nullable":true}},"type":"object","nullable":true},"business_ombudsman":{"description":"Biznes ombudsman","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"123-son","nullable":true}},"type":"object","nullable":true},"inspection_info":{"description":"Tekshirish muddati","properties":{"start_date":{"description":"Tekshirish boshlanish sanasi","type":"string","example":"2026-02-01","nullable":true},"end_date":{"description":"Tekshirish tugash sanasi","type":"string","example":"2026-02-10","nullable":true}},"type":"object","nullable":true},"name":{"description":"Korxona nomi","type":"string","example":"GOLDEN OIL PRODUCT MChJ","nullable":true},"stir":{"description":"STIR raqami","type":"integer","format":"int64","example":123456789,"nullable":true},"director_full_name":{"description":"Direktor F.I.SH","type":"string","example":"Ahmadov Anvar Akramovich","nullable":true},"ifut_code":{"description":"IFUT kodi","type":"string","example":"10411","nullable":true},"registration_date":{"description":"Ro'yxatdan o'tgan sana","type":"string","format":"date","example":"2020-05-15","nullable":true},"registration_number":{"description":"Guvohnoma raqami","type":"string","example":"12345","nullable":true},"full_address":{"description":"To'liq manzil","type":"string","example":"Farg'ona viloyati, Qo'qon shahri, Sanoat ko'chasi 15","nullable":true},"location":{"description":"Geografik joylashuv","properties":{"latitude":{"type":"number","format":"float","example":40.5283,"nullable":true},"longitude":{"type":"number","format":"float","example":70.9426,"nullable":true}},"type":"object","nullable":true},"production_capacity":{"description":"Ishlab chiqarish quvvati (tonna\/sutka)","type":"integer","example":500,"nullable":true},"is_representative_required":{"description":"Savdo-sanoat palatasi qatnashishi zaruriyati","type":"boolean","example":true,"nullable":true},"yogmoysanoat_representative_full_name":{"description":"Yog'moysanoat vakili","type":"string","example":"Ismoilov Ilhom Ibrohimovich","nullable":true},"technical_regulation_representative_full_name":{"description":"Texnik tartibga solish vakili","type":"string","example":"Rahimov Rustam Rashidovich","nullable":true},"public_health_representative_full_name":{"description":"Sanitariya-epidemiologik xizmat vakili","type":"string","example":"Salimov Sardor Saidovich","nullable":true},"governor_district_id":{"description":"Hokim tuman ID","type":"integer","example":1,"nullable":true},"governor_district":{"description":"Hokim tuman nomi","type":"string","readOnly":true,"example":"Qo'qon tumani"},"governor_report_info":{"description":"Hokim ma'lumotnomasi","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"123-son","nullable":true}},"type":"object","nullable":true},"studied":{"description":"O'rganish natijasi","type":"string","example":"Jamiyat tomonidan birja savdolari orqali paxta texnik chigiti olinganligi ma'lum bo'ldi.","nullable":true},"storage":{"description":"Ombor ma'lumotlari","properties":{"exists":{"type":"string","example":"mavjud","nullable":true},"capacity":{"type":"string","example":"1000","nullable":true}},"type":"object","nullable":true},"confirmed_region_id":{"description":"Tasdiqlangan tuman ID","type":"integer","example":1,"nullable":true},"confirmed_region":{"type":"string","readOnly":true,"example":"Qo'qon tumani"},"technological_guidance":{"description":"Texnologik yo'riqnoma","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"TY-123","nullable":true}},"type":"object","nullable":true},"reglament_date":{"description":"Texnologik reglament sanasi","type":"string","format":"date","example":"2025-06-15","nullable":true},"sanepid_region_id":{"description":"Sanepid viloyat ID","type":"integer","example":1,"nullable":true},"sanepid_district":{"type":"string","readOnly":true,"example":"Qo'qon tumani"},"sanepid_conclusion":{"description":"Sanitariya-epidemiologik xulosa","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"SE-123","nullable":true},"due_date":{"type":"string","example":"2027-01-01","nullable":true},"benzapiren_statement_number":{"type":"string","example":"B-456","nullable":true},"gossipol_statement_number":{"type":"string","example":"G-789","nullable":true}},"type":"object","nullable":true},"additional":{"description":"Qo'shimcha ma'lumotlar","type":"string","example":"Qo'shimcha ma'lumot","nullable":true},"permitted_region_id":{"description":"Ruxsat bergan viloyat ID","type":"integer","example":1,"nullable":true},"permitted_district":{"type":"string","readOnly":true,"example":"Qo'qon tumani"},"vet_permit_info":{"description":"Veterinariya-sanitariya ruxsatnomasi","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"VP-123","nullable":true},"due_date":{"type":"string","example":"2027-01-01","nullable":true}},"type":"object","nullable":true},"certificate":{"description":"Muvofiqlik sertifikati","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"UZ-ISO-2025-123","nullable":true},"due_date":{"type":"string","example":"2027-01-01","nullable":true}},"type":"object","nullable":true},"is_lab_available":{"description":"Laboratoriya mavjudligi","type":"boolean","example":true,"nullable":true},"contracted_lab_name":{"description":"Shartnomali laboratoriya nomi","type":"string","example":"Agrokimyo laboratoriyasi","nullable":true},"contract_info":{"description":"Shartnoma ma'lumotlari","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"number":{"type":"string","example":"SH-123","nullable":true},"due_date":{"type":"string","example":"2027-01-01","nullable":true}},"type":"object","nullable":true},"metrological_checked_district_id":{"description":"Metrologik qiyoslovdan o'tkazilgan tuman ID","type":"integer","example":1,"nullable":true},"metrological_checked_district":{"description":"Metrologik qiyoslovdan o'tkazilgan tuman nomi","type":"string","readOnly":true,"example":"Qo'qon tumani"},"checked_tool_name":{"description":"O'lchov vositasi nomi","type":"string","example":"Elektron tarozi, termometr, areometr","nullable":true},"certificate_info":{"description":"Sertifikat ma'lumotlari","properties":{"date":{"type":"string","example":"2026-01-01","nullable":true},"due_date":{"type":"string","example":"2027-01-01","nullable":true}},"type":"object","nullable":true},"detected_issues":{"description":"Aniqlangan kamchiliklar","type":"string","example":"Tozalik me'yorlariga rioya qilinishi lozim","nullable":true},"conclusion":{"description":"Xulosa","type":"string","example":"Birja savdolarida qatnashishi maqsadga muvofiq","nullable":true},"recommendation":{"description":"Tavsiya","type":"string","example":"To'liq texnologik siklda ishlab chiqarish tavsiya etiladi","nullable":true},"report_appendix":{"description":"Dalolatnoma ilovasi","type":"string","example":"Dalolatnomaga ilova qilingan qo'shimcha ma'lumotlar","nullable":true},"meets_requirements":{"description":"Talablarga muvofiqligi","type":"boolean","example":true,"nullable":true},"action_taken":{"description":"Ko'rilgan chora","type":"string","example":"warning","nullable":true,"enum":["warning","written_instruction","administrative_report"]},"letter_date":{"description":"Birjaga xat sanasi","type":"string","format":"date","example":"2026-02-20","nullable":true},"letter_number":{"description":"Birjaga xat raqami","type":"string","example":"XAT-123","nullable":true},"brand_name":{"description":"Brend nomi","type":"string","example":"Golden Oil","nullable":true},"iso22000_cert_exists":{"description":"ISO 22000 sertifikati mavjudligi","type":"boolean","example":true,"nullable":true},"permit_type":{"description":"Ruxsatnoma turi","type":"string","example":"mahsulot ishlab chiqarish","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-19 14:30:00"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-19 14:30:00"},"files":{"description":"Yuklangan fayllar (collection nomi bo'yicha guruplangan)","properties":{"enterprise_application":{"description":"Korxona murojaati fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"yogmoysanoat_representative":{"description":"Yog'moysanoat xulosasi fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"technical_regulation":{"description":"Texnik tartibga solish xulosasi fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"public_health_representative":{"description":"Sanepid xulosasi fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"acceptance_act":{"description":"Qabul dalolatnomasi fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"technological_guidance":{"description":"Texnologik yo'riqnoma fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"reglament":{"description":"Texnologik reglament fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"sanepid_conclusion":{"description":"Sanepid xulosa fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"vet_permit_info":{"description":"Veterinariya ruxsatnomasi fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"certificate":{"description":"Muvofiqlik sertifikati fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"governor_report":{"description":"Hokim ma'lumotnomasi fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"license":{"description":"Litsenziya fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"letter":{"description":"Ilova fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"effect_measure":{"description":"Ta'sir chorasi fayllari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"material_to_law_enforcement":{"description":"Huquq-tartibot organlariga materiallar","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"core_crushing":{"description":"Yadroni maydalash rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"hydrothermal_processing":{"description":"Gidrotermik ishlov rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"pressing":{"description":"Presslash rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"refining":{"description":"Rafinatsiya rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"deodorization":{"description":"Deodorizatsiya rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"extraction":{"description":"Ekstraktsiya rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"packing":{"description":"Qadoqlash rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"expander":{"description":"Ekspander rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}},"packaging_label":{"description":"Qadoq yorlig'i rasmlari","type":"array","items":{"$ref":"#\/components\/schemas\/MediaFile"}}},"type":"object","readOnly":true,"nullable":true}},"type":"object"},"User":{"title":"User","description":"Foydalanuvchi ma'lumotlari","properties":{"id":{"type":"integer","example":1},"full_name":{"type":"string","example":"Rahimov Odil Shavkatovich"},"position":{"properties":{"id":{"type":"integer","example":1},"name":{"type":"string","example":"Bosh mutaxassis"},"department_id":{"type":"integer","example":1},"is_active":{"type":"boolean","example":true}},"type":"object"},"signed_or_rejected_info":{"properties":{"signature":{"type":"string","example":null,"nullable":true},"is_signed":{"type":"boolean","example":false},"comment":{"type":"string","example":null,"nullable":true},"status":{"type":"string","example":"waiting","enum":["waiting","rejected","signed"]},"signed_at":{"type":"string","format":"date-time","example":null,"nullable":true},"rejected_at":{"type":"string","format":"date-time","example":null,"nullable":true},"updated_at":{"type":"string","format":"date-time","example":"2026-03-15 10:30:00"},"created_at":{"type":"string","format":"date-time","example":"2026-03-15 10:30:00"}},"type":"object"}},"type":"object"},"MediaFile":{"title":"MediaFile","description":"Spatie Media Library orqali saqlangan fayl (barcha modellar uchun umumiy)","properties":{"id":{"description":"Media ID","type":"integer","example":1},"collection_name":{"description":"Collection nomi (enum qiymati)","type":"string","example":"electronic_scale"},"file_name":{"description":"Fayl nomi","type":"string","example":"document.pdf"},"mime_type":{"description":"MIME turi","type":"string","example":"application\/pdf"},"size":{"description":"Fayl hajmi (baytlarda)","type":"integer","example":1048576},"url":{"description":"Faylga havola","type":"string","example":"https:\/\/s3.example.com\/media\/1\/document.pdf"},"created_at":{"description":"Yaratilgan sana","type":"string","format":"date-time","example":"2026-02-27 14:30:00"}},"type":"object"},"RegionalDepartmentSpecialistReport":{"properties":{"date":{"type":"string","format":"date","example":"2026-02-09"},"specialist_full_name":{"type":"string","example":"Karimov Jasur"},"region":{"type":"string","example":"Toshkent"},"explanation":{"type":"string","example":"Difference due to re-measurement."},"addition_to_quantity_difference":{"description":"Miqdor farqiga qo'shimcha: a(foiz, og'irlik), b(foiz, og'irlik), overall_weight","properties":{"a":{"properties":{"percentage":{"type":"number","example":1.5},"weight":{"type":"number","example":50}},"type":"object"},"b":{"properties":{"percentage":{"type":"number","example":0.8},"weight":{"type":"number","example":25}},"type":"object"},"overall_weight":{"type":"number","example":75}},"type":"object","nullable":true},"writeoff_of_shortage":{"description":"Kamolligini yozib tashlash: grain, a(foiz, og'irlik), b(foiz, og'irlik), v(foiz, og'irlik), total_justification, total_justification_in_words","properties":{"grain":{"type":"string","example":"Bug'doy"},"a":{"properties":{"percentage":{"type":"number","example":1.25},"weight":{"type":"number","example":12.5}},"type":"object"},"b":{"properties":{"percentage":{"type":"number","example":0.5},"weight":{"type":"number","example":5}},"type":"object"},"v":{"properties":{"percentage":{"type":"number","example":0.25},"weight":{"type":"number","example":2.5}},"type":"object"},"total_justification":{"type":"number","example":20},"total_justification_in_words":{"type":"string","example":"Yigirma"}},"type":"object","nullable":true},"unjustified_shortage_excess_balance":{"description":"Asoslanmagan kamollik va ortiqcha balans: defecit, overage","properties":{"defecit":{"type":"integer","example":10},"overage":{"type":"integer","example":0}},"type":"object","nullable":true},"refusal_for_reason":{"type":"string","example":null,"nullable":true},"regional_specialist_full_name":{"type":"string","example":"Karimov Jasur"},"specialist_signature":{"type":"string","example":"specialist_sign.png"},"specialist_comment":{"description":"Mutaxassis rad etish sababi","type":"string","example":null,"nullable":true},"specialist_status":{"description":"Mutaxassis imzolash holati","type":"string","example":"waiting","nullable":true,"enum":["waiting","signed","rejected"]},"specialist_signed_at":{"description":"Mutaxassis imzolagan sana","type":"string","format":"date-time","example":null,"nullable":true},"specialist_rejected_at":{"description":"Mutaxassis rad etgan sana","type":"string","format":"date-time","example":null,"nullable":true},"regional_specialist_comment":{"type":"string","example":null,"nullable":true},"financial_responsible_person_full_name":{"type":"string","example":"Aliyev Botir"},"responsible_person_signature":{"type":"string","example":"resp_sign.png"},"responsible_person_comment":{"description":"Mas'ul shaxs rad etish sababi","type":"string","example":null,"nullable":true},"responsible_person_status":{"description":"Mas'ul shaxs imzolash holati","type":"string","example":"waiting","nullable":true,"enum":["waiting","signed","rejected"]},"responsible_person_signed_at":{"description":"Mas'ul shaxs imzolagan sana","type":"string","format":"date-time","example":null,"nullable":true},"responsible_person_rejected_at":{"description":"Mas'ul shaxs rad etgan sana","type":"string","format":"date-time","example":null,"nullable":true}},"type":"object"},"PreviousCleaningAct":{"properties":{"act_number":{"type":"string","example":"12"},"start_date":{"type":"string","format":"date","example":"2026-01-20"},"end_date":{"type":"string","format":"date","example":"2026-03-20"},"cleaning_type":{"type":"string","example":"Quyoshda quritish"},"given_grain_quantity":{"type":"integer","example":1000},"received_grain_and_waste_quantity":{"type":"object","example":{"waste_1_2_grade":"50","waste_3_grade":"20"}}},"type":"object"},"GrainInspectionReportRequest":{"title":"GrainInspectionReportRequest","description":"Tozalov dalolatnomasi 30-shakl \u2014 so'rov (request) sxemasi","properties":{"region_id":{"description":"Viloyat ID","type":"integer","example":1,"nullable":true},"supervising_authority_name":{"type":"string","example":"Qishloq xo'jaligi vazirligi"},"enterprise_name":{"type":"string","example":"Toshkent don ombori"},"branch_name":{"type":"string","example":"Yunusobod bo'limi"},"inspection_number":{"type":"string","example":"12"},"inspection_date":{"type":"string","format":"date","example":"2026-02-09"},"status":{"description":"draft-qoralama","type":"string","example":"draft","nullable":true,"enum":["draft","waiting","rejected","signed"]},"head_full_name":{"type":"string","example":"Rahimov Odil Shavkatovich"},"company_stir":{"type":"integer","example":151561651,"nullable":true},"head_signature":{"type":"string","example":"signatures\/head_12345.png"},"head_of_laboratory_full_name":{"type":"string","example":"Karimova Dilnoza Ravshanovna"},"chief_accountant_full_name":{"type":"string","example":"Aliyev Botir Mahmudovich"},"materially_responsible_person_full_name":{"type":"string","example":"Ismoilov Sardor Akramovich"},"materially_responsible_person_position":{"type":"string","example":"Ombor mudiri"},"product_name_type_sort":{"type":"object","example":{"product_name":"Bug'doy","type":"ozuqaviy","sort":"1"}},"storage_place":{"type":"string","example":"Asosiy ombor"},"balance":{"type":"object","example":{"date":"09.02.2026","place_count":"10 sochma","quantity":"1000","moisture":"11.25","impurity":"4.30"}},"received_from_until":{"type":"object","example":{"from_date":"15.01.2026","to_date":"09.02.2026","place_count":"5 qop","quantity":"500","moisture":"10.50","impurity":"3.20"}},"total":{"type":"object","example":{"place_count":"15 sochma","quantity":"1500","moisture":"10.87","impurity":"3.75"}},"grain_without_waste_from_until":{"type":"object","example":{"from_date":"15.01.2026","to_date":"09.02.2026","place_count":"12 sochma","quantity":"1200","moisture":"10.00","impurity":"2.50"}},"grain_waste_1_2_grade":{"type":"object","example":{"place_count":"2 qop","quantity":"150","moisture":"9.50","impurity":"5.00"}},"grain_waste_3_grade":{"type":"object","example":{"place_count":"1 qop","quantity":"50","moisture":"9.00","impurity":"7.00"}},"remeasurement_remainder_for_date":{"type":"object","example":{"date":"10.02.2026","place_count":"13 sochma","quantity":"1300","moisture":"10.25","impurity":"3.00"}},"total_2":{"type":"object","example":{"place_count":"15 sochma","quantity":"1500","moisture":"10.00","impurity":"3.50"}},"accepted_output_difference":{"type":"object","example":{"place_count":"0","quantity":"10","moisture":"0.25","impurity":"0.10"}},"addition_to_moisture_and_impurity":{"type":"object","example":{"place_count":"1","quantity":"5","moisture":"0.50","impurity":"0.20"}},"total_shortage":{"type":"object","example":{"place_count":"1","quantity":"15","moisture":"0.75","impurity":"0.30"}},"average_storage_period":{"type":"object","example":{"months":"5","days":"10"}},"justified_shortage":{"type":"object","example":{"a":{"moisture":"1.25","weight":"12.5"},"b":{"moisture":"0.50","weight":"5.0"},"v":{"moisture":"0.25","weight":"2.5"},"0":"overall_justification"}},"unjustified_shortage":{"type":"object","example":{"balance":"10","overage":"0"}},"metrics_explanation":{"type":"string","example":"Quyoshda quritish - 30-forma 12-son (09.02.2026)"},"cleaning_act_description":{"type":"string","example":"Quyoshda quritish va boshlang'ich tozalash"}},"type":"object"},"GrainInspectionReportResponse":{"title":"GrainInspectionReportResponse","description":"Tozalov dalolatnomasi 30-shakl \u2014 javob (response) sxemasi","properties":{"id":{"type":"integer","readOnly":true,"example":1},"region":{"description":"Viloyat ID","type":"string","example":"Toshkent","nullable":true},"supervising_authority_name":{"type":"string","example":"Qishloq xo'jaligi vazirligi"},"enterprise_name":{"type":"string","example":"Toshkent don ombori"},"branch_name":{"type":"string","example":"Yunusobod bo'limi"},"inspection_number":{"type":"string","example":"12"},"inspection_date":{"type":"string","format":"date","example":"2026-02-09"},"file_path":{"type":"string","readOnly":true,"example":"pdf\/grain-inspection-reports\/tozalov-dalolatnoma-1.pdf","nullable":true},"file_url":{"type":"string","readOnly":true,"example":"https:\/\/s3.example.com\/pdf\/grain-inspection-reports\/tozalov-dalolatnoma-1.pdf","nullable":true},"head_full_name":{"type":"string","example":"Rahimov Odil Shavkatovich"},"head_signature":{"type":"string","example":"signatures\/head_12345.png","nullable":true},"head_signed_at":{"description":"Rahbar imzolagan sana","type":"string","example":"2026-03-15","nullable":true},"head_rejected_at":{"description":"Rahbar rad etgan sana","type":"string","example":null,"nullable":true},"head_comment":{"description":"Rahbar izohi","type":"string","example":null,"nullable":true},"head_status":{"description":"Rahbar holati (waiting - Kutilmoqda, signed - Imzolangan, rejected - Rad etilgan)","type":"string","example":"waiting"},"company_stir":{"type":"integer","example":156615615,"nullable":true},"head_of_laboratory_full_name":{"type":"string","example":"Karimova Dilnoza Ravshanovna"},"chief_accountant_full_name":{"type":"string","example":"Aliyev Botir Mahmudovich"},"materially_responsible_person_full_name":{"type":"string","example":"Ismoilov Sardor Akramovich"},"materially_responsible_person_position":{"type":"string","example":"Ombor mudiri"},"product_name_type_sort":{"type":"object","example":{"product_name":"Bug'doy","type":"ozuqaviy","sort":"1"}},"storage_place":{"type":"string","example":"Asosiy ombor"},"balance":{"type":"object","example":{"date":"09.02.2026","place_count":"10 sochma","quantity":"1000","moisture":"11.25","impurity":"4.30"}},"received_from_until":{"type":"object","example":{"from_date":"15.01.2026","to_date":"09.02.2026","place_count":"5 qop","quantity":"500","moisture":"10.50","impurity":"3.20"}},"total":{"type":"object","example":{"place_count":"15 sochma","quantity":"1500","moisture":"10.87","impurity":"3.75"}},"grain_without_waste_from_until":{"type":"object","example":{"from_date":"15.01.2026","to_date":"09.02.2026","place_count":"12 sochma","quantity":"1200","moisture":"10.00","impurity":"2.50"}},"grain_waste_1_2_grade":{"type":"object","example":{"place_count":"2 qop","quantity":"150","moisture":"9.50","impurity":"5.00"}},"grain_waste_3_grade":{"type":"object","example":{"place_count":"1 qop","quantity":"50","moisture":"9.00","impurity":"7.00"}},"remeasurement_remainder_for_date":{"type":"object","example":{"date":"10.02.2026","place_count":"13 sochma","quantity":"1300","moisture":"10.25","impurity":"3.00"}},"total_2":{"type":"object","example":{"place_count":"15 sochma","quantity":"1500","moisture":"10.00","impurity":"3.50"}},"accepted_output_difference":{"type":"object","example":{"place_count":"0","quantity":"10","moisture":"0.25","impurity":"0.10"}},"addition_to_moisture_and_impurity":{"type":"object","example":{"place_count":"1","quantity":"5","moisture":"0.50","impurity":"0.20"}},"total_shortage":{"type":"object","example":{"place_count":"1","quantity":"15","moisture":"0.75","impurity":"0.30"}},"average_storage_period":{"type":"object","example":{"months":"5","days":"10"}},"justified_shortage":{"type":"object","example":{"a":{"moisture":"1.25","weight":"12.5"},"b":{"moisture":"0.50","weight":"5.0"},"v":{"moisture":"0.25","weight":"2.5"},"0":"overall_justification"}},"unjustified_shortage":{"type":"object","example":{"balance":"10","overage":"0"}},"metrics_explanation":{"type":"string","example":"Quyoshda quritish - 30-forma 12-son (09.02.2026)"},"cleaning_act_description":{"type":"string","example":"Quyoshda quritish va boshlang'ich tozalash"},"regional_department_specialist_report":{"oneOf":[{"$ref":"#\/components\/schemas\/RegionalDepartmentSpecialistReport"}],"nullable":true},"previous_cleaning_acts":{"oneOf":[{"$ref":"#\/components\/schemas\/PreviousCleaningAct"}],"nullable":true},"idh_full_name":{"description":"Inspeksiya boshqarma boshlig'i","type":"string","example":"Rahimov Sardor Bahodirovich","nullable":true},"idh_signature":{"description":"Inspeksiya boshqarma boshlig'i imzosi","type":"string","example":"signatures\/idh_12345.png","nullable":true},"idh_signed_at":{"description":"Imzolangan sana","type":"string","format":"date","example":"2026-03-15","nullable":true},"idh_rejected_at":{"description":"Rad etilgan sana","type":"string","format":"date","example":null,"nullable":true},"idh_comment":{"description":"Izoh","type":"string","example":null,"nullable":true},"idh_status":{"description":"Holati (waiting - Kutilmoqda, signed - Imzolangan, rejected - Rad etilgan)","type":"string","example":"waiting","nullable":true},"status":{"description":"Xulosa holati (draft - Qoralama ,waiting - Kutilmoqda, rejected - Rad etilgan, signed - Imzolangan)","type":"string","example":"draft","nullable":false},"created_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-09 14:30:00"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"example":"2026-02-09 14:30:00"}},"type":"object"},"SignRequestBody":{"title":"SignRequestBody","description":"Hujjatni imzolash uchun so'rov","required":["model_type","model_id","signature"],"properties":{"model_type":{"description":"Hujjat turi (mill_report = Tegirmon xulosasi, oil_fat_report = Yog'-moy dalolatnomasi, cooperation_conclusion = Kooperatsiya xulosasi, grain_conclusion = Don arbitraj xulosasi, cotton_conclusion = Paxta arbitraj xulosasi, claster_conclusion = Klaster dalolatnomasi)","type":"string","example":"claster_conclusion","enum":["mill_report","oil_fat_report","cooperation_conclusion","grain_conclusion","cotton_conclusion","claster_conclusion"]},"model_id":{"description":"Hujjat ID raqami","type":"integer","example":1},"signature":{"description":"Imzo (base64 formatda)","type":"string","example":"base64_signature_data"}},"type":"object"},"RejectRequestBody":{"title":"RejectRequestBody","description":"Hujjatni rad etish uchun so'rov","required":["model_type","model_id","comment"],"properties":{"model_type":{"description":"Hujjat turi (mill_report = Tegirmon xulosasi, oil_fat_report = Yog'-moy dalolatnomasi, cooperation_conclusion = Kooperatsiya xulosasi, grain_conclusion = Don arbitraj xulosasi, cotton_conclusion = Paxta arbitraj xulosasi, claster_conclusion = Klaster dalolatnomasi)","type":"string","example":"claster_conclusion","enum":["mill_report","oil_fat_report","cooperation_conclusion","grain_conclusion","cotton_conclusion","claster_conclusion"]},"model_id":{"description":"Hujjat ID raqami","type":"integer","example":1},"comment":{"description":"Rad etish sababi","type":"string","example":"Ma'lumotlar noto'g'ri kiritilgan"}},"type":"object"}},"securitySchemes":{"bearerAuth":{"type":"http","bearerFormat":"JWT","scheme":"bearer"}}},"security":[{"bearerAuth":[]}],"tags":[{"name":"Media","description":"Fayllarni boshqarish (barcha modellar uchun umumiy)"},{"name":"Cotton Conclusions","description":"Paxta arbitraj xulosalari bilan ishlash"},{"name":"Grain Conclusions","description":"Don arbitraj xulosalari bilan ishlash"},{"name":"Claster Conclusions","description":"Klaster xulosalari bilan ishlash"},{"name":"Cooperation Conclusions","description":"Kooperatsiya xulosalari bilan ishlash"},{"name":"Cotton Facility Reports","description":"Paxta maskan dalolatnomalari bilan ishlash"},{"name":"Dashboard Statistics","description":"Dashboard statistikalari"},{"name":"Enterprises","description":"Korxonalar bilan ishlash"},{"name":"Facility Reports","description":"Maskanga xulosa berish dalolatnomalari bilan ishlash"},{"name":"Product Permission Management","description":"Product service ruxsatlarni ko'rish"},{"name":"Product Role Management","description":"Product service rollarni boshqarish"},{"name":"Product User Management","description":"Product service foydalanuvchilarni boshqarish"},{"name":"Mill Reports","description":"Tegirmon xulosalari bilan ishlash"},{"name":"Oil Fat Reports","description":"Yog'-moy korxonalarini o'rganish dalolatnomalari bilan ishlash"},{"name":"Grain Inspection Reports","description":"Don tozalov dalolatnomalari bilan ishlash"},{"name":"Sign & Reject","description":"Hisobot va xulosalarni imzolash va rad etish"}]}