@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.
Files changed (62) hide show
  1. package/dist/assembly.schema.d.ts +4 -3
  2. package/dist/assembly.schema.d.ts.map +1 -0
  3. package/dist/assembly.schema.js +49 -44
  4. package/dist/assembly.schema.js.map +1 -1
  5. package/dist/change.schema.d.ts +1 -0
  6. package/dist/change.schema.d.ts.map +1 -0
  7. package/dist/change.schema.js +36 -31
  8. package/dist/change.schema.js.map +1 -1
  9. package/dist/check.schema.d.ts +2 -1
  10. package/dist/check.schema.d.ts.map +1 -0
  11. package/dist/check.schema.js +27 -21
  12. package/dist/check.schema.js.map +1 -1
  13. package/dist/checkResult.schema.d.ts +3 -2
  14. package/dist/checkResult.schema.d.ts.map +1 -0
  15. package/dist/checkResult.schema.js +42 -37
  16. package/dist/checkResult.schema.js.map +1 -1
  17. package/dist/counter.schema.d.ts +1 -0
  18. package/dist/counter.schema.d.ts.map +1 -0
  19. package/dist/counter.schema.js +21 -15
  20. package/dist/counter.schema.js.map +1 -1
  21. package/dist/export.schema.d.ts +1 -0
  22. package/dist/export.schema.d.ts.map +1 -0
  23. package/dist/export.schema.js +20 -15
  24. package/dist/export.schema.js.map +1 -1
  25. package/dist/feature.schema.d.ts +3 -2
  26. package/dist/feature.schema.d.ts.map +1 -0
  27. package/dist/feature.schema.js +50 -45
  28. package/dist/feature.schema.js.map +1 -1
  29. package/dist/file.schema.d.ts +1 -0
  30. package/dist/file.schema.d.ts.map +1 -0
  31. package/dist/file.schema.js +24 -18
  32. package/dist/file.schema.js.map +1 -1
  33. package/dist/index.d.ts +13 -12
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/index.js +12 -15
  36. package/dist/index.js.map +1 -1
  37. package/dist/jbrowseConfig.schema.d.ts +1 -0
  38. package/dist/jbrowseConfig.schema.d.ts.map +1 -0
  39. package/dist/jbrowseConfig.schema.js +12 -9
  40. package/dist/jbrowseConfig.schema.js.map +1 -1
  41. package/dist/refSeq.schema.d.ts +2 -1
  42. package/dist/refSeq.schema.d.ts.map +1 -0
  43. package/dist/refSeq.schema.js +41 -36
  44. package/dist/refSeq.schema.js.map +1 -1
  45. package/dist/refSeqChunk.schema.d.ts +2 -1
  46. package/dist/refSeqChunk.schema.d.ts.map +1 -0
  47. package/dist/refSeqChunk.schema.js +32 -27
  48. package/dist/refSeqChunk.schema.js.map +1 -1
  49. package/dist/tsconfig.tsbuildinfo +1 -1
  50. package/dist/user.schema.d.ts +1 -0
  51. package/dist/user.schema.d.ts.map +1 -0
  52. package/dist/user.schema.js +24 -18
  53. package/dist/user.schema.js.map +1 -1
  54. package/package.json +6 -4
  55. package/src/assembly.schema.ts +3 -3
  56. package/src/check.schema.ts +1 -1
  57. package/src/checkResult.schema.ts +6 -2
  58. package/src/feature.schema.ts +6 -2
  59. package/src/index.ts +12 -12
  60. package/src/refSeq.schema.ts +1 -1
  61. package/src/refSeqChunk.schema.ts +1 -1
  62. package/tsconfig.json +2 -4
@@ -7,3 +7,4 @@ export declare class User {
7
7
  role: Role;
8
8
  }
9
9
  export declare const UserSchema: import("mongoose").Schema<User, import("mongoose").Model<User, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, User>;
10
+ //# sourceMappingURL=user.schema.d.ts.map
@@ -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"}
@@ -1,28 +1,34 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserSchema = exports.User = void 0;
4
- const tslib_1 = require("tslib");
5
- const mongoose_1 = require("@nestjs/mongoose");
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
- exports.User = User;
12
- tslib_1.__decorate([
13
- (0, mongoose_1.Prop)({ required: true }),
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
- tslib_1.__decorate([
17
- (0, mongoose_1.Prop)({ required: true, unique: true }),
18
- tslib_1.__metadata("design:type", String)
21
+ __decorate([
22
+ Prop({ required: true, unique: true }),
23
+ __metadata("design:type", String)
19
24
  ], User.prototype, "email", void 0);
20
- tslib_1.__decorate([
21
- (0, mongoose_1.Prop)({ type: String, enum: ['readOnly', 'admin', 'user', 'none'] }),
22
- tslib_1.__metadata("design:type", String)
25
+ __decorate([
26
+ Prop({ type: String, enum: ['readOnly', 'admin', 'user', 'none'] }),
27
+ __metadata("design:type", String)
23
28
  ], User.prototype, "role", void 0);
24
- exports.User = User = tslib_1.__decorate([
25
- (0, mongoose_1.Schema)({ timestamps: true })
29
+ User = __decorate([
30
+ Schema({ timestamps: true })
26
31
  ], User);
27
- exports.UserSchema = mongoose_1.SchemaFactory.createForClass(User);
32
+ export { User };
33
+ export const UserSchema = SchemaFactory.createForClass(User);
28
34
  //# sourceMappingURL=user.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../src/user.schema.ts"],"names":[],"mappings":";;;;AAAA,+CAA8D;AAQvD,IAAM,IAAI,GAAV,MAAM,IAAI;IAEf,QAAQ,CAAQ;IAGhB,KAAK,CAAQ;IAGb,IAAI,CAAM;CACX,CAAA;AATY,oBAAI;AAEf;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACT;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mCAC1B;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;;kCAC1D;eARC,IAAI;IADhB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAChB,IAAI,CAShB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA"}
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.11",
4
- "main": "./dist/index.js",
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.11",
19
- "@types/node": "^20.19.15",
20
+ "@apollo-annotation/mst": "^0.3.13",
21
+ "@types/node": "^24.10.9",
20
22
  "typescript": "^5.5.3"
21
23
  },
22
24
  "publishConfig": {
@@ -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: { fa: string; fai: string; gzi?: string }
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: { fa: string; fai: string; gzi: string } // Store fileId of fa/fai/gzi.
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[]
@@ -1,5 +1,5 @@
1
1
  import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
2
- import { HydratedDocument, Types } from 'mongoose'
2
+ import { type HydratedDocument, Types } from 'mongoose'
3
3
 
4
4
  export interface CheckDocument extends HydratedDocument<Check> {
5
5
  createdAt: Date
@@ -1,6 +1,10 @@
1
- import { type CheckResultSnapshot } from '@apollo-annotation/mst'
1
+ import type { CheckResultSnapshot } from '@apollo-annotation/mst'
2
2
  import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
3
- import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose'
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
 
@@ -1,6 +1,10 @@
1
- import { type AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
1
+ import type { AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
2
2
  import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
3
- import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose'
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'
@@ -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-base.json",
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
  }