turbot 0.1.18 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +8 -8
  2. data/lib/turbot/command/bots.rb +1 -13
  3. data/lib/turbot/version.rb +1 -1
  4. metadata +4 -33
  5. data/schema/schemas/company-schema.json +0 -237
  6. data/schema/schemas/financial-payment-schema.json +0 -32
  7. data/schema/schemas/includes/address.json +0 -46
  8. data/schema/schemas/includes/alternative_name.json +0 -36
  9. data/schema/schemas/includes/company-for-nesting.json +0 -235
  10. data/schema/schemas/includes/company.json +0 -25
  11. data/schema/schemas/includes/filing.json +0 -52
  12. data/schema/schemas/includes/financial-payment-data-object.json +0 -112
  13. data/schema/schemas/includes/identifier.json +0 -20
  14. data/schema/schemas/includes/industry_code.json +0 -29
  15. data/schema/schemas/includes/licence-data-object.json +0 -63
  16. data/schema/schemas/includes/officer.json +0 -70
  17. data/schema/schemas/includes/organisation.json +0 -58
  18. data/schema/schemas/includes/permission.json +0 -46
  19. data/schema/schemas/includes/person.json +0 -62
  20. data/schema/schemas/includes/person_name.json +0 -71
  21. data/schema/schemas/includes/previous_name.json +0 -24
  22. data/schema/schemas/includes/share-parcel-data.json +0 -82
  23. data/schema/schemas/includes/share-parcel.json +0 -78
  24. data/schema/schemas/includes/subsidiary-relationship-data.json +0 -58
  25. data/schema/schemas/includes/total-shares.json +0 -17
  26. data/schema/schemas/includes/unknown_entity_type.json +0 -58
  27. data/schema/schemas/licence-schema.json +0 -196
  28. data/schema/schemas/primary-data-schema.json +0 -20
  29. data/schema/schemas/share-parcel-schema.json +0 -22
  30. data/schema/schemas/simple-financial-payment-schema.json +0 -122
  31. data/schema/schemas/simple-licence-schema.json +0 -74
  32. data/schema/schemas/simple-subsidiary-schema.json +0 -81
  33. data/schema/schemas/subsidiary-relationship-schema.json +0 -46
@@ -1,196 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/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 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
- "properties": {
5
- "licence_holder": {
6
- "type": "object",
7
- "additionalProperties": false,
8
- "required": [
9
- "entity"
10
- ],
11
- "properties": {
12
- "entity": {
13
- "oneOf": [
14
- {
15
- "type": "object",
16
- "additionalProperties": false,
17
- "required": [
18
- "entity_type",
19
- "entity_properties"
20
- ],
21
- "properties": {
22
- "entity_type": {
23
- "enum": [
24
- "company"
25
- ]
26
- },
27
- "entity_properties": {
28
- "$ref": "includes/company-for-nesting.json"
29
- }
30
- }
31
- },
32
- {
33
- "type": "object",
34
- "additionalProperties": false,
35
- "required": [
36
- "entity_type",
37
- "entity_properties"
38
- ],
39
- "properties": {
40
- "entity_type": {
41
- "enum": [
42
- "person"
43
- ]
44
- },
45
- "entity_properties": {
46
- "$ref": "includes/person.json"
47
- }
48
- }
49
- },
50
- {
51
- "type": "object",
52
- "additionalProperties": false,
53
- "required": [
54
- "entity_type",
55
- "entity_properties"
56
- ],
57
- "properties": {
58
- "entity_type": {
59
- "enum": [
60
- "organisation"
61
- ]
62
- },
63
- "entity_properties": {
64
- "$ref": "includes/organisation.json"
65
- }
66
- }
67
- },
68
- {
69
- "type": "object",
70
- "additionalProperties": false,
71
- "required": [
72
- "entity_type",
73
- "entity_properties"
74
- ],
75
- "properties": {
76
- "entity_type": {
77
- "enum": [
78
- "unknown"
79
- ]
80
- },
81
- "entity_properties": {
82
- "$ref": "includes/unknown_entity_type.json"
83
- }
84
- }
85
- }
86
- ]
87
- },
88
- "entity_type": {
89
- "enum": [
90
- "company",
91
- "person",
92
- "organisation",
93
- "unknown_entity_type",
94
- null
95
- ]
96
- }
97
- }
98
- },
99
- "licence_issuer": {
100
- "oneOf": [
101
- {
102
- "type": [
103
- "string",
104
- "null"
105
- ],
106
- "minLength": 2
107
- },
108
- {
109
- "$ref": "includes/organisation.json"
110
- }
111
- ]
112
- },
113
- "licenced_location": {
114
- "$ref": "includes/address.json"
115
- },
116
- "licence_number": {
117
- "type": "string"
118
- },
119
- "start_date": {
120
- "description": "The issue date of the licence",
121
- "type": "string",
122
- "format": "date"
123
- },
124
- "end_date": {
125
- "description": "The expiry date of the licence",
126
- "type": "string",
127
- "format": "date"
128
- },
129
- "source_url": {
130
- "description": "Place where this fact can be verified",
131
- "type": "string",
132
- "minLength": 1
133
- },
134
- "confidence": {
135
- "description": "Confidence in accuracy of data",
136
- "type": "string",
137
- "enum": [
138
- "HIGH",
139
- "MEDIUM",
140
- "LOW"
141
- ]
142
- },
143
- "renewal_date": {
144
- "type": "string",
145
- "format": "date"
146
- },
147
- "sample_date": {
148
- "description": "Date on which we know this to be true (usually date this information was retrieved from the source)",
149
- "type": "string",
150
- "format": "date"
151
- },
152
- "licence_url": {
153
- "type": "string",
154
- "description": "A public URL for the licence"
155
- },
156
- "jurisdiction_of_licence": {
157
- "type": "string",
158
- "description": "The area in which this licence is valid"
159
- },
160
- "status": {
161
- "type": "string",
162
- "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"
163
- },
164
- "category": {
165
- "description": "Category of licence",
166
- "type": "array",
167
- "items": {
168
- "type": "string",
169
- "enum": [
170
- "Financial",
171
- "Business",
172
- "Extractive"
173
- ]
174
- }
175
- },
176
- "permissions": {
177
- "type": "array",
178
- "items": {
179
- "$ref": "includes/permission.json"
180
- }
181
- },
182
- "other_attributes": {
183
- "description": "Use for other licence attributes for which we don't yet have curated schema attributes",
184
- "type": "object"
185
- }
186
- },
187
- "additionalProperties": false,
188
- "required": [
189
- "source_url",
190
- "sample_date",
191
- "licence_holder",
192
- "permissions",
193
- "licence_issuer",
194
- "jurisdiction_of_licence"
195
- ]
196
- }
@@ -1,20 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "type": "object",
4
- "properties": {
5
- "source_url": {
6
- "description": "Place where this fact can be verified",
7
- "type": "string"
8
- },
9
- "sample_date": {
10
- "description": "Date on which this fact was known to be true",
11
- "type": "string",
12
- "format": "date"
13
- }
14
- },
15
- "required": [
16
- "source_url",
17
- "sample_date"
18
- ],
19
- "additionalProperties": true
20
- }
@@ -1,22 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "type": "object",
4
- "allOf": [
5
- {
6
- "$ref": "includes/base-statement.json"
7
- },
8
- {
9
- "properties": {
10
- "data": {
11
- "items": {
12
- "allOf": [
13
- {
14
- "$ref": "includes/share-parcel-data.json"
15
- }
16
- ]
17
- }
18
- }
19
- }
20
- }
21
- ]
22
- }
@@ -1,122 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "description": "A Financial Payment is a payment from government to a recipient",
4
- "type": "object",
5
- "properties": {
6
- "source_url": {
7
- "description": "Place where this fact can be verified",
8
- "type": "string"
9
- },
10
- "sample_date": {
11
- "description": "Date on which this fact was known to be true",
12
- "type": "string",
13
- "format": "date"
14
- },
15
- "confidence": {
16
- "description": "Confidence in accuracy of data",
17
- "type": "string",
18
- "enum": [
19
- "HIGH",
20
- "MEDIUM",
21
- "LOW"
22
- ]
23
- },
24
- "company_name": {
25
- "description": "Name of the company that received the money",
26
- "type": "string"
27
- },
28
- "company_jurisdiction": {
29
- "description": "Jurisdiction where company is based",
30
- "type": "string"
31
- },
32
- "value": {
33
- "description": "The amount transacted (e.g. 19.95)",
34
- "type": "string"
35
- },
36
- "payee_name": {
37
- "description": "The name of the payee (the entity that received the money)",
38
- "type": "string"
39
- },
40
- "currency": {
41
- "description": "The currency of the payment (three letter symbol, e.g. USD, GBP, EUR)",
42
- "type": "string"
43
- },
44
- "date": {
45
- "description": "The date on which the payment was made",
46
- "type": "date"
47
- },
48
- "transaction_number": {
49
- "description": "The unique identifier for the transaction, scoped to this bot",
50
- "type": "string"
51
- },
52
- "jurisdiction": {
53
- "description": "The jurisdiction of the body that made the payment, eg. UK, France, Delaware, Manchester",
54
- "type": "string"
55
- },
56
- "more_details_url": {
57
- "description": "A url from which more details can be seen (may be the same as the source_url)",
58
- "type": [
59
- "string",
60
- null
61
- ]
62
- },
63
- "description": {
64
- "description": "The description of the transaction as given in the raw data",
65
- "type": [
66
- "string",
67
- null
68
- ]
69
- },
70
- "expense_type": {
71
- "description": "The type of expense -- can be either capital, revenue (i.e. current expenditure) or null",
72
- "enum": [
73
- "capital",
74
- "revenue",
75
- null
76
- ]
77
- },
78
- "expense_area": {
79
- "description": "category (in words) of the expenditure",
80
- "type": [
81
- "string",
82
- null
83
- ]
84
- },
85
- "entity_name": {
86
- "description": "The name of the government entity that made the payment, e.g. Environment Agency",
87
- "type": "string"
88
- },
89
- "entity_uri": {
90
- "description": "A unique URL (ideally a dereferencable URI) for the government entity",
91
- "type": [
92
- "string",
93
- null
94
- ]
95
- },
96
- "department_name": {
97
- "description": "The name of the government department which the entity belongs to (if relevant), e.g. Department of Health",
98
- "type": [
99
- "string",
100
- null
101
- ]
102
- },
103
- "csv_line_number": {
104
- "description": "If the source for the data is a CSV file, you can optionally include the line number of the CSV from which this data was retrieved",
105
- "type": [
106
- "string",
107
- null
108
- ]
109
- }
110
- },
111
- "additionalProperties": false,
112
- "required": [
113
- "source_url",
114
- "sample_date",
115
- "company_name",
116
- "company_jurisdiction",
117
- "value",
118
- "payee_name",
119
- "date",
120
- "currency"
121
- ]
122
- }
@@ -1,74 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "type": "object",
4
- "properties": {
5
- "source_url": {
6
- "description": "Place where this fact can be verified",
7
- "type": "string",
8
- "minLength": 1
9
- },
10
- "sample_date": {
11
- "description": "Date on which this fact was known to be true",
12
- "type": "string",
13
- "format": "date"
14
- },
15
- "confidence": {
16
- "description": "Confidence in accuracy of data",
17
- "type": "string",
18
- "enum": [
19
- "HIGH",
20
- "MEDIUM",
21
- "LOW"
22
- ]
23
- },
24
- "company_name": {
25
- "description": "Name of the company holding the licence",
26
- "type": "string",
27
- "minLength": 1
28
- },
29
- "company_jurisdiction": {
30
- "description": "Jurisdiction where company is based",
31
- "type": "string",
32
- "minLength": 1
33
- },
34
- "licence_number": {
35
- "description": "Licence number or code",
36
- "type": "string"
37
- },
38
- "jurisdiction_classification": {
39
- "description": "Description of how regulator classifies licence",
40
- "type": [
41
- "string",
42
- "array"
43
- ]
44
- },
45
- "regulator": {
46
- "description": "The regulating body that issued the licence",
47
- "type": "string"
48
- },
49
- "licence_jurisdiction": {
50
- "description": "Jurisdiction for which licence is issued",
51
- "type": "string",
52
- "minLength": 1
53
- },
54
- "status": {
55
- "description": "Status of the licence",
56
- "type": "string"
57
- },
58
- "category": {
59
- "description": "Category of licence",
60
- "type": "string",
61
- "enum": [
62
- "Financial",
63
- "Business"
64
- ]
65
- }
66
- },
67
- "additionalProperties": false,
68
- "required": [
69
- "source_url",
70
- "sample_date",
71
- "company_name",
72
- "company_jurisdiction"
73
- ]
74
- }
@@ -1,81 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "type": "object",
4
- "properties": {
5
- "source_url": {
6
- "description": "Place where this fact can be verified",
7
- "type": "string",
8
- "minLength": 1
9
- },
10
- "sample_date": {
11
- "description": "Date on which this fact was known to be true",
12
- "type": "string",
13
- "format": "date"
14
- },
15
- "start_date": {
16
- "description": "Earliest known date this was known to be a subsidiary",
17
- "type": "string",
18
- "format": "date"
19
- },
20
- "end_date": {
21
- "description": "Latest known date this was known to be a subsidiary",
22
- "type": "string",
23
- "format": "date"
24
- },
25
- "confidence": {
26
- "description": "Confidence in accuracy of data",
27
- "type": "string",
28
- "enum": [
29
- "HIGH",
30
- "MEDIUM",
31
- "LOW"
32
- ]
33
- },
34
- "parent_name": {
35
- "description": "Name of the controlling company",
36
- "type": "string",
37
- "minLength": 1
38
- },
39
- "parent_jurisdiction": {
40
- "description": "Jurisdiction where controlling company is based",
41
- "type": "string",
42
- "minLength": 1
43
- },
44
- "parent_identifier": {
45
- "description": "Any unique ID for the controlling company",
46
- "type": "string"
47
- },
48
- "direct": {
49
- "description": "Is the control relationship direct or indirect (if unknown, leave blank)?",
50
- "type": "boolean"
51
- },
52
- "percentage_controlled": {
53
- "description": "Percentage of the subsidiary that is controlled (if known), either directly or indirectly",
54
- "type": "string",
55
- "pattern": "^[0-9]{1,2}0?[.]?[0-9]{0,2}$"
56
- },
57
- "subsidiary_name": {
58
- "description": "The name of the subsidiary",
59
- "type": "string",
60
- "minLength": 1
61
- },
62
- "subsidiary_jurisdiction": {
63
- "description": "Jurisdiction of the subsidiary",
64
- "type": "string",
65
- "minLength": 1
66
- },
67
- "subsidiary_identifier": {
68
- "description": "Any unique id for the subsidiary that might be provided in the source",
69
- "type": "string"
70
- }
71
- },
72
- "additionalProperties": false,
73
- "required": [
74
- "source_url",
75
- "sample_date",
76
- "parent_name",
77
- "parent_jurisdiction",
78
- "subsidiary_name",
79
- "subsidiary_jurisdiction"
80
- ]
81
- }
@@ -1,46 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "description": "A relationship of control between two companies",
4
- "type": "object",
5
- "properties": {
6
- "sample_date": {
7
- "type": "string",
8
- "format": "date"
9
- },
10
- "start_date": {
11
- "type": "string",
12
- "format": "date"
13
- },
14
- "start_date_type": {
15
- "type": "string"
16
- },
17
- "end_date": {
18
- "type": "string",
19
- "format": "date"
20
- },
21
- "end_date_type": {
22
- "type": "string"
23
- },
24
- "source_jurisdiction": {
25
- "description": "Jurisdiction of the source of the data",
26
- "type": "string"
27
- },
28
- "company": {
29
- "$ref": "includes/company.json"
30
- },
31
- "data": {
32
- "type": "array",
33
- "description": "This is an array of data objects, that is the objects which actually contain the data about the datum. Generally there will only be one element in this, although in for some types of data_types there may naturally be several releated to the same company, e.g. shareholders",
34
- "items": {
35
- "$ref": "includes/subsidiary-relationship-data.json"
36
- },
37
- "additionalItems": false
38
- }
39
- },
40
- "additionalProperties": false,
41
- "required": [
42
- "company",
43
- "data",
44
- "sample_date"
45
- ]
46
- }