{
  "id": "http://json-schema.org/draft-04/schema#",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "agentury-prace",
  "type": "object",
  "description": "Agentury práce",
  "x-docUrl": "https://data.mpsv.cz/web/data/agentury-prace",
  "properties": {
    "polozky": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "portalId": {
            "type": "integer",
            "description": "Jednoznačný identifikátor agentury práce na portálu JPŘ PSV"
          },
          "id": {
            "type": "string",
            "maxLength": 129
          },
          "nazev": {
            "type": "string",
            "maxLength": 300
          },
          "ico": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 8
          },
          "odpovednyZastupce": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4000
          },
          "urlAdresa": {
            "type": [
              "null",
              "string"
            ],
            "maxLength": 2048
          },
          "adresaSidla": {
            "type": [
              "object",
              "null"
            ],
            "description": "Adresa sídla agentury práce",
            "properties": {
              "cisloDomovni": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cisloOrientacni": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 41
              },
              "dodatekAdresy": {
                "type": [
                  "null",
                  "string"
                ],
                "maxLength": 250,
                "description": "Adresa - dodatek adresy"
              },
              "kodAdresnihoMista": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "psc": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 5
              },
              "typCislaDomovniho": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Adresa - typ domovního čísla, typ stavebního objektu",
                "x-looseRef": "/od/soubory/ciselniky/typy-stavebniho-objektu.schema.json",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 129
                  }
                },
                "required": [
                  "id"
                ]
              },
              "kraj": {
                "type": [
                  "object",
                  "null"
                ],
                "x-looseRef": "/od/soubory/ciselniky/kraje.schema.json",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 129
                  }
                },
                "required": [
                  "id"
                ]
              },
              "okres": {
                "type": [
                  "object",
                  "null"
                ],
                "x-looseRef": "/od/soubory/ciselniky/okresy.schema.json",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 129
                  }
                },
                "required": [
                  "id"
                ]
              },
              "obec": {
                "type": [
                  "object",
                  "null"
                ],
                "x-looseRef": "/od/soubory/ciselniky/obce.schema.json",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 129
                  }
                },
                "required": [
                  "id"
                ]
              },
              "mestskyObvodMestskaCast": {
                "type": [
                  "object",
                  "null"
                ],
                "x-looseRef": "/od/soubory/ciselniky/mestske-obvody-mestske-casti.schema.json",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 129
                  }
                },
                "required": [
                  "id"
                ]
              },
              "mestskyObvodVPraze": {
                "type": [
                  "object",
                  "null"
                ],
                "x-looseRef": "/od/soubory/ciselniky/mestske-obvody-v-praze.schema.json",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 129
                  }
                },
                "required": [
                  "id"
                ]
              },
              "castObce": {
                "type": [
                  "object",
                  "null"
                ],
                "x-looseRef": "/od/soubory/ciselniky/casti-obci.schema.json",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 129
                  }
                },
                "required": [
                  "id"
                ]
              },
              "nazevCastiObce": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 1024
              },
              "ulice": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "nazev": {
                    "type": "string",
                    "maxLength": 48
                  }
                }
              }
            }
          },
          "adresaText": {
            "type": [
              "null",
              "string"
            ],
            "maxLength": 250,
            "description": "Adresa agentury práce uvedená volným textem"
          },
          "pracoviste": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "adresaPracoviste": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "Adresa pracoviště agentury práce",
                  "properties": {
                    "cisloDomovni": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cisloOrientacni": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "maxLength": 41
                    },
                    "dodatekAdresy": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "maxLength": 250,
                      "description": "Adresa - dodatek adresy"
                    },
                    "kodAdresnihoMista": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "psc": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 5
                    },
                    "typCislaDomovniho": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-looseRef": "/od/soubory/ciselniky/typy-stavebniho-objektu.schema.json",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 129
                        }
                      },
                      "required": [
                        "id"
                      ]
                    },
                    "kraj": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-looseRef": "/od/soubory/ciselniky/kraje.schema.json",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 129
                        }
                      },
                      "required": [
                        "id"
                      ]
                    },
                    "okres": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-looseRef": "/od/soubory/ciselniky/okresy.schema.json",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 129
                        }
                      },
                      "required": [
                        "id"
                      ]
                    },
                    "obec": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-looseRef": "/od/soubory/ciselniky/obce.schema.json",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 129
                        }
                      },
                      "required": [
                        "id"
                      ]
                    },
                    "mestskyObvodMestskaCast": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-looseRef": "/od/soubory/ciselniky/mestske-obvody-mestske-casti.schema.json",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 129
                        }
                      },
                      "required": [
                        "id"
                      ]
                    },
                    "mestskyObvodVPraze": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-looseRef": "/od/soubory/ciselniky/mestske-obvody-v-praze.schema.json",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 129
                        }
                      },
                      "required": [
                        "id"
                      ]
                    },
                    "castObce": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-looseRef": "/od/soubory/ciselniky/casti-obci.schema.json",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 129
                        }
                      },
                      "required": [
                        "id"
                      ]
                    },
                    "nazevCastiObce": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 1024
                    },
                    "ulice": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "nazev": {
                          "type": "string",
                          "maxLength": 48
                        }
                      }
                    }
                  }
                },
                "adresaText": {
                  "type": [
                    "null",
                    "string"
                  ],
                  "maxLength": 250,
                  "description": "Adresa pracoviště agentury práce uvedená volným textem"
                }
              }
            }
          },
          "kontaktniOsoby": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "jmeno": {
                  "type": [
                    "null",
                    "string"
                  ],
                  "maxLength": 100
                },
                "prijmeni": {
                  "type": [
                    "null",
                    "string"
                  ],
                  "maxLength": 100
                },
                "titulPred": {
                  "type": [
                    "null",
                    "string"
                  ],
                  "maxLength": 35
                },
                "titulZa": {
                  "type": [
                    "null",
                    "string"
                  ],
                  "maxLength": 30
                }
              },
              "required": []
            }
          },
          "povoleni": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "druhyPraci": {
                  "type": [
                    "object"
                  ],
                  "description": "Druhy prací (profesí); Jedná se o velmi dlouhý textový řetězec (> 4000 znaků).",
                  "properties": {
                    "cs": {
                      "type": [
                        "string"
                      ]
                    }
                  },
                  "required": [
                    "cs"
                  ]
                },
                "platnostOd": {
                  "type": "string",
                  "format": "date",
                  "description": "Začátek platnosti povolení agentury práce"
                },
                "platnostDo": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date",
                  "description": "Konec platnosti povolení agentury práce"
                },
                "poradenskaCinnost": {
                  "type": "boolean",
                  "description": "Forma zprostředkování podle písm. c) Poradenská a informační činnost v oblasti pracovních příležitostí"
                },
                "predmetProCizinceMimoEu": {
                  "type": "boolean",
                  "description": "Předmět povolení Cizincům mimo EU/EHP"
                },
                "predmetProObcanyCr": {
                  "type": "boolean",
                  "description": "Předmět povolení Občanům ČR"
                },
                "predmetProObcanyEu": {
                  "type": "boolean",
                  "description": "Předmět povolení Občanům EU/EHP"
                },
                "vyhledavaniZamestnani": {
                  "type": "boolean",
                  "description": "Forma zprostředkování podle písm. a) Vyhledání zaměstnání pro fyzickou osobu, která se o práci uchází, a vyhledání zaměstnanců pro zaměstnavatele, který hledá nové pracovní síly"
                },
                "zamestnavaniOsob": {
                  "type": "boolean",
                  "description": "Forma zprostředkování podle písm. b) Zaměstnávání fyzických osob za účelem výkonu jejich práce pro uživatele, kterým se rozumí jiná právnická nebo fyzická osoba, která práci přiděluje a dohlíží na její provedení"
                },
                "uzemniPlatnost": {
                  "type": "object",
                  "description": "Územní platnost povolení agentury práce nebo územně neomezeno",
                  "x-looseRef": "/od/soubory/ciselniky/uzemni-platnosti-agentury.schema.json",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 129
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              },
              "required": [
                "druhyPraci",
                "platnostOd",
                "poradenskaCinnost",
                "predmetProCizinceMimoEu",
                "predmetProObcanyCr",
                "predmetProObcanyEu",
                "vyhledavaniZamestnani",
                "zamestnavaniOsob",
                "uzemniPlatnost"
              ]
            }
          }
        },
        "required": [
          "portalId",
          "id",
          "nazev",
          "povoleni"
        ]
      }
    }
  }
}