@apollo-annotation/schemas 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/assembly.schema.d.ts +4 -3
- package/dist/assembly.schema.d.ts.map +1 -0
- package/dist/assembly.schema.js +49 -44
- package/dist/assembly.schema.js.map +1 -1
- package/dist/change.schema.d.ts +1 -0
- package/dist/change.schema.d.ts.map +1 -0
- package/dist/change.schema.js +36 -31
- package/dist/change.schema.js.map +1 -1
- package/dist/check.schema.d.ts +2 -1
- package/dist/check.schema.d.ts.map +1 -0
- package/dist/check.schema.js +27 -21
- package/dist/check.schema.js.map +1 -1
- package/dist/checkResult.schema.d.ts +3 -2
- package/dist/checkResult.schema.d.ts.map +1 -0
- package/dist/checkResult.schema.js +42 -37
- package/dist/checkResult.schema.js.map +1 -1
- package/dist/counter.schema.d.ts +1 -0
- package/dist/counter.schema.d.ts.map +1 -0
- package/dist/counter.schema.js +21 -15
- package/dist/counter.schema.js.map +1 -1
- package/dist/export.schema.d.ts +1 -0
- package/dist/export.schema.d.ts.map +1 -0
- package/dist/export.schema.js +20 -15
- package/dist/export.schema.js.map +1 -1
- package/dist/feature.schema.d.ts +3 -2
- package/dist/feature.schema.d.ts.map +1 -0
- package/dist/feature.schema.js +50 -45
- package/dist/feature.schema.js.map +1 -1
- package/dist/file.schema.d.ts +1 -0
- package/dist/file.schema.d.ts.map +1 -0
- package/dist/file.schema.js +24 -18
- package/dist/file.schema.js.map +1 -1
- package/dist/index.d.ts +13 -12
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -15
- package/dist/index.js.map +1 -1
- package/dist/jbrowseConfig.schema.d.ts +1 -0
- package/dist/jbrowseConfig.schema.d.ts.map +1 -0
- package/dist/jbrowseConfig.schema.js +12 -9
- package/dist/jbrowseConfig.schema.js.map +1 -1
- package/dist/refSeq.schema.d.ts +2 -1
- package/dist/refSeq.schema.d.ts.map +1 -0
- package/dist/refSeq.schema.js +41 -36
- package/dist/refSeq.schema.js.map +1 -1
- package/dist/refSeqChunk.schema.d.ts +2 -1
- package/dist/refSeqChunk.schema.d.ts.map +1 -0
- package/dist/refSeqChunk.schema.js +32 -27
- package/dist/refSeqChunk.schema.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/user.schema.d.ts +1 -0
- package/dist/user.schema.d.ts.map +1 -0
- package/dist/user.schema.js +24 -18
- package/dist/user.schema.js.map +1 -1
- package/package.json +6 -4
- package/src/assembly.schema.ts +3 -3
- package/src/check.schema.ts +1 -1
- package/src/checkResult.schema.ts +6 -2
- package/src/feature.schema.ts +6 -2
- package/src/index.ts +12 -12
- package/src/refSeq.schema.ts +1 -1
- package/src/refSeqChunk.schema.ts +1 -1
- package/tsconfig.json +2 -4
package/dist/user.schema.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.schema.d.ts","sourceRoot":"","sources":["../src/user.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,QAAQ,CAAA;AAE1C,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,CAAA;AAEhD,qBACa,IAAI;IAEf,QAAQ,EAAE,MAAM,CAAA;IAGhB,KAAK,EAAE,MAAM,CAAA;IAGb,IAAI,EAAE,IAAI,CAAA;CACX;AAED,eAAO,MAAM,UAAU,oJAAqC,CAAA"}
|
package/dist/user.schema.js
CHANGED
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
Object.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
|
11
|
+
import { Document } from 'mongoose';
|
|
6
12
|
let User = class User {
|
|
7
13
|
username;
|
|
8
14
|
email;
|
|
9
15
|
role;
|
|
10
16
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
(
|
|
14
|
-
tslib_1.__metadata("design:type", String)
|
|
17
|
+
__decorate([
|
|
18
|
+
Prop({ required: true }),
|
|
19
|
+
__metadata("design:type", String)
|
|
15
20
|
], User.prototype, "username", void 0);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
__decorate([
|
|
22
|
+
Prop({ required: true, unique: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
19
24
|
], User.prototype, "email", void 0);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
__decorate([
|
|
26
|
+
Prop({ type: String, enum: ['readOnly', 'admin', 'user', 'none'] }),
|
|
27
|
+
__metadata("design:type", String)
|
|
23
28
|
], User.prototype, "role", void 0);
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
User = __decorate([
|
|
30
|
+
Schema({ timestamps: true })
|
|
26
31
|
], User);
|
|
27
|
-
|
|
32
|
+
export { User };
|
|
33
|
+
export const UserSchema = SchemaFactory.createForClass(User);
|
|
28
34
|
//# sourceMappingURL=user.schema.js.map
|
package/dist/user.schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../src/user.schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../src/user.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAO5B,IAAM,IAAI,GAAV,MAAM,IAAI;IAEf,QAAQ,CAAQ;IAGhB,KAAK,CAAQ;IAGb,IAAI,CAAM;CACX,CAAA;AAPC;IADC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACT;AAGhB;IADC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mCAC1B;AAGb;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;;kCAC1D;AARC,IAAI;IADhB,MAAM,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAChB,IAAI,CAShB;;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollo-annotation/schemas",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.3.13",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": "./dist/index.js",
|
|
5
7
|
"scripts": {
|
|
6
8
|
"build": "tsc"
|
|
7
9
|
},
|
|
@@ -15,8 +17,8 @@
|
|
|
15
17
|
"tslib": "^2.3.1"
|
|
16
18
|
},
|
|
17
19
|
"devDependencies": {
|
|
18
|
-
"@apollo-annotation/mst": "^0.3.
|
|
19
|
-
"@types/node": "^
|
|
20
|
+
"@apollo-annotation/mst": "^0.3.13",
|
|
21
|
+
"@types/node": "^24.10.9",
|
|
20
22
|
"typescript": "^5.5.3"
|
|
21
23
|
},
|
|
22
24
|
"publishConfig": {
|
package/src/assembly.schema.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
|
|
2
2
|
import { Schema as MongooseSchema, Types } from 'mongoose'
|
|
3
3
|
|
|
4
|
-
import { File } from './file.schema'
|
|
4
|
+
import { File } from './file.schema.js'
|
|
5
5
|
|
|
6
6
|
export type AssemblyDocument = Assembly & Document
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ export class Assembly {
|
|
|
26
26
|
user: string
|
|
27
27
|
|
|
28
28
|
@Prop({ type: { fa: String, fai: String, gzi: String } })
|
|
29
|
-
externalLocation
|
|
29
|
+
externalLocation?: { fa: string; fai: string; gzi?: string }
|
|
30
30
|
|
|
31
31
|
@Prop({
|
|
32
32
|
type: {
|
|
@@ -35,7 +35,7 @@ export class Assembly {
|
|
|
35
35
|
gzi: { type: MongooseSchema.Types.ObjectId, ref: 'File' },
|
|
36
36
|
},
|
|
37
37
|
})
|
|
38
|
-
fileIds
|
|
38
|
+
fileIds?: { fa: string; fai: string; gzi: string } // Store fileId of fa/fai/gzi.
|
|
39
39
|
|
|
40
40
|
@Prop({ type: [{ type: MongooseSchema.Types.ObjectId, ref: 'Check' }] })
|
|
41
41
|
checks: Types.ObjectId[]
|
package/src/check.schema.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CheckResultSnapshot } from '@apollo-annotation/mst'
|
|
2
2
|
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
type HydratedDocument,
|
|
5
|
+
Schema as MongooseSchema,
|
|
6
|
+
Types,
|
|
7
|
+
} from 'mongoose'
|
|
4
8
|
|
|
5
9
|
export type CheckResultDocument = HydratedDocument<CheckResult>
|
|
6
10
|
|
package/src/feature.schema.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
|
|
2
2
|
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
type HydratedDocument,
|
|
5
|
+
Schema as MongooseSchema,
|
|
6
|
+
Types,
|
|
7
|
+
} from 'mongoose'
|
|
4
8
|
|
|
5
9
|
export interface FeatureDocument extends HydratedDocument<Feature> {
|
|
6
10
|
createdAt?: Date
|
package/src/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './assembly.schema'
|
|
2
|
-
export * from './change.schema'
|
|
3
|
-
export * from './check.schema'
|
|
4
|
-
export * from './checkResult.schema'
|
|
5
|
-
export * from './counter.schema'
|
|
6
|
-
export * from './export.schema'
|
|
7
|
-
export * from './feature.schema'
|
|
8
|
-
export * from './file.schema'
|
|
9
|
-
export * from './refSeq.schema'
|
|
10
|
-
export * from './refSeqChunk.schema'
|
|
11
|
-
export * from './user.schema'
|
|
12
|
-
export * from './jbrowseConfig.schema'
|
|
1
|
+
export * from './assembly.schema.js'
|
|
2
|
+
export * from './change.schema.js'
|
|
3
|
+
export * from './check.schema.js'
|
|
4
|
+
export * from './checkResult.schema.js'
|
|
5
|
+
export * from './counter.schema.js'
|
|
6
|
+
export * from './export.schema.js'
|
|
7
|
+
export * from './feature.schema.js'
|
|
8
|
+
export * from './file.schema.js'
|
|
9
|
+
export * from './refSeq.schema.js'
|
|
10
|
+
export * from './refSeqChunk.schema.js'
|
|
11
|
+
export * from './user.schema.js'
|
|
12
|
+
export * from './jbrowseConfig.schema.js'
|
package/src/refSeq.schema.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
|
|
2
2
|
import { Document, Schema as MongooseSchema, Types } from 'mongoose'
|
|
3
3
|
|
|
4
|
-
import { Assembly } from './assembly.schema'
|
|
4
|
+
import { Assembly } from './assembly.schema.js'
|
|
5
5
|
|
|
6
6
|
export type RefSeqDocument = RefSeq & Document
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
|
|
2
2
|
import { Document, Schema as MongooseSchema } from 'mongoose'
|
|
3
3
|
|
|
4
|
-
import { RefSeq } from './refSeq.schema'
|
|
4
|
+
import { RefSeq } from './refSeq.schema.js'
|
|
5
5
|
|
|
6
6
|
export type RefSeqChunkDocument = RefSeqChunk & Document
|
|
7
7
|
|
package/tsconfig.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
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": "ES2022",
|
|
9
|
-
"lib": ["ES2022", "DOM"],
|
|
10
|
-
"module": "CommonJS",
|
|
11
8
|
"tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo",
|
|
12
9
|
"experimentalDecorators": true,
|
|
13
10
|
"emitDecoratorMetadata": true,
|
|
14
11
|
"strictPropertyInitialization": false,
|
|
15
12
|
},
|
|
16
13
|
"include": ["./src"],
|
|
14
|
+
"references": [{ "path": "../apollo-mst" }],
|
|
17
15
|
}
|