dl-commons 0.0.2-testing.8 → 0.1.0

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 (218) hide show
  1. package/README.md +4 -88
  2. package/dist/dl-commons.module.js +3 -2
  3. package/dist/dl-commons.module.js.map +1 -1
  4. package/dist/filters/base-exception.filter.d.ts +3 -3
  5. package/dist/filters/base-exception.filter.js +4 -11
  6. package/dist/filters/base-exception.filter.js.map +1 -1
  7. package/dist/guards/permission.guard.d.ts +1 -0
  8. package/dist/guards/permission.guard.js +3 -2
  9. package/dist/guards/permission.guard.js.map +1 -1
  10. package/dist/index.d.ts +33 -2
  11. package/dist/index.js +56 -2
  12. package/dist/index.js.map +1 -1
  13. package/dist/models/consts/env-vars.const.d.ts +2 -0
  14. package/dist/models/consts/env-vars.const.js +3 -1
  15. package/dist/models/consts/env-vars.const.js.map +1 -1
  16. package/dist/models/dtos/commons/crop-area.dto.d.ts +6 -0
  17. package/dist/models/dtos/commons/crop-area.dto.js +37 -0
  18. package/dist/models/dtos/commons/crop-area.dto.js.map +1 -0
  19. package/dist/models/dtos/commons/id.param.d.ts +3 -0
  20. package/dist/models/dtos/commons/id.param.js +22 -0
  21. package/dist/models/dtos/commons/id.param.js.map +1 -0
  22. package/dist/models/dtos/wrappers/rest-wrapper.class.js +1 -1
  23. package/dist/models/enums/attachment-type.enum.d.ts +4 -0
  24. package/dist/models/enums/attachment-type.enum.js +9 -0
  25. package/dist/models/enums/attachment-type.enum.js.map +1 -0
  26. package/dist/models/enums/location-type.enum.d.ts +5 -0
  27. package/dist/models/enums/location-type.enum.js +10 -0
  28. package/dist/models/enums/location-type.enum.js.map +1 -0
  29. package/dist/models/enums/user-type.enum.d.ts +7 -0
  30. package/dist/models/enums/user-type.enum.js +12 -0
  31. package/dist/models/enums/user-type.enum.js.map +1 -0
  32. package/dist/models/enums/virtual-address-type.enum.d.ts +15 -0
  33. package/dist/models/enums/virtual-address-type.enum.js +20 -0
  34. package/dist/models/enums/virtual-address-type.enum.js.map +1 -0
  35. package/dist/models/interfaces/archive.interface.d.ts +4 -0
  36. package/dist/models/interfaces/archive.interface.js +3 -0
  37. package/dist/models/interfaces/archive.interface.js.map +1 -0
  38. package/dist/models/interfaces/attachment.interface.d.ts +8 -0
  39. package/dist/models/interfaces/attachment.interface.js +3 -0
  40. package/dist/models/interfaces/attachment.interface.js.map +1 -0
  41. package/dist/models/interfaces/author.interface.d.ts +9 -0
  42. package/dist/models/interfaces/author.interface.js +3 -0
  43. package/dist/models/interfaces/author.interface.js.map +1 -0
  44. package/dist/models/interfaces/crop-area.interface.d.ts +6 -0
  45. package/dist/models/interfaces/crop-area.interface.js +3 -0
  46. package/dist/models/interfaces/crop-area.interface.js.map +1 -0
  47. package/dist/models/interfaces/date-time-range.interface.d.ts +4 -0
  48. package/dist/models/interfaces/date-time-range.interface.js +3 -0
  49. package/dist/models/interfaces/date-time-range.interface.js.map +1 -0
  50. package/dist/models/interfaces/dictionary.interface.d.ts +1 -1
  51. package/dist/models/interfaces/dl-storage.interface.d.ts +35 -0
  52. package/dist/models/interfaces/dl-storage.interface.js +7 -0
  53. package/dist/models/interfaces/dl-storage.interface.js.map +1 -0
  54. package/dist/models/interfaces/group-embedded.interface.d.ts +2 -0
  55. package/dist/models/interfaces/group-request.interface.d.ts +7 -0
  56. package/dist/models/interfaces/group-request.interface.js +3 -0
  57. package/dist/models/interfaces/group-request.interface.js.map +1 -0
  58. package/dist/models/interfaces/location.interface.d.ts +8 -0
  59. package/dist/models/interfaces/location.interface.js +3 -0
  60. package/dist/models/interfaces/location.interface.js.map +1 -0
  61. package/dist/models/interfaces/physical-address.interface.d.ts +7 -0
  62. package/dist/models/interfaces/physical-address.interface.js +3 -0
  63. package/dist/models/interfaces/physical-address.interface.js.map +1 -0
  64. package/dist/models/interfaces/picture.interface.d.ts +7 -0
  65. package/dist/models/interfaces/picture.interface.js +3 -0
  66. package/dist/models/interfaces/picture.interface.js.map +1 -0
  67. package/dist/models/interfaces/s3.interface.d.ts +1 -2
  68. package/dist/models/interfaces/user-meta.interface.d.ts +1 -0
  69. package/dist/models/interfaces/virtual-address.interface.d.ts +5 -0
  70. package/dist/models/interfaces/virtual-address.interface.js +3 -0
  71. package/dist/models/interfaces/virtual-address.interface.js.map +1 -0
  72. package/dist/models/schemas/base.schema.d.ts +2 -2
  73. package/dist/models/schemas/embedded/archive.schema.d.ts +16 -0
  74. package/dist/models/schemas/embedded/archive.schema.js +29 -0
  75. package/dist/models/schemas/embedded/archive.schema.js.map +1 -0
  76. package/dist/models/schemas/embedded/attachment.schema.d.ts +20 -0
  77. package/dist/models/schemas/embedded/attachment.schema.js +36 -0
  78. package/dist/models/schemas/embedded/attachment.schema.js.map +1 -0
  79. package/dist/models/schemas/embedded/author.schema.d.ts +20 -0
  80. package/dist/models/schemas/embedded/author.schema.js +46 -0
  81. package/dist/models/schemas/embedded/author.schema.js.map +1 -0
  82. package/dist/models/schemas/embedded/contact.schema.d.ts +2 -2
  83. package/dist/models/schemas/embedded/crop-area.schema.d.ts +18 -0
  84. package/dist/models/schemas/embedded/crop-area.schema.js +37 -0
  85. package/dist/models/schemas/embedded/crop-area.schema.js.map +1 -0
  86. package/dist/models/schemas/embedded/date-time-range.schema.d.ts +16 -0
  87. package/dist/models/schemas/embedded/date-time-range.schema.js +29 -0
  88. package/dist/models/schemas/embedded/date-time-range.schema.js.map +1 -0
  89. package/dist/models/schemas/embedded/dictionary-embedded.schema.d.ts +2 -2
  90. package/dist/models/schemas/embedded/group-session.schema.d.ts +2 -2
  91. package/dist/models/schemas/embedded/i18n.embedded.d.ts +2 -2
  92. package/dist/models/schemas/embedded/location.schema.d.ts +20 -0
  93. package/dist/models/schemas/embedded/location.schema.js +36 -0
  94. package/dist/models/schemas/embedded/location.schema.js.map +1 -0
  95. package/dist/models/schemas/embedded/person.schema.d.ts +2 -2
  96. package/dist/models/schemas/embedded/physical-address.schema.d.ts +19 -0
  97. package/dist/models/schemas/embedded/physical-address.schema.js +38 -0
  98. package/dist/models/schemas/embedded/physical-address.schema.js.map +1 -0
  99. package/dist/models/schemas/embedded/picture.schema.d.ts +19 -0
  100. package/dist/models/schemas/embedded/picture.schema.js +35 -0
  101. package/dist/models/schemas/embedded/picture.schema.js.map +1 -0
  102. package/dist/models/schemas/embedded/record.embedded.d.ts +2 -2
  103. package/dist/models/schemas/embedded/residence.schema.d.ts +2 -2
  104. package/dist/models/schemas/embedded/s3.schema.d.ts +16 -17
  105. package/dist/models/schemas/embedded/s3.schema.js +0 -4
  106. package/dist/models/schemas/embedded/s3.schema.js.map +1 -1
  107. package/dist/models/schemas/embedded/session-user.schema.d.ts +2 -2
  108. package/dist/models/schemas/embedded/student-embedded.schema.d.ts +2 -2
  109. package/dist/models/schemas/embedded/teacher.schema.d.ts +2 -2
  110. package/dist/models/schemas/embedded/time.schema.d.ts +2 -2
  111. package/dist/models/schemas/embedded/virtual-address.schema.d.ts +17 -0
  112. package/dist/models/schemas/embedded/virtual-address.schema.js +30 -0
  113. package/dist/models/schemas/embedded/virtual-address.schema.js.map +1 -0
  114. package/dist/models/schemas/identifable.schema.d.ts +2 -2
  115. package/dist/models/schemas/parent.schema.d.ts +2 -2
  116. package/dist/models/schemas/session.schema.d.ts +2 -2
  117. package/dist/services/app-logger.service.d.ts +8 -0
  118. package/dist/services/app-logger.service.js +37 -0
  119. package/dist/services/app-logger.service.js.map +1 -0
  120. package/dist/services/dictionaries.service.js +14 -4
  121. package/dist/services/dictionaries.service.js.map +1 -1
  122. package/dist/services/groups.service.d.ts +12 -0
  123. package/dist/services/groups.service.js +65 -0
  124. package/dist/services/groups.service.js.map +1 -0
  125. package/dist/services/iam.service.d.ts +16 -0
  126. package/dist/services/iam.service.js +112 -0
  127. package/dist/services/iam.service.js.map +1 -0
  128. package/dist/services/permissions-scanner.service.d.ts +10 -0
  129. package/dist/services/permissions-scanner.service.js +50 -0
  130. package/dist/services/permissions-scanner.service.js.map +1 -0
  131. package/dist/services/sessions.service.d.ts +3 -0
  132. package/dist/services/sessions.service.js +37 -0
  133. package/dist/services/sessions.service.js.map +1 -1
  134. package/dist/services/storage.service.d.ts +18 -0
  135. package/dist/services/storage.service.js +81 -0
  136. package/dist/services/storage.service.js.map +1 -0
  137. package/dist/services/students.service.d.ts +10 -0
  138. package/dist/services/students.service.js +48 -0
  139. package/dist/services/students.service.js.map +1 -0
  140. package/dist/transformers/common.transformer.d.ts +1 -0
  141. package/dist/transformers/common.transformer.js +4 -0
  142. package/dist/transformers/common.transformer.js.map +1 -1
  143. package/dist/utils/helper.utils.d.ts +2 -1
  144. package/dist/utils/helper.utils.js +17 -1
  145. package/dist/utils/helper.utils.js.map +1 -1
  146. package/dist/utils/logger.class.d.ts +11 -0
  147. package/dist/utils/logger.class.js +76 -0
  148. package/dist/utils/logger.class.js.map +1 -0
  149. package/package.json +60 -33
  150. package/.eslintrc.js +0 -26
  151. package/.prettierrc +0 -6
  152. package/devops.testing.md +0 -16
  153. package/dist/tsconfig.tsbuildinfo +0 -1
  154. package/src/constraints/is-map-of-strings.constraint.ts +0 -22
  155. package/src/decorators/is-map-of-strings.decorator.ts +0 -10
  156. package/src/dl-commons.module.ts +0 -36
  157. package/src/exceptions/custom.exception.ts +0 -20
  158. package/src/factories/exception.factory.ts +0 -14
  159. package/src/filters/base-exception.filter.ts +0 -159
  160. package/src/guards/access-token.guard.ts +0 -20
  161. package/src/guards/permission.guard.ts +0 -66
  162. package/src/index.ts +0 -300
  163. package/src/models/consts/env-vars.const.ts +0 -10
  164. package/src/models/dtos/commons/i18n.dto.ts +0 -15
  165. package/src/models/dtos/wrappers/rest-wrapper.class.ts +0 -246
  166. package/src/models/enums/contact-type.enum.ts +0 -4
  167. package/src/models/enums/group-state.enum.ts +0 -5
  168. package/src/models/enums/record-state.enum.ts +0 -5
  169. package/src/models/enums/s3.enum.ts +0 -12
  170. package/src/models/enums/user-verifiation-level.enum.ts +0 -5
  171. package/src/models/enums/week-day.enum.ts +0 -9
  172. package/src/models/interfaces/base.interface.ts +0 -6
  173. package/src/models/interfaces/contact.interface.ts +0 -9
  174. package/src/models/interfaces/dictionary.interface.ts +0 -10
  175. package/src/models/interfaces/group-embedded.interface.ts +0 -18
  176. package/src/models/interfaces/group-session.interface.ts +0 -15
  177. package/src/models/interfaces/i18n.interface.ts +0 -5
  178. package/src/models/interfaces/identifable.interface.ts +0 -5
  179. package/src/models/interfaces/parent.interface.ts +0 -8
  180. package/src/models/interfaces/permission.interface.ts +0 -8
  181. package/src/models/interfaces/person.interface.ts +0 -11
  182. package/src/models/interfaces/record.interface.ts +0 -9
  183. package/src/models/interfaces/residence.interface.ts +0 -8
  184. package/src/models/interfaces/role.interface.ts +0 -10
  185. package/src/models/interfaces/s3.interface.ts +0 -55
  186. package/src/models/interfaces/session-user.interface.ts +0 -12
  187. package/src/models/interfaces/session.interface.ts +0 -9
  188. package/src/models/interfaces/smtp-api-config.interface.ts +0 -5
  189. package/src/models/interfaces/smtp.interface.ts +0 -5
  190. package/src/models/interfaces/student-embedded.interface.ts +0 -12
  191. package/src/models/interfaces/teacher.interface.ts +0 -7
  192. package/src/models/interfaces/user-meta.interface.ts +0 -4
  193. package/src/models/interfaces/user.interface.ts +0 -16
  194. package/src/models/schemas/base.schema.ts +0 -20
  195. package/src/models/schemas/embedded/contact.schema.ts +0 -23
  196. package/src/models/schemas/embedded/dictionary-embedded.schema.ts +0 -24
  197. package/src/models/schemas/embedded/group-session.schema.ts +0 -23
  198. package/src/models/schemas/embedded/i18n.embedded.ts +0 -18
  199. package/src/models/schemas/embedded/person.schema.ts +0 -31
  200. package/src/models/schemas/embedded/record.embedded.ts +0 -25
  201. package/src/models/schemas/embedded/residence.schema.ts +0 -23
  202. package/src/models/schemas/embedded/s3.schema.ts +0 -133
  203. package/src/models/schemas/embedded/session-user.schema.ts +0 -32
  204. package/src/models/schemas/embedded/student-embedded.schema.ts +0 -28
  205. package/src/models/schemas/embedded/teacher.schema.ts +0 -17
  206. package/src/models/schemas/embedded/time.schema.ts +0 -18
  207. package/src/models/schemas/identifable.schema.ts +0 -11
  208. package/src/models/schemas/parent.schema.ts +0 -22
  209. package/src/models/schemas/session.schema.ts +0 -24
  210. package/src/pipes/mongo-id.pipe.ts +0 -10
  211. package/src/pipes/mongo-ids.pipe.ts +0 -10
  212. package/src/services/dictionaries.service.ts +0 -99
  213. package/src/services/sessions.service.ts +0 -62
  214. package/src/services/smtp.service.ts +0 -71
  215. package/src/transformers/common.transformer.ts +0 -27
  216. package/src/utils/helper.utils.ts +0 -30
  217. package/tsconfig.build.json +0 -9
  218. package/tsconfig.json +0 -30
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DateTimeRangeSchema = exports.DateTimeRange = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ let DateTimeRange = class DateTimeRange {
15
+ };
16
+ exports.DateTimeRange = DateTimeRange;
17
+ __decorate([
18
+ (0, mongoose_1.Prop)({ type: Date, required: false, default: null }),
19
+ __metadata("design:type", Date)
20
+ ], DateTimeRange.prototype, "startsAt", void 0);
21
+ __decorate([
22
+ (0, mongoose_1.Prop)({ type: Date, required: false, default: null }),
23
+ __metadata("design:type", Date)
24
+ ], DateTimeRange.prototype, "endsAt", void 0);
25
+ exports.DateTimeRange = DateTimeRange = __decorate([
26
+ (0, mongoose_1.Schema)({ _id: false })
27
+ ], DateTimeRange);
28
+ exports.DateTimeRangeSchema = mongoose_1.SchemaFactory.createForClass(DateTimeRange);
29
+ //# sourceMappingURL=date-time-range.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-range.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/date-time-range.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAKxD,IAAM,aAAa,GAAnB,MAAM,aAAa;CAMzB,CAAA;AANY,sCAAa;AAEtB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8BAC3C,IAAI;+CAAoB;AAGlC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8BAC7C,IAAI;6CAAoB;wBALvB,aAAa;IADzB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,aAAa,CAMzB;AAEY,QAAA,mBAAmB,GAAG,wBAAa,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC"}
@@ -8,11 +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, import("mongoose").Document<unknown, any, DictionaryEmbedded> & DictionaryEmbedded & Required<{
11
+ export declare const DictionaryEmbeddedSchema: MongooseSchema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, import("mongoose").Document<unknown, any, DictionaryEmbedded, any, {}> & DictionaryEmbedded & Required<{
12
12
  _id: Types.ObjectId;
13
13
  }> & {
14
14
  __v: number;
15
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DictionaryEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<DictionaryEmbedded>> & import("mongoose").FlatRecord<DictionaryEmbedded> & Required<{
15
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DictionaryEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<DictionaryEmbedded>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<DictionaryEmbedded> & Required<{
16
16
  _id: Types.ObjectId;
17
17
  }> & {
18
18
  __v: number;
@@ -8,11 +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, import("mongoose").Document<unknown, any, GroupSession> & GroupSession & Required<{
11
+ export declare const GroupSessionSchema: import("mongoose").Schema<GroupSession, import("mongoose").Model<GroupSession, any, any, any, import("mongoose").Document<unknown, any, GroupSession, any, {}> & GroupSession & Required<{
12
12
  _id: import("mongoose").Types.ObjectId;
13
13
  }> & {
14
14
  __v: number;
15
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GroupSession, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<GroupSession>> & import("mongoose").FlatRecord<GroupSession> & Required<{
15
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GroupSession, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<GroupSession>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<GroupSession> & Required<{
16
16
  _id: import("mongoose").Types.ObjectId;
17
17
  }> & {
18
18
  __v: number;
@@ -5,11 +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, import("mongoose").Document<unknown, any, I18n> & I18n & {
8
+ export declare const I18nSchema: import("mongoose").Schema<I18n, import("mongoose").Model<I18n, any, any, any, import("mongoose").Document<unknown, any, I18n, any, {}> & I18n & {
9
9
  _id: import("mongoose").Types.ObjectId;
10
10
  } & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, I18n, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<I18n>> & import("mongoose").FlatRecord<I18n> & {
12
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, I18n, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<I18n>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<I18n> & {
13
13
  _id: import("mongoose").Types.ObjectId;
14
14
  } & {
15
15
  __v: number;
@@ -0,0 +1,20 @@
1
+ import { HydratedDocument } from 'mongoose';
2
+ import { ILocation } from '../../interfaces/location.interface';
3
+ import { LocationType } from '../../enums/location-type.enum';
4
+ import { IPhysicalAddress } from '../../interfaces/physical-address.interface';
5
+ import { IVirtualAddress } from '../../interfaces/virtual-address.interface';
6
+ export declare class Location implements ILocation {
7
+ type: LocationType;
8
+ physicalAddress: IPhysicalAddress | null | undefined;
9
+ virtualAddress: IVirtualAddress | null | undefined;
10
+ }
11
+ export declare const LocationSchema: import("mongoose").Schema<Location, import("mongoose").Model<Location, any, any, any, import("mongoose").Document<unknown, any, Location, any, {}> & Location & {
12
+ _id: import("mongoose").Types.ObjectId;
13
+ } & {
14
+ __v: number;
15
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Location, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Location>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Location> & {
16
+ _id: import("mongoose").Types.ObjectId;
17
+ } & {
18
+ __v: number;
19
+ }>;
20
+ export type LocationDocument = HydratedDocument<Location>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LocationSchema = exports.Location = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const location_type_enum_1 = require("../../enums/location-type.enum");
15
+ const physical_address_schema_1 = require("./physical-address.schema");
16
+ const virtual_address_schema_1 = require("./virtual-address.schema");
17
+ let Location = class Location {
18
+ };
19
+ exports.Location = Location;
20
+ __decorate([
21
+ (0, mongoose_1.Prop)({ type: String, enum: location_type_enum_1.LocationType, required: true, default: location_type_enum_1.LocationType.Uncategorized }),
22
+ __metadata("design:type", String)
23
+ ], Location.prototype, "type", void 0);
24
+ __decorate([
25
+ (0, mongoose_1.Prop)({ type: physical_address_schema_1.PhysicalAddressSchema, required: false, default: null }),
26
+ __metadata("design:type", Object)
27
+ ], Location.prototype, "physicalAddress", void 0);
28
+ __decorate([
29
+ (0, mongoose_1.Prop)({ type: virtual_address_schema_1.VirtualAddressSchema, required: false, default: null }),
30
+ __metadata("design:type", Object)
31
+ ], Location.prototype, "virtualAddress", void 0);
32
+ exports.Location = Location = __decorate([
33
+ (0, mongoose_1.Schema)({ _id: false })
34
+ ], Location);
35
+ exports.LocationSchema = mongoose_1.SchemaFactory.createForClass(Location);
36
+ //# sourceMappingURL=location.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/location.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,uEAA8D;AAE9D,uEAAkE;AAElE,qEAAgE;AAGzD,IAAM,QAAQ,GAAd,MAAM,QAAQ;CASpB,CAAA;AATY,4BAAQ;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,iCAAY,CAAC,aAAa,EAAE,CAAC;;sCAC7E;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,+CAAqB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACjB;AAGrD;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,6CAAoB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDAClB;mBAR1C,QAAQ;IADpB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,QAAQ,CASpB;AAEY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
@@ -10,11 +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, import("mongoose").Document<unknown, any, Person> & Person & {
13
+ export declare const PersonSchema: import("mongoose").Schema<Person, import("mongoose").Model<Person, any, any, any, import("mongoose").Document<unknown, any, Person, any, {}> & Person & {
14
14
  _id: import("mongoose").Types.ObjectId;
15
15
  } & {
16
16
  __v: number;
17
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Person, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Person>> & import("mongoose").FlatRecord<Person> & {
17
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Person, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Person>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Person> & {
18
18
  _id: import("mongoose").Types.ObjectId;
19
19
  } & {
20
20
  __v: number;
@@ -0,0 +1,19 @@
1
+ import { HydratedDocument } from 'mongoose';
2
+ import { IDictionary } from '../../interfaces/dictionary.interface';
3
+ import { IPhysicalAddress } from '../../interfaces/physical-address.interface';
4
+ export declare class PhysicalAddress implements IPhysicalAddress {
5
+ country: IDictionary;
6
+ city: IDictionary;
7
+ address1: string;
8
+ address2: string;
9
+ }
10
+ export declare const PhysicalAddressSchema: import("mongoose").Schema<PhysicalAddress, import("mongoose").Model<PhysicalAddress, any, any, any, import("mongoose").Document<unknown, any, PhysicalAddress, any, {}> & PhysicalAddress & {
11
+ _id: import("mongoose").Types.ObjectId;
12
+ } & {
13
+ __v: number;
14
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PhysicalAddress, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<PhysicalAddress>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<PhysicalAddress> & {
15
+ _id: import("mongoose").Types.ObjectId;
16
+ } & {
17
+ __v: number;
18
+ }>;
19
+ export type PhysicalAddressDocument = HydratedDocument<PhysicalAddress>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PhysicalAddressSchema = exports.PhysicalAddress = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const dictionary_embedded_schema_1 = require("./dictionary-embedded.schema");
15
+ let PhysicalAddress = class PhysicalAddress {
16
+ };
17
+ exports.PhysicalAddress = PhysicalAddress;
18
+ __decorate([
19
+ (0, mongoose_1.Prop)({ type: dictionary_embedded_schema_1.DictionaryEmbeddedSchema, required: false, default: null }),
20
+ __metadata("design:type", Object)
21
+ ], PhysicalAddress.prototype, "country", void 0);
22
+ __decorate([
23
+ (0, mongoose_1.Prop)({ type: dictionary_embedded_schema_1.DictionaryEmbeddedSchema, required: false, default: null }),
24
+ __metadata("design:type", Object)
25
+ ], PhysicalAddress.prototype, "city", void 0);
26
+ __decorate([
27
+ (0, mongoose_1.Prop)({ type: String, required: false, default: null }),
28
+ __metadata("design:type", String)
29
+ ], PhysicalAddress.prototype, "address1", void 0);
30
+ __decorate([
31
+ (0, mongoose_1.Prop)({ type: String, required: false, default: null }),
32
+ __metadata("design:type", String)
33
+ ], PhysicalAddress.prototype, "address2", void 0);
34
+ exports.PhysicalAddress = PhysicalAddress = __decorate([
35
+ (0, mongoose_1.Schema)({ _id: false })
36
+ ], PhysicalAddress);
37
+ exports.PhysicalAddressSchema = mongoose_1.SchemaFactory.createForClass(PhysicalAddress);
38
+ //# sourceMappingURL=physical-address.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"physical-address.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/physical-address.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,6EAAwE;AAIjE,IAAM,eAAe,GAArB,MAAM,eAAe;CAY3B,CAAA;AAZY,0CAAe;AAExB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,qDAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDACpD;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,qDAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6CACvD;AAGlB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACtC;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACtC;0BAXR,eAAe;IAD3B,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,eAAe,CAY3B;AAEY,QAAA,qBAAqB,GAAG,wBAAa,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { HydratedDocument } from 'mongoose';
2
+ import { IFileEmbedded } from '../../interfaces/s3.interface';
3
+ import { IPicture } from '../../interfaces/picture.interface';
4
+ import { ICropArea } from '../../interfaces/crop-area.interface';
5
+ export declare class Picture implements IPicture {
6
+ original: IFileEmbedded;
7
+ cropped: IFileEmbedded | null | undefined;
8
+ cropArea: ICropArea | null | undefined;
9
+ }
10
+ export declare const PictureSchema: import("mongoose").Schema<Picture, import("mongoose").Model<Picture, any, any, any, import("mongoose").Document<unknown, any, Picture, any, {}> & Picture & {
11
+ _id: import("mongoose").Types.ObjectId;
12
+ } & {
13
+ __v: number;
14
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Picture, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Picture>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Picture> & {
15
+ _id: import("mongoose").Types.ObjectId;
16
+ } & {
17
+ __v: number;
18
+ }>;
19
+ export type PictureDocument = HydratedDocument<Picture>;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PictureSchema = exports.Picture = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const s3_schema_1 = require("./s3.schema");
15
+ const crop_area_schema_1 = require("./crop-area.schema");
16
+ let Picture = class Picture {
17
+ };
18
+ exports.Picture = Picture;
19
+ __decorate([
20
+ (0, mongoose_1.Prop)({ type: s3_schema_1.FileEmbeddedSchema, required: true, default: null }),
21
+ __metadata("design:type", Object)
22
+ ], Picture.prototype, "original", void 0);
23
+ __decorate([
24
+ (0, mongoose_1.Prop)({ type: s3_schema_1.FileEmbeddedSchema, required: false, default: null }),
25
+ __metadata("design:type", Object)
26
+ ], Picture.prototype, "cropped", void 0);
27
+ __decorate([
28
+ (0, mongoose_1.Prop)({ type: crop_area_schema_1.CropAreaSchema, required: false, default: null }),
29
+ __metadata("design:type", Object)
30
+ ], Picture.prototype, "cropArea", void 0);
31
+ exports.Picture = Picture = __decorate([
32
+ (0, mongoose_1.Schema)({ _id: false })
33
+ ], Picture);
34
+ exports.PictureSchema = mongoose_1.SchemaFactory.createForClass(Picture);
35
+ //# sourceMappingURL=picture.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"picture.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/picture.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,2CAAiD;AAGjD,yDAAoD;AAG7C,IAAM,OAAO,GAAb,MAAM,OAAO;CASnB,CAAA;AATY,0BAAO;AAEhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC1C;AAGxB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCACzB;AAG1C;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iCAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCACxB;kBAR9B,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,OAAO,CASnB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC"}
@@ -8,11 +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, import("mongoose").Document<unknown, any, Record> & Record & {
11
+ export declare const RecordSchema: import("mongoose").Schema<Record, import("mongoose").Model<Record, any, any, any, import("mongoose").Document<unknown, any, Record, any, {}> & Record & {
12
12
  _id: import("mongoose").Types.ObjectId;
13
13
  } & {
14
14
  __v: number;
15
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Record, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Record>> & import("mongoose").FlatRecord<Record> & {
15
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Record, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Record>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Record> & {
16
16
  _id: import("mongoose").Types.ObjectId;
17
17
  } & {
18
18
  __v: number;
@@ -7,11 +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, import("mongoose").Document<unknown, any, Residence> & Residence & {
10
+ export declare const ResidenceSchema: import("mongoose").Schema<Residence, import("mongoose").Model<Residence, any, any, any, import("mongoose").Document<unknown, any, Residence, any, {}> & Residence & {
11
11
  _id: import("mongoose").Types.ObjectId;
12
12
  } & {
13
13
  __v: number;
14
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Residence, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Residence>> & import("mongoose").FlatRecord<Residence> & {
14
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Residence, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Residence>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Residence> & {
15
15
  _id: import("mongoose").Types.ObjectId;
16
16
  } & {
17
17
  __v: number;
@@ -43,77 +43,76 @@ export declare class FileEmbedded implements IFileEmbedded {
43
43
  size: number;
44
44
  mimeType: string;
45
45
  s3: S3;
46
- state: S3FileState;
47
46
  createdAt: Date;
48
47
  }
49
- export declare const S3Schema: import("mongoose").Schema<S3, import("mongoose").Model<S3, any, any, any, import("mongoose").Document<unknown, any, S3> & S3 & {
48
+ export declare const S3Schema: import("mongoose").Schema<S3, import("mongoose").Model<S3, any, any, any, import("mongoose").Document<unknown, any, S3, any, {}> & S3 & {
50
49
  _id: import("mongoose").Types.ObjectId;
51
50
  } & {
52
51
  __v: number;
53
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3>> & import("mongoose").FlatRecord<S3> & {
52
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<S3> & {
54
53
  _id: import("mongoose").Types.ObjectId;
55
54
  } & {
56
55
  __v: number;
57
56
  }>;
58
- export declare const LogInitiatorSchema: import("mongoose").Schema<LogInitiator, import("mongoose").Model<LogInitiator, any, any, any, import("mongoose").Document<unknown, any, LogInitiator> & LogInitiator & {
57
+ export declare const LogInitiatorSchema: import("mongoose").Schema<LogInitiator, import("mongoose").Model<LogInitiator, any, any, any, import("mongoose").Document<unknown, any, LogInitiator, any, {}> & LogInitiator & {
59
58
  _id: import("mongoose").Types.ObjectId;
60
59
  } & {
61
60
  __v: number;
62
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LogInitiator, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<LogInitiator>> & import("mongoose").FlatRecord<LogInitiator> & {
61
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LogInitiator, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<LogInitiator>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<LogInitiator> & {
63
62
  _id: import("mongoose").Types.ObjectId;
64
63
  } & {
65
64
  __v: number;
66
65
  }>;
67
- export declare const FileLogSchema: import("mongoose").Schema<FileLog, import("mongoose").Model<FileLog, any, any, any, import("mongoose").Document<unknown, any, FileLog> & FileLog & {
66
+ export declare const FileLogSchema: import("mongoose").Schema<FileLog, import("mongoose").Model<FileLog, any, any, any, import("mongoose").Document<unknown, any, FileLog, any, {}> & FileLog & {
68
67
  _id: import("mongoose").Types.ObjectId;
69
68
  } & {
70
69
  __v: number;
71
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileLog, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileLog>> & import("mongoose").FlatRecord<FileLog> & {
70
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileLog, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileLog>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<FileLog> & {
72
71
  _id: import("mongoose").Types.ObjectId;
73
72
  } & {
74
73
  __v: number;
75
74
  }>;
76
- export declare const FileMetaSchema: import("mongoose").Schema<FileMeta, import("mongoose").Model<FileMeta, any, any, any, import("mongoose").Document<unknown, any, FileMeta> & FileMeta & {
75
+ export declare const FileMetaSchema: import("mongoose").Schema<FileMeta, import("mongoose").Model<FileMeta, any, any, any, import("mongoose").Document<unknown, any, FileMeta, any, {}> & FileMeta & {
77
76
  _id: import("mongoose").Types.ObjectId;
78
77
  } & {
79
78
  __v: number;
80
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileMeta, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileMeta>> & import("mongoose").FlatRecord<FileMeta> & {
79
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileMeta, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileMeta>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<FileMeta> & {
81
80
  _id: import("mongoose").Types.ObjectId;
82
81
  } & {
83
82
  __v: number;
84
83
  }>;
85
- export declare const FileStateSchema: import("mongoose").Schema<FileState, import("mongoose").Model<FileState, any, any, any, import("mongoose").Document<unknown, any, FileState> & FileState & {
84
+ export declare const FileStateSchema: import("mongoose").Schema<FileState, import("mongoose").Model<FileState, any, any, any, import("mongoose").Document<unknown, any, FileState, any, {}> & FileState & {
86
85
  _id: import("mongoose").Types.ObjectId;
87
86
  } & {
88
87
  __v: number;
89
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileState, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileState>> & import("mongoose").FlatRecord<FileState> & {
88
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileState, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileState>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<FileState> & {
90
89
  _id: import("mongoose").Types.ObjectId;
91
90
  } & {
92
91
  __v: number;
93
92
  }>;
94
- export declare const FileRecordSchema: import("mongoose").Schema<FileRecord, import("mongoose").Model<FileRecord, any, any, any, import("mongoose").Document<unknown, any, FileRecord> & FileRecord & {
93
+ export declare const FileRecordSchema: import("mongoose").Schema<FileRecord, import("mongoose").Model<FileRecord, any, any, any, import("mongoose").Document<unknown, any, FileRecord, any, {}> & FileRecord & {
95
94
  _id: import("mongoose").Types.ObjectId;
96
95
  } & {
97
96
  __v: number;
98
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileRecord, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileRecord>> & import("mongoose").FlatRecord<FileRecord> & {
97
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileRecord, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileRecord>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<FileRecord> & {
99
98
  _id: import("mongoose").Types.ObjectId;
100
99
  } & {
101
100
  __v: number;
102
101
  }>;
103
- export declare const S3FileSchema: import("mongoose").Schema<S3File, import("mongoose").Model<S3File, any, any, any, import("mongoose").Document<unknown, any, S3File> & S3File & {
102
+ export declare const S3FileSchema: import("mongoose").Schema<S3File, import("mongoose").Model<S3File, any, any, any, import("mongoose").Document<unknown, any, S3File, any, {}> & S3File & {
104
103
  _id: import("mongoose").Types.ObjectId;
105
104
  } & {
106
105
  __v: number;
107
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3File, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3File>> & import("mongoose").FlatRecord<S3File> & {
106
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3File, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3File>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<S3File> & {
108
107
  _id: import("mongoose").Types.ObjectId;
109
108
  } & {
110
109
  __v: number;
111
110
  }>;
112
- export declare const FileEmbeddedSchema: import("mongoose").Schema<FileEmbedded, import("mongoose").Model<FileEmbedded, any, any, any, import("mongoose").Document<unknown, any, FileEmbedded> & FileEmbedded & {
111
+ export declare const FileEmbeddedSchema: import("mongoose").Schema<FileEmbedded, import("mongoose").Model<FileEmbedded, any, any, any, import("mongoose").Document<unknown, any, FileEmbedded, any, {}> & FileEmbedded & {
113
112
  _id: import("mongoose").Types.ObjectId;
114
113
  } & {
115
114
  __v: number;
116
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileEmbedded>> & import("mongoose").FlatRecord<FileEmbedded> & {
115
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileEmbedded>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<FileEmbedded> & {
117
116
  _id: import("mongoose").Types.ObjectId;
118
117
  } & {
119
118
  __v: number;
@@ -166,10 +166,6 @@ __decorate([
166
166
  (0, mongoose_1.Prop)({ type: S3, required: true, default: null }),
167
167
  __metadata("design:type", S3)
168
168
  ], FileEmbedded.prototype, "s3", void 0);
169
- __decorate([
170
- (0, mongoose_1.Prop)({ type: String, enum: s3_enum_1.S3FileState, required: true }),
171
- __metadata("design:type", String)
172
- ], FileEmbedded.prototype, "state", void 0);
173
169
  __decorate([
174
170
  (0, mongoose_1.Prop)({ type: Date, required: true }),
175
171
  __metadata("design:type", Date)
@@ -1 +1 @@
1
- {"version":3,"file":"s3.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/s3.schema.ts"],"names":[],"mappings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AA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACxD,QAAA,eAAe,GAAG,wBAAa,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;AAC1D,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;AAC5D,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AACpD,QAAA,kBAAkB,GAAG,wBAAa,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC"}
@@ -11,11 +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, import("mongoose").Document<unknown, any, SessionUser> & SessionUser & Required<{
14
+ export declare const SessionUserSchema: import("mongoose").Schema<SessionUser, import("mongoose").Model<SessionUser, any, any, any, import("mongoose").Document<unknown, any, SessionUser, any, {}> & SessionUser & Required<{
15
15
  _id: string;
16
16
  }> & {
17
17
  __v: number;
18
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, SessionUser, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<SessionUser>> & import("mongoose").FlatRecord<SessionUser> & Required<{
18
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, SessionUser, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<SessionUser>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<SessionUser> & Required<{
19
19
  _id: string;
20
20
  }> & {
21
21
  __v: number;
@@ -10,11 +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, import("mongoose").Document<unknown, any, StudentEmbedded> & StudentEmbedded & Required<{
13
+ export declare const StudentEmbeddedSchema: import("mongoose").Schema<StudentEmbedded, import("mongoose").Model<StudentEmbedded, any, any, any, import("mongoose").Document<unknown, any, StudentEmbedded, any, {}> & StudentEmbedded & Required<{
14
14
  _id: import("mongoose").Types.ObjectId;
15
15
  }> & {
16
16
  __v: number;
17
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, StudentEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<StudentEmbedded>> & import("mongoose").FlatRecord<StudentEmbedded> & Required<{
17
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, StudentEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<StudentEmbedded>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<StudentEmbedded> & Required<{
18
18
  _id: import("mongoose").Types.ObjectId;
19
19
  }> & {
20
20
  __v: number;
@@ -5,11 +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, import("mongoose").Document<unknown, any, Teacher> & Teacher & {
8
+ export declare const TeacherSchema: MongooseSchema<Teacher, import("mongoose").Model<Teacher, any, any, any, import("mongoose").Document<unknown, any, Teacher, any, {}> & Teacher & {
9
9
  _id: Types.ObjectId;
10
10
  } & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Teacher, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Teacher>> & import("mongoose").FlatRecord<Teacher> & {
12
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Teacher, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Teacher>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Teacher> & {
13
13
  _id: Types.ObjectId;
14
14
  } & {
15
15
  __v: number;
@@ -5,11 +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, import("mongoose").Document<unknown, any, Time> & Time & {
8
+ export declare const TimeSchema: import("mongoose").Schema<Time, import("mongoose").Model<Time, any, any, any, import("mongoose").Document<unknown, any, Time, any, {}> & Time & {
9
9
  _id: import("mongoose").Types.ObjectId;
10
10
  } & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Time, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Time>> & import("mongoose").FlatRecord<Time> & {
12
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Time, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Time>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Time> & {
13
13
  _id: import("mongoose").Types.ObjectId;
14
14
  } & {
15
15
  __v: number;
@@ -0,0 +1,17 @@
1
+ import { HydratedDocument } from 'mongoose';
2
+ import { IVirtualAddress } from '../../interfaces/virtual-address.interface';
3
+ import { VirtualAddressType } from '../../enums/virtual-address-type.enum';
4
+ export declare class VirtualAddress implements IVirtualAddress {
5
+ type: VirtualAddressType;
6
+ link: string;
7
+ }
8
+ export declare const VirtualAddressSchema: import("mongoose").Schema<VirtualAddress, import("mongoose").Model<VirtualAddress, any, any, any, import("mongoose").Document<unknown, any, VirtualAddress, any, {}> & VirtualAddress & {
9
+ _id: import("mongoose").Types.ObjectId;
10
+ } & {
11
+ __v: number;
12
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, VirtualAddress, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<VirtualAddress>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<VirtualAddress> & {
13
+ _id: import("mongoose").Types.ObjectId;
14
+ } & {
15
+ __v: number;
16
+ }>;
17
+ export type VirtualAddressDocument = HydratedDocument<VirtualAddress>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.VirtualAddressSchema = exports.VirtualAddress = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const virtual_address_type_enum_1 = require("../../enums/virtual-address-type.enum");
15
+ let VirtualAddress = class VirtualAddress {
16
+ };
17
+ exports.VirtualAddress = VirtualAddress;
18
+ __decorate([
19
+ (0, mongoose_1.Prop)({ type: String, enum: virtual_address_type_enum_1.VirtualAddressType, required: true, default: virtual_address_type_enum_1.VirtualAddressType.Uncategorized }),
20
+ __metadata("design:type", String)
21
+ ], VirtualAddress.prototype, "type", void 0);
22
+ __decorate([
23
+ (0, mongoose_1.Prop)({ type: String, required: false, default: null }),
24
+ __metadata("design:type", String)
25
+ ], VirtualAddress.prototype, "link", void 0);
26
+ exports.VirtualAddress = VirtualAddress = __decorate([
27
+ (0, mongoose_1.Schema)({ _id: false })
28
+ ], VirtualAddress);
29
+ exports.VirtualAddressSchema = mongoose_1.SchemaFactory.createForClass(VirtualAddress);
30
+ //# sourceMappingURL=virtual-address.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtual-address.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/virtual-address.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,qFAA2E;AAGpE,IAAM,cAAc,GAApB,MAAM,cAAc;CAM1B,CAAA;AANY,wCAAc;AAEvB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,8CAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,8CAAkB,CAAC,aAAa,EAAE,CAAC;;4CACnF;AAGzB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;4CAC1C;yBALJ,cAAc;IAD1B,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,cAAc,CAM1B;AAEY,QAAA,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC"}
@@ -3,11 +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, import("mongoose").Document<unknown, any, Identifable> & Identifable & Required<{
6
+ export declare const IdentifableSchema: MongooseSchema<Identifable, import("mongoose").Model<Identifable, any, any, any, import("mongoose").Document<unknown, any, Identifable, any, {}> & Identifable & Required<{
7
7
  _id: Types.ObjectId;
8
8
  }> & {
9
9
  __v: number;
10
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Identifable, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Identifable>> & import("mongoose").FlatRecord<Identifable> & Required<{
10
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Identifable, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Identifable>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Identifable> & Required<{
11
11
  _id: Types.ObjectId;
12
12
  }> & {
13
13
  __v: number;
@@ -7,11 +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, import("mongoose").Document<unknown, any, Parent> & Parent & {
10
+ export declare const ParentSchema: MongooseSchema<Parent, import("mongoose").Model<Parent, any, any, any, import("mongoose").Document<unknown, any, Parent, any, {}> & Parent & {
11
11
  _id: Types.ObjectId;
12
12
  } & {
13
13
  __v: number;
14
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Parent, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Parent>> & import("mongoose").FlatRecord<Parent> & {
14
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Parent, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Parent>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Parent> & {
15
15
  _id: Types.ObjectId;
16
16
  } & {
17
17
  __v: number;