Skip to content

Commit 9987eb6

Browse files
Data library (#834)
Adds support for the "Data Library", which will be a growing curated collection of authoritative data layers which are easy to add to any project. First cut at this will be focused on publishing a tree of table of contents items (layers) from the superuser project, which get updated on a periodic basis. First case study is NOAA Coral Reef Watch layers.
1 parent d9485d3 commit 9987eb6

28 files changed

+120195
-112588
lines changed

packages/api/generated-schema-clean.gql

+88
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,43 @@ type CopyAppearancePayload {
10441044
query: Query
10451045
}
10461046

1047+
"""All input for the `copyDataLibraryTemplateItem` mutation."""
1048+
input CopyDataLibraryTemplateItemInput {
1049+
"""
1050+
An arbitrary string value with no semantic meaning. Will be included in the
1051+
payload verbatim. May be used to track mutations by the client.
1052+
"""
1053+
clientMutationId: String
1054+
projectSlug: String
1055+
templateId: String
1056+
}
1057+
1058+
"""The output of our `copyDataLibraryTemplateItem` mutation."""
1059+
type CopyDataLibraryTemplateItemPayload {
1060+
"""
1061+
The exact same `clientMutationId` that was provided in the mutation input,
1062+
unchanged and unused. May be used by a client to track mutations.
1063+
"""
1064+
clientMutationId: String
1065+
1066+
"""
1067+
Reads a single `DataLayer` that is related to this `TableOfContentsItem`.
1068+
"""
1069+
dataLayer: DataLayer
1070+
1071+
"""
1072+
Our root query field type. Allows us to run any query from our mutation payload.
1073+
"""
1074+
query: Query
1075+
tableOfContentsItem: TableOfContentsItem
1076+
1077+
"""An edge for our `TableOfContentsItem`. May be used by Relay 1."""
1078+
tableOfContentsItemEdge(
1079+
"""The method to use when ordering `TableOfContentsItem`."""
1080+
orderBy: [TableOfContentsItemsOrderBy!] = [PRIMARY_KEY_ASC]
1081+
): TableOfContentsItemsEdge
1082+
}
1083+
10471084
"""All input for the `copySketchFolder` mutation."""
10481085
input CopySketchFolderInput {
10491086
"""
@@ -2642,6 +2679,7 @@ type DataSource implements Node {
26422679
"""The method to use when ordering `DataLayer`."""
26432680
orderBy: [DataLayersOrderBy!] = [PRIMARY_KEY_ASC]
26442681
): DataLayersConnection!
2682+
dataLibraryTemplateId: String
26452683

26462684
"""
26472685
Raster-DEM only. The encoding used by this source. Mapbox Terrain RGB is used by default
@@ -2912,6 +2950,7 @@ input DataSourceInput {
29122950
coordinates: [BigFloat]
29132951
createdAt: Datetime
29142952
createdBy: Int
2953+
dataLibraryTemplateId: String
29152954

29162955
"""
29172956
Raster-DEM only. The encoding used by this source. Mapbox Terrain RGB is used by default
@@ -5032,6 +5071,42 @@ type DownloadOption {
50325071
url: String
50335072
}
50345073

5074+
"""All input for the `duplicateTableOfContentsItem` mutation."""
5075+
input DuplicateTableOfContentsItemInput {
5076+
"""
5077+
An arbitrary string value with no semantic meaning. Will be included in the
5078+
payload verbatim. May be used to track mutations by the client.
5079+
"""
5080+
clientMutationId: String
5081+
itemId: Int
5082+
}
5083+
5084+
"""The output of our `duplicateTableOfContentsItem` mutation."""
5085+
type DuplicateTableOfContentsItemPayload {
5086+
"""
5087+
The exact same `clientMutationId` that was provided in the mutation input,
5088+
unchanged and unused. May be used by a client to track mutations.
5089+
"""
5090+
clientMutationId: String
5091+
5092+
"""
5093+
Reads a single `DataLayer` that is related to this `TableOfContentsItem`.
5094+
"""
5095+
dataLayer: DataLayer
5096+
5097+
"""
5098+
Our root query field type. Allows us to run any query from our mutation payload.
5099+
"""
5100+
query: Query
5101+
tableOfContentsItem: TableOfContentsItem
5102+
5103+
"""An edge for our `TableOfContentsItem`. May be used by Relay 1."""
5104+
tableOfContentsItemEdge(
5105+
"""The method to use when ordering `TableOfContentsItem`."""
5106+
orderBy: [TableOfContentsItemsOrderBy!] = [PRIMARY_KEY_ASC]
5107+
): TableOfContentsItemsEdge
5108+
}
5109+
50355110
scalar Email
50365111

50375112
"""
@@ -7752,6 +7827,12 @@ type Mutation {
77527827
"""
77537828
input: CopyAppearanceInput!
77547829
): CopyAppearancePayload
7830+
copyDataLibraryTemplateItem(
7831+
"""
7832+
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
7833+
"""
7834+
input: CopyDataLibraryTemplateItemInput!
7835+
): CopyDataLibraryTemplateItemPayload
77557836
copySketch(
77567837
"""
77577838
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
@@ -8539,6 +8620,12 @@ type Mutation {
85398620
"""
85408621
input: DismissFailedJobInput!
85418622
): DismissFailedJobPayload
8623+
duplicateTableOfContentsItem(
8624+
"""
8625+
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
8626+
"""
8627+
input: DuplicateTableOfContentsItemInput!
8628+
): DuplicateTableOfContentsItemPayload
85428629
enableDownloadForEligibleLayers(
85438630
"""
85448631
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
@@ -14270,6 +14357,7 @@ type TableOfContentsItem implements Node {
1427014357
"""
1427114358
computedMetadata: JSON
1427214359
containedBy: [TableOfContentsItem]
14360+
copiedFromDataLibraryTemplateId: String
1427314361

1427414362
"""
1427514363
Reads a single `DataLayer` that is related to this `TableOfContentsItem`.

packages/api/generated-schema.gql

+88
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,43 @@ type CopyAppearancePayload {
10441044
query: Query
10451045
}
10461046

1047+
"""All input for the `copyDataLibraryTemplateItem` mutation."""
1048+
input CopyDataLibraryTemplateItemInput {
1049+
"""
1050+
An arbitrary string value with no semantic meaning. Will be included in the
1051+
payload verbatim. May be used to track mutations by the client.
1052+
"""
1053+
clientMutationId: String
1054+
projectSlug: String
1055+
templateId: String
1056+
}
1057+
1058+
"""The output of our `copyDataLibraryTemplateItem` mutation."""
1059+
type CopyDataLibraryTemplateItemPayload {
1060+
"""
1061+
The exact same `clientMutationId` that was provided in the mutation input,
1062+
unchanged and unused. May be used by a client to track mutations.
1063+
"""
1064+
clientMutationId: String
1065+
1066+
"""
1067+
Reads a single `DataLayer` that is related to this `TableOfContentsItem`.
1068+
"""
1069+
dataLayer: DataLayer
1070+
1071+
"""
1072+
Our root query field type. Allows us to run any query from our mutation payload.
1073+
"""
1074+
query: Query
1075+
tableOfContentsItem: TableOfContentsItem
1076+
1077+
"""An edge for our `TableOfContentsItem`. May be used by Relay 1."""
1078+
tableOfContentsItemEdge(
1079+
"""The method to use when ordering `TableOfContentsItem`."""
1080+
orderBy: [TableOfContentsItemsOrderBy!] = [PRIMARY_KEY_ASC]
1081+
): TableOfContentsItemsEdge
1082+
}
1083+
10471084
"""All input for the `copySketchFolder` mutation."""
10481085
input CopySketchFolderInput {
10491086
"""
@@ -2642,6 +2679,7 @@ type DataSource implements Node {
26422679
"""The method to use when ordering `DataLayer`."""
26432680
orderBy: [DataLayersOrderBy!] = [PRIMARY_KEY_ASC]
26442681
): DataLayersConnection!
2682+
dataLibraryTemplateId: String
26452683

26462684
"""
26472685
Raster-DEM only. The encoding used by this source. Mapbox Terrain RGB is used by default
@@ -2912,6 +2950,7 @@ input DataSourceInput {
29122950
coordinates: [BigFloat]
29132951
createdAt: Datetime
29142952
createdBy: Int
2953+
dataLibraryTemplateId: String
29152954

29162955
"""
29172956
Raster-DEM only. The encoding used by this source. Mapbox Terrain RGB is used by default
@@ -5032,6 +5071,42 @@ type DownloadOption {
50325071
url: String
50335072
}
50345073

5074+
"""All input for the `duplicateTableOfContentsItem` mutation."""
5075+
input DuplicateTableOfContentsItemInput {
5076+
"""
5077+
An arbitrary string value with no semantic meaning. Will be included in the
5078+
payload verbatim. May be used to track mutations by the client.
5079+
"""
5080+
clientMutationId: String
5081+
itemId: Int
5082+
}
5083+
5084+
"""The output of our `duplicateTableOfContentsItem` mutation."""
5085+
type DuplicateTableOfContentsItemPayload {
5086+
"""
5087+
The exact same `clientMutationId` that was provided in the mutation input,
5088+
unchanged and unused. May be used by a client to track mutations.
5089+
"""
5090+
clientMutationId: String
5091+
5092+
"""
5093+
Reads a single `DataLayer` that is related to this `TableOfContentsItem`.
5094+
"""
5095+
dataLayer: DataLayer
5096+
5097+
"""
5098+
Our root query field type. Allows us to run any query from our mutation payload.
5099+
"""
5100+
query: Query
5101+
tableOfContentsItem: TableOfContentsItem
5102+
5103+
"""An edge for our `TableOfContentsItem`. May be used by Relay 1."""
5104+
tableOfContentsItemEdge(
5105+
"""The method to use when ordering `TableOfContentsItem`."""
5106+
orderBy: [TableOfContentsItemsOrderBy!] = [PRIMARY_KEY_ASC]
5107+
): TableOfContentsItemsEdge
5108+
}
5109+
50355110
scalar Email
50365111

50375112
"""
@@ -7752,6 +7827,12 @@ type Mutation {
77527827
"""
77537828
input: CopyAppearanceInput!
77547829
): CopyAppearancePayload
7830+
copyDataLibraryTemplateItem(
7831+
"""
7832+
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
7833+
"""
7834+
input: CopyDataLibraryTemplateItemInput!
7835+
): CopyDataLibraryTemplateItemPayload
77557836
copySketch(
77567837
"""
77577838
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
@@ -8539,6 +8620,12 @@ type Mutation {
85398620
"""
85408621
input: DismissFailedJobInput!
85418622
): DismissFailedJobPayload
8623+
duplicateTableOfContentsItem(
8624+
"""
8625+
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
8626+
"""
8627+
input: DuplicateTableOfContentsItemInput!
8628+
): DuplicateTableOfContentsItemPayload
85428629
enableDownloadForEligibleLayers(
85438630
"""
85448631
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
@@ -14270,6 +14357,7 @@ type TableOfContentsItem implements Node {
1427014357
"""
1427114358
computedMetadata: JSON
1427214359
containedBy: [TableOfContentsItem]
14360+
copiedFromDataLibraryTemplateId: String
1427314361

1427414362
"""
1427514363
Reads a single `DataLayer` that is related to this `TableOfContentsItem`.

0 commit comments

Comments
 (0)