@apollo-annotation/schemas 0.1.18 → 0.1.20

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.
Files changed (48) hide show
  1. package/dist/assembly.schema.d.ts +24 -0
  2. package/dist/assembly.schema.js +71 -0
  3. package/dist/assembly.schema.js.map +1 -0
  4. package/dist/change.schema.d.ts +12 -0
  5. package/dist/change.schema.js +50 -0
  6. package/dist/change.schema.js.map +1 -0
  7. package/dist/check.schema.d.ts +12 -0
  8. package/dist/check.schema.js +30 -0
  9. package/dist/check.schema.js.map +1 -0
  10. package/dist/checkResult.schema.d.ts +14 -0
  11. package/dist/checkResult.schema.js +58 -0
  12. package/dist/checkResult.schema.js.map +1 -0
  13. package/dist/counter.schema.d.ts +7 -0
  14. package/dist/counter.schema.js +23 -0
  15. package/dist/counter.schema.js.map +1 -0
  16. package/dist/export.schema.d.ts +6 -0
  17. package/dist/export.schema.js +24 -0
  18. package/dist/export.schema.js.map +1 -0
  19. package/dist/feature.schema.d.ts +20 -0
  20. package/dist/feature.schema.js +73 -0
  21. package/dist/feature.schema.js.map +1 -0
  22. package/dist/file.schema.d.ts +8 -0
  23. package/dist/file.schema.js +37 -0
  24. package/dist/file.schema.js.map +1 -0
  25. package/dist/index.d.ts +12 -0
  26. package/dist/index.js +16 -0
  27. package/dist/index.js.map +1 -0
  28. package/dist/jbrowseConfig.schema.d.ts +5 -0
  29. package/dist/jbrowseConfig.schema.js +13 -0
  30. package/dist/jbrowseConfig.schema.js.map +1 -0
  31. package/dist/refSeq.schema.d.ts +15 -0
  32. package/dist/refSeq.schema.js +62 -0
  33. package/dist/refSeq.schema.js.map +1 -0
  34. package/dist/refSeqChunk.schema.d.ts +11 -0
  35. package/dist/refSeqChunk.schema.js +45 -0
  36. package/dist/refSeqChunk.schema.js.map +1 -0
  37. package/dist/tsconfig.tsbuildinfo +1 -0
  38. package/dist/user.schema.d.ts +9 -0
  39. package/dist/user.schema.js +28 -0
  40. package/dist/user.schema.js.map +1 -0
  41. package/package.json +3 -3
  42. package/src/assembly.schema.ts +14 -0
  43. package/src/feature.schema.ts +4 -17
  44. package/src/file.schema.ts +16 -2
  45. package/src/index.ts +1 -0
  46. package/src/jbrowseConfig.schema.ts +9 -0
  47. package/src/refSeq.schema.ts +3 -0
  48. package/src/user.schema.ts +1 -1
@@ -0,0 +1,24 @@
1
+ import { Schema as MongooseSchema, Types } from 'mongoose';
2
+ import { File } from './file.schema';
3
+ export type AssemblyDocument = Assembly & Document;
4
+ export declare class Assembly {
5
+ name: string;
6
+ displayName: string;
7
+ aliases: string[];
8
+ description: string;
9
+ status: number;
10
+ user: string;
11
+ externalLocation: {
12
+ fa: string;
13
+ fai: string;
14
+ gzi?: string;
15
+ };
16
+ fileIds: {
17
+ fa: string;
18
+ fai: string;
19
+ gzi: string;
20
+ };
21
+ checks: Types.ObjectId[];
22
+ file: File;
23
+ }
24
+ export declare const AssemblySchema: MongooseSchema<Assembly, import("mongoose").Model<Assembly, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Assembly>;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssemblySchema = exports.Assembly = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const mongoose_1 = require("@nestjs/mongoose");
6
+ const mongoose_2 = require("mongoose");
7
+ const file_schema_1 = require("./file.schema");
8
+ let Assembly = class Assembly {
9
+ name;
10
+ displayName;
11
+ aliases;
12
+ description;
13
+ status;
14
+ user;
15
+ externalLocation;
16
+ fileIds; // Store fileId of fa/fai/gzi.
17
+ checks;
18
+ file;
19
+ };
20
+ exports.Assembly = Assembly;
21
+ tslib_1.__decorate([
22
+ (0, mongoose_1.Prop)({ required: true }),
23
+ tslib_1.__metadata("design:type", String)
24
+ ], Assembly.prototype, "name", void 0);
25
+ tslib_1.__decorate([
26
+ (0, mongoose_1.Prop)(),
27
+ tslib_1.__metadata("design:type", String)
28
+ ], Assembly.prototype, "displayName", void 0);
29
+ tslib_1.__decorate([
30
+ (0, mongoose_1.Prop)({ type: [String] }),
31
+ tslib_1.__metadata("design:type", Array)
32
+ ], Assembly.prototype, "aliases", void 0);
33
+ tslib_1.__decorate([
34
+ (0, mongoose_1.Prop)(),
35
+ tslib_1.__metadata("design:type", String)
36
+ ], Assembly.prototype, "description", void 0);
37
+ tslib_1.__decorate([
38
+ (0, mongoose_1.Prop)(),
39
+ tslib_1.__metadata("design:type", Number)
40
+ ], Assembly.prototype, "status", void 0);
41
+ tslib_1.__decorate([
42
+ (0, mongoose_1.Prop)(),
43
+ tslib_1.__metadata("design:type", String)
44
+ ], Assembly.prototype, "user", void 0);
45
+ tslib_1.__decorate([
46
+ (0, mongoose_1.Prop)({ type: { fa: String, fai: String, gzi: String } }),
47
+ tslib_1.__metadata("design:type", Object)
48
+ ], Assembly.prototype, "externalLocation", void 0);
49
+ tslib_1.__decorate([
50
+ (0, mongoose_1.Prop)({
51
+ type: {
52
+ fa: { type: mongoose_2.Schema.Types.ObjectId, ref: 'File' },
53
+ fai: { type: mongoose_2.Schema.Types.ObjectId, ref: 'File' },
54
+ gzi: { type: mongoose_2.Schema.Types.ObjectId, ref: 'File' },
55
+ },
56
+ }),
57
+ tslib_1.__metadata("design:type", Object)
58
+ ], Assembly.prototype, "fileIds", void 0);
59
+ tslib_1.__decorate([
60
+ (0, mongoose_1.Prop)({ type: [{ type: mongoose_2.Schema.Types.ObjectId, ref: 'Check' }] }),
61
+ tslib_1.__metadata("design:type", Array)
62
+ ], Assembly.prototype, "checks", void 0);
63
+ tslib_1.__decorate([
64
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'File' }),
65
+ tslib_1.__metadata("design:type", file_schema_1.File)
66
+ ], Assembly.prototype, "file", void 0);
67
+ exports.Assembly = Assembly = tslib_1.__decorate([
68
+ (0, mongoose_1.Schema)()
69
+ ], Assembly);
70
+ exports.AssemblySchema = mongoose_1.SchemaFactory.createForClass(Assembly);
71
+ //# sourceMappingURL=assembly.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assembly.schema.js","sourceRoot":"","sources":["../src/assembly.schema.ts"],"names":[],"mappings":";;;;AAAA,+CAA8D;AAC9D,uCAA0D;AAE1D,+CAAoC;AAK7B,IAAM,QAAQ,GAAd,MAAM,QAAQ;IAEnB,IAAI,CAAQ;IAGZ,WAAW,CAAQ;IAGnB,OAAO,CAAU;IAGjB,WAAW,CAAQ;IAGnB,MAAM,CAAQ;IAGd,IAAI,CAAQ;IAGZ,gBAAgB,CAA2C;IAS3D,OAAO,CAA0C,CAAC,8BAA8B;IAGhF,MAAM,CAAkB;IAGxB,IAAI,CAAM;CACX,CAAA;AApCY,4BAAQ;AAEnB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACb;AAGZ;IADC,IAAA,eAAI,GAAE;;6CACY;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;yCACR;AAGjB;IADC,IAAA,eAAI,GAAE;;6CACY;AAGnB;IADC,IAAA,eAAI,GAAE;;wCACO;AAGd;IADC,IAAA,eAAI,GAAE;;sCACK;AAGZ;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC;;kDACE;AAS3D;IAPC,IAAA,eAAI,EAAC;QACJ,IAAI,EAAE;YACJ,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;YACxD,GAAG,EAAE,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;YACzD,GAAG,EAAE,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;SAC1D;KACF,CAAC;;yCAC+C;AAGjD;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;wCAChD;AAGxB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;sCACrD,kBAAI;sCAAA;mBAnCC,QAAQ;IADpB,IAAA,iBAAM,GAAE;GACI,QAAQ,CAoCpB;AAEY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { Document, Schema as MongooseSchema } from 'mongoose';
2
+ export type ChangeDocument = Change & Document;
3
+ export declare class Change {
4
+ assembly: MongooseSchema.Types.ObjectId;
5
+ typeName: string;
6
+ changedIds: string[];
7
+ changes: unknown;
8
+ reverts: Change;
9
+ user: string;
10
+ sequence: number;
11
+ }
12
+ export declare const ChangeSchema: MongooseSchema<Change, import("mongoose").Model<Change, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Change>;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChangeSchema = exports.Change = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const mongoose_1 = require("@nestjs/mongoose");
6
+ const mongoose_2 = require("mongoose");
7
+ let Change = class Change {
8
+ assembly;
9
+ typeName;
10
+ changedIds; // featureIds
11
+ changes; // serialized change
12
+ reverts;
13
+ user;
14
+ sequence;
15
+ };
16
+ exports.Change = Change;
17
+ tslib_1.__decorate([
18
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }) // We cannot use FK anymore because assembly is deleted outside of transaction concept
19
+ ,
20
+ tslib_1.__metadata("design:type", mongoose_2.Schema.Types.ObjectId)
21
+ ], Change.prototype, "assembly", void 0);
22
+ tslib_1.__decorate([
23
+ (0, mongoose_1.Prop)({ required: true }),
24
+ tslib_1.__metadata("design:type", String)
25
+ ], Change.prototype, "typeName", void 0);
26
+ tslib_1.__decorate([
27
+ (0, mongoose_1.Prop)({ required: true, index: true }),
28
+ tslib_1.__metadata("design:type", Array)
29
+ ], Change.prototype, "changedIds", void 0);
30
+ tslib_1.__decorate([
31
+ (0, mongoose_1.Prop)({ type: JSON }),
32
+ tslib_1.__metadata("design:type", Object)
33
+ ], Change.prototype, "changes", void 0);
34
+ tslib_1.__decorate([
35
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'Change' }),
36
+ tslib_1.__metadata("design:type", Change)
37
+ ], Change.prototype, "reverts", void 0);
38
+ tslib_1.__decorate([
39
+ (0, mongoose_1.Prop)({ required: true, index: true }),
40
+ tslib_1.__metadata("design:type", String)
41
+ ], Change.prototype, "user", void 0);
42
+ tslib_1.__decorate([
43
+ (0, mongoose_1.Prop)(),
44
+ tslib_1.__metadata("design:type", Number)
45
+ ], Change.prototype, "sequence", void 0);
46
+ exports.Change = Change = tslib_1.__decorate([
47
+ (0, mongoose_1.Schema)({ timestamps: true })
48
+ ], Change);
49
+ exports.ChangeSchema = mongoose_1.SchemaFactory.createForClass(Change);
50
+ //# sourceMappingURL=change.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"change.schema.js","sourceRoot":"","sources":["../src/change.schema.ts"],"names":[],"mappings":";;;;AAAA,+CAA8D;AAC9D,uCAA6D;AAKtD,IAAM,MAAM,GAAZ,MAAM,MAAM;IAEjB,QAAQ,CAA+B;IAGvC,QAAQ,CAAQ;IAGhB,UAAU,CAAU,CAAC,aAAa;IAGlC,OAAO,CAAS,CAAC,oBAAoB;IAGrC,OAAO,CAAQ;IAGf,IAAI,CAAQ;IAGZ,QAAQ,CAAQ;CACjB,CAAA;AArBY,wBAAM;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,sFAAsF;;sCAC3H,iBAAc,CAAC,KAAK,CAAC,QAAQ;wCAAA;AAGvC;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACT;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;0CAClB;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uCACL;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;sCACpD,MAAM;uCAAA;AAGf;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;oCAC1B;AAGZ;IADC,IAAA,eAAI,GAAE;;wCACS;iBApBL,MAAM;IADlB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAChB,MAAM,CAqBlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { HydratedDocument, Types } from 'mongoose';
2
+ export interface CheckDocument extends HydratedDocument<Check> {
3
+ createdAt: Date;
4
+ updatedAt: Date;
5
+ }
6
+ export declare class Check {
7
+ _id: Types.ObjectId;
8
+ name: string;
9
+ default: boolean;
10
+ version: number;
11
+ }
12
+ export declare const CheckSchema: import("mongoose").Schema<Check, import("mongoose").Model<Check, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Check>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckSchema = exports.Check = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const mongoose_1 = require("@nestjs/mongoose");
6
+ let Check = class Check {
7
+ // Don't make this a @Prop since _id is already on a MongoDB document
8
+ _id;
9
+ name;
10
+ default;
11
+ version;
12
+ };
13
+ exports.Check = Check;
14
+ tslib_1.__decorate([
15
+ (0, mongoose_1.Prop)(),
16
+ tslib_1.__metadata("design:type", String)
17
+ ], Check.prototype, "name", void 0);
18
+ tslib_1.__decorate([
19
+ (0, mongoose_1.Prop)(),
20
+ tslib_1.__metadata("design:type", Boolean)
21
+ ], Check.prototype, "default", void 0);
22
+ tslib_1.__decorate([
23
+ (0, mongoose_1.Prop)(),
24
+ tslib_1.__metadata("design:type", Number)
25
+ ], Check.prototype, "version", void 0);
26
+ exports.Check = Check = tslib_1.__decorate([
27
+ (0, mongoose_1.Schema)({ timestamps: true })
28
+ ], Check);
29
+ exports.CheckSchema = mongoose_1.SchemaFactory.createForClass(Check);
30
+ //# sourceMappingURL=check.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check.schema.js","sourceRoot":"","sources":["../src/check.schema.ts"],"names":[],"mappings":";;;;AAAA,+CAA8D;AASvD,IAAM,KAAK,GAAX,MAAM,KAAK;IAChB,qEAAqE;IACrE,GAAG,CAAgB;IAGnB,IAAI,CAAQ;IAGZ,OAAO,CAAS;IAGhB,OAAO,CAAQ;CAChB,CAAA;AAZY,sBAAK;AAKhB;IADC,IAAA,eAAI,GAAE;;mCACK;AAGZ;IADC,IAAA,eAAI,GAAE;;sCACS;AAGhB;IADC,IAAA,eAAI,GAAE;;sCACQ;gBAXJ,KAAK;IADjB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAChB,KAAK,CAYjB;AACY,QAAA,WAAW,GAAG,wBAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { CheckResultSnapshot } from '@apollo-annotation/mst';
2
+ import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
3
+ export type CheckResultDocument = HydratedDocument<CheckResult>;
4
+ export declare class CheckResult implements Omit<CheckResultSnapshot, '_id' | 'ids' | 'refSeq'> {
5
+ _id: Types.ObjectId;
6
+ name: string;
7
+ ids: Types.ObjectId[];
8
+ refSeq: Types.ObjectId;
9
+ start: number;
10
+ end: number;
11
+ ignored: boolean;
12
+ message: string;
13
+ }
14
+ export declare const CheckResultSchema: MongooseSchema<CheckResult, import("mongoose").Model<CheckResult, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CheckResult>;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckResultSchema = exports.CheckResult = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const mongoose_1 = require("@nestjs/mongoose");
6
+ const mongoose_2 = require("mongoose");
7
+ let CheckResult = class CheckResult {
8
+ // Don't make this a @Prop since _id is already on a MongoDB document
9
+ _id;
10
+ name;
11
+ ids;
12
+ refSeq;
13
+ start;
14
+ end;
15
+ ignored;
16
+ message;
17
+ };
18
+ exports.CheckResult = CheckResult;
19
+ tslib_1.__decorate([
20
+ (0, mongoose_1.Prop)(),
21
+ tslib_1.__metadata("design:type", String)
22
+ ], CheckResult.prototype, "name", void 0);
23
+ tslib_1.__decorate([
24
+ (0, mongoose_1.Prop)({ type: [mongoose_2.Schema.Types.ObjectId], required: true, index: true }),
25
+ tslib_1.__metadata("design:type", Array)
26
+ ], CheckResult.prototype, "ids", void 0);
27
+ tslib_1.__decorate([
28
+ (0, mongoose_1.Prop)({
29
+ required: true,
30
+ index: true,
31
+ type: mongoose_2.Schema.Types.ObjectId,
32
+ ref: 'RefSeq',
33
+ }),
34
+ tslib_1.__metadata("design:type", mongoose_2.Types.ObjectId)
35
+ ], CheckResult.prototype, "refSeq", void 0);
36
+ tslib_1.__decorate([
37
+ (0, mongoose_1.Prop)({ required: true }),
38
+ tslib_1.__metadata("design:type", Number)
39
+ ], CheckResult.prototype, "start", void 0);
40
+ tslib_1.__decorate([
41
+ (0, mongoose_1.Prop)({ required: true }),
42
+ tslib_1.__metadata("design:type", Number)
43
+ ], CheckResult.prototype, "end", void 0);
44
+ tslib_1.__decorate([
45
+ (0, mongoose_1.Prop)({ default: false }),
46
+ tslib_1.__metadata("design:type", Boolean)
47
+ ], CheckResult.prototype, "ignored", void 0);
48
+ tslib_1.__decorate([
49
+ (0, mongoose_1.Prop)(),
50
+ tslib_1.__metadata("design:type", String)
51
+ ], CheckResult.prototype, "message", void 0);
52
+ exports.CheckResult = CheckResult = tslib_1.__decorate([
53
+ (0, mongoose_1.Schema)()
54
+ ], CheckResult);
55
+ exports.CheckResultSchema = mongoose_1.SchemaFactory.createForClass(CheckResult);
56
+ exports.CheckResultSchema.index({ refSeq: 1, start: 1 });
57
+ exports.CheckResultSchema.index({ refSeq: 1, end: 1 });
58
+ //# sourceMappingURL=checkResult.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkResult.schema.js","sourceRoot":"","sources":["../src/checkResult.schema.ts"],"names":[],"mappings":";;;;AACA,+CAA8D;AAC9D,uCAA4E;AAKrE,IAAM,WAAW,GAAjB,MAAM,WAAW;IAGtB,qEAAqE;IACrE,GAAG,CAAgB;IAGnB,IAAI,CAAQ;IAGZ,GAAG,CAAkB;IAQrB,MAAM,CAAgB;IAGtB,KAAK,CAAQ;IAGb,GAAG,CAAQ;IAGX,OAAO,CAAS;IAGhB,OAAO,CAAQ;CAChB,CAAA;AA/BY,kCAAW;AAOtB;IADC,IAAA,eAAI,GAAE;;yCACK;AAGZ;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,iBAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;wCACxD;AAQrB;IANC,IAAA,eAAI,EAAC;QACJ,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ;QACnC,GAAG,EAAE,QAAQ;KACd,CAAC;sCACM,gBAAK,CAAC,QAAQ;2CAAA;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACZ;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACd;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;4CACT;AAGhB;IADC,IAAA,eAAI,GAAE;;4CACQ;sBA9BJ,WAAW;IADvB,IAAA,iBAAM,GAAE;GACI,WAAW,CA+BvB;AACY,QAAA,iBAAiB,GAAG,wBAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AAE1E,yBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAA;AAChD,yBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { Document } from 'mongoose';
2
+ export type CounterDocument = Counter & Document;
3
+ export declare class Counter {
4
+ sequenceValue: number;
5
+ id: string;
6
+ }
7
+ export declare const CounterSchema: import("mongoose").Schema<Counter, import("mongoose").Model<Counter, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Counter>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CounterSchema = exports.Counter = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const mongoose_1 = require("@nestjs/mongoose");
6
+ let Counter = class Counter {
7
+ sequenceValue;
8
+ id;
9
+ };
10
+ exports.Counter = Counter;
11
+ tslib_1.__decorate([
12
+ (0, mongoose_1.Prop)({ default: 0, required: true }),
13
+ tslib_1.__metadata("design:type", Number)
14
+ ], Counter.prototype, "sequenceValue", void 0);
15
+ tslib_1.__decorate([
16
+ (0, mongoose_1.Prop)({ required: true }),
17
+ tslib_1.__metadata("design:type", String)
18
+ ], Counter.prototype, "id", void 0);
19
+ exports.Counter = Counter = tslib_1.__decorate([
20
+ (0, mongoose_1.Schema)()
21
+ ], Counter);
22
+ exports.CounterSchema = mongoose_1.SchemaFactory.createForClass(Counter);
23
+ //# sourceMappingURL=counter.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counter.schema.js","sourceRoot":"","sources":["../src/counter.schema.ts"],"names":[],"mappings":";;;;AAAA,+CAA8D;AAMvD,IAAM,OAAO,GAAb,MAAM,OAAO;IAElB,aAAa,CAAQ;IAGrB,EAAE,CAAQ;CACX,CAAA;AANY,0BAAO;AAElB;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAChB;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACf;kBALC,OAAO;IADnB,IAAA,iBAAM,GAAE;GACI,OAAO,CAMnB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { Document, Schema as MongooseSchema, Types } from 'mongoose';
2
+ export type ExportDocument = Export & Document;
3
+ export declare class Export {
4
+ assembly: Types.ObjectId;
5
+ }
6
+ export declare const ExportSchema: MongooseSchema<Export, import("mongoose").Model<Export, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Export>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExportSchema = exports.Export = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const mongoose_1 = require("@nestjs/mongoose");
6
+ const mongoose_2 = require("mongoose");
7
+ let Export = class Export {
8
+ assembly;
9
+ };
10
+ exports.Export = Export;
11
+ tslib_1.__decorate([
12
+ (0, mongoose_1.Prop)({
13
+ type: mongoose_2.Schema.Types.ObjectId,
14
+ ref: 'Assembly',
15
+ required: true,
16
+ }),
17
+ tslib_1.__metadata("design:type", mongoose_2.Types.ObjectId)
18
+ ], Export.prototype, "assembly", void 0);
19
+ exports.Export = Export = tslib_1.__decorate([
20
+ (0, mongoose_1.Schema)({ timestamps: true })
21
+ ], Export);
22
+ exports.ExportSchema = mongoose_1.SchemaFactory.createForClass(Export);
23
+ exports.ExportSchema.index({ createdAt: 1 }, { expireAfterSeconds: 300 });
24
+ //# sourceMappingURL=export.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.schema.js","sourceRoot":"","sources":["../src/export.schema.ts"],"names":[],"mappings":";;;;AAAA,+CAA8D;AAC9D,uCAAoE;AAK7D,IAAM,MAAM,GAAZ,MAAM,MAAM;IAMjB,QAAQ,CAAgB;CACzB,CAAA;AAPY,wBAAM;AAMjB;IALC,IAAA,eAAI,EAAC;QACJ,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ;QACnC,GAAG,EAAE,UAAU;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;sCACQ,gBAAK,CAAC,QAAQ;wCAAA;iBANb,MAAM;IADlB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAChB,MAAM,CAOlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;AAEhE,oBAAY,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAAG,EAAE,CAAC,CAAA"}
@@ -0,0 +1,20 @@
1
+ import type { AnnotationFeatureSnapshot } from '@apollo-annotation/mst';
2
+ import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
3
+ export interface FeatureDocument extends HydratedDocument<Feature> {
4
+ createdAt?: Date;
5
+ updatedAt?: Date;
6
+ }
7
+ export declare class Feature implements Omit<AnnotationFeatureSnapshot, '_id' | 'children' | 'refSeq'> {
8
+ _id: Types.ObjectId;
9
+ refSeq: Types.ObjectId;
10
+ allIds: string[];
11
+ type: string;
12
+ min: number;
13
+ max: number;
14
+ strand?: 1 | -1;
15
+ attributes?: Record<string, string[]>;
16
+ children?: Map<string, Feature>;
17
+ status: number;
18
+ user: string;
19
+ }
20
+ export declare const FeatureSchema: MongooseSchema<Feature, import("mongoose").Model<Feature, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Feature>;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FeatureSchema = exports.Feature = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const mongoose_1 = require("@nestjs/mongoose");
6
+ const mongoose_2 = require("mongoose");
7
+ let Feature = class Feature {
8
+ // Don't make this a @Prop since _id is already on a MongoDB document
9
+ _id;
10
+ refSeq;
11
+ allIds;
12
+ type;
13
+ min;
14
+ max;
15
+ strand;
16
+ attributes;
17
+ // This is not a @Prop because it needs to be a recursive reference to the
18
+ // schema, which is done with Schema.add below
19
+ children;
20
+ status;
21
+ user;
22
+ };
23
+ exports.Feature = Feature;
24
+ tslib_1.__decorate([
25
+ (0, mongoose_1.Prop)({
26
+ required: true,
27
+ index: true,
28
+ type: mongoose_2.Schema.Types.ObjectId,
29
+ ref: 'RefSeq',
30
+ }),
31
+ tslib_1.__metadata("design:type", mongoose_2.Types.ObjectId)
32
+ ], Feature.prototype, "refSeq", void 0);
33
+ tslib_1.__decorate([
34
+ (0, mongoose_1.Prop)({ type: [String], required: true, index: true }),
35
+ tslib_1.__metadata("design:type", Array)
36
+ ], Feature.prototype, "allIds", void 0);
37
+ tslib_1.__decorate([
38
+ (0, mongoose_1.Prop)({ required: true }),
39
+ tslib_1.__metadata("design:type", String)
40
+ ], Feature.prototype, "type", void 0);
41
+ tslib_1.__decorate([
42
+ (0, mongoose_1.Prop)({ required: true }),
43
+ tslib_1.__metadata("design:type", Number)
44
+ ], Feature.prototype, "min", void 0);
45
+ tslib_1.__decorate([
46
+ (0, mongoose_1.Prop)({ required: true }),
47
+ tslib_1.__metadata("design:type", Number)
48
+ ], Feature.prototype, "max", void 0);
49
+ tslib_1.__decorate([
50
+ (0, mongoose_1.Prop)(),
51
+ tslib_1.__metadata("design:type", Number)
52
+ ], Feature.prototype, "strand", void 0);
53
+ tslib_1.__decorate([
54
+ (0, mongoose_1.Prop)({ type: Map, of: [String] }),
55
+ tslib_1.__metadata("design:type", Object)
56
+ ], Feature.prototype, "attributes", void 0);
57
+ tslib_1.__decorate([
58
+ (0, mongoose_1.Prop)(),
59
+ tslib_1.__metadata("design:type", Number)
60
+ ], Feature.prototype, "status", void 0);
61
+ tslib_1.__decorate([
62
+ (0, mongoose_1.Prop)(),
63
+ tslib_1.__metadata("design:type", String)
64
+ ], Feature.prototype, "user", void 0);
65
+ exports.Feature = Feature = tslib_1.__decorate([
66
+ (0, mongoose_1.Schema)({ timestamps: true })
67
+ ], Feature);
68
+ exports.FeatureSchema = mongoose_1.SchemaFactory.createForClass(Feature);
69
+ exports.FeatureSchema.add({ children: { type: Map, of: exports.FeatureSchema } });
70
+ exports.FeatureSchema.index({ refSeq: 1, min: 1 });
71
+ exports.FeatureSchema.index({ refSeq: 1, max: 1 });
72
+ exports.FeatureSchema.index({ '$**': 'text' });
73
+ //# sourceMappingURL=feature.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.schema.js","sourceRoot":"","sources":["../src/feature.schema.ts"],"names":[],"mappings":";;;;AACA,+CAA8D;AAC9D,uCAA4E;AAQrE,IAAM,OAAO,GAAb,MAAM,OAAO;IAGlB,qEAAqE;IACrE,GAAG,CAAgB;IAQnB,MAAM,CAAgB;IAGtB,MAAM,CAAU;IAGhB,IAAI,CAAQ;IAGZ,GAAG,CAAQ;IAGX,GAAG,CAAQ;IAGX,MAAM,CAAS;IAGf,UAAU,CAA2B;IAErC,0EAA0E;IAC1E,8CAA8C;IAC9C,QAAQ,CAAuB;IAG/B,MAAM,CAAQ;IAGd,IAAI,CAAQ;CACb,CAAA;AAzCY,0BAAO;AAYlB;IANC,IAAA,eAAI,EAAC;QACJ,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ;QACnC,GAAG,EAAE,QAAQ;KACd,CAAC;sCACM,gBAAK,CAAC,QAAQ;uCAAA;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;uCACtC;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACb;AAGZ;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACd;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACd;AAGX;IADC,IAAA,eAAI,GAAE;;uCACQ;AAGf;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;2CACG;AAOrC;IADC,IAAA,eAAI,GAAE;;uCACO;AAGd;IADC,IAAA,eAAI,GAAE;;qCACK;kBAxCD,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAChB,OAAO,CAyCnB;AACY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA;AAElE,qBAAa,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,qBAAa,EAAE,EAAE,CAAC,CAAA;AAEjE,qBAAa,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAA;AAC1C,qBAAa,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAA;AAC1C,qBAAa,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Document } from 'mongoose';
2
+ export type FileDocument = File & Document;
3
+ export declare class File {
4
+ basename: string;
5
+ checksum: string;
6
+ type: 'text/x-gff3' | 'text/x-fasta' | 'application/x-bgzip-fasta' | 'text/x-fai' | 'application/x-gzi';
7
+ }
8
+ export declare const FileSchema: import("mongoose").Schema<File, import("mongoose").Model<File, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, File>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FileSchema = exports.File = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const mongoose_1 = require("@nestjs/mongoose");
6
+ let File = class File {
7
+ basename;
8
+ checksum;
9
+ type;
10
+ };
11
+ exports.File = File;
12
+ tslib_1.__decorate([
13
+ (0, mongoose_1.Prop)({ required: true }),
14
+ tslib_1.__metadata("design:type", String)
15
+ ], File.prototype, "basename", void 0);
16
+ tslib_1.__decorate([
17
+ (0, mongoose_1.Prop)({ required: true }),
18
+ tslib_1.__metadata("design:type", String)
19
+ ], File.prototype, "checksum", void 0);
20
+ tslib_1.__decorate([
21
+ (0, mongoose_1.Prop)({
22
+ required: true,
23
+ enum: [
24
+ 'text/x-gff3',
25
+ 'text/x-fasta',
26
+ 'application/x-bgzip-fasta',
27
+ 'text/x-fai',
28
+ 'application/x-gzi',
29
+ ],
30
+ }),
31
+ tslib_1.__metadata("design:type", String)
32
+ ], File.prototype, "type", void 0);
33
+ exports.File = File = tslib_1.__decorate([
34
+ (0, mongoose_1.Schema)()
35
+ ], File);
36
+ exports.FileSchema = mongoose_1.SchemaFactory.createForClass(File);
37
+ //# sourceMappingURL=file.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.schema.js","sourceRoot":"","sources":["../src/file.schema.ts"],"names":[],"mappings":";;;;AAAA,+CAA8D;AAMvD,IAAM,IAAI,GAAV,MAAM,IAAI;IAEf,QAAQ,CAAQ;IAGhB,QAAQ,CAAQ;IAYhB,IAAI,CAKmB;CACxB,CAAA;AAvBY,oBAAI;AAEf;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACT;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACT;AAYhB;IAVC,IAAA,eAAI,EAAC;QACJ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,aAAa;YACb,cAAc;YACd,2BAA2B;YAC3B,YAAY;YACZ,mBAAmB;SACpB;KACF,CAAC;;kCAMqB;eAtBZ,IAAI;IADhB,IAAA,iBAAM,GAAE;GACI,IAAI,CAuBhB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA"}
@@ -0,0 +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';
package/dist/index.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./assembly.schema"), exports);
5
+ tslib_1.__exportStar(require("./change.schema"), exports);
6
+ tslib_1.__exportStar(require("./check.schema"), exports);
7
+ tslib_1.__exportStar(require("./checkResult.schema"), exports);
8
+ tslib_1.__exportStar(require("./counter.schema"), exports);
9
+ tslib_1.__exportStar(require("./export.schema"), exports);
10
+ tslib_1.__exportStar(require("./feature.schema"), exports);
11
+ tslib_1.__exportStar(require("./file.schema"), exports);
12
+ tslib_1.__exportStar(require("./refSeq.schema"), exports);
13
+ tslib_1.__exportStar(require("./refSeqChunk.schema"), exports);
14
+ tslib_1.__exportStar(require("./user.schema"), exports);
15
+ tslib_1.__exportStar(require("./jbrowseConfig.schema"), exports);
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,4DAAiC;AACjC,0DAA+B;AAC/B,yDAA8B;AAC9B,+DAAoC;AACpC,2DAAgC;AAChC,0DAA+B;AAC/B,2DAAgC;AAChC,wDAA6B;AAC7B,0DAA+B;AAC/B,+DAAoC;AACpC,wDAA6B;AAC7B,iEAAsC"}
@@ -0,0 +1,5 @@
1
+ import { Document } from 'mongoose';
2
+ export type JBrowseConfigDocument = JBrowseConfig & Document;
3
+ export declare class JBrowseConfig {
4
+ }
5
+ export declare const JBrowseConfigSchema: import("mongoose").Schema<JBrowseConfig, import("mongoose").Model<JBrowseConfig, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, JBrowseConfig>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JBrowseConfigSchema = exports.JBrowseConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const mongoose_1 = require("@nestjs/mongoose");
6
+ let JBrowseConfig = class JBrowseConfig {
7
+ };
8
+ exports.JBrowseConfig = JBrowseConfig;
9
+ exports.JBrowseConfig = JBrowseConfig = tslib_1.__decorate([
10
+ (0, mongoose_1.Schema)({ strict: false })
11
+ ], JBrowseConfig);
12
+ exports.JBrowseConfigSchema = mongoose_1.SchemaFactory.createForClass(JBrowseConfig);
13
+ //# sourceMappingURL=jbrowseConfig.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jbrowseConfig.schema.js","sourceRoot":"","sources":["../src/jbrowseConfig.schema.ts"],"names":[],"mappings":";;;;AAAA,+CAAwD;AAMjD,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IADzB,IAAA,iBAAM,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;GACb,aAAa,CAAG;AAEhB,QAAA,mBAAmB,GAAG,wBAAa,CAAC,cAAc,CAAC,aAAa,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { Document, Schema as MongooseSchema, Types } from 'mongoose';
2
+ import { Assembly } from './assembly.schema';
3
+ export type RefSeqDocument = RefSeq & Document;
4
+ export declare class RefSeq {
5
+ _id: Types.ObjectId;
6
+ assembly: Assembly;
7
+ name: string;
8
+ description: string;
9
+ aliases: string[];
10
+ length: number;
11
+ chunkSize: number;
12
+ status: number;
13
+ user: string;
14
+ }
15
+ export declare const RefSeqSchema: MongooseSchema<RefSeq, import("mongoose").Model<RefSeq, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, RefSeq>;