Skip to content

Commit 79b93d8

Browse files
Update schema definition after recent API changes
** Why are these changes being introduced: The TIMDEX API has made some recent changes to its schema, which need to be reflected in this UI app as well. ** Relevant ticket(s): n/a (Should there be a ticket for this?) ** How does this address that need: This runs the console command in the UI app to update schema.json, ** Document any side effects to this change: Some in-progress branches which have incorporated these changes on their own will need to be tweaked to remove the diff from their scopes.
1 parent 5c22a52 commit 79b93d8

File tree

1 file changed

+240
-25
lines changed

1 file changed

+240
-25
lines changed

config/schema/schema.json

Lines changed: 240 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,28 @@
163163
"isDeprecated": false,
164164
"deprecationReason": null
165165
},
166+
{
167+
"name": "places",
168+
"description": "Total search results by Place (which is a subject with type `Dublin Core; Spatial`)",
169+
"args": [
170+
171+
],
172+
"type": {
173+
"kind": "LIST",
174+
"name": null,
175+
"ofType": {
176+
"kind": "NON_NULL",
177+
"name": null,
178+
"ofType": {
179+
"kind": "OBJECT",
180+
"name": "AggregationCount",
181+
"ofType": null
182+
}
183+
}
184+
},
185+
"isDeprecated": false,
186+
"deprecationReason": null
187+
},
166188
{
167189
"name": "source",
168190
"description": "Total search results by source record system",
@@ -483,6 +505,16 @@
483505
"enumValues": null,
484506
"possibleTypes": null
485507
},
508+
{
509+
"kind": "SCALAR",
510+
"name": "Float",
511+
"description": "Represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",
512+
"fields": null,
513+
"inputFields": null,
514+
"interfaces": null,
515+
"enumValues": null,
516+
"possibleTypes": null
517+
},
486518
{
487519
"kind": "OBJECT",
488520
"name": "Funding",
@@ -566,6 +598,126 @@
566598
"enumValues": null,
567599
"possibleTypes": null
568600
},
601+
{
602+
"kind": "INPUT_OBJECT",
603+
"name": "Geobox",
604+
"description": "Search within a box specified by pairs of latitudes and longitudes. Their order should be left, bottom, right, top",
605+
"fields": null,
606+
"inputFields": [
607+
{
608+
"name": "minLongitude",
609+
"description": "A decimal between -180.0 and 180.0 (Western hemisphere is negative)",
610+
"type": {
611+
"kind": "NON_NULL",
612+
"name": null,
613+
"ofType": {
614+
"kind": "SCALAR",
615+
"name": "Float",
616+
"ofType": null
617+
}
618+
},
619+
"defaultValue": null
620+
},
621+
{
622+
"name": "minLatitude",
623+
"description": "A decimal between -90.0 and 90.0 (Southern hemisphere is negative)",
624+
"type": {
625+
"kind": "NON_NULL",
626+
"name": null,
627+
"ofType": {
628+
"kind": "SCALAR",
629+
"name": "Float",
630+
"ofType": null
631+
}
632+
},
633+
"defaultValue": null
634+
},
635+
{
636+
"name": "maxLongitude",
637+
"description": "A decimal between -180.0 and 180.0 (Western hemisphere is negative)",
638+
"type": {
639+
"kind": "NON_NULL",
640+
"name": null,
641+
"ofType": {
642+
"kind": "SCALAR",
643+
"name": "Float",
644+
"ofType": null
645+
}
646+
},
647+
"defaultValue": null
648+
},
649+
{
650+
"name": "maxLatitude",
651+
"description": "A decimal between -90.0 and 90.0 (Southern hemisphere is negative)",
652+
"type": {
653+
"kind": "NON_NULL",
654+
"name": null,
655+
"ofType": {
656+
"kind": "SCALAR",
657+
"name": "Float",
658+
"ofType": null
659+
}
660+
},
661+
"defaultValue": null
662+
}
663+
],
664+
"interfaces": null,
665+
"enumValues": null,
666+
"possibleTypes": null
667+
},
668+
{
669+
"kind": "INPUT_OBJECT",
670+
"name": "Geodistance",
671+
"description": "Search within a certain distance of a given latitude and longitude",
672+
"fields": null,
673+
"inputFields": [
674+
{
675+
"name": "distance",
676+
"description": "Search distance to the location? (include units; i.e. \"100km\" or \"50mi\")",
677+
"type": {
678+
"kind": "NON_NULL",
679+
"name": null,
680+
"ofType": {
681+
"kind": "SCALAR",
682+
"name": "String",
683+
"ofType": null
684+
}
685+
},
686+
"defaultValue": null
687+
},
688+
{
689+
"name": "latitude",
690+
"description": "A decimal between -90.0 and 90.0 (Southern hemisphere is negative)",
691+
"type": {
692+
"kind": "NON_NULL",
693+
"name": null,
694+
"ofType": {
695+
"kind": "SCALAR",
696+
"name": "Float",
697+
"ofType": null
698+
}
699+
},
700+
"defaultValue": null
701+
},
702+
{
703+
"name": "longitude",
704+
"description": "A decimal between -180.0 and 180.0 (Western hemisphere is negative)",
705+
"type": {
706+
"kind": "NON_NULL",
707+
"name": null,
708+
"ofType": {
709+
"kind": "SCALAR",
710+
"name": "Float",
711+
"ofType": null
712+
}
713+
},
714+
"defaultValue": null
715+
}
716+
],
717+
"interfaces": null,
718+
"enumValues": null,
719+
"possibleTypes": null
720+
},
569721
{
570722
"kind": "OBJECT",
571723
"name": "Highlight",
@@ -669,13 +821,9 @@
669821

670822
],
671823
"type": {
672-
"kind": "NON_NULL",
673-
"name": null,
674-
"ofType": {
675-
"kind": "SCALAR",
676-
"name": "String",
677-
"ofType": null
678-
}
824+
"kind": "SCALAR",
825+
"name": "String",
826+
"ofType": null
679827
},
680828
"isDeprecated": false,
681829
"deprecationReason": null
@@ -932,7 +1080,21 @@
9321080
"fields": [
9331081
{
9341082
"name": "geopoint",
935-
"description": "GeoPoint data for the location, if applicable",
1083+
"description": null,
1084+
"args": [
1085+
1086+
],
1087+
"type": {
1088+
"kind": "SCALAR",
1089+
"name": "String",
1090+
"ofType": null
1091+
},
1092+
"isDeprecated": true,
1093+
"deprecationReason": "Use `geoshape`"
1094+
},
1095+
{
1096+
"name": "geoshape",
1097+
"description": "GeoShape data for the location, if applicable",
9361098
"args": [
9371099

9381100
],
@@ -1155,6 +1317,26 @@
11551317
},
11561318
"defaultValue": "null"
11571319
},
1320+
{
1321+
"name": "geodistance",
1322+
"description": "Search within a certain distance of a specific location",
1323+
"type": {
1324+
"kind": "INPUT_OBJECT",
1325+
"name": "Geodistance",
1326+
"ofType": null
1327+
},
1328+
"defaultValue": "null"
1329+
},
1330+
{
1331+
"name": "geobox",
1332+
"description": "Search within a specified box",
1333+
"type": {
1334+
"kind": "INPUT_OBJECT",
1335+
"name": "Geobox",
1336+
"ofType": null
1337+
},
1338+
"defaultValue": "null"
1339+
},
11581340
{
11591341
"name": "identifiers",
11601342
"description": "Search by unique indentifier; e.g., ISBN, DOI, etc.",
@@ -1217,7 +1399,7 @@
12171399
},
12181400
{
12191401
"name": "contentTypeFilter",
1220-
"description": "Filter results by content type. Use the `contentType` aggregation for a list of possible values",
1402+
"description": "Filter results by content type. Use the `contentType` aggregation for a list of possible values. Multiple values are ANDed.",
12211403
"type": {
12221404
"kind": "LIST",
12231405
"name": null,
@@ -1235,7 +1417,7 @@
12351417
},
12361418
{
12371419
"name": "contributorsFilter",
1238-
"description": "Filter results by contributor. Use the `contributors` aggregation for a list of possible values",
1420+
"description": "Filter results by contributor. Use the `contributors` aggregation for a list of possible values. Multiple values are ANDed.",
12391421
"type": {
12401422
"kind": "LIST",
12411423
"name": null,
@@ -1253,7 +1435,7 @@
12531435
},
12541436
{
12551437
"name": "formatFilter",
1256-
"description": "Filter results by format. Use the `format` aggregation for a list of possible values",
1438+
"description": "Filter results by format. Use the `format` aggregation for a list of possible values. Multiple values are ANDed.",
12571439
"type": {
12581440
"kind": "LIST",
12591441
"name": null,
@@ -1271,7 +1453,7 @@
12711453
},
12721454
{
12731455
"name": "languagesFilter",
1274-
"description": "Filter results by language. Use the `languages` aggregation for a list of possible values",
1456+
"description": "Filter results by language. Use the `languages` aggregation for a list of possible values. Multiple values are ANDed.",
12751457
"type": {
12761458
"kind": "LIST",
12771459
"name": null,
@@ -1297,9 +1479,27 @@
12971479
},
12981480
"defaultValue": "null"
12991481
},
1482+
{
1483+
"name": "placesFilter",
1484+
"description": "Filter by places. Use the `places` aggregation for a list of possible values. Multiple values are ANDed.",
1485+
"type": {
1486+
"kind": "LIST",
1487+
"name": null,
1488+
"ofType": {
1489+
"kind": "NON_NULL",
1490+
"name": null,
1491+
"ofType": {
1492+
"kind": "SCALAR",
1493+
"name": "String",
1494+
"ofType": null
1495+
}
1496+
}
1497+
},
1498+
"defaultValue": "null"
1499+
},
13001500
{
13011501
"name": "sourceFilter",
1302-
"description": "Filter by source record system. Use the `sources` aggregation for a list of possible values",
1502+
"description": "Filter by source record system. Use the `sources` aggregation for a list of possible values. Multiple values are ORed.",
13031503
"type": {
13041504
"kind": "LIST",
13051505
"name": null,
@@ -1317,7 +1517,7 @@
13171517
},
13181518
{
13191519
"name": "subjectsFilter",
1320-
"description": "Filter by subject terms. Use the `contentType` aggregation for a list of possible values",
1520+
"description": "Filter by subject terms. Use the `contentType` aggregation for a list of possible values. Multiple values are ANDed.",
13211521
"type": {
13221522
"kind": "LIST",
13231523
"name": null,
@@ -1570,17 +1770,9 @@
15701770

15711771
],
15721772
"type": {
1573-
"kind": "LIST",
1574-
"name": null,
1575-
"ofType": {
1576-
"kind": "NON_NULL",
1577-
"name": null,
1578-
"ofType": {
1579-
"kind": "SCALAR",
1580-
"name": "String",
1581-
"ofType": null
1582-
}
1583-
}
1773+
"kind": "SCALAR",
1774+
"name": "String",
1775+
"ofType": null
15841776
},
15851777
"isDeprecated": false,
15861778
"deprecationReason": null
@@ -3698,6 +3890,29 @@
36983890
"args": [
36993891

37003892
]
3893+
},
3894+
{
3895+
"name": "specifiedBy",
3896+
"description": "Exposes a URL that specifies the behavior of this scalar.",
3897+
"locations": [
3898+
"SCALAR"
3899+
],
3900+
"args": [
3901+
{
3902+
"name": "url",
3903+
"description": "The URL that specifies the behavior of this scalar.",
3904+
"type": {
3905+
"kind": "NON_NULL",
3906+
"name": null,
3907+
"ofType": {
3908+
"kind": "SCALAR",
3909+
"name": "String",
3910+
"ofType": null
3911+
}
3912+
},
3913+
"defaultValue": null
3914+
}
3915+
]
37013916
}
37023917
]
37033918
}

0 commit comments

Comments
 (0)