@apollo-annotation/common 0.3.11 → 0.3.13
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 -0
- package/dist/ApolloPlugin.d.ts.map +1 -0
- package/dist/ApolloPlugin.js +2 -7
- package/dist/ApolloPlugin.js.map +1 -1
- package/dist/AssemblySpecificChange.d.ts +4 -3
- package/dist/AssemblySpecificChange.d.ts.map +1 -0
- package/dist/AssemblySpecificChange.js +8 -12
- package/dist/AssemblySpecificChange.js.map +1 -1
- package/dist/Change.d.ts +4 -3
- package/dist/Change.d.ts.map +1 -0
- package/dist/Change.js +6 -11
- package/dist/Change.js.map +1 -1
- package/dist/ChangeTypeRegistry.d.ts +2 -1
- package/dist/ChangeTypeRegistry.d.ts.map +1 -0
- package/dist/ChangeTypeRegistry.js +2 -7
- package/dist/ChangeTypeRegistry.js.map +1 -1
- package/dist/Check.d.ts +2 -1
- package/dist/Check.d.ts.map +1 -0
- package/dist/Check.js +1 -5
- package/dist/Check.js.map +1 -1
- package/dist/CheckRegistry.d.ts +2 -1
- package/dist/CheckRegistry.d.ts.map +1 -0
- package/dist/CheckRegistry.js +2 -7
- package/dist/CheckRegistry.js.map +1 -1
- package/dist/FeatureChange.d.ts +5 -4
- package/dist/FeatureChange.d.ts.map +1 -0
- package/dist/FeatureChange.js +12 -19
- package/dist/FeatureChange.js.map +1 -1
- package/dist/Operation.d.ts +8 -6
- package/dist/Operation.d.ts.map +1 -0
- package/dist/Operation.js +3 -7
- package/dist/Operation.js.map +1 -1
- package/dist/OperationTypeRegistry.d.ts +2 -1
- package/dist/OperationTypeRegistry.d.ts.map +1 -0
- package/dist/OperationTypeRegistry.js +2 -7
- package/dist/OperationTypeRegistry.js.map +1 -1
- package/dist/Validation.d.ts +6 -5
- package/dist/Validation.d.ts.map +1 -0
- package/dist/Validation.js +2 -7
- package/dist/Validation.js.map +1 -1
- package/dist/index.d.ts +11 -10
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -13
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -11
- package/src/AssemblySpecificChange.ts +4 -4
- package/src/Change.ts +10 -10
- package/src/ChangeTypeRegistry.ts +1 -1
- package/src/Check.ts +3 -3
- package/src/CheckRegistry.ts +1 -1
- package/src/FeatureChange.ts +5 -5
- package/src/Operation.ts +18 -15
- package/src/OperationTypeRegistry.ts +1 -1
- package/src/Validation.ts +5 -5
- package/src/declare.d.ts +29 -0
- package/src/index.ts +10 -10
- package/tsconfig.json +4 -7
package/package.json
CHANGED
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollo-annotation/common",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/GMOD/Apollo3.git",
|
|
7
7
|
"directory": "packages/apollo-common"
|
|
8
8
|
},
|
|
9
|
-
"
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"type": "module",
|
|
11
|
+
"exports": "./dist/index.js",
|
|
10
12
|
"scripts": {
|
|
11
|
-
"build": "tsc"
|
|
13
|
+
"build": "tsc --build"
|
|
12
14
|
},
|
|
13
15
|
"dependencies": {
|
|
14
|
-
"@apollo-annotation/schemas": "^0.3.
|
|
15
|
-
"@jbrowse/core": "^
|
|
16
|
+
"@apollo-annotation/schemas": "^0.3.13",
|
|
17
|
+
"@jbrowse/core": "^4.1.1",
|
|
16
18
|
"bson-objectid": "^2.0.4",
|
|
17
19
|
"tslib": "^2.3.1"
|
|
18
20
|
},
|
|
19
21
|
"devDependencies": {
|
|
20
|
-
"@apollo-annotation/mst": "^0.3.
|
|
21
|
-
"@gmod/gff": "^2.
|
|
22
|
+
"@apollo-annotation/mst": "^0.3.13",
|
|
23
|
+
"@gmod/gff": "^2.1.0",
|
|
22
24
|
"@nestjs/common": "^10.1.0",
|
|
23
25
|
"@nestjs/core": "^10.1.0",
|
|
24
|
-
"@types/node": "^
|
|
25
|
-
"generic-
|
|
26
|
+
"@types/node": "^24.10.9",
|
|
27
|
+
"generic-filehandle2": "^2.0.18",
|
|
26
28
|
"mongoose": "^6.12.0",
|
|
27
29
|
"typescript": "^5.5.3"
|
|
28
30
|
},
|
|
29
31
|
"peerDependencies": {
|
|
30
|
-
"@
|
|
32
|
+
"@jbrowse/mobx-state-tree": "^5.5.0",
|
|
33
|
+
"@mui/material": "^7.3.7",
|
|
31
34
|
"@mui/x-data-grid": "^8.0.0",
|
|
32
35
|
"mobx": "^6.6.1",
|
|
33
36
|
"mobx-react": "^7.2.1",
|
|
34
|
-
"mobx-state-tree": "^5.4.0",
|
|
35
37
|
"prop-types": "^15.8.1",
|
|
36
38
|
"react": "^18.2.0",
|
|
37
39
|
"react-dom": "^18.2.0",
|
|
40
|
+
"reflect-metadata": "^0.1.13",
|
|
38
41
|
"rxjs": "^7.4.0",
|
|
39
42
|
"tss-react": "^4.6.1"
|
|
40
43
|
},
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
|
|
3
|
+
import type { Feature } from '@apollo-annotation/schemas'
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
Change,
|
|
7
7
|
type ChangeOptions,
|
|
8
8
|
type SerializedChange,
|
|
9
9
|
isChange,
|
|
10
|
-
} from './Change'
|
|
10
|
+
} from './Change.js'
|
|
11
11
|
|
|
12
12
|
export interface SerializedAssemblySpecificChange extends SerializedChange {
|
|
13
13
|
assembly: string
|
|
@@ -42,7 +42,7 @@ export abstract class AssemblySpecificChange extends Change {
|
|
|
42
42
|
attributes instanceof Map
|
|
43
43
|
? attributes.get(additionalId)
|
|
44
44
|
: attributes?.[additionalId]
|
|
45
|
-
if (idValue) {
|
|
45
|
+
if (idValue?.[0]) {
|
|
46
46
|
indexedIds.push(idValue[0])
|
|
47
47
|
}
|
|
48
48
|
}
|
package/src/Change.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
|
2
2
|
/* eslint-disable @typescript-eslint/restrict-template-expressions */
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import type {
|
|
4
|
+
AnnotationFeature,
|
|
5
|
+
AnnotationFeatureSnapshot,
|
|
6
|
+
ApolloAssemblyI,
|
|
7
|
+
BackendDriverType,
|
|
8
|
+
CheckResultI,
|
|
9
|
+
CheckResultSnapshot,
|
|
10
10
|
} from '@apollo-annotation/mst'
|
|
11
|
-
import {
|
|
11
|
+
import type { AppRootModel, Region } from '@jbrowse/core/util'
|
|
12
12
|
|
|
13
|
-
import { changeRegistry } from './ChangeTypeRegistry'
|
|
13
|
+
import { changeRegistry } from './ChangeTypeRegistry.js'
|
|
14
14
|
import {
|
|
15
15
|
type BackendDataStore,
|
|
16
16
|
Operation,
|
|
17
17
|
type OperationOptions,
|
|
18
18
|
type SerializedOperation,
|
|
19
|
-
} from './Operation'
|
|
19
|
+
} from './Operation.js'
|
|
20
20
|
|
|
21
21
|
export interface ClientDataStore {
|
|
22
22
|
typeName: 'Client'
|
package/src/Check.ts
CHANGED
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 {
|
|
4
|
-
import {
|
|
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 {
|
|
6
|
+
import type { Types } from 'mongoose'
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
9
|
AssemblySpecificChange,
|
|
10
10
|
type SerializedAssemblySpecificChange,
|
|
11
11
|
isAssemblySpecificChange,
|
|
12
|
-
} from './AssemblySpecificChange'
|
|
13
|
-
import {
|
|
12
|
+
} from './AssemblySpecificChange.js'
|
|
13
|
+
import type { ChangeOptions } from './Change.js'
|
|
14
14
|
|
|
15
15
|
export interface SerializedFeatureChange
|
|
16
16
|
extends SerializedAssemblySpecificChange {
|
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 {
|
|
4
|
+
import type { FileHandle } from 'node:fs/promises'
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
import type {
|
|
7
|
+
AssemblyDocument,
|
|
8
|
+
CheckDocument,
|
|
9
|
+
FeatureDocument,
|
|
10
|
+
FileDocument,
|
|
11
|
+
JBrowseConfigDocument,
|
|
12
|
+
RefSeqChunkDocument,
|
|
13
|
+
RefSeqDocument,
|
|
14
|
+
UserDocument,
|
|
15
15
|
} from '@apollo-annotation/schemas'
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
16
|
+
import type { GFF3Feature } from '@gmod/gff'
|
|
17
|
+
import type { LoggerService } from '@nestjs/common'
|
|
18
|
+
import type { GenericFilehandle } from 'generic-filehandle2'
|
|
19
|
+
import type { ClientSession, Model } from 'mongoose'
|
|
20
20
|
|
|
21
21
|
export interface LocalGFF3DataStore {
|
|
22
22
|
typeName: 'LocalGFF3'
|
|
@@ -47,7 +47,10 @@ export interface ServerDataStore {
|
|
|
47
47
|
getFileHandle(file: FileDocument): GenericFilehandle
|
|
48
48
|
parseGFF3(
|
|
49
49
|
stream: ReadableStream<Uint8Array>,
|
|
50
|
-
parseOptions?: {
|
|
50
|
+
parseOptions?: {
|
|
51
|
+
bufferSize?: number
|
|
52
|
+
errorCallback?(errorMessage: string): void
|
|
53
|
+
},
|
|
51
54
|
): ReadableStream<GFF3Feature>
|
|
52
55
|
create(createFileDto: CreateFileDto): void
|
|
53
56
|
remove(id: string): void
|
package/src/Validation.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/require-await */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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, Model } from 'mongoose'
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import type { Change, ClientDataStore } from './Change.js'
|
|
8
8
|
|
|
9
9
|
export interface Context {
|
|
10
10
|
context: ExecutionContext
|
package/src/declare.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare module 'bson-objectid' {
|
|
2
|
+
import type { Buffer } from 'node:buffer'
|
|
3
|
+
|
|
4
|
+
export default ObjectID
|
|
5
|
+
|
|
6
|
+
declare const ObjectID: ObjectIDCtor
|
|
7
|
+
|
|
8
|
+
declare interface ObjectID {
|
|
9
|
+
readonly id: string
|
|
10
|
+
readonly str: string
|
|
11
|
+
|
|
12
|
+
toHexString(): string
|
|
13
|
+
equals(other: ObjectID): boolean
|
|
14
|
+
getTimestamp(): Date
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare interface ObjectIDCtor {
|
|
18
|
+
(hexStringOrIdStringOrArrayOrBuffer?: string | number[] | Buffer): ObjectID
|
|
19
|
+
|
|
20
|
+
new (
|
|
21
|
+
hexStringOrIdStringOrArrayOrBuffer?: string | number[] | Buffer,
|
|
22
|
+
): ObjectID
|
|
23
|
+
|
|
24
|
+
createFromTime(time: number): ObjectID
|
|
25
|
+
createFromHexString(hexString: string): ObjectID
|
|
26
|
+
isValid(hexStringOrObjectID: string | ObjectID): boolean
|
|
27
|
+
toString(): string
|
|
28
|
+
}
|
|
29
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './ApolloPlugin'
|
|
2
|
-
export * from './AssemblySpecificChange'
|
|
3
|
-
export * from './Change'
|
|
4
|
-
export * from './ChangeTypeRegistry'
|
|
5
|
-
export * from './Check'
|
|
6
|
-
export * from './CheckRegistry'
|
|
7
|
-
export * from './FeatureChange'
|
|
8
|
-
export * from './Operation'
|
|
9
|
-
export * from './OperationTypeRegistry'
|
|
10
|
-
export * from './Validation'
|
|
1
|
+
export * from './ApolloPlugin.js'
|
|
2
|
+
export * from './AssemblySpecificChange.js'
|
|
3
|
+
export * from './Change.js'
|
|
4
|
+
export * from './ChangeTypeRegistry.js'
|
|
5
|
+
export * from './Check.js'
|
|
6
|
+
export * from './CheckRegistry.js'
|
|
7
|
+
export * from './FeatureChange.js'
|
|
8
|
+
export * from './Operation.js'
|
|
9
|
+
export * from './OperationTypeRegistry.js'
|
|
10
|
+
export * from './Validation.js'
|
package/tsconfig.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "../../tsconfig
|
|
2
|
+
"extends": "../../tsconfig",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"composite": true,
|
|
5
5
|
"incremental": true,
|
|
6
6
|
"outDir": "./dist",
|
|
7
7
|
"rootDir": "./src",
|
|
8
|
-
"target": "ES2019",
|
|
9
|
-
"lib": ["ES2019", "DOM"],
|
|
10
|
-
"module": "CommonJS",
|
|
11
8
|
"tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo",
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
9
|
+
// For nodejs:
|
|
10
|
+
"lib": ["esnext"],
|
|
11
|
+
"types": ["node"],
|
|
15
12
|
},
|
|
16
13
|
"include": ["./src"],
|
|
17
14
|
"references": [{ "path": "../apollo-schemas" }, { "path": "../apollo-mst" }],
|