{"openapi":"3.1.0","info":{"title":"КОРВ","description":"Архив, предварительный подбор коробок по каталогу ВЕЗА и бланки-заказы.","version":"1.8.0"},"paths":{"/api/v1/korv/configurations":{"get":{"summary":"List Configurations","operationId":"list_configurations_api_v1_korv_configurations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Configuration"},"type":"array","title":"Response List Configurations Api V1 Korv Configurations Get"}}}}}}},"/api/v1/korv/configurations/{configuration_id}":{"get":{"summary":"Get Configuration","operationId":"get_configuration_api_v1_korv_configurations__configuration_id__get","parameters":[{"name":"configuration_id","in":"path","required":true,"schema":{"type":"string","title":"Configuration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configuration"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/select":{"post":{"summary":"Select Configurations","operationId":"select_configurations_api_v1_korv_select_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Selection"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Configuration"},"type":"array","title":"Response Select Configurations Api V1 Korv Select Post"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/catalog/sizes":{"get":{"summary":"Типоразмеры корпусов по каталогу","operationId":"list_catalog_sizes_api_v1_korv_catalog_sizes_get","parameters":[{"name":"box_execution","in":"query","required":true,"schema":{"enum":["industrial","ex"],"type":"string","title":"Box Execution"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogSizeTable"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/catalog/glands":{"get":{"summary":"Коды вводов из примеров маркировки","operationId":"list_catalog_glands_api_v1_korv_catalog_glands_get","parameters":[{"name":"box_execution","in":"query","required":true,"schema":{"enum":["industrial","ex"],"type":"string","title":"Box Execution"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogGlandCode"},"title":"Response List Catalog Glands Api V1 Korv Catalog Glands Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/catalog/components":{"get":{"summary":"Модели клемм и вводов по данным изготовителей","operationId":"list_component_models_api_v1_korv_catalog_components_get","parameters":[{"name":"box_execution","in":"query","required":false,"schema":{"anyOf":[{"enum":["industrial","ex"],"type":"string"},{"type":"null"}],"title":"Box Execution"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComponentDirectory"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/catalog/glands/select":{"post":{"summary":"Подбор вводов по строкам кабельного журнала","operationId":"select_cable_glands_api_v1_korv_catalog_glands_select_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CableGlandSelection"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CableGlandMatch"},"type":"array","title":"Response Select Cable Glands Api V1 Korv Catalog Glands Select Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/catalog/select":{"post":{"summary":"Предварительный подбор нового типоразмера","description":"Возвращает предварительные варианты, список недостающих полей или отсутствие типоразмера.","operationId":"select_catalog_sizes_api_v1_korv_catalog_select_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogSizingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogSizingResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/catalog/two-motor/select":{"post":{"summary":"Предварительный подбор общей коробки на два двигателя","operationId":"select_two_motor_sizes_api_v1_korv_catalog_two_motor_select_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoMotorRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoMotorResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/quick/check":{"post":{"summary":"Быстрый подбор от двигателя и двух кабелей","operationId":"quick_check_api_v1_korv_quick_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/quick/equipment/factory-cables":{"get":{"summary":"Заводские цепи с подтверждёнными кабелями","operationId":"quick_factory_cables_api_v1_korv_quick_equipment_factory_cables_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FactoryCable"},"type":"array","title":"Response Quick Factory Cables Api V1 Korv Quick Equipment Factory Cables Get"}}}}}}},"/api/v1/korv/quick/equipment/curtains":{"get":{"summary":"Подтверждённые компоненты заводской комплектации завесы","operationId":"quick_curtain_equipment_api_v1_korv_quick_equipment_curtains_get","parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurtainEquipment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/quick/ex-motors/check":{"post":{"summary":"Подбор вводов по отдельным двигателям Ex-завесы","operationId":"quick_ex_motor_check_api_v1_korv_quick_ex_motors_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Specification"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/quick/ex-motors/specification.xlsx":{"post":{"summary":"Сводная спецификация Ex-завесы","operationId":"quick_ex_motor_specification_api_v1_korv_quick_ex_motors_specification_xlsx_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/quick/equipment/kvark":{"get":{"summary":"Данные двигателя для выбранной модели КВАРК-ЭВО","operationId":"quick_kvark_equipment_api_v1_korv_quick_equipment_kvark_get","parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KvarkHandoff"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/quick/journal.xlsx":{"post":{"summary":"Скачать проект кабельного журнала","operationId":"quick_journal_api_v1_korv_quick_journal_xlsx_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/korv/orders/package":{"post":{"summary":"Скачать бланки и приложенные чертежи в ZIP","operationId":"download_order_package_api_v1_korv_orders_package_post","requestBody":{"content":{"application/json":{"schema":{"properties":{"configuration":{"oneOf":[{"$ref":"#/components/schemas/CatalogSource"},{"$ref":"#/components/schemas/ArchiveSource"},{"$ref":"#/components/schemas/TwoMotorSource"}]},"order":{"$ref":"#/components/schemas/OrderDetails"},"drawings":{"items":{"properties":{"filename":{"type":"string"},"content_base64":{"type":"string","contentEncoding":"base64"}},"type":"object","required":["filename","content_base64"]},"type":"array","maxItems":8}},"additionalProperties":false,"type":"object","required":["configuration"]}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/v1/korv/orders/{file_format}":{"post":{"summary":"Скачать бланк-заказ","description":"Генерирует вложение из переданных реквизитов и проверенного результата подбора.","operationId":"download_order_api_v1_korv_orders__file_format__post","parameters":[{"name":"file_format","in":"path","required":true,"schema":{"enum":["xlsx","pdf"],"type":"string","title":"File Format"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ArchiveSource":{"properties":{"mode":{"type":"string","const":"archive","title":"Mode"},"configuration_id":{"type":"string","maxLength":100,"minLength":1,"title":"Configuration Id"}},"additionalProperties":false,"type":"object","required":["mode","configuration_id"],"title":"ArchiveSource"},"BranchSizing":{"properties":{"tag":{"type":"string","title":"Tag"},"required_dimensions":{"anyOf":[{"$ref":"#/components/schemas/Dimensions"},{"type":"null"}]},"dimension_checks":{"items":{"$ref":"#/components/schemas/DimensionCheck"},"type":"array","title":"Dimension Checks","default":[]}},"additionalProperties":false,"type":"object","required":["tag"],"title":"BranchSizing"},"CableGlandLine":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"cable":{"$ref":"#/components/schemas/CableRecord"}},"additionalProperties":false,"type":"object","required":["id","cable"],"title":"CableGlandLine"},"CableGlandMatch":{"properties":{"id":{"type":"string","title":"Id"},"role":{"type":"string","enum":["customer_in","factory_out"],"title":"Role"},"status":{"type":"string","enum":["preliminary_match","missing_data","no_match","manual_review"],"title":"Status"},"missing_fields":{"items":{"type":"string"},"type":"array","title":"Missing Fields","default":[]},"candidates":{"items":{"$ref":"#/components/schemas/GlandModel"},"type":"array","title":"Candidates","default":[]},"message":{"type":"string","title":"Message"}},"additionalProperties":false,"type":"object","required":["id","role","status","message"],"title":"CableGlandMatch"},"CableGlandSelection":{"properties":{"box_execution":{"type":"string","enum":["industrial","ex"],"title":"Box Execution"},"lines":{"items":{"$ref":"#/components/schemas/CableGlandLine"},"type":"array","maxItems":100,"minItems":1,"title":"Lines"}},"additionalProperties":false,"type":"object","required":["box_execution","lines"],"title":"CableGlandSelection"},"CableRecord":{"properties":{"role":{"type":"string","enum":["customer_in","factory_out"],"title":"Role"},"journal_source":{"anyOf":[{"type":"string","enum":["customer","korv_draft"]},{"type":"null"}],"title":"Journal Source"},"tag":{"type":"string","maxLength":80,"title":"Tag","default":""},"from_point":{"type":"string","maxLength":80,"title":"From Point","default":""},"to_point":{"type":"string","maxLength":80,"title":"To Point","default":""},"cable_type":{"type":"string","maxLength":80,"title":"Cable Type","default":""},"construction":{"anyOf":[{"type":"string","enum":["unarmored","armored","braided"]},{"type":"null"}],"title":"Construction"},"routing":{"anyOf":[{"type":"string","enum":["direct","metal_hose","rigid_conduit"]},{"type":"null"}],"title":"Routing"},"hose_dn_mm":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Hose Dn Mm"},"pipe_thread":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Pipe Thread"},"pipe_connection":{"anyOf":[{"type":"string","enum":["female","male"]},{"type":"null"}],"title":"Pipe Connection"},"mounting_thread":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Mounting Thread"},"compound_required":{"type":"boolean","title":"Compound Required","default":false},"cores":{"anyOf":[{"type":"integer","maximum":200.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Cores"},"section_mm2":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Section Mm2"},"outer_diameter_mm":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Outer Diameter Mm"},"inner_diameter_mm":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Inner Diameter Mm"},"armor_thickness_mm":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Armor Thickness Mm"}},"additionalProperties":false,"type":"object","required":["role"],"title":"CableRecord"},"CatalogCandidate":{"properties":{"size_code":{"type":"string","title":"Size Code"},"dimensions":{"$ref":"#/components/schemas/Dimensions"},"designation":{"type":"string","title":"Designation"}},"additionalProperties":false,"type":"object","required":["size_code","dimensions","designation"],"title":"CatalogCandidate"},"CatalogGland":{"properties":{"side":{"type":"string","enum":["A","B","C","D"],"title":"Side"},"code":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-zА-Яа-яЁё0-9][A-Za-zА-Яа-яЁё0-9 .,_/+\\-]*$"},{"type":"null"}],"title":"Code","description":"Обязательно для ручного ввода."},"count":{"type":"integer","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Count"},"model_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Model Id","description":"Если задан, код и минимальные монтажные размеры берутся из справочника."},"span_along_side_mm":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Span Along Side Mm"},"span_across_depth_mm":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Span Across Depth Mm"},"cable":{"anyOf":[{"$ref":"#/components/schemas/CableRecord"},{"type":"null"}],"description":"Данные кабелей этой группы вводов."}},"additionalProperties":false,"type":"object","required":["side","count"],"title":"CatalogGland"},"CatalogGlandCode":{"properties":{"code":{"type":"string","title":"Code"},"cable_diameter_min_mm":{"type":"number","exclusiveMinimum":0.0,"title":"Cable Diameter Min Mm"},"cable_diameter_max_mm":{"type":"number","exclusiveMinimum":0.0,"title":"Cable Diameter Max Mm"}},"additionalProperties":false,"type":"object","required":["code","cable_diameter_min_mm","cable_diameter_max_mm"],"title":"CatalogGlandCode"},"CatalogSize":{"properties":{"size_code":{"type":"string","title":"Size Code"},"dimensions":{"$ref":"#/components/schemas/Dimensions"}},"additionalProperties":false,"type":"object","required":["size_code","dimensions"],"title":"CatalogSize"},"CatalogSizeTable":{"properties":{"catalog_revision":{"type":"string","const":"2022-08-04","title":"Catalog Revision","default":"2022-08-04"},"family":{"type":"string","enum":["КОРВ-У","КОРВ-В"],"title":"Family"},"source_page":{"type":"integer","title":"Source Page"},"sizes":{"items":{"$ref":"#/components/schemas/CatalogSize"},"type":"array","title":"Sizes"}},"additionalProperties":false,"type":"object","required":["family","source_page","sizes"],"title":"CatalogSizeTable"},"CatalogSizingRequest":{"properties":{"terminals":{"items":{"$ref":"#/components/schemas/CatalogTerminal"},"type":"array","maxItems":50,"minItems":1,"title":"Terminals"},"glands":{"items":{"$ref":"#/components/schemas/CatalogGland"},"type":"array","maxItems":50,"title":"Glands"},"mounting":{"$ref":"#/components/schemas/MountingAllowances","default":{}},"box_execution":{"type":"string","enum":["industrial","ex"],"title":"Box Execution"},"material":{"type":"string","enum":["aisi316l","coated_carbon_steel"],"title":"Material"},"climate":{"type":"string","enum":["У1","У2","УХЛ1","УХЛ2","Т1","Т2","ОМ1","ОМ2"],"title":"Climate"},"nominal_voltage_v":{"type":"integer","maximum":440.0,"exclusiveMinimum":0.0,"title":"Nominal Voltage V"},"max_dimensions":{"anyOf":[{"$ref":"#/components/schemas/Dimensions"},{"type":"null"}]},"ral":{"anyOf":[{"type":"string","pattern":"^RAL[0-9]{4}$"},{"type":"null"}],"title":"Ral"},"order_number":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-zА-Яа-яЁё0-9][A-Za-zА-Яа-яЁё0-9._/-]*$"},{"type":"null"}],"title":"Order Number"}},"additionalProperties":false,"type":"object","required":["terminals","glands","box_execution","material","climate","nominal_voltage_v"],"title":"CatalogSizingRequest"},"CatalogSizingResult":{"properties":{"status":{"type":"string","enum":["preliminary_match","missing_mounting_data","no_catalog_size"],"title":"Status"},"catalog_revision":{"type":"string","const":"2022-08-04","title":"Catalog Revision","default":"2022-08-04"},"family":{"type":"string","enum":["КОРВ-У","КОРВ-В"],"title":"Family"},"size_source_page":{"type":"integer","title":"Size Source Page"},"designation_source_page":{"type":"integer","title":"Designation Source Page"},"required_dimensions":{"anyOf":[{"$ref":"#/components/schemas/Dimensions"},{"type":"null"}]},"dimension_checks":{"items":{"$ref":"#/components/schemas/DimensionCheck"},"type":"array","title":"Dimension Checks","default":[]},"missing_fields":{"items":{"type":"string"},"type":"array","title":"Missing Fields","default":[]},"candidates":{"items":{"$ref":"#/components/schemas/CatalogCandidate"},"type":"array","title":"Candidates","default":[]}},"additionalProperties":false,"type":"object","required":["status","family","size_source_page","designation_source_page"],"title":"CatalogSizingResult"},"CatalogSource":{"properties":{"mode":{"type":"string","const":"catalog","title":"Mode"},"selection":{"$ref":"#/components/schemas/CatalogSizingRequest"},"size_code":{"type":"string","pattern":"^[0-9]{6}$","title":"Size Code"}},"additionalProperties":false,"type":"object","required":["mode","selection","size_code"],"title":"CatalogSource"},"CatalogTerminal":{"properties":{"kind":{"anyOf":[{"type":"string","enum":["feed_through","pe"]},{"type":"null"}],"title":"Kind","description":"Обязательно для ручного ввода."},"connection":{"anyOf":[{"type":"string","enum":["screw","spring"]},{"type":"null"}],"title":"Connection","description":"Обязательно для ручного ввода."},"section_mm2":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Section Mm2","description":"Обязательно для ручного ввода."},"count":{"type":"integer","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Count"},"model_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Model Id","description":"Если задан, тип, зажим, сечение и ширина берутся из справочника."},"rail":{"type":"integer","maximum":50.0,"exclusiveMinimum":0.0,"title":"Rail","default":1},"width_on_rail_mm":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Width On Rail Mm"}},"additionalProperties":false,"type":"object","required":["count"],"title":"CatalogTerminal"},"ComponentDirectory":{"properties":{"terminals":{"items":{"$ref":"#/components/schemas/TerminalModel"},"type":"array","title":"Terminals"},"glands":{"items":{"$ref":"#/components/schemas/GlandModel"},"type":"array","title":"Glands"}},"additionalProperties":false,"type":"object","required":["terminals","glands"],"title":"ComponentDirectory"},"Configuration":{"properties":{"id":{"type":"string","title":"Id"},"href":{"type":"string","title":"Href"},"designation":{"type":"string","title":"Designation"},"family":{"type":"string","enum":["КОРВ-У","КОРВ-В"],"title":"Family"},"size_code":{"type":"string","title":"Size Code"},"size_basis":{"type":"string","enum":["catalog","reference_order"],"title":"Size Basis"},"status":{"type":"string","const":"reference_configuration","title":"Status","default":"reference_configuration"},"specification":{"$ref":"#/components/schemas/Selection"},"max_feed_through_terminal_rated_current_a":{"type":"integer","exclusiveMinimum":0.0,"title":"Max Feed Through Terminal Rated Current A"},"gland_details":{"items":{"$ref":"#/components/schemas/GlandDetails"},"type":"array","title":"Gland Details"},"order_requirements":{"items":{"type":"string"},"type":"array","title":"Order Requirements"}},"additionalProperties":false,"type":"object","required":["id","href","designation","family","size_code","size_basis","specification","max_feed_through_terminal_rated_current_a","gland_details","order_requirements"],"title":"Configuration"},"CurtainEquipment":{"properties":{"motor_model":{"type":"string","maxLength":80,"title":"Motor Model","default":""},"fan_model":{"type":"string","maxLength":80,"title":"Fan Model","default":""},"rated_current_a":{"anyOf":[{"type":"number","maximum":100000.0,"minimum":0.001},{"type":"null"}],"title":"Rated Current A"},"motor_source":{"type":"string","title":"Motor Source","default":""},"factory":{"anyOf":[{"$ref":"#/components/schemas/FactoryCable"},{"type":"null"}]},"motor_count":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Motor Count"},"motor_count_source":{"type":"string","title":"Motor Count Source","default":""},"connection_scheme":{"anyOf":[{"type":"string","enum":["ex_individual","factory_daisy_chain"]},{"type":"null"}],"title":"Connection Scheme"},"ex_motor_line":{"anyOf":[{"$ref":"#/components/schemas/FactoryMotorLine"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"CurtainEquipment"},"DimensionCheck":{"properties":{"axis":{"type":"string","enum":["H","L","K"],"title":"Axis"},"basis":{"type":"string","enum":["din_rail","terminal_zone","gland_side","gland_depth","branch_layout"],"title":"Basis"},"side":{"anyOf":[{"type":"string","enum":["A","B","C","D"]},{"type":"null"}],"title":"Side"},"required_mm":{"type":"integer","title":"Required Mm"}},"additionalProperties":false,"type":"object","required":["axis","basis","required_mm"],"title":"DimensionCheck"},"Dimensions":{"properties":{"h_mm":{"type":"integer","exclusiveMinimum":0.0,"title":"H Mm"},"l_mm":{"type":"integer","exclusiveMinimum":0.0,"title":"L Mm"},"k_mm":{"type":"integer","exclusiveMinimum":0.0,"title":"K Mm"}},"additionalProperties":false,"type":"object","required":["h_mm","l_mm","k_mm"],"title":"Dimensions"},"DraftRequest":{"properties":{"motor":{"$ref":"#/components/schemas/MotorInput"},"box_execution":{"type":"string","enum":["industrial","ex"],"title":"Box Execution","default":"industrial"},"customer_journal":{"type":"string","enum":["provided","absent","unknown"],"title":"Customer Journal","default":"unknown"},"use_kvark_motor":{"type":"boolean","title":"Use Kvark Motor","default":false},"curtain_model":{"type":"string","maxLength":100,"title":"Curtain Model","default":""},"factory_profile_id":{"type":"string","maxLength":80,"title":"Factory Profile Id","default":""},"customer_cable":{"$ref":"#/components/schemas/CableRecord","default":{"role":"customer_in","tag":"","from_point":"","to_point":"","cable_type":"","compound_required":false}},"factory_cable":{"$ref":"#/components/schemas/CableRecord","default":{"role":"factory_out","tag":"","from_point":"","to_point":"","cable_type":"","compound_required":false}},"customer_model_id":{"type":"string","maxLength":80,"title":"Customer Model Id","default":""},"factory_model_id":{"type":"string","maxLength":80,"title":"Factory Model Id","default":""}},"additionalProperties":false,"type":"object","required":["motor"],"title":"DraftRequest"},"ErrorDetail":{"properties":{"code":{"type":"string","enum":["configuration_not_found","no_matching_configuration"],"title":"Code"},"message":{"type":"string","title":"Message"}},"additionalProperties":false,"type":"object","required":["code","message"],"title":"ErrorDetail"},"FactoryCable":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"source":{"type":"string","title":"Source"},"cable":{"$ref":"#/components/schemas/CableRecord"}},"additionalProperties":false,"type":"object","required":["id","label","source","cable"],"title":"FactoryCable"},"FactoryMotorLine":{"properties":{"terminals":{"items":{"type":"string","maxLength":80},"type":"array","title":"Terminals"},"cores":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Cores"},"section_mm2":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Section Mm2"},"phases":{"anyOf":[{"type":"integer","enum":[1,3]},{"type":"null"}],"title":"Phases"},"voltage_v":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Voltage V"},"frequency_hz":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Frequency Hz"},"source":{"type":"string","maxLength":80,"title":"Source"}},"additionalProperties":false,"type":"object","required":["terminals","source"],"title":"FactoryMotorLine"},"GlandApplication":{"properties":{"constructions":{"items":{"type":"string","enum":["unarmored","armored","braided"]},"type":"array","title":"Constructions"},"routing":{"type":"string","enum":["direct","metal_hose","rigid_conduit"],"title":"Routing"},"hose_dn_mm":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Hose Dn Mm"},"pipe_thread":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipe Thread"},"pipe_connection":{"anyOf":[{"type":"string","enum":["female","male"]},{"type":"null"}],"title":"Pipe Connection"},"inner_diameter_min_mm":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Inner Diameter Min Mm"},"inner_diameter_max_mm":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Inner Diameter Max Mm"},"armor_thickness_max_mm":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Armor Thickness Max Mm"}},"additionalProperties":false,"type":"object","required":["constructions","routing"],"title":"GlandApplication"},"GlandDetails":{"properties":{"code":{"type":"string","maxLength":64,"minLength":1,"title":"Code"},"manufacturer":{"type":"string","title":"Manufacturer"},"order_designation":{"type":"string","title":"Order Designation"},"material":{"type":"string","title":"Material"},"cable_diameter_min_mm":{"type":"integer","exclusiveMinimum":0.0,"title":"Cable Diameter Min Mm"},"cable_diameter_max_mm":{"type":"integer","exclusiveMinimum":0.0,"title":"Cable Diameter Max Mm"},"metal_conduit_nominal_mm":{"type":"integer","exclusiveMinimum":0.0,"title":"Metal Conduit Nominal Mm"}},"additionalProperties":false,"type":"object","required":["code","manufacturer","order_designation","material","cable_diameter_min_mm","cable_diameter_max_mm","metal_conduit_nominal_mm"],"title":"GlandDetails"},"GlandGroup":{"properties":{"side":{"type":"string","enum":["A","B","C","D"],"title":"Side"},"code":{"type":"string","maxLength":64,"minLength":1,"title":"Code"},"count":{"type":"integer","exclusiveMinimum":0.0,"title":"Count"}},"additionalProperties":false,"type":"object","required":["side","code","count"],"title":"GlandGroup"},"GlandModel":{"properties":{"id":{"type":"string","title":"Id"},"manufacturer":{"type":"string","title":"Manufacturer"},"article":{"type":"string","title":"Article"},"name":{"type":"string","title":"Name"},"designation_code":{"type":"string","title":"Designation Code"},"material":{"type":"string","title":"Material"},"mounting_thread":{"type":"string","title":"Mounting Thread"},"cable_diameter_min_mm":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Cable Diameter Min Mm"},"cable_diameter_max_mm":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Cable Diameter Max Mm"},"body_envelope_mm":{"type":"number","exclusiveMinimum":0.0,"title":"Body Envelope Mm"},"envelope_reference":{"type":"string","title":"Envelope Reference"},"box_executions":{"items":{"type":"string","enum":["industrial","ex"]},"type":"array","title":"Box Executions"},"source_url":{"type":"string","title":"Source Url"},"application":{"anyOf":[{"$ref":"#/components/schemas/GlandApplication"},{"type":"null"}]},"compound":{"type":"boolean","title":"Compound","default":false},"selection_note":{"type":"string","title":"Selection Note","default":""}},"additionalProperties":false,"type":"object","required":["id","manufacturer","article","name","designation_code","material","mounting_thread","cable_diameter_min_mm","cable_diameter_max_mm","body_envelope_mm","envelope_reference","box_executions","source_url"],"title":"GlandModel"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KvarkHandoff":{"properties":{"equipment_model":{"type":"string","title":"Equipment Model"},"motor_model":{"type":"string","title":"Motor Model"},"power_kw":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Power Kw"},"voltage_v":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Voltage V"},"phases":{"anyOf":[{"type":"integer","const":3},{"type":"null"}],"title":"Phases"}},"additionalProperties":false,"type":"object","required":["equipment_model","motor_model"],"title":"KvarkHandoff"},"LookupErrorResponse":{"properties":{"detail":{"$ref":"#/components/schemas/ErrorDetail"}},"additionalProperties":false,"type":"object","required":["detail"],"title":"LookupErrorResponse"},"MotorBranch":{"properties":{"terminals":{"items":{"$ref":"#/components/schemas/CatalogTerminal"},"type":"array","maxItems":50,"minItems":1,"title":"Terminals"},"glands":{"items":{"$ref":"#/components/schemas/CatalogGland"},"type":"array","maxItems":50,"minItems":1,"title":"Glands"},"mounting":{"$ref":"#/components/schemas/MountingAllowances","default":{}},"tag":{"type":"string","maxLength":80,"minLength":1,"title":"Tag"}},"additionalProperties":false,"type":"object","required":["terminals","glands","tag"],"title":"MotorBranch"},"MotorCable":{"properties":{"tag":{"type":"string","maxLength":80,"title":"Tag","default":""},"cable":{"$ref":"#/components/schemas/CableRecord","default":{"role":"customer_in","tag":"","from_point":"","to_point":"","cable_type":"","compound_required":false}},"gland_id":{"type":"string","maxLength":80,"title":"Gland Id","default":""}},"additionalProperties":false,"type":"object","title":"MotorCable"},"MotorCurrent":{"properties":{"status":{"type":"string","enum":["nameplate","catalog","estimated","missing_data"],"title":"Status"},"current_a":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current A"},"missing_fields":{"items":{"type":"string"},"type":"array","title":"Missing Fields","default":[]}},"additionalProperties":false,"type":"object","required":["status"],"title":"MotorCurrent"},"MotorInput":{"properties":{"model":{"type":"string","maxLength":80,"title":"Model","default":""},"tag":{"type":"string","maxLength":80,"title":"Tag","default":""},"power_kw":{"anyOf":[{"type":"number","maximum":100000.0,"minimum":0.001},{"type":"null"}],"title":"Power Kw"},"rated_current_a":{"anyOf":[{"type":"number","maximum":100000.0,"minimum":0.001},{"type":"null"}],"title":"Rated Current A"},"voltage_v":{"anyOf":[{"type":"number","maximum":100000.0,"minimum":0.001},{"type":"null"}],"title":"Voltage V"},"phases":{"anyOf":[{"type":"integer","enum":[1,3]},{"type":"null"}],"title":"Phases"},"efficiency_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.1},{"type":"null"}],"title":"Efficiency Pct"},"power_factor":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.001},{"type":"null"}],"title":"Power Factor"}},"additionalProperties":false,"type":"object","title":"MotorInput"},"MotorResult":{"properties":{"tag":{"type":"string","title":"Tag"},"cable":{"$ref":"#/components/schemas/CableRecord"},"match":{"$ref":"#/components/schemas/CableGlandMatch"},"selected_gland":{"anyOf":[{"$ref":"#/components/schemas/GlandModel"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["tag","cable","match"],"title":"MotorResult"},"MountingAllowances":{"properties":{"rail_allowance_mm":{"anyOf":[{"type":"number","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Rail Allowance Mm"},"terminal_zone_l_mm":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Terminal Zone L Mm"},"terminal_zone_k_mm":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Terminal Zone K Mm"},"gland_side_allowance_mm":{"anyOf":[{"type":"number","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Gland Side Allowance Mm"},"gland_depth_allowance_mm":{"anyOf":[{"type":"number","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Gland Depth Allowance Mm"}},"additionalProperties":false,"type":"object","title":"MountingAllowances"},"OrderDetails":{"properties":{"number":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-zА-Яа-яЁё0-9][A-Za-zА-Яа-яЁё0-9._/-]*$"},{"type":"null"}],"title":"Number"},"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date"},"customer":{"type":"string","maxLength":160,"title":"Customer","default":""},"location":{"type":"string","maxLength":160,"title":"Location","default":""},"phone":{"type":"string","maxLength":160,"title":"Phone","default":""},"email":{"type":"string","maxLength":160,"title":"Email","default":""},"attention":{"type":"string","maxLength":160,"title":"Attention","default":""},"quotation_number":{"type":"string","maxLength":160,"title":"Quotation Number","default":""},"prepared_by":{"type":"string","maxLength":160,"title":"Prepared By","default":""},"equipment":{"type":"string","maxLength":160,"title":"Equipment","default":""},"max_terminal_current_a":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Terminal Current A"},"requested_ex_marking":{"type":"string","maxLength":160,"title":"Requested Ex Marking","default":""},"division_plate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Division Plate"},"terminal_blocks":{"items":{"$ref":"#/components/schemas/TerminalBlock"},"type":"array","maxItems":20,"title":"Terminal Blocks","default":[]},"mounting_drawing":{"type":"string","maxLength":160,"title":"Mounting Drawing","default":""},"wiring_drawing":{"type":"string","maxLength":160,"title":"Wiring Drawing","default":""},"notes":{"type":"string","maxLength":4000,"title":"Notes","default":""},"positions":{"items":{"$ref":"#/components/schemas/OrderPosition"},"type":"array","maxItems":50,"minItems":1,"title":"Positions","default":[{"tags":[],"quantity":1}]}},"additionalProperties":false,"type":"object","title":"OrderDetails"},"OrderPosition":{"properties":{"line_number":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-zА-Яа-яЁё0-9][A-Za-zА-Яа-яЁё0-9._/-]*$"},{"type":"null"}],"title":"Line Number"},"tags":{"items":{"type":"string","maxLength":160},"type":"array","maxItems":50,"title":"Tags","default":[]},"quantity":{"type":"integer","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Quantity","default":1}},"additionalProperties":false,"type":"object","title":"OrderPosition"},"OrderRequest":{"properties":{"configuration":{"oneOf":[{"$ref":"#/components/schemas/CatalogSource"},{"$ref":"#/components/schemas/ArchiveSource"},{"$ref":"#/components/schemas/TwoMotorSource"}],"title":"Configuration","discriminator":{"propertyName":"mode","mapping":{"archive":"#/components/schemas/ArchiveSource","catalog":"#/components/schemas/CatalogSource","two_motor":"#/components/schemas/TwoMotorSource"}}},"order":{"$ref":"#/components/schemas/OrderDetails","default":{"customer":"","location":"","phone":"","email":"","attention":"","quotation_number":"","prepared_by":"","equipment":"","requested_ex_marking":"","terminal_blocks":[],"mounting_drawing":"","wiring_drawing":"","notes":"","positions":[{"quantity":1,"tags":[]}]}}},"additionalProperties":false,"type":"object","required":["configuration"],"title":"OrderRequest"},"QuickRequest":{"properties":{"motor":{"$ref":"#/components/schemas/MotorInput"},"box_execution":{"type":"string","enum":["industrial","ex"],"title":"Box Execution","default":"industrial"},"customer_journal":{"type":"string","enum":["provided","absent","unknown"],"title":"Customer Journal","default":"unknown"},"use_kvark_motor":{"type":"boolean","title":"Use Kvark Motor","default":false},"curtain_model":{"type":"string","maxLength":100,"title":"Curtain Model","default":""},"factory_profile_id":{"type":"string","maxLength":80,"title":"Factory Profile Id","default":""},"customer_cable":{"$ref":"#/components/schemas/CableRecord","default":{"role":"customer_in","tag":"","from_point":"","to_point":"","cable_type":"","compound_required":false}},"factory_cable":{"$ref":"#/components/schemas/CableRecord","default":{"role":"factory_out","tag":"","from_point":"","to_point":"","cable_type":"","compound_required":false}}},"additionalProperties":false,"type":"object","required":["motor"],"title":"QuickRequest"},"QuickResult":{"properties":{"current":{"$ref":"#/components/schemas/MotorCurrent"},"customer_journal":{"type":"string","enum":["provided","absent","unknown"],"title":"Customer Journal"},"journal_note":{"type":"string","title":"Journal Note"},"matches":{"items":{"$ref":"#/components/schemas/CableGlandMatch"},"type":"array","title":"Matches"},"motor_source":{"type":"string","title":"Motor Source","default":""},"motor_note":{"type":"string","title":"Motor Note","default":""},"factory_source":{"type":"string","title":"Factory Source","default":""},"factory_note":{"type":"string","title":"Factory Note","default":""},"resolved_factory_cable":{"anyOf":[{"$ref":"#/components/schemas/CableRecord"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["current","customer_journal","journal_note","matches"],"title":"QuickResult"},"Selection":{"properties":{"box_execution":{"type":"string","enum":["industrial","ex"],"title":"Box Execution"},"material":{"type":"string","enum":["aisi316l","coated_carbon_steel"],"title":"Material"},"climate":{"type":"string","enum":["У1","У2","УХЛ1","УХЛ2","Т1","Т2","ОМ1","ОМ2"],"title":"Climate"},"nominal_voltage_v":{"type":"integer","exclusiveMinimum":0.0,"title":"Nominal Voltage V"},"terminals":{"items":{"$ref":"#/components/schemas/TerminalGroup"},"type":"array","maxItems":50,"minItems":1,"title":"Terminals"},"glands":{"items":{"$ref":"#/components/schemas/GlandGroup"},"type":"array","maxItems":50,"minItems":1,"title":"Glands"},"dimensions":{"anyOf":[{"$ref":"#/components/schemas/Dimensions"},{"type":"null"}]},"ex_marking":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Ex Marking"}},"additionalProperties":false,"type":"object","required":["box_execution","material","climate","nominal_voltage_v","terminals","glands"],"title":"Selection"},"Specification":{"properties":{"curtain_model":{"type":"string","maxLength":100,"title":"Curtain Model"},"motor_count_source":{"type":"string","title":"Motor Count Source"},"factory_line":{"$ref":"#/components/schemas/FactoryMotorLine"},"motors":{"items":{"$ref":"#/components/schemas/MotorResult"},"type":"array","title":"Motors"}},"additionalProperties":false,"type":"object","required":["curtain_model","motor_count_source","factory_line","motors"],"title":"Specification"},"SpecificationRequest":{"properties":{"curtain_model":{"type":"string","maxLength":100,"minLength":1,"title":"Curtain Model"},"motors":{"items":{"$ref":"#/components/schemas/MotorCable"},"type":"array","maxItems":100,"title":"Motors","default":[]}},"additionalProperties":false,"type":"object","required":["curtain_model"],"title":"SpecificationRequest"},"TerminalBlock":{"properties":{"name":{"type":"string","maxLength":32,"minLength":1,"title":"Name"},"points":{"items":{"$ref":"#/components/schemas/TerminalPoint"},"type":"array","maxItems":100,"minItems":1,"title":"Points"}},"additionalProperties":false,"type":"object","required":["name","points"],"title":"TerminalBlock"},"TerminalGroup":{"properties":{"kind":{"type":"string","enum":["feed_through","pe"],"title":"Kind"},"connection":{"type":"string","enum":["screw","spring"],"title":"Connection"},"section_mm2":{"type":"number","exclusiveMinimum":0.0,"title":"Section Mm2"},"count":{"type":"integer","exclusiveMinimum":0.0,"title":"Count"}},"additionalProperties":false,"type":"object","required":["kind","connection","section_mm2","count"],"title":"TerminalGroup"},"TerminalModel":{"properties":{"id":{"type":"string","title":"Id"},"manufacturer":{"type":"string","title":"Manufacturer"},"article":{"type":"string","title":"Article"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","enum":["feed_through","pe"],"title":"Kind"},"connection":{"type":"string","enum":["screw","spring"],"title":"Connection"},"section_mm2":{"type":"number","exclusiveMinimum":0.0,"title":"Section Mm2"},"width_on_rail_mm":{"type":"number","exclusiveMinimum":0.0,"title":"Width On Rail Mm"},"transverse_size_mm":{"type":"number","exclusiveMinimum":0.0,"title":"Transverse Size Mm"},"depth_on_ns35_7_5_mm":{"type":"number","exclusiveMinimum":0.0,"title":"Depth On Ns35 7 5 Mm"},"depth_on_ns35_15_mm":{"type":"number","exclusiveMinimum":0.0,"title":"Depth On Ns35 15 Mm"},"source_url":{"type":"string","title":"Source Url"}},"additionalProperties":false,"type":"object","required":["id","manufacturer","article","name","kind","connection","section_mm2","width_on_rail_mm","transverse_size_mm","depth_on_ns35_7_5_mm","depth_on_ns35_15_mm","source_url"],"title":"TerminalModel"},"TerminalPoint":{"properties":{"label":{"type":"string","maxLength":24,"minLength":1,"title":"Label"},"kind":{"type":"string","enum":["feed_through","pe"],"title":"Kind"},"section_mm2":{"type":"number","exclusiveMinimum":0.0,"title":"Section Mm2"}},"additionalProperties":false,"type":"object","required":["label","kind","section_mm2"],"title":"TerminalPoint"},"TwoMotorRequest":{"properties":{"box_execution":{"type":"string","enum":["industrial","ex"],"title":"Box Execution"},"material":{"type":"string","enum":["aisi316l","coated_carbon_steel"],"title":"Material"},"climate":{"type":"string","enum":["У1","У2","УХЛ1","УХЛ2","Т1","Т2","ОМ1","ОМ2"],"title":"Climate"},"nominal_voltage_v":{"type":"integer","maximum":440.0,"exclusiveMinimum":0.0,"title":"Nominal Voltage V"},"max_dimensions":{"anyOf":[{"$ref":"#/components/schemas/Dimensions"},{"type":"null"}]},"ral":{"anyOf":[{"type":"string","pattern":"^RAL[0-9]{4}$"},{"type":"null"}],"title":"Ral"},"order_number":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[A-Za-zА-Яа-яЁё0-9][A-Za-zА-Яа-яЁё0-9._/-]*$"},{"type":"null"}],"title":"Order Number"},"layout":{"type":"string","enum":["along_h","along_l"],"title":"Layout"},"separation_mm":{"type":"number","maximum":10000.0,"minimum":0.0,"title":"Separation Mm"},"branches":{"prefixItems":[{"$ref":"#/components/schemas/MotorBranch"},{"$ref":"#/components/schemas/MotorBranch"}],"type":"array","maxItems":2,"minItems":2,"title":"Branches"}},"additionalProperties":false,"type":"object","required":["box_execution","material","climate","nominal_voltage_v","layout","separation_mm","branches"],"title":"TwoMotorRequest"},"TwoMotorResult":{"properties":{"status":{"type":"string","enum":["preliminary_match","missing_mounting_data","no_catalog_size"],"title":"Status"},"catalog_revision":{"type":"string","const":"2022-08-04","title":"Catalog Revision","default":"2022-08-04"},"family":{"type":"string","enum":["КОРВ-У","КОРВ-В"],"title":"Family"},"size_source_page":{"type":"integer","title":"Size Source Page"},"designation_source_page":{"type":"integer","title":"Designation Source Page"},"required_dimensions":{"anyOf":[{"$ref":"#/components/schemas/Dimensions"},{"type":"null"}]},"dimension_checks":{"items":{"$ref":"#/components/schemas/DimensionCheck"},"type":"array","title":"Dimension Checks","default":[]},"missing_fields":{"items":{"type":"string"},"type":"array","title":"Missing Fields","default":[]},"candidates":{"items":{"$ref":"#/components/schemas/CatalogCandidate"},"type":"array","title":"Candidates","default":[]},"layout":{"type":"string","enum":["along_h","along_l"],"title":"Layout"},"separation_mm":{"type":"number","maximum":10000.0,"minimum":0.0,"title":"Separation Mm"},"branches":{"prefixItems":[{"$ref":"#/components/schemas/BranchSizing"},{"$ref":"#/components/schemas/BranchSizing"}],"type":"array","maxItems":2,"minItems":2,"title":"Branches"}},"additionalProperties":false,"type":"object","required":["status","family","size_source_page","designation_source_page","layout","separation_mm","branches"],"title":"TwoMotorResult"},"TwoMotorSource":{"properties":{"mode":{"type":"string","const":"two_motor","title":"Mode"},"selection":{"$ref":"#/components/schemas/TwoMotorRequest"},"size_code":{"type":"string","pattern":"^[0-9]{6}$","title":"Size Code"}},"additionalProperties":false,"type":"object","required":["mode","selection","size_code"],"title":"TwoMotorSource"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}