@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/dist/ApolloPlugin.d.ts +1 -1
- package/dist/AssemblySpecificChange.d.ts +1 -1
- package/dist/AssemblySpecificChange.js.map +1 -1
- package/dist/Change.d.ts +3 -3
- package/dist/ChangeTypeRegistry.d.ts +1 -1
- package/dist/Check.d.ts +2 -1
- package/dist/Check.js.map +1 -1
- package/dist/CheckRegistry.d.ts +1 -1
- package/dist/FeatureChange.d.ts +4 -4
- package/dist/FeatureChange.js +1 -0
- package/dist/FeatureChange.js.map +1 -1
- package/dist/Operation.d.ts +6 -6
- package/dist/OperationTypeRegistry.d.ts +1 -1
- package/dist/Validation.d.ts +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/ApolloPlugin.ts +1 -1
- package/src/AssemblySpecificChange.ts +6 -1
- package/src/Change.ts +10 -10
- package/src/ChangeTypeRegistry.ts +1 -1
- package/src/Check.ts +3 -2
- package/src/CheckRegistry.ts +1 -1
- package/src/FeatureChange.ts +6 -5
- package/src/Operation.ts +13 -13
- package/src/OperationTypeRegistry.ts +1 -1
- package/src/Validation.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollo-annotation/common",
|
|
3
|
-
"version": "0.3.
|
|
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.
|
|
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.
|
|
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",
|
package/src/ApolloPlugin.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
|
2
|
-
import {
|
|
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 {
|
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,
|
package/src/CheckRegistry.ts
CHANGED
package/src/FeatureChange.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
5
|
-
import type
|
|
4
|
+
import { type ReadStream } from 'node:fs'
|
|
5
|
+
import { type FileHandle } from 'node:fs/promises'
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
|
-
AssemblyDocument,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
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'
|
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
|
|
4
|
-
import type
|
|
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
|