itlab-internal-services 2.14.3 → 2.14.5

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 (24) hide show
  1. package/dist/models/account-entity.model.d.ts +4 -4
  2. package/dist/models/account-entity.model.js +7 -7
  3. package/dist/models/mail-recipient.model.d.ts +5 -0
  4. package/dist/models/mail-recipient.model.js +8 -1
  5. package/dist/modules/comment/comment-module-options.interface.d.ts +5 -2
  6. package/dist/modules/comment/comment.module.d.ts +2 -1
  7. package/dist/modules/comment/comment.module.js +3 -1
  8. package/dist/modules/comment/comment.service.d.ts +10 -9
  9. package/dist/modules/comment/comment.service.js +28 -20
  10. package/dist/modules/database/model-service/dbs/hub-account.db.d.ts +2 -2
  11. package/dist/modules/database/model-service/dbs/hub-books.db.d.ts +2 -2
  12. package/dist/modules/database/model-service/dbs/hub-comments.db.d.ts +2 -2
  13. package/dist/modules/database/model-service/dbs/hub-content.db.d.ts +2 -2
  14. package/dist/modules/database/model-service/dbs/hub-demo-hive.db.d.ts +2 -2
  15. package/dist/modules/database/model-service/dbs/hub-events.db.d.ts +2 -2
  16. package/dist/modules/database/model-service/dbs/hub-hackschool.db.d.ts +6 -6
  17. package/dist/modules/database/model-service/dbs/hub-newsroom.db.d.ts +2 -2
  18. package/dist/modules/database/model-service/dbs/hub-podcasts.db.d.ts +2 -2
  19. package/dist/modules/database/model-service/dbs/hub-team.db.d.ts +2 -2
  20. package/dist/modules/database/model-service/dbs/hub-tech-radar.db.d.ts +4 -4
  21. package/dist/modules/database/model-service/model.service.d.ts +392 -140
  22. package/dist/modules/like/like.service.d.ts +1 -1
  23. package/dist/modules/like/like.service.js +4 -6
  24. package/package.json +20 -20
@@ -4,12 +4,12 @@
4
4
  export declare class AccountEntity {
5
5
  /** Unique identifier for the account */
6
6
  id: string;
7
- /** Array of permissions for the account */
8
- perms: string[];
9
- /** Username of the account */
10
- username: string;
11
7
  /** Email of the account */
12
8
  email: string;
9
+ /** Username of the account */
10
+ username: string;
13
11
  /** Optional: Avatar of the account */
14
12
  avatar?: string;
13
+ /** Array of permissions for the account */
14
+ perms: string[];
15
15
  }
@@ -22,18 +22,18 @@ __decorate([
22
22
  __metadata("design:type", String)
23
23
  ], AccountEntity.prototype, "id", void 0);
24
24
  __decorate([
25
- (0, swagger_1.ApiProperty)({ description: 'Array of permissions for the account', example: ['news.publish'] }),
26
- __metadata("design:type", Array)
27
- ], AccountEntity.prototype, "perms", void 0);
25
+ (0, swagger_1.ApiProperty)({ description: 'Email of the account', example: 'timo@example.com' }),
26
+ __metadata("design:type", String)
27
+ ], AccountEntity.prototype, "email", void 0);
28
28
  __decorate([
29
29
  (0, swagger_1.ApiProperty)({ description: 'Username of the account', example: 'Timo S.' }),
30
30
  __metadata("design:type", String)
31
31
  ], AccountEntity.prototype, "username", void 0);
32
- __decorate([
33
- (0, swagger_1.ApiProperty)({ description: 'Email of the account', example: 'timo@example.com' }),
34
- __metadata("design:type", String)
35
- ], AccountEntity.prototype, "email", void 0);
36
32
  __decorate([
37
33
  (0, swagger_1.ApiPropertyOptional)({ description: 'Avatar of the account', example: 'https://example.com/avatar.jpg' }),
38
34
  __metadata("design:type", String)
39
35
  ], AccountEntity.prototype, "avatar", void 0);
36
+ __decorate([
37
+ (0, swagger_1.ApiProperty)({ description: 'Array of permissions for the account', example: ['news.publish'] }),
38
+ __metadata("design:type", Array)
39
+ ], AccountEntity.prototype, "perms", void 0);
@@ -20,4 +20,9 @@ export declare class MailRecipient {
20
20
  * The username of the recipient
21
21
  */
22
22
  username: string;
23
+ /**
24
+ * Returns a string representation of the recipient
25
+ * @returns {string} The string representation of the recipient
26
+ */
27
+ toString(): string;
23
28
  }
@@ -28,7 +28,14 @@ class MailRecipient {
28
28
  */
29
29
  constructor(email, username) {
30
30
  this.email = email;
31
- this.username = username || (0, class_validator_1.isEmail)(email) ? (0, itlab_functions_1.emailToUsername)(email) : email;
31
+ this.username = username || ((0, class_validator_1.isEmail)(email) ? (0, itlab_functions_1.emailToUsername)(email) : email);
32
+ }
33
+ /**
34
+ * Returns a string representation of the recipient
35
+ * @returns {string} The string representation of the recipient
36
+ */
37
+ toString() {
38
+ return `${this.username} (${this.email})`;
32
39
  }
33
40
  }
34
41
  exports.MailRecipient = MailRecipient;
@@ -1,7 +1,10 @@
1
1
  import { ModelDefinition } from '@nestjs/mongoose';
2
+ import { Document } from 'mongoose';
2
3
  import { HubResource } from '../../hub-resource.enum';
3
- export interface CommentModuleOptions {
4
+ export interface CommentModuleOptions<T extends Document = any> {
4
5
  resource: HubResource;
5
- model?: ModelDefinition;
6
6
  suffix?: string[];
7
+ model?: ModelDefinition;
8
+ ownerIdField?: keyof Omit<T, keyof Document>;
9
+ ownerIdsField?: keyof Omit<T, keyof Document>;
7
10
  }
@@ -1,4 +1,5 @@
1
1
  import { DynamicModule } from '@nestjs/common';
2
+ import { Document } from 'mongoose';
2
3
  import { CommentModuleOptions } from './comment-module-options.interface';
3
4
  /**
4
5
  * @class CommentModule
@@ -6,5 +7,5 @@ import { CommentModuleOptions } from './comment-module-options.interface';
6
7
  * @author Timo Scheuermann
7
8
  */
8
9
  export declare class CommentModule {
9
- static register(options: CommentModuleOptions): DynamicModule;
10
+ static register<T extends Document = any>(options: CommentModuleOptions<T>): DynamicModule;
10
11
  }
@@ -39,9 +39,11 @@ let CommentModule = CommentModule_1 = class CommentModule {
39
39
  controllers: [CommentController],
40
40
  providers: [
41
41
  comment_service_1.CommentService,
42
- { provide: 'COMMENT_RESOURCE', useValue: options.resource },
43
42
  { provide: 'COMMENT_MODEL', useValue: options.model.name },
44
43
  { provide: 'COMMENT_SCHEMA', useValue: options.model.schema },
44
+ { provide: 'COMMENT_RESOURCE', useValue: options.resource },
45
+ { provide: 'COMMENT_RESOURCE_OWNER_ID_FIELD', useValue: options.ownerIdField },
46
+ { provide: 'COMMENT_RESOURCE_OWNER_IDS_FIELD', useValue: options.ownerIdsField },
45
47
  ],
46
48
  exports: [comment_service_1.CommentService],
47
49
  };
@@ -10,25 +10,26 @@ import { AuthOptions } from '../authentication';
10
10
  * @author Timo Scheuermann
11
11
  */
12
12
  export declare class CommentService {
13
+ private readonly configService;
13
14
  private readonly authOptions;
14
15
  private readonly connection;
16
+ private readonly resource;
15
17
  private readonly model;
16
18
  private readonly schema;
17
- private readonly resource;
18
- private readonly configService;
19
+ private readonly ownerIdField;
20
+ private readonly ownerIdsField;
19
21
  /** The CommentService logger */
20
22
  private readonly logger;
21
23
  /**
22
24
  * @constructor Constructor for the CommentService class
23
- * @param {Connection} connection - the database connection
25
+ * @param {ConfigService} configService - the config service
26
+ * @param {HubResource} resource - the resource used
24
27
  * @param {string} model - the model name
25
28
  * @param {string} schema - the schema
26
- * @param {HubResource} resource - the resource used
27
- * @param {ConfigService} configService - the config service
29
+ * @param {string} ownerId - the ownerId attr of the resource
30
+ * @param {string} ownerIds - the ownerIds attr of the resource
28
31
  */
29
- constructor(authOptions: AuthOptions, connection: Connection, model: string | undefined, schema: Schema<{
30
- _url: string;
31
- }> | undefined, resource: HubResource, configService: ConfigService);
32
+ constructor(configService: ConfigService, authOptions: AuthOptions, connection: Connection | undefined, resource: HubResource, model: string | undefined, schema: Schema<any> | undefined, ownerIdField: string | undefined, ownerIdsField: string | undefined);
32
33
  private get baseUrl();
33
34
  /** The axios instance */
34
35
  private axios;
@@ -37,7 +38,7 @@ export declare class CommentService {
37
38
  *
38
39
  * @return {Model<{}> | undefined} The model retrieved from the connection.
39
40
  */
40
- private getModel;
41
+ private get resourceModel();
41
42
  /**
42
43
  * Post a comment to a specific resource.
43
44
  *
@@ -39,19 +39,22 @@ const authentication_1 = require("../authentication");
39
39
  let CommentService = CommentService_1 = class CommentService {
40
40
  /**
41
41
  * @constructor Constructor for the CommentService class
42
- * @param {Connection} connection - the database connection
42
+ * @param {ConfigService} configService - the config service
43
+ * @param {HubResource} resource - the resource used
43
44
  * @param {string} model - the model name
44
45
  * @param {string} schema - the schema
45
- * @param {HubResource} resource - the resource used
46
- * @param {ConfigService} configService - the config service
46
+ * @param {string} ownerId - the ownerId attr of the resource
47
+ * @param {string} ownerIds - the ownerIds attr of the resource
47
48
  */
48
- constructor(authOptions, connection, model, schema, resource, configService) {
49
+ constructor(configService, authOptions, connection, resource, model, schema, ownerIdField, ownerIdsField) {
50
+ this.configService = configService;
49
51
  this.authOptions = authOptions;
50
52
  this.connection = connection;
53
+ this.resource = resource;
51
54
  this.model = model;
52
55
  this.schema = schema;
53
- this.resource = resource;
54
- this.configService = configService;
56
+ this.ownerIdField = ownerIdField;
57
+ this.ownerIdsField = ownerIdsField;
55
58
  /** The CommentService logger */
56
59
  this.logger = new common_1.Logger(CommentService_1.name);
57
60
  /** The axios instance */
@@ -71,10 +74,9 @@ let CommentService = CommentService_1 = class CommentService {
71
74
  *
72
75
  * @return {Model<{}> | undefined} The model retrieved from the connection.
73
76
  */
74
- getModel() {
77
+ get resourceModel() {
75
78
  if (!(this.model && this.schema))
76
79
  return undefined;
77
- this.logger.debug('Current DB', this.connection.db.databaseName);
78
80
  return this.connection.model(this.model, this.schema);
79
81
  }
80
82
  /**
@@ -88,17 +90,19 @@ let CommentService = CommentService_1 = class CommentService {
88
90
  postComment(resourceId, accountId, comment) {
89
91
  return __awaiter(this, void 0, void 0, function* () {
90
92
  // CommentModel is null inside manager modules
91
- if (!(0, class_validator_1.isDefined)(this.getModel())) {
93
+ if (!(0, class_validator_1.isDefined)(this.resourceModel)) {
92
94
  this.logger.error('Kommentare können nicht vom Management aus erstellt werden');
93
95
  return;
94
96
  }
95
- const exists = yield this.getModel().findOne({ _id: resourceId });
96
- if (!exists)
97
+ const resource = yield this.resourceModel.findOne({ _id: resourceId });
98
+ if (!resource)
97
99
  throw new common_1.NotFoundException('Kommentar konnte nicht erstellt werden');
100
+ const ownerId = this.ownerIdField ? resource[this.ownerIdField] : undefined;
101
+ const ownerIds = this.ownerIdsField ? resource[this.ownerIdsField] : undefined;
98
102
  this.logger.log(`Posting comment for ${this.resource} (${resourceId}) by ${accountId}`);
99
103
  return new Promise((resolve, reject) => {
100
104
  this.axios
101
- .post(`${this.resource}/${resourceId}/${accountId}`, comment)
105
+ .post(`${this.resource}/${resourceId}/${accountId}`, comment, { params: { ownerId, ownerIds } })
102
106
  .then(({ data }) => {
103
107
  this.logger.log(`Comment for ${this.resource} (${resourceId}) posted`);
104
108
  resolve(data);
@@ -127,12 +131,16 @@ let CommentService = CommentService_1 = class CommentService {
127
131
  exports.CommentService = CommentService;
128
132
  exports.CommentService = CommentService = CommentService_1 = __decorate([
129
133
  (0, common_1.Injectable)(),
130
- __param(0, (0, authentication_1.InjectAuthOptions)()),
131
- __param(1, (0, mongoose_1.InjectConnection)()),
132
- __param(2, (0, common_1.Optional)()),
133
- __param(2, (0, common_1.Inject)('COMMENT_MODEL')),
134
- __param(3, (0, common_1.Optional)()),
135
- __param(3, (0, common_1.Inject)('COMMENT_SCHEMA')),
136
- __param(4, (0, common_1.Inject)('COMMENT_RESOURCE')),
137
- __metadata("design:paramtypes", [Object, mongoose_2.Connection, String, mongoose_2.Schema, String, config_1.ConfigService])
134
+ __param(1, (0, authentication_1.InjectAuthOptions)()),
135
+ __param(2, (0, mongoose_1.InjectConnection)()),
136
+ __param(3, (0, common_1.Inject)('COMMENT_RESOURCE')),
137
+ __param(4, (0, common_1.Optional)()),
138
+ __param(4, (0, common_1.Inject)('COMMENT_MODEL')),
139
+ __param(5, (0, common_1.Optional)()),
140
+ __param(5, (0, common_1.Inject)('COMMENT_SCHEMA')),
141
+ __param(6, (0, common_1.Optional)()),
142
+ __param(6, (0, common_1.Inject)('COMMENT_RESOURCE_OWNER_ID_FIELD')),
143
+ __param(7, (0, common_1.Optional)()),
144
+ __param(7, (0, common_1.Inject)('COMMENT_RESOURCE_OWNER_IDS_FIELD')),
145
+ __metadata("design:paramtypes", [config_1.ConfigService, Object, mongoose_2.Connection, String, String, mongoose_2.Schema, String, String])
138
146
  ], CommentService);
@@ -14,11 +14,11 @@ export declare const AccountDB: {
14
14
  name: string;
15
15
  account: {
16
16
  model: typeof AccountModel;
17
- schema: import("mongoose").Schema<AccountModel, import("mongoose").Model<AccountModel, any, any, any, Document<unknown, any, AccountModel> & AccountModel & Required<{
17
+ schema: import("mongoose").Schema<AccountModel, import("mongoose").Model<AccountModel, any, any, any, Document<unknown, any, AccountModel, any> & AccountModel & Required<{
18
18
  _id: unknown;
19
19
  }> & {
20
20
  __v: number;
21
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, AccountModel, Document<unknown, {}, import("mongoose").FlatRecord<AccountModel>> & import("mongoose").FlatRecord<AccountModel> & Required<{
21
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, AccountModel, Document<unknown, {}, import("mongoose").FlatRecord<AccountModel>, {}> & import("mongoose").FlatRecord<AccountModel> & Required<{
22
22
  _id: unknown;
23
23
  }> & {
24
24
  __v: number;
@@ -9,11 +9,11 @@ export declare const BooksDB: {
9
9
  name: string;
10
10
  book: {
11
11
  model: typeof BookModel;
12
- schema: import("mongoose").Schema<BookModel, import("mongoose").Model<BookModel, any, any, any, Document<unknown, any, BookModel> & BookModel & Required<{
12
+ schema: import("mongoose").Schema<BookModel, import("mongoose").Model<BookModel, any, any, any, Document<unknown, any, BookModel, any> & BookModel & Required<{
13
13
  _id: unknown;
14
14
  }> & {
15
15
  __v: number;
16
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, BookModel, Document<unknown, {}, import("mongoose").FlatRecord<BookModel>> & import("mongoose").FlatRecord<BookModel> & Required<{
16
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, BookModel, Document<unknown, {}, import("mongoose").FlatRecord<BookModel>, {}> & import("mongoose").FlatRecord<BookModel> & Required<{
17
17
  _id: unknown;
18
18
  }> & {
19
19
  __v: number;
@@ -15,11 +15,11 @@ export declare const CommentsDB: {
15
15
  name: string;
16
16
  comment: {
17
17
  model: typeof CommentModel;
18
- schema: import("mongoose").Schema<CommentModel, import("mongoose").Model<CommentModel, any, any, any, Document<unknown, any, CommentModel> & CommentModel & Required<{
18
+ schema: import("mongoose").Schema<CommentModel, import("mongoose").Model<CommentModel, any, any, any, Document<unknown, any, CommentModel, any> & CommentModel & Required<{
19
19
  _id: unknown;
20
20
  }> & {
21
21
  __v: number;
22
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CommentModel, Document<unknown, {}, import("mongoose").FlatRecord<CommentModel>> & import("mongoose").FlatRecord<CommentModel> & Required<{
22
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CommentModel, Document<unknown, {}, import("mongoose").FlatRecord<CommentModel>, {}> & import("mongoose").FlatRecord<CommentModel> & Required<{
23
23
  _id: unknown;
24
24
  }> & {
25
25
  __v: number;
@@ -10,11 +10,11 @@ export declare const ContentDB: {
10
10
  name: string;
11
11
  content: {
12
12
  model: typeof ContentModel;
13
- schema: import("mongoose").Schema<ContentModel, import("mongoose").Model<ContentModel, any, any, any, Document<unknown, any, ContentModel> & ContentModel & Required<{
13
+ schema: import("mongoose").Schema<ContentModel, import("mongoose").Model<ContentModel, any, any, any, Document<unknown, any, ContentModel, any> & ContentModel & Required<{
14
14
  _id: unknown;
15
15
  }> & {
16
16
  __v: number;
17
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ContentModel, Document<unknown, {}, import("mongoose").FlatRecord<ContentModel>> & import("mongoose").FlatRecord<ContentModel> & Required<{
17
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ContentModel, Document<unknown, {}, import("mongoose").FlatRecord<ContentModel>, {}> & import("mongoose").FlatRecord<ContentModel> & Required<{
18
18
  _id: unknown;
19
19
  }> & {
20
20
  __v: number;
@@ -9,11 +9,11 @@ export declare const DemoHiveDB: {
9
9
  name: string;
10
10
  demo: {
11
11
  model: typeof DemoModel;
12
- schema: import("mongoose").Schema<DemoModel, import("mongoose").Model<DemoModel, any, any, any, Document<unknown, any, DemoModel> & DemoModel & Required<{
12
+ schema: import("mongoose").Schema<DemoModel, import("mongoose").Model<DemoModel, any, any, any, Document<unknown, any, DemoModel, any> & DemoModel & Required<{
13
13
  _id: unknown;
14
14
  }> & {
15
15
  __v: number;
16
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DemoModel, Document<unknown, {}, import("mongoose").FlatRecord<DemoModel>> & import("mongoose").FlatRecord<DemoModel> & Required<{
16
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DemoModel, Document<unknown, {}, import("mongoose").FlatRecord<DemoModel>, {}> & import("mongoose").FlatRecord<DemoModel> & Required<{
17
17
  _id: unknown;
18
18
  }> & {
19
19
  __v: number;
@@ -10,11 +10,11 @@ export declare const EventsDB: {
10
10
  name: string;
11
11
  event: {
12
12
  model: typeof EventModel;
13
- schema: import("mongoose").Schema<EventModel, import("mongoose").Model<EventModel, any, any, any, Document<unknown, any, EventModel> & EventModel & Required<{
13
+ schema: import("mongoose").Schema<EventModel, import("mongoose").Model<EventModel, any, any, any, Document<unknown, any, EventModel, any> & EventModel & Required<{
14
14
  _id: unknown;
15
15
  }> & {
16
16
  __v: number;
17
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, EventModel, Document<unknown, {}, import("mongoose").FlatRecord<EventModel>> & import("mongoose").FlatRecord<EventModel> & Required<{
17
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, EventModel, Document<unknown, {}, import("mongoose").FlatRecord<EventModel>, {}> & import("mongoose").FlatRecord<EventModel> & Required<{
18
18
  _id: unknown;
19
19
  }> & {
20
20
  __v: number;
@@ -22,11 +22,11 @@ export declare const HackschoolDB: {
22
22
  name: string;
23
23
  course: {
24
24
  model: typeof CourseModel;
25
- schema: import("mongoose").Schema<CourseModel, import("mongoose").Model<CourseModel, any, any, any, Document<unknown, any, CourseModel> & CourseModel & Required<{
25
+ schema: import("mongoose").Schema<CourseModel, import("mongoose").Model<CourseModel, any, any, any, Document<unknown, any, CourseModel, any> & CourseModel & Required<{
26
26
  _id: unknown;
27
27
  }> & {
28
28
  __v: number;
29
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CourseModel, Document<unknown, {}, import("mongoose").FlatRecord<CourseModel>> & import("mongoose").FlatRecord<CourseModel> & Required<{
29
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CourseModel, Document<unknown, {}, import("mongoose").FlatRecord<CourseModel>, {}> & import("mongoose").FlatRecord<CourseModel> & Required<{
30
30
  _id: unknown;
31
31
  }> & {
32
32
  __v: number;
@@ -34,11 +34,11 @@ export declare const HackschoolDB: {
34
34
  };
35
35
  doc: {
36
36
  model: typeof DocModel;
37
- schema: import("mongoose").Schema<DocModel, import("mongoose").Model<DocModel, any, any, any, Document<unknown, any, DocModel> & DocModel & Required<{
37
+ schema: import("mongoose").Schema<DocModel, import("mongoose").Model<DocModel, any, any, any, Document<unknown, any, DocModel, any> & DocModel & Required<{
38
38
  _id: unknown;
39
39
  }> & {
40
40
  __v: number;
41
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DocModel, Document<unknown, {}, import("mongoose").FlatRecord<DocModel>> & import("mongoose").FlatRecord<DocModel> & Required<{
41
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DocModel, Document<unknown, {}, import("mongoose").FlatRecord<DocModel>, {}> & import("mongoose").FlatRecord<DocModel> & Required<{
42
42
  _id: unknown;
43
43
  }> & {
44
44
  __v: number;
@@ -46,11 +46,11 @@ export declare const HackschoolDB: {
46
46
  };
47
47
  thread: {
48
48
  model: typeof ThreadModel;
49
- schema: import("mongoose").Schema<ThreadModel, import("mongoose").Model<ThreadModel, any, any, any, Document<unknown, any, ThreadModel> & ThreadModel & Required<{
49
+ schema: import("mongoose").Schema<ThreadModel, import("mongoose").Model<ThreadModel, any, any, any, Document<unknown, any, ThreadModel, any> & ThreadModel & Required<{
50
50
  _id: unknown;
51
51
  }> & {
52
52
  __v: number;
53
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ThreadModel, Document<unknown, {}, import("mongoose").FlatRecord<ThreadModel>> & import("mongoose").FlatRecord<ThreadModel> & Required<{
53
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ThreadModel, Document<unknown, {}, import("mongoose").FlatRecord<ThreadModel>, {}> & import("mongoose").FlatRecord<ThreadModel> & Required<{
54
54
  _id: unknown;
55
55
  }> & {
56
56
  __v: number;
@@ -11,11 +11,11 @@ export declare const NewsroomDB: {
11
11
  name: string;
12
12
  news: {
13
13
  model: typeof NewsModel;
14
- schema: import("mongoose").Schema<NewsModel, import("mongoose").Model<NewsModel, any, any, any, Document<unknown, any, NewsModel> & NewsModel & Required<{
14
+ schema: import("mongoose").Schema<NewsModel, import("mongoose").Model<NewsModel, any, any, any, Document<unknown, any, NewsModel, any> & NewsModel & Required<{
15
15
  _id: unknown;
16
16
  }> & {
17
17
  __v: number;
18
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, NewsModel, Document<unknown, {}, import("mongoose").FlatRecord<NewsModel>> & import("mongoose").FlatRecord<NewsModel> & Required<{
18
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, NewsModel, Document<unknown, {}, import("mongoose").FlatRecord<NewsModel>, {}> & import("mongoose").FlatRecord<NewsModel> & Required<{
19
19
  _id: unknown;
20
20
  }> & {
21
21
  __v: number;
@@ -9,11 +9,11 @@ export declare const PodcastsDB: {
9
9
  name: string;
10
10
  podcast: {
11
11
  model: typeof PodcastModel;
12
- schema: import("mongoose").Schema<PodcastModel, import("mongoose").Model<PodcastModel, any, any, any, Document<unknown, any, PodcastModel> & PodcastModel & Required<{
12
+ schema: import("mongoose").Schema<PodcastModel, import("mongoose").Model<PodcastModel, any, any, any, Document<unknown, any, PodcastModel, any> & PodcastModel & Required<{
13
13
  _id: unknown;
14
14
  }> & {
15
15
  __v: number;
16
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PodcastModel, Document<unknown, {}, import("mongoose").FlatRecord<PodcastModel>> & import("mongoose").FlatRecord<PodcastModel> & Required<{
16
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PodcastModel, Document<unknown, {}, import("mongoose").FlatRecord<PodcastModel>, {}> & import("mongoose").FlatRecord<PodcastModel> & Required<{
17
17
  _id: unknown;
18
18
  }> & {
19
19
  __v: number;
@@ -8,11 +8,11 @@ export declare const TeamDB: {
8
8
  name: string;
9
9
  member: {
10
10
  model: typeof MemberModel;
11
- schema: import("mongoose").Schema<MemberModel, import("mongoose").Model<MemberModel, any, any, any, Document<unknown, any, MemberModel> & MemberModel & Required<{
11
+ schema: import("mongoose").Schema<MemberModel, import("mongoose").Model<MemberModel, any, any, any, Document<unknown, any, MemberModel, any> & MemberModel & Required<{
12
12
  _id: unknown;
13
13
  }> & {
14
14
  __v: number;
15
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MemberModel, Document<unknown, {}, import("mongoose").FlatRecord<MemberModel>> & import("mongoose").FlatRecord<MemberModel> & Required<{
15
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MemberModel, Document<unknown, {}, import("mongoose").FlatRecord<MemberModel>, {}> & import("mongoose").FlatRecord<MemberModel> & Required<{
16
16
  _id: unknown;
17
17
  }> & {
18
18
  __v: number;
@@ -16,11 +16,11 @@ export declare const TechRadarDB: {
16
16
  name: string;
17
17
  blip: {
18
18
  model: typeof BlipModel;
19
- schema: import("mongoose").Schema<BlipModel, import("mongoose").Model<BlipModel, any, any, any, Document<unknown, any, BlipModel> & BlipModel & Required<{
19
+ schema: import("mongoose").Schema<BlipModel, import("mongoose").Model<BlipModel, any, any, any, Document<unknown, any, BlipModel, any> & BlipModel & Required<{
20
20
  _id: unknown;
21
21
  }> & {
22
22
  __v: number;
23
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, BlipModel, Document<unknown, {}, import("mongoose").FlatRecord<BlipModel>> & import("mongoose").FlatRecord<BlipModel> & Required<{
23
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, BlipModel, Document<unknown, {}, import("mongoose").FlatRecord<BlipModel>, {}> & import("mongoose").FlatRecord<BlipModel> & Required<{
24
24
  _id: unknown;
25
25
  }> & {
26
26
  __v: number;
@@ -28,11 +28,11 @@ export declare const TechRadarDB: {
28
28
  };
29
29
  radar: {
30
30
  model: typeof RadarModel;
31
- schema: import("mongoose").Schema<RadarModel, import("mongoose").Model<RadarModel, any, any, any, Document<unknown, any, RadarModel> & RadarModel & Required<{
31
+ schema: import("mongoose").Schema<RadarModel, import("mongoose").Model<RadarModel, any, any, any, Document<unknown, any, RadarModel, any> & RadarModel & Required<{
32
32
  _id: unknown;
33
33
  }> & {
34
34
  __v: number;
35
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, RadarModel, Document<unknown, {}, import("mongoose").FlatRecord<RadarModel>> & import("mongoose").FlatRecord<RadarModel> & Required<{
35
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, RadarModel, Document<unknown, {}, import("mongoose").FlatRecord<RadarModel>, {}> & import("mongoose").FlatRecord<RadarModel> & Required<{
36
36
  _id: unknown;
37
37
  }> & {
38
38
  __v: number;