dl-commons 0.1.9 → 0.1.10

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/dead-messages/classify-error.d.ts +8 -0
  2. package/dist/dead-messages/classify-error.js +41 -0
  3. package/dist/dead-messages/classify-error.js.map +1 -0
  4. package/dist/dead-messages/dead-letter-retry.error.d.ts +3 -0
  5. package/dist/dead-messages/dead-letter-retry.error.js +11 -0
  6. package/dist/dead-messages/dead-letter-retry.error.js.map +1 -0
  7. package/dist/dead-messages/dead-message.schema.d.ts +282 -0
  8. package/dist/dead-messages/dead-message.schema.js +130 -0
  9. package/dist/dead-messages/dead-message.schema.js.map +1 -0
  10. package/dist/dead-messages/dead-messages.const.d.ts +8 -0
  11. package/dist/dead-messages/dead-messages.const.js +12 -0
  12. package/dist/dead-messages/dead-messages.const.js.map +1 -0
  13. package/dist/dead-messages/dead-messages.controller.d.ts +17 -0
  14. package/dist/dead-messages/dead-messages.controller.js +97 -0
  15. package/dist/dead-messages/dead-messages.controller.js.map +1 -0
  16. package/dist/dead-messages/dead-messages.dto.d.ts +14 -0
  17. package/dist/dead-messages/dead-messages.dto.js +54 -0
  18. package/dist/dead-messages/dead-messages.dto.js.map +1 -0
  19. package/dist/dead-messages/dead-messages.module.d.ts +2 -0
  20. package/dist/dead-messages/dead-messages.module.js +28 -0
  21. package/dist/dead-messages/dead-messages.module.js.map +1 -0
  22. package/dist/dead-messages/dead-messages.service.d.ts +94 -0
  23. package/dist/dead-messages/dead-messages.service.js +281 -0
  24. package/dist/dead-messages/dead-messages.service.js.map +1 -0
  25. package/dist/dead-messages/kafka-consumer-runner.d.ts +47 -0
  26. package/dist/dead-messages/kafka-consumer-runner.js +258 -0
  27. package/dist/dead-messages/kafka-consumer-runner.js.map +1 -0
  28. package/dist/dead-messages/kafka-logging.d.ts +9 -0
  29. package/dist/dead-messages/kafka-logging.js +29 -0
  30. package/dist/dead-messages/kafka-logging.js.map +1 -0
  31. package/dist/dead-messages/unprocessable-message.error.d.ts +9 -0
  32. package/dist/dead-messages/unprocessable-message.error.js +37 -0
  33. package/dist/dead-messages/unprocessable-message.error.js.map +1 -0
  34. package/dist/index.d.ts +12 -1
  35. package/dist/index.js +42 -1
  36. package/dist/index.js.map +1 -1
  37. package/dist/models/schemas/base.schema.d.ts +5 -1
  38. package/dist/models/schemas/embedded/archive.schema.d.ts +5 -1
  39. package/dist/models/schemas/embedded/attachment.schema.d.ts +5 -1
  40. package/dist/models/schemas/embedded/author.schema.d.ts +5 -1
  41. package/dist/models/schemas/embedded/contact.schema.d.ts +5 -1
  42. package/dist/models/schemas/embedded/crop-area.schema.d.ts +5 -1
  43. package/dist/models/schemas/embedded/date-time-range.schema.d.ts +5 -1
  44. package/dist/models/schemas/embedded/dictionary-embedded.schema.d.ts +5 -1
  45. package/dist/models/schemas/embedded/group-session.schema.d.ts +5 -1
  46. package/dist/models/schemas/embedded/i18n.embedded.d.ts +5 -1
  47. package/dist/models/schemas/embedded/location.schema.d.ts +5 -1
  48. package/dist/models/schemas/embedded/person.schema.d.ts +5 -1
  49. package/dist/models/schemas/embedded/physical-address.schema.d.ts +5 -1
  50. package/dist/models/schemas/embedded/picture.schema.d.ts +5 -1
  51. package/dist/models/schemas/embedded/record.embedded.d.ts +5 -1
  52. package/dist/models/schemas/embedded/residence.schema.d.ts +5 -1
  53. package/dist/models/schemas/embedded/s3.schema.d.ts +40 -8
  54. package/dist/models/schemas/embedded/session-user.schema.d.ts +5 -1
  55. package/dist/models/schemas/embedded/student-embedded.schema.d.ts +5 -1
  56. package/dist/models/schemas/embedded/teacher.schema.d.ts +5 -1
  57. package/dist/models/schemas/embedded/time.schema.d.ts +5 -1
  58. package/dist/models/schemas/embedded/virtual-address.schema.d.ts +5 -1
  59. package/dist/models/schemas/identifable.schema.d.ts +5 -1
  60. package/dist/models/schemas/parent.schema.d.ts +5 -1
  61. package/dist/models/schemas/session.schema.d.ts +5 -1
  62. package/package.json +38 -3
@@ -8,7 +8,11 @@ export declare class GroupSession extends Identifable implements IGroupSession {
8
8
  day: WeekDay;
9
9
  time: ITime;
10
10
  }
11
- export declare const GroupSessionSchema: import("mongoose").Schema<GroupSession, import("mongoose").Model<GroupSession, any, any, any, any, any, GroupSession>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GroupSession, import("mongoose").Document<unknown, {}, GroupSession, {
11
+ export declare const GroupSessionSchema: import("mongoose").Schema<GroupSession, import("mongoose").Model<GroupSession, any, any, any, any, any, GroupSession & Required<{
12
+ _id: import("mongoose").Types.ObjectId;
13
+ }> & {
14
+ __v: number;
15
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GroupSession, import("mongoose").Document<unknown, {}, GroupSession, {
12
16
  id: string;
13
17
  }, import("mongoose").DefaultSchemaOptions> & Omit<GroupSession & Required<{
14
18
  _id: import("mongoose").Types.ObjectId;
@@ -5,7 +5,11 @@ export declare class I18n implements II18n {
5
5
  en: string;
6
6
  ua: string;
7
7
  }
8
- export declare const I18nSchema: import("mongoose").Schema<I18n, import("mongoose").Model<I18n, any, any, any, any, any, I18n>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, I18n, import("mongoose").Document<unknown, {}, I18n, {
8
+ export declare const I18nSchema: import("mongoose").Schema<I18n, import("mongoose").Model<I18n, any, any, any, any, any, I18n & {
9
+ _id: import("mongoose").Types.ObjectId;
10
+ } & {
11
+ __v: number;
12
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, I18n, import("mongoose").Document<unknown, {}, I18n, {
9
13
  id: string;
10
14
  }, import("mongoose").DefaultSchemaOptions> & Omit<I18n & {
11
15
  _id: import("mongoose").Types.ObjectId;
@@ -8,7 +8,11 @@ export declare class Location implements ILocation {
8
8
  physicalAddress: IPhysicalAddress | null | undefined;
9
9
  virtualAddress: IVirtualAddress | null | undefined;
10
10
  }
11
- export declare const LocationSchema: import("mongoose").Schema<Location, import("mongoose").Model<Location, any, any, any, any, any, Location>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Location, import("mongoose").Document<unknown, {}, Location, {
11
+ export declare const LocationSchema: import("mongoose").Schema<Location, import("mongoose").Model<Location, any, any, any, any, any, Location & {
12
+ _id: import("mongoose").Types.ObjectId;
13
+ } & {
14
+ __v: number;
15
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Location, import("mongoose").Document<unknown, {}, Location, {
12
16
  id: string;
13
17
  }, import("mongoose").DefaultSchemaOptions> & Omit<Location & {
14
18
  _id: import("mongoose").Types.ObjectId;
@@ -10,7 +10,11 @@ export declare class Person implements IPerson {
10
10
  gender: IDictionary;
11
11
  residence: IResidence;
12
12
  }
13
- export declare const PersonSchema: import("mongoose").Schema<Person, import("mongoose").Model<Person, any, any, any, any, any, Person>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Person, import("mongoose").Document<unknown, {}, Person, {
13
+ export declare const PersonSchema: import("mongoose").Schema<Person, import("mongoose").Model<Person, any, any, any, any, any, Person & {
14
+ _id: import("mongoose").Types.ObjectId;
15
+ } & {
16
+ __v: number;
17
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Person, import("mongoose").Document<unknown, {}, Person, {
14
18
  id: string;
15
19
  }, import("mongoose").DefaultSchemaOptions> & Omit<Person & {
16
20
  _id: import("mongoose").Types.ObjectId;
@@ -7,7 +7,11 @@ export declare class PhysicalAddress implements IPhysicalAddress {
7
7
  address1: string;
8
8
  address2: string;
9
9
  }
10
- export declare const PhysicalAddressSchema: import("mongoose").Schema<PhysicalAddress, import("mongoose").Model<PhysicalAddress, any, any, any, any, any, PhysicalAddress>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PhysicalAddress, import("mongoose").Document<unknown, {}, PhysicalAddress, {
10
+ export declare const PhysicalAddressSchema: import("mongoose").Schema<PhysicalAddress, import("mongoose").Model<PhysicalAddress, any, any, any, any, any, PhysicalAddress & {
11
+ _id: import("mongoose").Types.ObjectId;
12
+ } & {
13
+ __v: number;
14
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PhysicalAddress, import("mongoose").Document<unknown, {}, PhysicalAddress, {
11
15
  id: string;
12
16
  }, import("mongoose").DefaultSchemaOptions> & Omit<PhysicalAddress & {
13
17
  _id: import("mongoose").Types.ObjectId;
@@ -7,7 +7,11 @@ export declare class Picture implements IPicture {
7
7
  cropped: IFileEmbedded | null | undefined;
8
8
  cropArea: ICropArea | null | undefined;
9
9
  }
10
- export declare const PictureSchema: import("mongoose").Schema<Picture, import("mongoose").Model<Picture, any, any, any, any, any, Picture>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Picture, import("mongoose").Document<unknown, {}, Picture, {
10
+ export declare const PictureSchema: import("mongoose").Schema<Picture, import("mongoose").Model<Picture, any, any, any, any, any, Picture & {
11
+ _id: import("mongoose").Types.ObjectId;
12
+ } & {
13
+ __v: number;
14
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Picture, import("mongoose").Document<unknown, {}, Picture, {
11
15
  id: string;
12
16
  }, import("mongoose").DefaultSchemaOptions> & Omit<Picture & {
13
17
  _id: import("mongoose").Types.ObjectId;
@@ -8,7 +8,11 @@ export declare class Record implements IRecord {
8
8
  updatedAt: Date;
9
9
  deletedAt: Date;
10
10
  }
11
- export declare const RecordSchema: import("mongoose").Schema<Record, import("mongoose").Model<Record, any, any, any, any, any, Record>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Record, import("mongoose").Document<unknown, {}, Record, {
11
+ export declare const RecordSchema: import("mongoose").Schema<Record, import("mongoose").Model<Record, any, any, any, any, any, Record & {
12
+ _id: import("mongoose").Types.ObjectId;
13
+ } & {
14
+ __v: number;
15
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Record, import("mongoose").Document<unknown, {}, Record, {
12
16
  id: string;
13
17
  }, import("mongoose").DefaultSchemaOptions> & Omit<Record & {
14
18
  _id: import("mongoose").Types.ObjectId;
@@ -7,7 +7,11 @@ export declare class Residence implements IResidence {
7
7
  address1: string;
8
8
  address2: string;
9
9
  }
10
- export declare const ResidenceSchema: import("mongoose").Schema<Residence, import("mongoose").Model<Residence, any, any, any, any, any, Residence>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Residence, import("mongoose").Document<unknown, {}, Residence, {
10
+ export declare const ResidenceSchema: import("mongoose").Schema<Residence, import("mongoose").Model<Residence, any, any, any, any, any, Residence & {
11
+ _id: import("mongoose").Types.ObjectId;
12
+ } & {
13
+ __v: number;
14
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Residence, import("mongoose").Document<unknown, {}, Residence, {
11
15
  id: string;
12
16
  }, import("mongoose").DefaultSchemaOptions> & Omit<Residence & {
13
17
  _id: import("mongoose").Types.ObjectId;
@@ -45,7 +45,11 @@ export declare class FileEmbedded implements IFileEmbedded {
45
45
  s3: S3;
46
46
  createdAt: Date;
47
47
  }
48
- export declare const S3Schema: import("mongoose").Schema<S3, import("mongoose").Model<S3, any, any, any, any, any, S3>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3, import("mongoose").Document<unknown, {}, S3, {
48
+ export declare const S3Schema: import("mongoose").Schema<S3, import("mongoose").Model<S3, any, any, any, any, any, S3 & {
49
+ _id: import("mongoose").Types.ObjectId;
50
+ } & {
51
+ __v: number;
52
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3, import("mongoose").Document<unknown, {}, S3, {
49
53
  id: string;
50
54
  }, import("mongoose").DefaultSchemaOptions> & Omit<S3 & {
51
55
  _id: import("mongoose").Types.ObjectId;
@@ -82,7 +86,11 @@ export declare const S3Schema: import("mongoose").Schema<S3, import("mongoose").
82
86
  id: string;
83
87
  }>>;
84
88
  }, S3>;
85
- export declare const LogInitiatorSchema: import("mongoose").Schema<LogInitiator, import("mongoose").Model<LogInitiator, any, any, any, any, any, LogInitiator>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LogInitiator, import("mongoose").Document<unknown, {}, LogInitiator, {
89
+ export declare const LogInitiatorSchema: import("mongoose").Schema<LogInitiator, import("mongoose").Model<LogInitiator, any, any, any, any, any, LogInitiator & {
90
+ _id: import("mongoose").Types.ObjectId;
91
+ } & {
92
+ __v: number;
93
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LogInitiator, import("mongoose").Document<unknown, {}, LogInitiator, {
86
94
  id: string;
87
95
  }, import("mongoose").DefaultSchemaOptions> & Omit<LogInitiator & {
88
96
  _id: import("mongoose").Types.ObjectId;
@@ -110,7 +118,11 @@ export declare const LogInitiatorSchema: import("mongoose").Schema<LogInitiator,
110
118
  id: string;
111
119
  }>>;
112
120
  }, LogInitiator>;
113
- export declare const FileLogSchema: import("mongoose").Schema<FileLog, import("mongoose").Model<FileLog, any, any, any, any, any, FileLog>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileLog, import("mongoose").Document<unknown, {}, FileLog, {
121
+ export declare const FileLogSchema: import("mongoose").Schema<FileLog, import("mongoose").Model<FileLog, any, any, any, any, any, FileLog & {
122
+ _id: import("mongoose").Types.ObjectId;
123
+ } & {
124
+ __v: number;
125
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileLog, import("mongoose").Document<unknown, {}, FileLog, {
114
126
  id: string;
115
127
  }, import("mongoose").DefaultSchemaOptions> & Omit<FileLog & {
116
128
  _id: import("mongoose").Types.ObjectId;
@@ -147,7 +159,11 @@ export declare const FileLogSchema: import("mongoose").Schema<FileLog, import("m
147
159
  id: string;
148
160
  }>>;
149
161
  }, FileLog>;
150
- export declare const FileMetaSchema: import("mongoose").Schema<FileMeta, import("mongoose").Model<FileMeta, any, any, any, any, any, FileMeta>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileMeta, import("mongoose").Document<unknown, {}, FileMeta, {
162
+ export declare const FileMetaSchema: import("mongoose").Schema<FileMeta, import("mongoose").Model<FileMeta, any, any, any, any, any, FileMeta & {
163
+ _id: import("mongoose").Types.ObjectId;
164
+ } & {
165
+ __v: number;
166
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileMeta, import("mongoose").Document<unknown, {}, FileMeta, {
151
167
  id: string;
152
168
  }, import("mongoose").DefaultSchemaOptions> & Omit<FileMeta & {
153
169
  _id: import("mongoose").Types.ObjectId;
@@ -193,7 +209,11 @@ export declare const FileMetaSchema: import("mongoose").Schema<FileMeta, import(
193
209
  id: string;
194
210
  }>>;
195
211
  }, FileMeta>;
196
- export declare const FileStateSchema: import("mongoose").Schema<FileState, import("mongoose").Model<FileState, any, any, any, any, any, FileState>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileState, import("mongoose").Document<unknown, {}, FileState, {
212
+ export declare const FileStateSchema: import("mongoose").Schema<FileState, import("mongoose").Model<FileState, any, any, any, any, any, FileState & {
213
+ _id: import("mongoose").Types.ObjectId;
214
+ } & {
215
+ __v: number;
216
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileState, import("mongoose").Document<unknown, {}, FileState, {
197
217
  id: string;
198
218
  }, import("mongoose").DefaultSchemaOptions> & Omit<FileState & {
199
219
  _id: import("mongoose").Types.ObjectId;
@@ -221,7 +241,11 @@ export declare const FileStateSchema: import("mongoose").Schema<FileState, impor
221
241
  id: string;
222
242
  }>>;
223
243
  }, FileState>;
224
- export declare const FileRecordSchema: import("mongoose").Schema<FileRecord, import("mongoose").Model<FileRecord, any, any, any, any, any, FileRecord>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileRecord, import("mongoose").Document<unknown, {}, FileRecord, {
244
+ export declare const FileRecordSchema: import("mongoose").Schema<FileRecord, import("mongoose").Model<FileRecord, any, any, any, any, any, FileRecord & {
245
+ _id: import("mongoose").Types.ObjectId;
246
+ } & {
247
+ __v: number;
248
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileRecord, import("mongoose").Document<unknown, {}, FileRecord, {
225
249
  id: string;
226
250
  }, import("mongoose").DefaultSchemaOptions> & Omit<FileRecord & {
227
251
  _id: import("mongoose").Types.ObjectId;
@@ -249,7 +273,11 @@ export declare const FileRecordSchema: import("mongoose").Schema<FileRecord, imp
249
273
  id: string;
250
274
  }>>;
251
275
  }, FileRecord>;
252
- export declare const S3FileSchema: import("mongoose").Schema<S3File, import("mongoose").Model<S3File, any, any, any, any, any, S3File>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3File, import("mongoose").Document<unknown, {}, S3File, {}, import("mongoose").DefaultSchemaOptions> & S3File & {
276
+ export declare const S3FileSchema: import("mongoose").Schema<S3File, import("mongoose").Model<S3File, any, any, any, any, any, S3File & {
277
+ _id: import("mongoose").Types.ObjectId;
278
+ } & {
279
+ __v: number;
280
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3File, import("mongoose").Document<unknown, {}, S3File, {}, import("mongoose").DefaultSchemaOptions> & S3File & {
253
281
  _id: import("mongoose").Types.ObjectId;
254
282
  } & {
255
283
  __v: number;
@@ -285,7 +313,11 @@ export declare const S3FileSchema: import("mongoose").Schema<S3File, import("mon
285
313
  __v: number;
286
314
  }>;
287
315
  }, S3File>;
288
- export declare const FileEmbeddedSchema: import("mongoose").Schema<FileEmbedded, import("mongoose").Model<FileEmbedded, any, any, any, any, any, FileEmbedded>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileEmbedded, import("mongoose").Document<unknown, {}, FileEmbedded, {}, import("mongoose").DefaultSchemaOptions> & FileEmbedded & {
316
+ export declare const FileEmbeddedSchema: import("mongoose").Schema<FileEmbedded, import("mongoose").Model<FileEmbedded, any, any, any, any, any, FileEmbedded & {
317
+ _id: import("mongoose").Types.ObjectId;
318
+ } & {
319
+ __v: number;
320
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileEmbedded, import("mongoose").Document<unknown, {}, FileEmbedded, {}, import("mongoose").DefaultSchemaOptions> & FileEmbedded & {
289
321
  _id: import("mongoose").Types.ObjectId;
290
322
  } & {
291
323
  __v: number;
@@ -11,7 +11,11 @@ export declare class SessionUser implements ISessionUser {
11
11
  permissions: string[];
12
12
  verificationLevel: UserVerificationLevel;
13
13
  }
14
- export declare const SessionUserSchema: import("mongoose").Schema<SessionUser, import("mongoose").Model<SessionUser, any, any, any, any, any, SessionUser>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, SessionUser, import("mongoose").Document<unknown, {}, SessionUser, {
14
+ export declare const SessionUserSchema: import("mongoose").Schema<SessionUser, import("mongoose").Model<SessionUser, any, any, any, any, any, SessionUser & Required<{
15
+ _id: string;
16
+ }> & {
17
+ __v: number;
18
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, SessionUser, import("mongoose").Document<unknown, {}, SessionUser, {
15
19
  id: string;
16
20
  }, import("mongoose").DefaultSchemaOptions> & Omit<SessionUser & Required<{
17
21
  _id: string;
@@ -10,7 +10,11 @@ export declare class StudentEmbedded extends Identifable implements IStudentEmbe
10
10
  person: IPerson;
11
11
  knowladgeLevel: IDictionary;
12
12
  }
13
- export declare const StudentEmbeddedSchema: import("mongoose").Schema<StudentEmbedded, import("mongoose").Model<StudentEmbedded, any, any, any, any, any, StudentEmbedded>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, StudentEmbedded, import("mongoose").Document<unknown, {}, StudentEmbedded, {
13
+ export declare const StudentEmbeddedSchema: import("mongoose").Schema<StudentEmbedded, import("mongoose").Model<StudentEmbedded, any, any, any, any, any, StudentEmbedded & Required<{
14
+ _id: import("mongoose").Types.ObjectId;
15
+ }> & {
16
+ __v: number;
17
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, StudentEmbedded, import("mongoose").Document<unknown, {}, StudentEmbedded, {
14
18
  id: string;
15
19
  }, import("mongoose").DefaultSchemaOptions> & Omit<StudentEmbedded & Required<{
16
20
  _id: import("mongoose").Types.ObjectId;
@@ -5,7 +5,11 @@ export declare class Teacher implements ITeacher {
5
5
  userId: Types.ObjectId | string;
6
6
  person: IPerson;
7
7
  }
8
- export declare const TeacherSchema: MongooseSchema<Teacher, import("mongoose").Model<Teacher, any, any, any, any, any, Teacher>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Teacher, import("mongoose").Document<unknown, {}, Teacher, {
8
+ export declare const TeacherSchema: MongooseSchema<Teacher, import("mongoose").Model<Teacher, any, any, any, any, any, Teacher & {
9
+ _id: Types.ObjectId;
10
+ } & {
11
+ __v: number;
12
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Teacher, import("mongoose").Document<unknown, {}, Teacher, {
9
13
  id: string;
10
14
  }, import("mongoose").DefaultSchemaOptions> & Omit<Teacher & {
11
15
  _id: Types.ObjectId;
@@ -5,7 +5,11 @@ export declare class Time implements ITime {
5
5
  inNumber: number;
6
6
  zone: string;
7
7
  }
8
- export declare const TimeSchema: import("mongoose").Schema<Time, import("mongoose").Model<Time, any, any, any, any, any, Time>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Time, import("mongoose").Document<unknown, {}, Time, {
8
+ export declare const TimeSchema: import("mongoose").Schema<Time, import("mongoose").Model<Time, any, any, any, any, any, Time & {
9
+ _id: import("mongoose").Types.ObjectId;
10
+ } & {
11
+ __v: number;
12
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Time, import("mongoose").Document<unknown, {}, Time, {
9
13
  id: string;
10
14
  }, import("mongoose").DefaultSchemaOptions> & Omit<Time & {
11
15
  _id: import("mongoose").Types.ObjectId;
@@ -5,7 +5,11 @@ export declare class VirtualAddress implements IVirtualAddress {
5
5
  type: VirtualAddressType;
6
6
  link: string;
7
7
  }
8
- export declare const VirtualAddressSchema: import("mongoose").Schema<VirtualAddress, import("mongoose").Model<VirtualAddress, any, any, any, any, any, VirtualAddress>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, VirtualAddress, import("mongoose").Document<unknown, {}, VirtualAddress, {
8
+ export declare const VirtualAddressSchema: import("mongoose").Schema<VirtualAddress, import("mongoose").Model<VirtualAddress, any, any, any, any, any, VirtualAddress & {
9
+ _id: import("mongoose").Types.ObjectId;
10
+ } & {
11
+ __v: number;
12
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, VirtualAddress, import("mongoose").Document<unknown, {}, VirtualAddress, {
9
13
  id: string;
10
14
  }, import("mongoose").DefaultSchemaOptions> & Omit<VirtualAddress & {
11
15
  _id: import("mongoose").Types.ObjectId;
@@ -3,7 +3,11 @@ import { IIdentifable } from '../interfaces/identifable.interface';
3
3
  export declare class Identifable implements IIdentifable {
4
4
  _id: Types.ObjectId;
5
5
  }
6
- export declare const IdentifableSchema: MongooseSchema<Identifable, import("mongoose").Model<Identifable, any, any, any, any, any, Identifable>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Identifable, import("mongoose").Document<unknown, {}, Identifable, {
6
+ export declare const IdentifableSchema: MongooseSchema<Identifable, import("mongoose").Model<Identifable, any, any, any, any, any, Identifable & Required<{
7
+ _id: Types.ObjectId;
8
+ }> & {
9
+ __v: number;
10
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Identifable, import("mongoose").Document<unknown, {}, Identifable, {
7
11
  id: string;
8
12
  }, import("mongoose").DefaultSchemaOptions> & Omit<Identifable & Required<{
9
13
  _id: Types.ObjectId;
@@ -7,7 +7,11 @@ export declare class Parent implements IParent {
7
7
  person: IPerson;
8
8
  contacts: IContact[];
9
9
  }
10
- export declare const ParentSchema: MongooseSchema<Parent, import("mongoose").Model<Parent, any, any, any, any, any, Parent>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Parent, import("mongoose").Document<unknown, {}, Parent, {
10
+ export declare const ParentSchema: MongooseSchema<Parent, import("mongoose").Model<Parent, any, any, any, any, any, Parent & {
11
+ _id: Types.ObjectId;
12
+ } & {
13
+ __v: number;
14
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Parent, import("mongoose").Document<unknown, {}, Parent, {
11
15
  id: string;
12
16
  }, import("mongoose").DefaultSchemaOptions> & Omit<Parent & {
13
17
  _id: Types.ObjectId;
@@ -8,7 +8,11 @@ export declare class Session extends Identifable implements ISession {
8
8
  expiresAt: Date;
9
9
  userAgent: string;
10
10
  }
11
- export declare const SessionSchema: import("mongoose").Schema<Session, import("mongoose").Model<Session, any, any, any, any, any, Session>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Session, import("mongoose").Document<unknown, {}, Session, {
11
+ export declare const SessionSchema: import("mongoose").Schema<Session, import("mongoose").Model<Session, any, any, any, any, any, Session & Required<{
12
+ _id: import("mongoose").Types.ObjectId;
13
+ }> & {
14
+ __v: number;
15
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Session, import("mongoose").Document<unknown, {}, Session, {
12
16
  id: string;
13
17
  }, import("mongoose").DefaultSchemaOptions> & Omit<Session & Required<{
14
18
  _id: import("mongoose").Types.ObjectId;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dl-commons",
3
3
  "type": "commonjs",
4
- "version": "0.1.9",
4
+ "version": "0.1.10",
5
5
  "description": "distance learning commons",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -12,9 +12,11 @@
12
12
  "node": ">=20.19.0"
13
13
  },
14
14
  "scripts": {
15
- "build": "tsc",
15
+ "build": "rm -rf dist && tsc -p tsconfig.build.json",
16
+ "test": "jest",
17
+ "lint": "eslint \"src/**/*.ts\"",
16
18
  "prepublishOnly": "npm run build",
17
- "pack": "npm run build && npm pack --pack-destination ./packs"
19
+ "pack": "npm run build && mkdir -p packs && npm pack --pack-destination ./packs"
18
20
  },
19
21
  "author": "",
20
22
  "license": "ISC",
@@ -29,6 +31,7 @@
29
31
  "class-transformer": "^0.5.1",
30
32
  "class-validator": "^0.14.0 || ^0.15.0",
31
33
  "express": "^4.18.2 || ^5.0.0",
34
+ "kafkajs": "^2.2.4",
32
35
  "mongoose": "^8.0.0 || ^9.0.0",
33
36
  "reflect-metadata": "^0.2.0",
34
37
  "rxjs": "^7.0.0"
@@ -44,20 +47,52 @@
44
47
  "@nestjs/config": "^4.0.4",
45
48
  "@nestjs/core": "^11.1.28",
46
49
  "@nestjs/mongoose": "^11.0.4",
50
+ "@nestjs/platform-express": "^11.1.28",
51
+ "@nestjs/testing": "^11.1.28",
47
52
  "@types/express": "^4.17.25",
53
+ "@types/jest": "^30.0.0",
48
54
  "@types/node": "^20.19.43",
55
+ "@types/supertest": "^7.2.1",
49
56
  "axios": "^1.7.2",
50
57
  "bson": "^6.10.4",
51
58
  "class-transformer": "^0.5.1",
52
59
  "class-validator": "^0.14.4",
53
60
  "eslint": "^10.8.0",
61
+ "eslint-config-prettier": "^10.1.8",
54
62
  "eslint-plugin-prettier": "^5.5.6",
55
63
  "express": "^4.18.2",
56
64
  "globals": "^17.9.0",
65
+ "jest": "^30.4.2",
66
+ "kafkajs": "^2.2.4",
57
67
  "mongoose": "^9.9.1",
68
+ "prettier": "^3.0.0",
58
69
  "reflect-metadata": "^0.2.2",
59
70
  "rxjs": "^7.8.1",
71
+ "supertest": "^7.2.2",
72
+ "ts-jest": "^29.4.12",
60
73
  "typescript": "^5.9.3",
61
74
  "typescript-eslint": "^8.66.0"
75
+ },
76
+ "peerDependenciesMeta": {
77
+ "kafkajs": {
78
+ "optional": true
79
+ }
80
+ },
81
+ "jest": {
82
+ "moduleFileExtensions": [
83
+ "js",
84
+ "json",
85
+ "ts"
86
+ ],
87
+ "rootDir": "src",
88
+ "testRegex": ".*\\.spec\\.ts$",
89
+ "transform": {
90
+ "^.+\\.(t|j)s$": "ts-jest"
91
+ },
92
+ "collectCoverageFrom": [
93
+ "**/*.(t|j)s"
94
+ ],
95
+ "coverageDirectory": "../coverage",
96
+ "testEnvironment": "node"
62
97
  }
63
98
  }