@riverscapes/common 2.0.10 → 2.0.11

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.
@@ -482,14 +482,27 @@ type MapCluster {
482
482
  }
483
483
 
484
484
  type MetaData {
485
+ ext: MetaDataExtEnum
485
486
  key: String!
486
487
  locked: Boolean
487
488
  type: MetaDataTypeEnum
488
489
  value: String!
489
490
  }
490
491
 
492
+ enum MetaDataExtEnum {
493
+ DATASET
494
+ PROJECT
495
+ WAREHOUSE
496
+ }
497
+
491
498
  """When submitting metadata use this object"""
492
499
  input MetaDataInput {
500
+ """
501
+ If this metadata was impored from an external project then list what kind of MetaData it is.
502
+ Options: PROJECT, DATASET, WAREHOUSE
503
+ """
504
+ ext: MetaDataExtEnum
505
+
493
506
  """Metadata key string"""
494
507
  key: String!
495
508
 
@@ -1043,6 +1056,7 @@ type Project implements DBObj & HasOwner & HasStar {
1043
1056
  createdBy: User!
1044
1057
  createdOn: DateTime!
1045
1058
  datasets(limit: Int!, offset: Int!, sort: [SearchSortEnum!]): PaginatedDatasets!
1059
+ deleted: Boolean!
1046
1060
  description: String!
1047
1061
  files: [FileDownloadMeta!]!
1048
1062
 
@@ -1570,7 +1584,7 @@ type Query {
1570
1584
  - etags: a string list of etags (S3 analog to MD5) for each file. List size must match "files: [String!]!"
1571
1585
  - sizes: a string list of file sizes (S3 analog to MD5) for each file. List size must match "files: [String!]!"
1572
1586
  - noDelete: indicates that we do NOT want to touch remote files that are not also present on the local server
1573
- - tags: a list of tags to add to the project (these are the warehouse tags)
1587
+ - tags: a list of tags to add to the project (these are the data exchange tags)
1574
1588
  - visibility: the visibility of the project. Defaults to PUBLIC
1575
1589
  """
1576
1590
  requestUploadProject(etags: [String!]!, files: [String!]!, noDelete: Boolean, owner: OwnerInput, projectId: String, sizes: [BigInt!]!, tags: [String!], token: String, visibility: ProjectVisibilityEnum): UploadProjectRequest
@@ -1581,7 +1595,7 @@ type Query {
1581
1595
  """
1582
1596
  requestUploadProjectFilesUrl(files: [String!]!, token: String!): [UploadProjectFileUrls]
1583
1597
  savedSearch(id: ID!): SavedSearch
1584
- searchCollections(limit: Int!, offset: Int!, params: SearchParamsInput!, sort: [SearchSortEnum!]): SearchCollectionPagination!
1598
+ searchCollections(limit: Int!, minScore: Float, offset: Int!, params: SearchParamsInput!, sort: [SearchSortEnum!]): SearchCollectionPagination!
1585
1599
 
1586
1600
  """
1587
1601
  This is a complementary search to "searchProjects". It can be run with essentially the same
@@ -1590,24 +1604,24 @@ type Query {
1590
1604
  Note: params.bbox MUST be included for the searchProjectsMap
1591
1605
  clusters: the number of clusters we should aim for
1592
1606
  """
1593
- searchMapBounds(limit: Int!, params: ProjectSearchParamsInput!): SearchMapBoundsResult!
1607
+ searchMapBounds(limit: Int!, minScore: Float, params: ProjectSearchParamsInput!): SearchMapBoundsResult!
1594
1608
 
1595
1609
  """
1596
1610
  Discussion here https://github.com/Riverscapes/rs-web-monorepo/discussions/251
1597
1611
  limit: the maximum number of clusters to get back. After this number the list is truncated and any remaining projects are simply represented by the "remaining" property
1598
1612
  precision: The size of the grid to place the clusters on. We use npm's ngeohash for gridding
1599
1613
  """
1600
- searchMapClusters(limit: Int!, params: ProjectSearchParamsInput!, precision: Int!): SearchMapClusterResult!
1601
- searchOrganizations(limit: Int!, offset: Int!, params: SearchParamsInput!, sort: [SearchSortEnum!]): SearchOrganizationPagination!
1602
- searchProjects(limit: Int!, offset: Int!, params: ProjectSearchParamsInput!, sort: [SearchSortEnum!]): SearchProjectPagination!
1603
- searchSavedSearches(limit: Int!, offset: Int!, params: SearchParamsInput!, sort: [SearchSortEnum!]): SearchSavedSearchPagination!
1614
+ searchMapClusters(limit: Int!, minScore: Float, params: ProjectSearchParamsInput!, precision: Int!): SearchMapClusterResult!
1615
+ searchOrganizations(limit: Int!, minScore: Float, offset: Int!, params: SearchParamsInput!, sort: [SearchSortEnum!]): SearchOrganizationPagination!
1616
+ searchProjects(limit: Int!, minScore: Float, offset: Int!, params: ProjectSearchParamsInput!, sort: [SearchSortEnum!]): SearchProjectPagination!
1617
+ searchSavedSearches(limit: Int!, minScore: Float, offset: Int!, params: SearchParamsInput!, sort: [SearchSortEnum!]): SearchSavedSearchPagination!
1604
1618
 
1605
1619
  """
1606
1620
  As-you-type suggestions:
1607
1621
  TODO: this needs to be typed but for now it's just pure JSON
1608
1622
  """
1609
- searchSuggest(text: String!, type: StarrableTypesEnum): SearchSuggestionResults
1610
- searchUsers(limit: Int!, offset: Int!, params: SearchParamsInput!, sort: [SearchSortEnum!]): SearchUserPagination!
1623
+ searchSuggest(minScore: Float, text: String!, type: StarrableTypesEnum): SearchSuggestionResults
1624
+ searchUsers(limit: Int!, minScore: Float, offset: Int!, params: SearchParamsInput!, sort: [SearchSortEnum!]): SearchUserPagination!
1611
1625
 
1612
1626
  """A User is any user in the system"""
1613
1627
  user(id: ID!): User
@@ -2202,7 +2216,7 @@ type UploadUrl {
2202
2216
 
2203
2217
  """A User object is any user in the system"""
2204
2218
  type User implements DBObj & UserInterface {
2205
- """User affiliations (usually external to the warehouse)"""
2219
+ """User affiliations (usually external to the data exchange)"""
2206
2220
  affiliations: [UserAffiliation]!
2207
2221
  avatar: URL
2208
2222
 
@@ -2247,7 +2261,7 @@ type UserAffiliation {
2247
2261
  affiliationRole: String
2248
2262
 
2249
2263
  """
2250
- Name of the affiliated entity or organization. Can be external to the warehouse
2264
+ Name of the affiliated entity or organization. Can be external to the data exchange
2251
2265
  """
2252
2266
  name: String!
2253
2267
 
@@ -2260,7 +2274,7 @@ input UserAffiliationInput {
2260
2274
  affiliationRole: String
2261
2275
 
2262
2276
  """
2263
- Name of the affiliated entity or organization. Can be external to the warehouse
2277
+ Name of the affiliated entity or organization. Can be external to the data exchange
2264
2278
  """
2265
2279
  name: String!
2266
2280
 
package/dist/types.d.ts CHANGED
@@ -51,14 +51,13 @@ export type BusinessLogicNode = {
51
51
  export declare const SQSJobEngineEnum: {
52
52
  readonly TILERIZER: "TILERIZER";
53
53
  readonly JANITOR: "JANITOR";
54
- readonly UPLOADER: "UPLOADER";
55
54
  readonly ZIPPER: "ZIPPER";
56
55
  };
57
56
  export type SQSJobEngineEnum = ObjectValues<typeof SQSJobEngineEnum>;
58
57
  export type SQSJob = {
59
58
  engine: SQSJobEngineEnum;
60
59
  projectId: string;
61
- projectType: string;
60
+ projectType: string | null;
62
61
  key: string;
63
62
  etag?: string;
64
63
  rsXPath?: string;
package/dist/types.js CHANGED
@@ -4,7 +4,6 @@ exports.SQSJobEngineEnum = void 0;
4
4
  exports.SQSJobEngineEnum = {
5
5
  TILERIZER: 'TILERIZER',
6
6
  JANITOR: 'JANITOR',
7
- UPLOADER: 'UPLOADER',
8
7
  ZIPPER: 'ZIPPER',
9
8
  };
10
9
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAuEa,QAAA,gBAAgB,GAAG;IAC9B,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAA"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAuEa,QAAA,gBAAgB,GAAG;IAC9B,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riverscapes/common",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Common elements to all riverscapes tools (client and server)",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -40,5 +40,5 @@
40
40
  "ts-jest": "*",
41
41
  "typescript": "*"
42
42
  },
43
- "gitHead": "198232f0eadfdb35a2ddc20947c768ab180bb316"
43
+ "gitHead": "14899fec243320e529c044f42d8378dff774356f"
44
44
  }