turbot-runner 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,15 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            !binary "U0hBMQ==":
         
     | 
| 
       3 
3 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       4 
     | 
    
         
            -
                 
     | 
| 
      
 4 
     | 
    
         
            +
                OWJlODcyODQyMDg3YzcyMDFmNjRkMTJmMjkzOWY2NDdjYWJkMmE0ZQ==
         
     | 
| 
       5 
5 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       6 
     | 
    
         
            -
                 
     | 
| 
      
 6 
     | 
    
         
            +
                MjI4ODIxYTgxNDg3MWNkOGIyYTdiOTMyMzUxOTE4YzYyMDA4ZmY4Yg==
         
     | 
| 
       7 
7 
     | 
    
         
             
            SHA512:
         
     | 
| 
       8 
8 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       9 
     | 
    
         
            -
                 
     | 
| 
       10 
     | 
    
         
            -
                 
     | 
| 
       11 
     | 
    
         
            -
                 
     | 
| 
      
 9 
     | 
    
         
            +
                ODlmN2FmZjEwMDBhOThhMGJkNDcxYjA5MzcwMDhhZmNiODgwYjJlNDc2NDEz
         
     | 
| 
      
 10 
     | 
    
         
            +
                MDc3YTYwMjU2N2EzZTI2MTFlYjM2YjI1OWY5N2JjMzhhODcwM2I0ZGQ4NjY4
         
     | 
| 
      
 11 
     | 
    
         
            +
                ODRlNTEyNzU2Y2IzYmE2ZTc2MzM2NTQ0OTFlY2FiMjhmNDdkNGY=
         
     | 
| 
       12 
12 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       13 
     | 
    
         
            -
                 
     | 
| 
       14 
     | 
    
         
            -
                 
     | 
| 
       15 
     | 
    
         
            -
                 
     | 
| 
      
 13 
     | 
    
         
            +
                NTAyNjEwNDZjMTJmYTZhYzM1ZGRmMDMyZTJjNmVjZWU2NzIyZmYwMTY0ODYw
         
     | 
| 
      
 14 
     | 
    
         
            +
                OTkyNTEwZDNmYTdiMTMzYmI2YzExYWIyZjM5N2JhY2U1NGU1N2Q5OTIzODJk
         
     | 
| 
      
 15 
     | 
    
         
            +
                ZDM1Mjc2MjA2NmIyMzM2NTBhZDM4NTlmMWI0OTQwMWVmNzhjMWY=
         
     | 
| 
         @@ -0,0 +1,182 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            {
         
     | 
| 
      
 2 
     | 
    
         
            +
              "title": "Company Schema",
         
     | 
| 
      
 3 
     | 
    
         
            +
              "type": "object",
         
     | 
| 
      
 4 
     | 
    
         
            +
              "description": "A company in OpenCorporates",
         
     | 
| 
      
 5 
     | 
    
         
            +
              "properties": {
         
     | 
| 
      
 6 
     | 
    
         
            +
                "company_number": {
         
     | 
| 
      
 7 
     | 
    
         
            +
                  "type": "string",
         
     | 
| 
      
 8 
     | 
    
         
            +
                  "description": "unique identifier given by the corporate register with which it is incorporated",
         
     | 
| 
      
 9 
     | 
    
         
            +
                  "minLength": 1
         
     | 
| 
      
 10 
     | 
    
         
            +
                },
         
     | 
| 
      
 11 
     | 
    
         
            +
                "name": {
         
     | 
| 
      
 12 
     | 
    
         
            +
                  "type": "string",
         
     | 
| 
      
 13 
     | 
    
         
            +
                  "description": "Legal name of the company",
         
     | 
| 
      
 14 
     | 
    
         
            +
                  "minLength": 1
         
     | 
| 
      
 15 
     | 
    
         
            +
                },
         
     | 
| 
      
 16 
     | 
    
         
            +
                "jurisdiction_code": {
         
     | 
| 
      
 17 
     | 
    
         
            +
                  "type": "string",
         
     | 
| 
      
 18 
     | 
    
         
            +
                  "description": "Code representing the jurisdiction/company register which is the canonical record of the company’s existence. Uses underscored ISO 3166-2 to represent it, e.g. es for Spain, us_de for Delaware",
         
     | 
| 
      
 19 
     | 
    
         
            +
                  "minLength": 2,
         
     | 
| 
      
 20 
     | 
    
         
            +
                  "maxLength": 5
         
     | 
| 
      
 21 
     | 
    
         
            +
                },
         
     | 
| 
      
 22 
     | 
    
         
            +
                "incorporation_date": {
         
     | 
| 
      
 23 
     | 
    
         
            +
                  "type": "date"
         
     | 
| 
      
 24 
     | 
    
         
            +
                },
         
     | 
| 
      
 25 
     | 
    
         
            +
                "dissolution_date": {
         
     | 
| 
      
 26 
     | 
    
         
            +
                  "type": "date"
         
     | 
| 
      
 27 
     | 
    
         
            +
                },
         
     | 
| 
      
 28 
     | 
    
         
            +
                "retrieved_at": {
         
     | 
| 
      
 29 
     | 
    
         
            +
                  "type": "date-time"
         
     | 
| 
      
 30 
     | 
    
         
            +
                },
         
     | 
| 
      
 31 
     | 
    
         
            +
                "current_status": {
         
     | 
| 
      
 32 
     | 
    
         
            +
                  "type": "string"
         
     | 
| 
      
 33 
     | 
    
         
            +
                },
         
     | 
| 
      
 34 
     | 
    
         
            +
                "company_type": {
         
     | 
| 
      
 35 
     | 
    
         
            +
                  "type": "string"
         
     | 
| 
      
 36 
     | 
    
         
            +
                },
         
     | 
| 
      
 37 
     | 
    
         
            +
                "registry_url": {
         
     | 
| 
      
 38 
     | 
    
         
            +
                  "type": "string"
         
     | 
| 
      
 39 
     | 
    
         
            +
                },
         
     | 
| 
      
 40 
     | 
    
         
            +
                "website": {
         
     | 
| 
      
 41 
     | 
    
         
            +
                  "type": "string",
         
     | 
| 
      
 42 
     | 
    
         
            +
                  "minLength": 5
         
     | 
| 
      
 43 
     | 
    
         
            +
                },
         
     | 
| 
      
 44 
     | 
    
         
            +
                "telephone_number": {
         
     | 
| 
      
 45 
     | 
    
         
            +
                  "type": "string",
         
     | 
| 
      
 46 
     | 
    
         
            +
                  "minLength": 4
         
     | 
| 
      
 47 
     | 
    
         
            +
                },
         
     | 
| 
      
 48 
     | 
    
         
            +
                "fax_number": {
         
     | 
| 
      
 49 
     | 
    
         
            +
                  "type": "string",
         
     | 
| 
      
 50 
     | 
    
         
            +
                  "minLength": 4
         
     | 
| 
      
 51 
     | 
    
         
            +
                },
         
     | 
| 
      
 52 
     | 
    
         
            +
                "registered_address": {
         
     | 
| 
      
 53 
     | 
    
         
            +
                  "$ref": "address.json"
         
     | 
| 
      
 54 
     | 
    
         
            +
                },
         
     | 
| 
      
 55 
     | 
    
         
            +
                "headquarters_address": {
         
     | 
| 
      
 56 
     | 
    
         
            +
                  "$ref": "address.json"
         
     | 
| 
      
 57 
     | 
    
         
            +
                },
         
     | 
| 
      
 58 
     | 
    
         
            +
                "mailing_address": {
         
     | 
| 
      
 59 
     | 
    
         
            +
                  "$ref": "address.json"
         
     | 
| 
      
 60 
     | 
    
         
            +
                },
         
     | 
| 
      
 61 
     | 
    
         
            +
                "officers": {
         
     | 
| 
      
 62 
     | 
    
         
            +
                  "type": "array",
         
     | 
| 
      
 63 
     | 
    
         
            +
                  "items": {
         
     | 
| 
      
 64 
     | 
    
         
            +
                    "$ref": "officer.json"
         
     | 
| 
      
 65 
     | 
    
         
            +
                  }
         
     | 
| 
      
 66 
     | 
    
         
            +
                },
         
     | 
| 
      
 67 
     | 
    
         
            +
                "share_parcels": {
         
     | 
| 
      
 68 
     | 
    
         
            +
                  "type": "array",
         
     | 
| 
      
 69 
     | 
    
         
            +
                  "items": {
         
     | 
| 
      
 70 
     | 
    
         
            +
                    "$ref": "share-parcel.json"
         
     | 
| 
      
 71 
     | 
    
         
            +
                  }
         
     | 
| 
      
 72 
     | 
    
         
            +
                },
         
     | 
| 
      
 73 
     | 
    
         
            +
                "total_shares": {
         
     | 
| 
      
 74 
     | 
    
         
            +
                  "$ref": "total-shares.json"
         
     | 
| 
      
 75 
     | 
    
         
            +
                },
         
     | 
| 
      
 76 
     | 
    
         
            +
                "filings": {
         
     | 
| 
      
 77 
     | 
    
         
            +
                  "type": "array",
         
     | 
| 
      
 78 
     | 
    
         
            +
                  "items": {
         
     | 
| 
      
 79 
     | 
    
         
            +
                    "$ref": "filing.json"
         
     | 
| 
      
 80 
     | 
    
         
            +
                  }
         
     | 
| 
      
 81 
     | 
    
         
            +
                },
         
     | 
| 
      
 82 
     | 
    
         
            +
                "industry_codes": {
         
     | 
| 
      
 83 
     | 
    
         
            +
                  "type": "array",
         
     | 
| 
      
 84 
     | 
    
         
            +
                  "items": {
         
     | 
| 
      
 85 
     | 
    
         
            +
                    "$ref": "industry_code.json"
         
     | 
| 
      
 86 
     | 
    
         
            +
                  }
         
     | 
| 
      
 87 
     | 
    
         
            +
                },
         
     | 
| 
      
 88 
     | 
    
         
            +
                "previous_names": {
         
     | 
| 
      
 89 
     | 
    
         
            +
                  "type": "array",
         
     | 
| 
      
 90 
     | 
    
         
            +
                  "items": {
         
     | 
| 
      
 91 
     | 
    
         
            +
                    "$ref": "previous_name.json"
         
     | 
| 
      
 92 
     | 
    
         
            +
                  }
         
     | 
| 
      
 93 
     | 
    
         
            +
                },
         
     | 
| 
      
 94 
     | 
    
         
            +
                "alternative_names": {
         
     | 
| 
      
 95 
     | 
    
         
            +
                  "type": "array",
         
     | 
| 
      
 96 
     | 
    
         
            +
                  "items": {
         
     | 
| 
      
 97 
     | 
    
         
            +
                    "$ref": "alternative_name.json"
         
     | 
| 
      
 98 
     | 
    
         
            +
                  }
         
     | 
| 
      
 99 
     | 
    
         
            +
                },
         
     | 
| 
      
 100 
     | 
    
         
            +
                "branch": {
         
     | 
| 
      
 101 
     | 
    
         
            +
                  "type": ["string","null"],
         
     | 
| 
      
 102 
     | 
    
         
            +
                  "description": "A flag to denote whether a company is a branch entity. This should only be set if the company is a type of branch (otherwise should be null). In general the only option here is 'F' for a 'Foreign' branch, i.e. an out-of-jurisdiction entity that has registered as having a presence in the jurisdiction. In the US this is sometimes called a Foreign Corporation",
         
     | 
| 
      
 103 
     | 
    
         
            +
                  "enum": ["F", "L",null]
         
     | 
| 
      
 104 
     | 
    
         
            +
                },
         
     | 
| 
      
 105 
     | 
    
         
            +
                "all_attributes": {
         
     | 
| 
      
 106 
     | 
    
         
            +
                  "type": "object",
         
     | 
| 
      
 107 
     | 
    
         
            +
                  "description": "Other arbitrary attributes for a given company",
         
     | 
| 
      
 108 
     | 
    
         
            +
                  "properties": {
         
     | 
| 
      
 109 
     | 
    
         
            +
                    "jurisdiction_of_origin": {
         
     | 
| 
      
 110 
     | 
    
         
            +
                      "type": ["string","null"],
         
     | 
| 
      
 111 
     | 
    
         
            +
                      "description": "The jurisdiction of the 'home' company if this is a branch",
         
     | 
| 
      
 112 
     | 
    
         
            +
                      "minLength": 1
         
     | 
| 
      
 113 
     | 
    
         
            +
                    },
         
     | 
| 
      
 114 
     | 
    
         
            +
                    "home_company_number": {
         
     | 
| 
      
 115 
     | 
    
         
            +
                      "type": ["string","null"],
         
     | 
| 
      
 116 
     | 
    
         
            +
                      "description": "If the entity is a 'branch', this is the company_number of the 'home' company in the home company's jurisdiction",
         
     | 
| 
      
 117 
     | 
    
         
            +
                      "minLength": 1
         
     | 
| 
      
 118 
     | 
    
         
            +
                    },
         
     | 
| 
      
 119 
     | 
    
         
            +
                    "home_legal_name": {
         
     | 
| 
      
 120 
     | 
    
         
            +
                      "type": ["string","null"],
         
     | 
| 
      
 121 
     | 
    
         
            +
                      "description": "The legal name of the 'home' company in its jurisdiction if this is a branch, and the name is different from the legal name of the branch",
         
     | 
| 
      
 122 
     | 
    
         
            +
                      "minLength": 1
         
     | 
| 
      
 123 
     | 
    
         
            +
                    },
         
     | 
| 
      
 124 
     | 
    
         
            +
                    "registered_agent_address": {
         
     | 
| 
      
 125 
     | 
    
         
            +
                      "type": ["string","null"],
         
     | 
| 
      
 126 
     | 
    
         
            +
                      "description": "The address of the 'Agent', a public address to which legal papers can be served",
         
     | 
| 
      
 127 
     | 
    
         
            +
                      "minLength": 1
         
     | 
| 
      
 128 
     | 
    
         
            +
                    },
         
     | 
| 
      
 129 
     | 
    
         
            +
                    "registered_agent_name": {
         
     | 
| 
      
 130 
     | 
    
         
            +
                      "type": ["string","null"],
         
     | 
| 
      
 131 
     | 
    
         
            +
                      "description": "The 'Agent' of the company \u2013 a person or entity that is empowered to accept service for the company",
         
     | 
| 
      
 132 
     | 
    
         
            +
                      "minLength": 1
         
     | 
| 
      
 133 
     | 
    
         
            +
                    },
         
     | 
| 
      
 134 
     | 
    
         
            +
                    "number_of_employees": {
         
     | 
| 
      
 135 
     | 
    
         
            +
                      "anyOf": [
         
     | 
| 
      
 136 
     | 
    
         
            +
                        {"type":"string","minLength": 1},
         
     | 
| 
      
 137 
     | 
    
         
            +
                        {"type":"number","minimum": 0}
         
     | 
| 
      
 138 
     | 
    
         
            +
                      ],
         
     | 
| 
      
 139 
     | 
    
         
            +
                      "description": "The number of employees"
         
     | 
| 
      
 140 
     | 
    
         
            +
                    },
         
     | 
| 
      
 141 
     | 
    
         
            +
                    "merged_into": {
         
     | 
| 
      
 142 
     | 
    
         
            +
                      "type": "object",
         
     | 
| 
      
 143 
     | 
    
         
            +
                      "description": "Information on the merger of this company into a 'survivor' company",
         
     | 
| 
      
 144 
     | 
    
         
            +
                      "properties": {
         
     | 
| 
      
 145 
     | 
    
         
            +
                        "surviving_company": {
         
     | 
| 
      
 146 
     | 
    
         
            +
                          "type": ["object"],
         
     | 
| 
      
 147 
     | 
    
         
            +
                          "description": "the surviving_company that this has been merged into",
         
     | 
| 
      
 148 
     | 
    
         
            +
                          "properties": {
         
     | 
| 
      
 149 
     | 
    
         
            +
                            "name": {
         
     | 
| 
      
 150 
     | 
    
         
            +
                              "type": "string",
         
     | 
| 
      
 151 
     | 
    
         
            +
                              "description": "The legal name of the surviving company",
         
     | 
| 
      
 152 
     | 
    
         
            +
                              "minLength": 1
         
     | 
| 
      
 153 
     | 
    
         
            +
                            },
         
     | 
| 
      
 154 
     | 
    
         
            +
                            "company_number": {
         
     | 
| 
      
 155 
     | 
    
         
            +
                              "type": "string",
         
     | 
| 
      
 156 
     | 
    
         
            +
                              "description": "The company_number of the surviving company, if known",
         
     | 
| 
      
 157 
     | 
    
         
            +
                              "minLength": 1
         
     | 
| 
      
 158 
     | 
    
         
            +
                            },
         
     | 
| 
      
 159 
     | 
    
         
            +
                            "jurisdiction": {
         
     | 
| 
      
 160 
     | 
    
         
            +
                              "type": "string",
         
     | 
| 
      
 161 
     | 
    
         
            +
                              "description": "The jurisdiction of incorporation of the surviving company",
         
     | 
| 
      
 162 
     | 
    
         
            +
                              "minLength": 2
         
     | 
| 
      
 163 
     | 
    
         
            +
                            }
         
     | 
| 
      
 164 
     | 
    
         
            +
                          },
         
     | 
| 
      
 165 
     | 
    
         
            +
                          "anyOf": [{"required": ["name"]},
         
     | 
| 
      
 166 
     | 
    
         
            +
                                    {"required": ["company_number"]}]
         
     | 
| 
      
 167 
     | 
    
         
            +
                        },
         
     | 
| 
      
 168 
     | 
    
         
            +
                        "effective_date": {
         
     | 
| 
      
 169 
     | 
    
         
            +
                          "type": "string",
         
     | 
| 
      
 170 
     | 
    
         
            +
                          "format": "date",
         
     | 
| 
      
 171 
     | 
    
         
            +
                          "description": "The date of the merger"
         
     | 
| 
      
 172 
     | 
    
         
            +
                        }
         
     | 
| 
      
 173 
     | 
    
         
            +
                      },
         
     | 
| 
      
 174 
     | 
    
         
            +
                      "additionalProperties": false,
         
     | 
| 
      
 175 
     | 
    
         
            +
                      "required": ["surviving_company"]
         
     | 
| 
      
 176 
     | 
    
         
            +
                    }
         
     | 
| 
      
 177 
     | 
    
         
            +
                  }
         
     | 
| 
      
 178 
     | 
    
         
            +
                }
         
     | 
| 
      
 179 
     | 
    
         
            +
              },
         
     | 
| 
      
 180 
     | 
    
         
            +
              "additionalProperties": false,
         
     | 
| 
      
 181 
     | 
    
         
            +
              "required": ["name"]
         
     | 
| 
      
 182 
     | 
    
         
            +
            }
         
     | 
| 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "title": "Person",
         
     | 
| 
       3 
3 
     | 
    
         
             
              "type": "object",
         
     | 
| 
       4 
     | 
    
         
            -
              "description": "A person, for example, referenced in some other context, e.g. director of a company, shareholder, licence-holder, lobbyist",
         
     | 
| 
      
 4 
     | 
    
         
            +
              "description": "A person, for example, referenced in some other context, e.g. director of a company, shareholder, licence-holder, lobbyist. This should be used only if the person is the subject of the datum",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "properties": {
         
     | 
| 
       6 
6 
     | 
    
         
             
                "name": {
         
     | 
| 
       7 
7 
     | 
    
         
             
                  "oneOf": [
         
     | 
| 
         @@ -15,6 +15,13 @@ 
     | 
|
| 
       15 
15 
     | 
    
         
             
                  "type": "string",
         
     | 
| 
       16 
16 
     | 
    
         
             
                  "description": "Name of the jurisdiction in which the entity is based"
         
     | 
| 
       17 
17 
     | 
    
         
             
                },
         
     | 
| 
      
 18 
     | 
    
         
            +
                "company": {
         
     | 
| 
      
 19 
     | 
    
         
            +
                  "description": "Company the person is representing. NB If the licence holder is a company, and the individual is a just a contact, then use the company-schema for the entity. This is where the individual  themselves are the licence holder",
         
     | 
| 
      
 20 
     | 
    
         
            +
                  "$ref": "../company-schema.json"
         
     | 
| 
      
 21 
     | 
    
         
            +
                },
         
     | 
| 
      
 22 
     | 
    
         
            +
                "relationship_with_company": {
         
     | 
| 
      
 23 
     | 
    
         
            +
                    "enum": ["employee", "director", "shareholder", null]
         
     | 
| 
      
 24 
     | 
    
         
            +
                },
         
     | 
| 
       18 
25 
     | 
    
         
             
                "website": {
         
     | 
| 
       19 
26 
     | 
    
         
             
                  "type": "string",
         
     | 
| 
       20 
27 
     | 
    
         
             
                  "minLength": 5
         
     | 
| 
         @@ -1,62 +1,86 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "title": "Rich Licence Schema",
         
     | 
| 
       3 
     | 
    
         
            -
              "description": "A Licence is a permission for an entity to do something that would otherwise not be permitted. Note that such permissions are recorded in multiple different ways and to different granularity. In addition categories cross over, for example a  
     | 
| 
      
 3 
     | 
    
         
            +
              "description": "A Licence is a permission for an entity to do something that would otherwise not be permitted. Note that such permissions are recorded in multiple different ways and to different granularity. In addition categories cross over, for example a pawnborker may be regulated as a retail establishment by a city, but also as a financial institution by a national or regional financial regulator. Sometimes the licence is a simple statement – the government of Rwanda has given a banking licence to a certain bank -- other times it is fine-grained and highly complex (e.g. an extractives licence or the UK FCA licencing scheme). This schema tries to make it easy to submit the former, while not losing granularity of the latter. The object has the name of Rich Licence to distinguish it from Simple Licence, which it is expected to ultimately replace.",
         
     | 
| 
       4 
4 
     | 
    
         
             
              "$schema": "http://json-schema.org/draft-04/schema#",
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
      
 5 
     | 
    
         
            +
              "properties": {
         
     | 
| 
      
 6 
     | 
    
         
            +
                "licence_holder": {
         
     | 
| 
      
 7 
     | 
    
         
            +
                  "properties": {
         
     | 
| 
      
 8 
     | 
    
         
            +
                    "entity": {
         
     | 
| 
      
 9 
     | 
    
         
            +
                      "oneOf": [
         
     | 
| 
      
 10 
     | 
    
         
            +
                        {
         
     | 
| 
      
 11 
     | 
    
         
            +
                          "properties": {
         
     | 
| 
      
 12 
     | 
    
         
            +
                            "entity_type": {"enum": ["company"]},
         
     | 
| 
      
 13 
     | 
    
         
            +
                            "entity_properties": {"$ref": "includes/company-for-nesting.json"}
         
     | 
| 
      
 14 
     | 
    
         
            +
                          }
         
     | 
| 
      
 15 
     | 
    
         
            +
                        }, {
         
     | 
| 
      
 16 
     | 
    
         
            +
                            "properties": {
         
     | 
| 
      
 17 
     | 
    
         
            +
                            "entity_type": {"enum": ["person"]},
         
     | 
| 
      
 18 
     | 
    
         
            +
                            "entity_properties": {"$ref": "includes/person.json"}
         
     | 
| 
      
 19 
     | 
    
         
            +
                          }
         
     | 
| 
      
 20 
     | 
    
         
            +
                        }, {
         
     | 
| 
      
 21 
     | 
    
         
            +
                            "properties": {
         
     | 
| 
      
 22 
     | 
    
         
            +
                            "entity_type": {"enum": ["organisation"]},
         
     | 
| 
      
 23 
     | 
    
         
            +
                            "entity_properties": {"$ref": "includes/organisation.json"}
         
     | 
| 
      
 24 
     | 
    
         
            +
                          }
         
     | 
| 
      
 25 
     | 
    
         
            +
                        }, {
         
     | 
| 
      
 26 
     | 
    
         
            +
                            "properties": {
         
     | 
| 
      
 27 
     | 
    
         
            +
                            "entity_type": {"enum": ["unknown"]},
         
     | 
| 
      
 28 
     | 
    
         
            +
                            "entity_properties": {"$ref": "includes/unknown_entity_type.json"}
         
     | 
| 
      
 29 
     | 
    
         
            +
                          }
         
     | 
| 
      
 30 
     | 
    
         
            +
                        }
         
     | 
| 
      
 31 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 32 
     | 
    
         
            +
                    },
         
     | 
| 
      
 33 
     | 
    
         
            +
                    "entity_type": {
         
     | 
| 
      
 34 
     | 
    
         
            +
                      "enum": ["company", "person", "organisation", "unknown_entity_type", null]
         
     | 
| 
      
 35 
     | 
    
         
            +
                    }
         
     | 
| 
       20 
36 
     | 
    
         
             
                  }
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
      
 37 
     | 
    
         
            +
                },
         
     | 
| 
      
 38 
     | 
    
         
            +
                "licence_issuer": {
         
     | 
| 
       23 
39 
     | 
    
         
             
                  "oneOf": [
         
     | 
| 
       24 
40 
     | 
    
         
             
                    {
         
     | 
| 
       25 
41 
     | 
    
         
             
                      "type": ["string","null"],
         
     | 
| 
       26 
42 
     | 
    
         
             
                      "minLength": 2
         
     | 
| 
       27 
43 
     | 
    
         
             
                    },
         
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
      
 44 
     | 
    
         
            +
                    {"$ref": "includes/organisation.json"}
         
     | 
| 
       29 
45 
     | 
    
         
             
                  ]
         
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
      
 46 
     | 
    
         
            +
                },
         
     | 
| 
      
 47 
     | 
    
         
            +
                "licenced_location": {
         
     | 
| 
      
 48 
     | 
    
         
            +
                  "$ref": "includes/address.json"
         
     | 
| 
      
 49 
     | 
    
         
            +
                },
         
     | 
| 
      
 50 
     | 
    
         
            +
                "licence_number": {
         
     | 
| 
      
 51 
     | 
    
         
            +
                  "type": "string"
         
     | 
| 
      
 52 
     | 
    
         
            +
                },
         
     | 
| 
      
 53 
     | 
    
         
            +
                "start_date": {
         
     | 
| 
       38 
54 
     | 
    
         
             
                  "description": "The issue date of the licence",
         
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
      
 55 
     | 
    
         
            +
                          "type": "string",
         
     | 
| 
      
 56 
     | 
    
         
            +
                          "format": "date"
         
     | 
| 
      
 57 
     | 
    
         
            +
                },
         
     | 
| 
      
 58 
     | 
    
         
            +
                "end_date": {
         
     | 
| 
       42 
59 
     | 
    
         
             
                  "description": "The expiry date of the licence",
         
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
      
 60 
     | 
    
         
            +
                          "type": "string",
         
     | 
| 
      
 61 
     | 
    
         
            +
                          "format": "date"
         
     | 
| 
      
 62 
     | 
    
         
            +
                },
         
     | 
| 
      
 63 
     | 
    
         
            +
                "renewal_date": {
         
     | 
| 
      
 64 
     | 
    
         
            +
                          "type": "string",
         
     | 
| 
      
 65 
     | 
    
         
            +
                          "format": "date"
         
     | 
| 
      
 66 
     | 
    
         
            +
                },
         
     | 
| 
      
 67 
     | 
    
         
            +
                "sample_date": {
         
     | 
| 
      
 68 
     | 
    
         
            +
                  "description": "Date on which we know this to be true (usually date this information was retrieved from the source)",
         
     | 
| 
      
 69 
     | 
    
         
            +
                  "type": "string",
         
     | 
| 
      
 70 
     | 
    
         
            +
                  "format": "date"
         
     | 
| 
      
 71 
     | 
    
         
            +
                },
         
     | 
| 
      
 72 
     | 
    
         
            +
                "licence_url": {
         
     | 
| 
      
 73 
     | 
    
         
            +
                  "type": "string",
         
     | 
| 
       50 
74 
     | 
    
         
             
                  "description": "A public URL for the licence"
         
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
     | 
    
         
            -
             
     | 
| 
      
 75 
     | 
    
         
            +
                },
         
     | 
| 
      
 76 
     | 
    
         
            +
                "jurisdiction_of_licence": {
         
     | 
| 
      
 77 
     | 
    
         
            +
                  "type": "string",
         
     | 
| 
       54 
78 
     | 
    
         
             
                  "description": "The area in which this licence is valid"
         
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
       57 
     | 
    
         
            -
             
     | 
| 
      
 79 
     | 
    
         
            +
                },
         
     | 
| 
      
 80 
     | 
    
         
            +
                "status": {
         
     | 
| 
      
 81 
     | 
    
         
            +
                  "type": "string",
         
     | 
| 
       58 
82 
     | 
    
         
             
                  "description": "The status of the licence. If the licence is made up of a number of permissions, each of which has a status, store the status in the permissions field instead/as well"
         
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
      
 83 
     | 
    
         
            +
                },
         
     | 
| 
       60 
84 
     | 
    
         
             
                "category": {
         
     | 
| 
       61 
85 
     | 
    
         
             
                  "description": "Category of licence",
         
     | 
| 
       62 
86 
     | 
    
         
             
                  "type": "array",
         
     | 
| 
         @@ -65,15 +89,15 @@ 
     | 
|
| 
       65 
89 
     | 
    
         
             
                    "enum": ["Financial", "Business", "Extractive"]
         
     | 
| 
       66 
90 
     | 
    
         
             
                  }
         
     | 
| 
       67 
91 
     | 
    
         
             
                },
         
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
       69 
     | 
    
         
            -
             
     | 
| 
       70 
     | 
    
         
            -
             
     | 
| 
       71 
     | 
    
         
            -
             
     | 
| 
       72 
     | 
    
         
            -
             
     | 
| 
       73 
     | 
    
         
            -
             
     | 
| 
      
 92 
     | 
    
         
            +
                "permissions": {
         
     | 
| 
      
 93 
     | 
    
         
            +
                  "type": "array",
         
     | 
| 
      
 94 
     | 
    
         
            +
                  "items": {
         
     | 
| 
      
 95 
     | 
    
         
            +
                    "$ref": "includes/permission.json"
         
     | 
| 
      
 96 
     | 
    
         
            +
                  }
         
     | 
| 
      
 97 
     | 
    
         
            +
                },
         
     | 
| 
       74 
98 
     | 
    
         
             
                "other_attributes": {
         
     | 
| 
       75 
99 
     | 
    
         
             
                  "description": "Use for other licence attributes for which we don't yet have curated schema attributes"
         
     | 
| 
       76 
100 
     | 
    
         
             
                }
         
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
      
 101 
     | 
    
         
            +
              },
         
     | 
| 
       78 
102 
     | 
    
         
             
              "required": ["source_url", "sample_date", "licence_holder", "permissions", "licence_issuer", "jurisdiction_of_licence"]
         
     | 
| 
       79 
103 
     | 
    
         
             
            }
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: turbot-runner
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.22
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - OpenCorporates
         
     | 
| 
         @@ -46,6 +46,7 @@ files: 
     | 
|
| 
       46 
46 
     | 
    
         
             
            - schema/schemas/financial-payment-schema.json
         
     | 
| 
       47 
47 
     | 
    
         
             
            - schema/schemas/includes/address.json
         
     | 
| 
       48 
48 
     | 
    
         
             
            - schema/schemas/includes/alternative_name.json
         
     | 
| 
      
 49 
     | 
    
         
            +
            - schema/schemas/includes/company-for-nesting.json
         
     | 
| 
       49 
50 
     | 
    
         
             
            - schema/schemas/includes/company.json
         
     | 
| 
       50 
51 
     | 
    
         
             
            - schema/schemas/includes/filing.json
         
     | 
| 
       51 
52 
     | 
    
         
             
            - schema/schemas/includes/financial-payment-data-object.json
         
     |