@apollo-annotation/common 0.3.4 → 0.3.6

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.4",
3
+ "version": "0.3.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/GMOD/Apollo3.git",
@@ -11,13 +11,13 @@
11
11
  "build": "tsc"
12
12
  },
13
13
  "dependencies": {
14
- "@apollo-annotation/schemas": "^0.3.4",
14
+ "@apollo-annotation/schemas": "^0.3.6",
15
15
  "@jbrowse/core": "^3.0.1",
16
16
  "bson-objectid": "^2.0.4",
17
17
  "tslib": "^2.3.1"
18
18
  },
19
19
  "devDependencies": {
20
- "@apollo-annotation/mst": "^0.3.4",
20
+ "@apollo-annotation/mst": "^0.3.6",
21
21
  "@nestjs/common": "^10.1.0",
22
22
  "@nestjs/core": "^10.1.0",
23
23
  "@types/node": "^18.14.2",
@@ -1,5 +1,5 @@
1
1
  import Plugin from '@jbrowse/core/Plugin'
2
- import PluginManager from '@jbrowse/core/PluginManager'
2
+ import type PluginManager from '@jbrowse/core/PluginManager'
3
3
 
4
4
  export type ApolloPluginConstructor = new (...args: unknown[]) => ApolloPlugin
5
5
 
@@ -1,5 +1,10 @@
1
1
  /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
- import { Change, ChangeOptions, SerializedChange, isChange } from './Change'
2
+ import {
3
+ Change,
4
+ type ChangeOptions,
5
+ type SerializedChange,
6
+ isChange,
7
+ } from './Change'
3
8
 
4
9
  export interface SerializedAssemblySpecificChange extends SerializedChange {
5
10
  assembly: string
package/src/Change.ts CHANGED
@@ -1,21 +1,21 @@
1
1
  /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
2
  /* eslint-disable @typescript-eslint/restrict-template-expressions */
3
3
  import {
4
- AnnotationFeature,
5
- AnnotationFeatureSnapshot,
6
- ApolloAssemblyI,
7
- BackendDriverType,
8
- CheckResultI,
9
- CheckResultSnapshot,
4
+ type AnnotationFeature,
5
+ type AnnotationFeatureSnapshot,
6
+ type ApolloAssemblyI,
7
+ type BackendDriverType,
8
+ type CheckResultI,
9
+ type CheckResultSnapshot,
10
10
  } from '@apollo-annotation/mst'
11
- import { AppRootModel, Region } from '@jbrowse/core/util'
11
+ import { type AppRootModel, type Region } from '@jbrowse/core/util'
12
12
 
13
13
  import { changeRegistry } from './ChangeTypeRegistry'
14
14
  import {
15
- BackendDataStore,
15
+ type BackendDataStore,
16
16
  Operation,
17
- OperationOptions,
18
- SerializedOperation,
17
+ type OperationOptions,
18
+ type SerializedOperation,
19
19
  } from './Operation'
20
20
 
21
21
  export interface ClientDataStore {
@@ -1,4 +1,4 @@
1
- import { Change } from './Change'
1
+ import { type Change } from './Change'
2
2
 
3
3
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4
4
  type ChangeType = new (...args: any[]) => Change
package/src/Check.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import {
2
- AnnotationFeatureSnapshot,
3
- CheckResultSnapshot,
2
+ type AnnotationFeatureSnapshot,
3
+ type CheckResultSnapshot,
4
4
  } from '@apollo-annotation/mst'
5
5
 
6
6
  export abstract class Check {
7
7
  abstract name: string
8
8
  abstract version: number
9
+ abstract causes: string[]
9
10
 
10
11
  abstract checkFeature(
11
12
  feature: AnnotationFeatureSnapshot,
@@ -1,4 +1,4 @@
1
- import { Check } from './Check'
1
+ import { type Check } from './Check'
2
2
 
3
3
  class CheckRegistry {
4
4
  checks = new Map<string, Check>()
@@ -1,16 +1,16 @@
1
1
  /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
2
  /* eslint-disable @typescript-eslint/no-unsafe-argument */
3
- import type { AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
4
- import { Feature } from '@apollo-annotation/schemas'
3
+ import { type AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
4
+ import { type Feature } from '@apollo-annotation/schemas'
5
5
  import ObjectID from 'bson-objectid'
6
- import type { Types } from 'mongoose'
6
+ import { type Types } from 'mongoose'
7
7
 
8
8
  import {
9
9
  AssemblySpecificChange,
10
- SerializedAssemblySpecificChange,
10
+ type SerializedAssemblySpecificChange,
11
11
  isAssemblySpecificChange,
12
12
  } from './AssemblySpecificChange'
13
- import { ChangeOptions } from './Change'
13
+ import { type ChangeOptions } from './Change'
14
14
 
15
15
  export interface SerializedFeatureChange
16
16
  extends SerializedAssemblySpecificChange {
@@ -109,6 +109,7 @@ export abstract class FeatureChange extends AssemblySpecificChange {
109
109
  : (feature.refSeq as unknown as Types.ObjectId).toHexString()
110
110
 
111
111
  return {
112
+ // eslint-disable-next-line @typescript-eslint/no-misused-spread
112
113
  ...feature,
113
114
  refSeq,
114
115
  children: feature.children && children,
package/src/Operation.ts CHANGED
@@ -1,22 +1,22 @@
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
- import type { FileHandle } from 'node:fs/promises'
4
+ import { type ReadStream } from 'node:fs'
5
+ import { type FileHandle } from 'node:fs/promises'
6
6
 
7
7
  import {
8
- AssemblyDocument,
9
- FeatureDocument,
10
- FileDocument,
11
- RefSeqChunkDocument,
12
- RefSeqDocument,
13
- JBrowseConfigDocument,
14
- UserDocument,
15
- CheckDocument,
8
+ type AssemblyDocument,
9
+ type CheckDocument,
10
+ type FeatureDocument,
11
+ type FileDocument,
12
+ type JBrowseConfigDocument,
13
+ type RefSeqChunkDocument,
14
+ type RefSeqDocument,
15
+ type UserDocument,
16
16
  } from '@apollo-annotation/schemas'
17
- import type { LoggerService } from '@nestjs/common'
18
- import type { ClientSession, Model } from 'mongoose'
19
- import { GenericFilehandle } from 'generic-filehandle'
17
+ import { type LoggerService } from '@nestjs/common'
18
+ import { type GenericFilehandle } from 'generic-filehandle'
19
+ import { type ClientSession, type Model } from 'mongoose'
20
20
 
21
21
  export interface LocalGFF3DataStore {
22
22
  typeName: 'LocalGFF3'
@@ -1,4 +1,4 @@
1
- import { Operation } from './Operation'
1
+ import { type Operation } from './Operation'
2
2
 
3
3
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4
4
  type OperationType = new (...args: any[]) => Operation
package/src/Validation.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /* eslint-disable @typescript-eslint/require-await */
2
- import { FeatureDocument } from '@apollo-annotation/schemas'
3
- import type { ExecutionContext } from '@nestjs/common'
4
- import type { Reflector } from '@nestjs/core'
5
- import { ClientSession, Model } from 'mongoose'
2
+ import { type FeatureDocument } from '@apollo-annotation/schemas'
3
+ import { type ExecutionContext } from '@nestjs/common'
4
+ import { type Reflector } from '@nestjs/core'
5
+ import { type ClientSession, type Model } from 'mongoose'
6
6
 
7
- import { Change, ClientDataStore } from './Change'
7
+ import { type Change, type ClientDataStore } from './Change'
8
8
 
9
9
  export interface Context {
10
10
  context: ExecutionContext