Repository navigation
Expand file tree
/
Copy pathregistry_activity_query.json
More file actions
86 lines (86 loc) · 2.02 KB
/
Copy pathregistry_activity_query.json
File metadata and controls
86 lines (86 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"from": "activity",
"select": [
"activity_id",
"name",
"summary",
"description",
"website",
"hero_image",
"image",
"activity_type",
"unit_types",
"city",
"country_id",
"multipolygon_coordinates",
"start_date",
"end_date",
"term_commitment",
"cobenefits",
"methodologies",
"monitoring_period_start_date",
"monitoring_period_end_date",
"certification_scheme_id",
"operator_id"
],
"join": [
{
"entity": "country",
"on": "country_id",
"fields": { "country_name": "country_name" }
},
{
"entity": "operator",
"on": "operator_id",
"fields": {
"operator_legal_name": "legal_name",
"operator_country_id": "country_id"
}
},
{
"entity": "certification_scheme",
"on": "certification_scheme_id",
"fields": {
"selected_certification_scheme_name": "name",
"selected_certification_scheme_version": "scheme_version_number"
}
},
{
"entity": "activity_verification",
"on": "activity_id",
"cardinality": "many",
"as": "verifications",
"fields": { "status_code": "status_code" }
},
{
"entity": "activity_media",
"on": "activity_id",
"cardinality": "many",
"as": "media",
"order": "latest_by:published_date",
"fields": {
"activity_media_id": "activity_media_id",
"title": "title",
"link": "link",
"activity_media_type": "activity_media_type",
"author": "author",
"published_date": "published_date",
"image": "image"
}
},
{
"entity": "activity_on_chain",
"on": "activity_id",
"cardinality": "at_most_one",
"pick": "latest_by:minted_at",
"fields": {
"minted_at": "minted_at",
"token_id": "token_id",
"contract_address": "contract_address",
"chain_id": "chain_id",
"tx_hash": "tx_hash"
}
}
],
"envelope": { "rows": "activities", "count": "count" }
}