@apollo-annotation/common 0.3.7 → 0.3.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apollo-annotation/common",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/GMOD/Apollo3.git",
@@ -11,23 +11,24 @@
11
11
  "build": "tsc"
12
12
  },
13
13
  "dependencies": {
14
- "@apollo-annotation/schemas": "^0.3.7",
15
- "@jbrowse/core": "^3.0.1",
14
+ "@apollo-annotation/schemas": "^0.3.9",
15
+ "@jbrowse/core": "^3.6.5",
16
16
  "bson-objectid": "^2.0.4",
17
17
  "tslib": "^2.3.1"
18
18
  },
19
19
  "devDependencies": {
20
- "@apollo-annotation/mst": "^0.3.7",
20
+ "@apollo-annotation/mst": "^0.3.9",
21
+ "@gmod/gff": "^2.0.0",
21
22
  "@nestjs/common": "^10.1.0",
22
23
  "@nestjs/core": "^10.1.0",
23
- "@types/node": "^18.14.2",
24
+ "@types/node": "^20.19.15",
24
25
  "generic-filehandle": "^3.0.0",
25
26
  "mongoose": "^6.12.0",
26
27
  "typescript": "^5.5.3"
27
28
  },
28
29
  "peerDependencies": {
29
- "@mui/material": "^6.0.0",
30
- "@mui/x-data-grid": "^7.0.0",
30
+ "@mui/material": "^7.0.0",
31
+ "@mui/x-data-grid": "^8.0.0",
31
32
  "mobx": "^6.6.1",
32
33
  "mobx-react": "^7.2.1",
33
34
  "mobx-state-tree": "^5.4.0",
package/src/Change.ts CHANGED
@@ -27,7 +27,7 @@ export interface ClientDataStore {
27
27
  assemblyName?: string,
28
28
  internetAccountId?: string,
29
29
  ): AppRootModel['internetAccounts'][0]
30
- loadFeatures(regions: Region[]): void
30
+ loadFeatures(regions: Region[]): Promise<void>
31
31
  loadRefSeq(regions: Region[]): void
32
32
  getFeature(featureId: string): AnnotationFeature | undefined
33
33
  addFeature(assemblyId: string, feature: AnnotationFeatureSnapshot): void
package/src/Check.ts CHANGED
@@ -7,6 +7,7 @@ export abstract class Check {
7
7
  abstract name: string
8
8
  abstract version: number
9
9
  abstract causes: string[]
10
+ abstract isDefault: boolean
10
11
 
11
12
  abstract checkFeature(
12
13
  feature: AnnotationFeatureSnapshot,
package/src/Operation.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-confusing-void-expression */
2
2
  /* eslint-disable @typescript-eslint/no-unnecessary-condition */
3
3
  /* eslint-disable @typescript-eslint/restrict-template-expressions */
4
- import { type ReadStream } from 'node:fs'
5
4
  import { type FileHandle } from 'node:fs/promises'
6
5
 
7
6
  import {
@@ -14,6 +13,7 @@ import {
14
13
  type RefSeqDocument,
15
14
  type UserDocument,
16
15
  } from '@apollo-annotation/schemas'
16
+ import { type GFF3Feature } from '@gmod/gff'
17
17
  import { type LoggerService } from '@nestjs/common'
18
18
  import { type GenericFilehandle } from 'generic-filehandle'
19
19
  import { type ClientSession, type Model } from 'mongoose'
@@ -43,9 +43,12 @@ export interface ServerDataStore {
43
43
  jbrowseConfigModel: Model<JBrowseConfigDocument>
44
44
  session: ClientSession
45
45
  filesService: {
46
- getFileStream(file: FileDocument): ReadStream
46
+ getFileStream(file: FileDocument): ReadableStream<Uint8Array>
47
47
  getFileHandle(file: FileDocument): GenericFilehandle
48
- parseGFF3(stream: ReadStream): ReadStream
48
+ parseGFF3(
49
+ stream: ReadableStream<Uint8Array>,
50
+ parseOptions?: { bufferSize?: number },
51
+ ): ReadableStream<GFF3Feature>
49
52
  create(createFileDto: CreateFileDto): void
50
53
  remove(id: string): void
51
54
  }