dl-commons 0.1.9 → 0.1.11

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 (85) 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/filters/base-exception.filter.d.ts +1 -0
  35. package/dist/filters/base-exception.filter.js +38 -15
  36. package/dist/filters/base-exception.filter.js.map +1 -1
  37. package/dist/index.d.ts +13 -1
  38. package/dist/index.js +45 -1
  39. package/dist/index.js.map +1 -1
  40. package/dist/models/dtos/wrappers/rest-wrapper.class.d.ts +9 -0
  41. package/dist/models/dtos/wrappers/rest-wrapper.class.js +13 -7
  42. package/dist/models/dtos/wrappers/rest-wrapper.class.js.map +1 -1
  43. package/dist/models/schemas/base.schema.d.ts +5 -1
  44. package/dist/models/schemas/embedded/archive.schema.d.ts +5 -1
  45. package/dist/models/schemas/embedded/attachment.schema.d.ts +5 -1
  46. package/dist/models/schemas/embedded/author.schema.d.ts +5 -1
  47. package/dist/models/schemas/embedded/contact.schema.d.ts +5 -1
  48. package/dist/models/schemas/embedded/crop-area.schema.d.ts +5 -1
  49. package/dist/models/schemas/embedded/date-time-range.schema.d.ts +5 -1
  50. package/dist/models/schemas/embedded/dictionary-embedded.schema.d.ts +5 -1
  51. package/dist/models/schemas/embedded/group-session.schema.d.ts +5 -1
  52. package/dist/models/schemas/embedded/i18n.embedded.d.ts +5 -1
  53. package/dist/models/schemas/embedded/location.schema.d.ts +5 -1
  54. package/dist/models/schemas/embedded/person.schema.d.ts +5 -1
  55. package/dist/models/schemas/embedded/physical-address.schema.d.ts +5 -1
  56. package/dist/models/schemas/embedded/picture.schema.d.ts +5 -1
  57. package/dist/models/schemas/embedded/record.embedded.d.ts +5 -1
  58. package/dist/models/schemas/embedded/residence.schema.d.ts +5 -1
  59. package/dist/models/schemas/embedded/s3.schema.d.ts +40 -8
  60. package/dist/models/schemas/embedded/session-user.schema.d.ts +5 -1
  61. package/dist/models/schemas/embedded/student-embedded.schema.d.ts +5 -1
  62. package/dist/models/schemas/embedded/teacher.schema.d.ts +5 -1
  63. package/dist/models/schemas/embedded/time.schema.d.ts +5 -1
  64. package/dist/models/schemas/embedded/virtual-address.schema.d.ts +5 -1
  65. package/dist/models/schemas/identifable.schema.d.ts +5 -1
  66. package/dist/models/schemas/parent.schema.d.ts +5 -1
  67. package/dist/models/schemas/session.schema.d.ts +5 -1
  68. package/dist/services/dictionaries.service.js +3 -3
  69. package/dist/services/dictionaries.service.js.map +1 -1
  70. package/dist/services/groups.service.js +2 -2
  71. package/dist/services/groups.service.js.map +1 -1
  72. package/dist/services/iam.service.js +6 -6
  73. package/dist/services/iam.service.js.map +1 -1
  74. package/dist/services/otp.service.js +4 -4
  75. package/dist/services/otp.service.js.map +1 -1
  76. package/dist/services/sessions.service.js +3 -3
  77. package/dist/services/sessions.service.js.map +1 -1
  78. package/dist/services/smtp.service.js +26 -17
  79. package/dist/services/smtp.service.js.map +1 -1
  80. package/dist/services/students.service.js +1 -1
  81. package/dist/services/students.service.js.map +1 -1
  82. package/dist/utils/error-safety.d.ts +16 -0
  83. package/dist/utils/error-safety.js +124 -0
  84. package/dist/utils/error-safety.js.map +1 -0
  85. package/package.json +38 -3
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,0FAA0E;AAuXtE,+FAvXK,4CAAc,OAuXL;AAtXlB,2DAAsD;AA4YlD,gGA5YK,mCAAe,OA4YL;AA3YnB,oEAAiE;AAgX7D,iGAhXK,mCAAgB,OAgXL;AA/WpB,qEAA2E;AA0WvE,2GA1WK,8CAA0B,OA0WL;AAzW9B,2EAAuE;AAoWnE,qGApWK,4CAAoB,OAoWL;AAnWxB,oEAA+D;AA6K3D,iGA7KK,qCAAgB,OA6KL;AA5KpB,gEAA8E;AA8K1E,iGA9KK,mCAAgB,OA8KL;AADhB,gGA7KuB,kCAAe,OA6KvB;AA5KnB,mEASwC;AAyKpC,0FAjLA,0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OAmTjD;AAlTrB,uFAAkF;AAmT9E,uGAnTK,iDAAsB,OAmTL;AAlT1B,+EAA0E;AAmTtE,mGAnTK,yCAAkB,OAmTL;AAlTtB,iFAAyG;AAoTrG,oGApTkC,2CAAmB,OAoTlC"}
@@ -1,4 +1,5 @@
1
1
  import { HttpStatus } from '@nestjs/common';
2
+ import type { IFailureSummary } from '../../../utils/error-safety';
2
3
  export declare enum SortDirection {
3
4
  asc = 1,
4
5
  desc = -1
@@ -49,12 +50,20 @@ export declare class RESTError {
49
50
  debug?: any;
50
51
  validation?: any;
51
52
  statusCode?: HttpStatus;
53
+ failure?: IFailureSummary;
52
54
  constructor(keyword: string, debug?: any, statusCode?: HttpStatus);
55
+ toJSON(): {
56
+ keyword: string;
57
+ debug: unknown;
58
+ statusCode: HttpStatus;
59
+ validation: any;
60
+ };
53
61
  static dataValidation(validation: any): RESTError;
54
62
  static createFromCatch(e: any, fallback: {
55
63
  keyword: string;
56
64
  debug?: any;
57
65
  statusCode?: HttpStatus;
66
+ call?: string;
58
67
  }): RESTError;
59
68
  }
60
69
  export declare class RESTResponseBody<T> {
@@ -13,6 +13,7 @@ exports.RESTQueryParams = exports.RESTResponseBody = exports.RESTError = exports
13
13
  const common_1 = require("@nestjs/common");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const class_validator_1 = require("class-validator");
16
+ const error_safety_1 = require("../../../utils/error-safety");
16
17
  var SortDirection;
17
18
  (function (SortDirection) {
18
19
  SortDirection[SortDirection["asc"] = 1] = "asc";
@@ -136,22 +137,27 @@ class RESTError {
136
137
  }
137
138
  this.statusCode = statusCode;
138
139
  }
140
+ toJSON() {
141
+ return { keyword: this.keyword, debug: (0, error_safety_1.cleanDebug)(this.debug), statusCode: this.statusCode, validation: this.validation };
142
+ }
139
143
  static dataValidation(validation) {
140
144
  const error = new RESTError('body_validation_error', null, 422);
141
145
  error.validation = validation;
142
146
  return error;
143
147
  }
144
148
  static createFromCatch(e, fallback) {
149
+ var _a, _b, _c, _d, _e;
145
150
  if (e instanceof RESTError) {
146
- return e;
147
- }
148
- if (e.response && e.response.data && e.response.data.errors) {
149
- return new RESTError(e.response.data.errors[0].keyword, e.response.data.errors[0].debug, e.response.data.statusCode);
151
+ return e.failure || !fallback.call ? e : (0, error_safety_1.setFailure)(e, Object.assign({ call: fallback.call }, (0, error_safety_1.describeFailure)(e)));
150
152
  }
151
- if (!fallback.statusCode) {
152
- fallback.statusCode = common_1.HttpStatus.BAD_REQUEST;
153
+ const first = (_c = (_b = (_a = e === null || e === void 0 ? void 0 : e.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0];
154
+ if (first) {
155
+ const debug = error_safety_1.CATCH_ALL_KEYWORDS.includes(first.keyword) ? undefined : (0, error_safety_1.cleanDebug)(first.debug);
156
+ const relayed = new RESTError(first.keyword, debug, e.response.data.statusCode);
157
+ return (0, error_safety_1.setFailure)(relayed, Object.assign(Object.assign({}, (0, error_safety_1.describeFailure)(e, fallback.call)), (first.keyword === undefined ? {} : { keyword: first.keyword })));
153
158
  }
154
- return new RESTError(fallback.keyword, fallback.debug, fallback.statusCode);
159
+ const status = (_e = (_d = (0, error_safety_1.failureStatus)(e)) !== null && _d !== void 0 ? _d : fallback.statusCode) !== null && _e !== void 0 ? _e : common_1.HttpStatus.BAD_REQUEST;
160
+ return (0, error_safety_1.setFailure)(new RESTError(fallback.keyword, (0, error_safety_1.cleanDebug)(fallback.debug), status), (0, error_safety_1.describeFailure)(e, fallback.call));
155
161
  }
156
162
  }
157
163
  exports.RESTError = RESTError;
@@ -1 +1 @@
1
- {"version":3,"file":"rest-wrapper.class.js","sourceRoot":"","sources":["../../../../src/models/dtos/wrappers/rest-wrapper.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yDAAyC;AACzC,qDAA+H;AAE/H,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,+CAAO,CAAA;IACP,kDAAS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AAC,IAAI,CAAC;gBACR,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;gBACjB,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aACxC,CAAC,CAAC;QACP,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,WAAW;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QACjC,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,IAAI,IAAI,KAAK,EAAE,CAAC;YACrB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;QAC3C,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AA3CD,0CA2CC;AAxCG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6CACV"}
@@ -5,7 +5,11 @@ import { Identifable } from './identifable.schema';
5
5
  export declare class Base extends Identifable implements IBase {
6
6
  record: IRecord;
7
7
  }
8
- export declare const BaseSchema: import("mongoose").Schema<Base, import("mongoose").Model<Base, any, any, any, any, any, Base>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Base, import("mongoose").Document<unknown, {}, Base, {
8
+ export declare const BaseSchema: import("mongoose").Schema<Base, import("mongoose").Model<Base, any, any, any, any, any, Base & Required<{
9
+ _id: import("mongoose").Types.ObjectId;
10
+ }> & {
11
+ __v: number;
12
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Base, import("mongoose").Document<unknown, {}, Base, {
9
13
  id: string;
10
14
  }, import("mongoose").DefaultSchemaOptions> & Omit<Base & Required<{
11
15
  _id: import("mongoose").Types.ObjectId;
@@ -4,7 +4,11 @@ export declare class Archive implements IArchive {
4
4
  value: Boolean;
5
5
  date: Date;
6
6
  }
7
- export declare const ArchiveSchema: import("mongoose").Schema<Archive, import("mongoose").Model<Archive, any, any, any, any, any, Archive>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Archive, import("mongoose").Document<unknown, {}, Archive, {
7
+ export declare const ArchiveSchema: import("mongoose").Schema<Archive, import("mongoose").Model<Archive, any, any, any, any, any, Archive & {
8
+ _id: import("mongoose").Types.ObjectId;
9
+ } & {
10
+ __v: number;
11
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Archive, import("mongoose").Document<unknown, {}, Archive, {
8
12
  id: string;
9
13
  }, import("mongoose").DefaultSchemaOptions> & Omit<Archive & {
10
14
  _id: import("mongoose").Types.ObjectId;
@@ -8,7 +8,11 @@ export declare class Attachment extends Identifable implements IAttachment {
8
8
  file: IFileEmbedded;
9
9
  link: string;
10
10
  }
11
- export declare const AttachmentSchema: import("mongoose").Schema<Attachment, import("mongoose").Model<Attachment, any, any, any, any, any, Attachment>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Attachment, import("mongoose").Document<unknown, {}, Attachment, {
11
+ export declare const AttachmentSchema: import("mongoose").Schema<Attachment, import("mongoose").Model<Attachment, any, any, any, any, any, Attachment & Required<{
12
+ _id: import("mongoose").Types.ObjectId;
13
+ }> & {
14
+ __v: number;
15
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Attachment, import("mongoose").Document<unknown, {}, Attachment, {
12
16
  id: string;
13
17
  }, import("mongoose").DefaultSchemaOptions> & Omit<Attachment & Required<{
14
18
  _id: import("mongoose").Types.ObjectId;
@@ -8,7 +8,11 @@ export declare class Author implements IAuthor {
8
8
  lastName: string | null | undefined;
9
9
  organisationName: string | null | undefined;
10
10
  }
11
- export declare const AuthorSchema: MongooseSchema<Author, import("mongoose").Model<Author, any, any, any, any, any, Author>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Author, import("mongoose").Document<unknown, {}, Author, {
11
+ export declare const AuthorSchema: MongooseSchema<Author, import("mongoose").Model<Author, any, any, any, any, any, Author & Required<{
12
+ _id: string | Types.ObjectId;
13
+ }> & {
14
+ __v: number;
15
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Author, import("mongoose").Document<unknown, {}, Author, {
12
16
  id: string;
13
17
  }, import("mongoose").DefaultSchemaOptions> & Omit<Author & Required<{
14
18
  _id: string | Types.ObjectId;
@@ -8,7 +8,11 @@ export declare class Contact extends Identifable implements IContact {
8
8
  primary: boolean;
9
9
  verified: boolean;
10
10
  }
11
- export declare const ContactSchema: import("mongoose").Schema<Contact, import("mongoose").Model<Contact, any, any, any, any, any, Contact>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contact, import("mongoose").Document<unknown, {}, Contact, {
11
+ export declare const ContactSchema: import("mongoose").Schema<Contact, import("mongoose").Model<Contact, any, any, any, any, any, Contact & Required<{
12
+ _id: import("mongoose").Types.ObjectId;
13
+ }> & {
14
+ __v: number;
15
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contact, import("mongoose").Document<unknown, {}, Contact, {
12
16
  id: string;
13
17
  }, import("mongoose").DefaultSchemaOptions> & Omit<Contact & Required<{
14
18
  _id: import("mongoose").Types.ObjectId;
@@ -6,7 +6,11 @@ export declare class CropArea implements ICropArea {
6
6
  y1: number;
7
7
  y2: number;
8
8
  }
9
- export declare const CropAreaSchema: import("mongoose").Schema<CropArea, import("mongoose").Model<CropArea, any, any, any, any, any, CropArea>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CropArea, import("mongoose").Document<unknown, {}, CropArea, {
9
+ export declare const CropAreaSchema: import("mongoose").Schema<CropArea, import("mongoose").Model<CropArea, any, any, any, any, any, CropArea & {
10
+ _id: import("mongoose").Types.ObjectId;
11
+ } & {
12
+ __v: number;
13
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CropArea, import("mongoose").Document<unknown, {}, CropArea, {
10
14
  id: string;
11
15
  }, import("mongoose").DefaultSchemaOptions> & Omit<CropArea & {
12
16
  _id: import("mongoose").Types.ObjectId;
@@ -4,7 +4,11 @@ export declare class DateTimeRange implements IDateTimeRange {
4
4
  startsAt: Date | null | undefined;
5
5
  endsAt: Date | null | undefined;
6
6
  }
7
- export declare const DateTimeRangeSchema: import("mongoose").Schema<DateTimeRange, import("mongoose").Model<DateTimeRange, any, any, any, any, any, DateTimeRange>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DateTimeRange, import("mongoose").Document<unknown, {}, DateTimeRange, {
7
+ export declare const DateTimeRangeSchema: import("mongoose").Schema<DateTimeRange, import("mongoose").Model<DateTimeRange, any, any, any, any, any, DateTimeRange & {
8
+ _id: import("mongoose").Types.ObjectId;
9
+ } & {
10
+ __v: number;
11
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DateTimeRange, import("mongoose").Document<unknown, {}, DateTimeRange, {
8
12
  id: string;
9
13
  }, import("mongoose").DefaultSchemaOptions> & Omit<DateTimeRange & {
10
14
  _id: import("mongoose").Types.ObjectId;
@@ -8,7 +8,11 @@ export declare class DictionaryEmbedded extends Base implements IDictionary {
8
8
  metas: Map<string, string>;
9
9
  keyword: string;
10
10
  }
11
- export declare const DictionaryEmbeddedSchema: MongooseSchema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, any, any, DictionaryEmbedded>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DictionaryEmbedded, import("mongoose").Document<unknown, {}, DictionaryEmbedded, {
11
+ export declare const DictionaryEmbeddedSchema: MongooseSchema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, any, any, DictionaryEmbedded & Required<{
12
+ _id: Types.ObjectId;
13
+ }> & {
14
+ __v: number;
15
+ }>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DictionaryEmbedded, import("mongoose").Document<unknown, {}, DictionaryEmbedded, {
12
16
  id: string;
13
17
  }, import("mongoose").DefaultSchemaOptions> & Omit<DictionaryEmbedded & Required<{
14
18
  _id: Types.ObjectId;
@@ -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;