dl-commons 0.0.2-testing.14 → 0.0.2-testing.16

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 (60) hide show
  1. package/dist/index.d.ts +8 -1
  2. package/dist/index.js +13 -2
  3. package/dist/index.js.map +1 -1
  4. package/dist/models/enums/attachement-type.enum.d.ts +4 -0
  5. package/dist/models/enums/attachement-type.enum.js +9 -0
  6. package/dist/models/enums/attachement-type.enum.js.map +1 -0
  7. package/dist/models/interfaces/attachement.interface.d.ts +8 -0
  8. package/dist/models/interfaces/attachement.interface.js +3 -0
  9. package/dist/models/interfaces/attachement.interface.js.map +1 -0
  10. package/dist/models/interfaces/crop-area.interface.d.ts +6 -0
  11. package/dist/models/interfaces/crop-area.interface.js +3 -0
  12. package/dist/models/interfaces/crop-area.interface.js.map +1 -0
  13. package/dist/models/interfaces/group.interface.d.ts +17 -0
  14. package/dist/models/interfaces/group.interface.js +3 -0
  15. package/dist/models/interfaces/group.interface.js.map +1 -0
  16. package/dist/models/interfaces/picture.interface.d.ts +7 -0
  17. package/dist/models/interfaces/picture.interface.js +3 -0
  18. package/dist/models/interfaces/picture.interface.js.map +1 -0
  19. package/dist/models/schemas/base.schema.d.ts +2 -2
  20. package/dist/models/schemas/embedded/attachement.schema.d.ts +20 -0
  21. package/dist/models/schemas/embedded/attachement.schema.js +36 -0
  22. package/dist/models/schemas/embedded/attachement.schema.js.map +1 -0
  23. package/dist/models/schemas/embedded/contact.schema.d.ts +2 -2
  24. package/dist/models/schemas/embedded/crop-area.schema.d.ts +18 -0
  25. package/dist/models/schemas/embedded/crop-area.schema.js +37 -0
  26. package/dist/models/schemas/embedded/crop-area.schema.js.map +1 -0
  27. package/dist/models/schemas/embedded/dictionary-embedded.schema.d.ts +2 -2
  28. package/dist/models/schemas/embedded/group-session.schema.d.ts +2 -2
  29. package/dist/models/schemas/embedded/i18n.embedded.d.ts +2 -2
  30. package/dist/models/schemas/embedded/person.schema.d.ts +2 -2
  31. package/dist/models/schemas/embedded/picture.schema.d.ts +19 -0
  32. package/dist/models/schemas/embedded/picture.schema.js +35 -0
  33. package/dist/models/schemas/embedded/picture.schema.js.map +1 -0
  34. package/dist/models/schemas/embedded/record.embedded.d.ts +2 -2
  35. package/dist/models/schemas/embedded/residence.schema.d.ts +2 -2
  36. package/dist/models/schemas/embedded/s3.schema.d.ts +16 -16
  37. package/dist/models/schemas/embedded/session-user.schema.d.ts +2 -2
  38. package/dist/models/schemas/embedded/student-embedded.schema.d.ts +2 -2
  39. package/dist/models/schemas/embedded/teacher.schema.d.ts +2 -2
  40. package/dist/models/schemas/embedded/time.schema.d.ts +2 -2
  41. package/dist/models/schemas/identifable.schema.d.ts +2 -2
  42. package/dist/models/schemas/parent.schema.d.ts +2 -2
  43. package/dist/models/schemas/session.schema.d.ts +2 -2
  44. package/dist/transformers/common.transformer.d.ts +1 -1
  45. package/dist/transformers/common.transformer.js +3 -3
  46. package/dist/tsconfig.tsbuildinfo +1 -1
  47. package/dist/utils/helper.utils.d.ts +2 -2
  48. package/dist/utils/helper.utils.js +14 -13
  49. package/dist/utils/helper.utils.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/index.ts +21 -2
  52. package/src/models/enums/attachement-type.enum.ts +4 -0
  53. package/src/models/interfaces/attachement.interface.ts +9 -0
  54. package/src/models/interfaces/crop-area.interface.ts +6 -0
  55. package/src/models/interfaces/picture.interface.ts +8 -0
  56. package/src/models/schemas/embedded/attachement.schema.ts +22 -0
  57. package/src/models/schemas/embedded/crop-area.schema.ts +21 -0
  58. package/src/models/schemas/embedded/picture.schema.ts +22 -0
  59. package/src/transformers/common.transformer.ts +4 -4
  60. package/src/utils/helper.utils.ts +19 -15
package/dist/index.d.ts CHANGED
@@ -56,4 +56,11 @@ import { FileLogInitType, S3FileState } from './models/enums/s3.enum';
56
56
  import { IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog } from './models/interfaces/s3.interface';
57
57
  import { S3, S3Schema, S3Document, LogInitiatorDocument, LogInitiatorSchema, LogInitiator, FileLog, FileLogSchema, FileLogDocument, FileMetaDocument, FileMetaSchema, FileMeta, FileState, FileStateSchema, FileStateDocument, FileRecord, FileRecordSchema, FileRecordDocument, S3File, S3FileSchema, S3FileDocument, FileEmbedded, FileEmbeddedDocument, FileEmbeddedSchema } from './models/schemas/embedded/s3.schema';
58
58
  import { IUserMeta } from './models/interfaces/user-meta.interface';
59
- export { SessionsService, DictionariesService, SMTPService, RESTError, RESTPage, RESTPaging, RESTQueryParams, RESTRequestBody, RESTResponseBody, RESTResult, RESTSort, SortDirection, IMongoPage, AccessTokenGuard, PermissionGuard, AllowPermissions, APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, APP__MONGO__CS, DL_SESSIONS__MONGO__CS, MONGO__CS, REDIS__CS, KAFKA__BROKERS, RecordState, ContactType, UserVerificationLevel, WeekDay, GroupState, S3FileState, FileLogInitType, I18nDTO, IIdentifable, IBase, IRecord, II18n, IDictionary, IPermission, IRole, IContact, IPerson, IResidence, ISessionUser, ISession, IUser, IParent, IGroupEmbedded, IStudentEmbedded, ITeacher, IGroupSession, ITime, ISMTPAPIConfig, IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog, IUserMeta, Identifable, IdentifableSchema, IdentifableDocument, Base, BaseSchema, BaseDocument, Record, RecordSchema, RecordDocument, I18n, I18nSchema, I18nDocument, Residence, ResidenceSchema, ResidenceDocument, Contact, ContactSchema, ContactDocument, Person, PersonSchema, PersonDocument, DictionaryEmbedded, DictionaryEmbeddedSchema, DictionaryEmbeddedDocument, SessionUser, SessionUserSchema, SessionUserDocument, Session, SessionSchema, SessionDocument, GroupSessionSchema, GroupSessionDocument, GroupSession, TeacherSchema, TeacherDocument, Teacher, StudentEmbeddedSchema, StudentEmbeddedDocument, StudentEmbedded, TimeSchema, TimeDocument, Time, S3, S3Schema, S3Document, LogInitiator, LogInitiatorSchema, LogInitiatorDocument, FileLog, FileLogSchema, FileLogDocument, FileMeta, FileMetaSchema, FileMetaDocument, FileState, FileStateSchema, FileStateDocument, FileRecord, FileRecordSchema, FileRecordDocument, S3File, S3FileSchema, S3FileDocument, FileEmbedded, FileEmbeddedSchema, FileEmbeddedDocument, BaseExceptionsFilter, validationExceptionFactory, HandledException, IsMapOfStrings, transformers, MongoIdPipe, MongoIdsPipe, DLCommonsModule, };
59
+ import { ICropArea } from './models/interfaces/crop-area.interface';
60
+ import { CropArea, CropAreaDocument, CropAreaSchema } from './models/schemas/embedded/crop-area.schema';
61
+ import { AttachementType } from './models/enums/attachement-type.enum';
62
+ import { IAttachement } from './models/interfaces/attachement.interface';
63
+ import { Attachement, AttachementDocument, AttachementSchema } from './models/schemas/embedded/attachement.schema';
64
+ import { Picture, PictureSchema, PictureDocument } from './models/schemas/embedded/picture.schema';
65
+ import { IPicture } from './models/interfaces/picture.interface';
66
+ export { SessionsService, DictionariesService, SMTPService, RESTError, RESTPage, RESTPaging, RESTQueryParams, RESTRequestBody, RESTResponseBody, RESTResult, RESTSort, SortDirection, IMongoPage, AccessTokenGuard, PermissionGuard, AllowPermissions, APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, APP__MONGO__CS, DL_SESSIONS__MONGO__CS, MONGO__CS, REDIS__CS, KAFKA__BROKERS, RecordState, ContactType, UserVerificationLevel, WeekDay, GroupState, S3FileState, FileLogInitType, AttachementType, I18nDTO, IIdentifable, IBase, IRecord, II18n, IDictionary, IPermission, IRole, IContact, IPerson, IResidence, ISessionUser, ISession, IUser, IParent, IGroupEmbedded, IStudentEmbedded, ITeacher, IGroupSession, ITime, ISMTPAPIConfig, IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog, IUserMeta, ICropArea, IAttachement, IPicture, Identifable, IdentifableSchema, IdentifableDocument, Base, BaseSchema, BaseDocument, Record, RecordSchema, RecordDocument, I18n, I18nSchema, I18nDocument, Residence, ResidenceSchema, ResidenceDocument, Contact, ContactSchema, ContactDocument, Person, PersonSchema, PersonDocument, DictionaryEmbedded, DictionaryEmbeddedSchema, DictionaryEmbeddedDocument, SessionUser, SessionUserSchema, SessionUserDocument, Session, SessionSchema, SessionDocument, GroupSessionSchema, GroupSessionDocument, GroupSession, TeacherSchema, TeacherDocument, Teacher, StudentEmbeddedSchema, StudentEmbeddedDocument, StudentEmbedded, TimeSchema, TimeDocument, Time, S3, S3Schema, S3Document, LogInitiator, LogInitiatorSchema, LogInitiatorDocument, FileLog, FileLogSchema, FileLogDocument, FileMeta, FileMetaSchema, FileMetaDocument, FileState, FileStateSchema, FileStateDocument, FileRecord, FileRecordSchema, FileRecordDocument, S3File, S3FileSchema, S3FileDocument, FileEmbedded, FileEmbeddedSchema, FileEmbeddedDocument, CropArea, CropAreaSchema, CropAreaDocument, Attachement, AttachementSchema, AttachementDocument, Picture, PictureSchema, PictureDocument, BaseExceptionsFilter, validationExceptionFactory, HandledException, IsMapOfStrings, transformers, MongoIdPipe, MongoIdsPipe, DLCommonsModule, };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Session = exports.SessionUserSchema = exports.SessionUser = exports.DictionaryEmbeddedSchema = exports.DictionaryEmbedded = exports.PersonSchema = exports.Person = exports.ContactSchema = exports.Contact = exports.ResidenceSchema = exports.Residence = exports.I18nSchema = exports.I18n = exports.RecordSchema = exports.Record = exports.BaseSchema = exports.Base = exports.IdentifableSchema = exports.Identifable = exports.I18nDTO = exports.FileLogInitType = exports.S3FileState = exports.GroupState = exports.WeekDay = exports.UserVerificationLevel = exports.ContactType = exports.RecordState = exports.KAFKA__BROKERS = exports.REDIS__CS = exports.MONGO__CS = exports.DL_SESSIONS__MONGO__CS = exports.APP__MONGO__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = exports.AllowPermissions = exports.PermissionGuard = exports.AccessTokenGuard = exports.SortDirection = exports.RESTSort = exports.RESTResult = exports.RESTResponseBody = exports.RESTRequestBody = exports.RESTQueryParams = exports.RESTPaging = exports.RESTPage = exports.RESTError = exports.SMTPService = exports.DictionariesService = exports.SessionsService = void 0;
4
- exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.FileEmbeddedSchema = exports.FileEmbedded = exports.S3FileSchema = exports.S3File = exports.FileRecordSchema = exports.FileRecord = exports.FileStateSchema = exports.FileState = exports.FileMetaSchema = exports.FileMeta = exports.FileLogSchema = exports.FileLog = exports.LogInitiatorSchema = exports.LogInitiator = exports.S3Schema = exports.S3 = exports.Time = exports.TimeSchema = exports.StudentEmbedded = exports.StudentEmbeddedSchema = exports.Teacher = exports.TeacherSchema = exports.GroupSession = exports.GroupSessionSchema = exports.SessionSchema = void 0;
3
+ exports.SessionUserSchema = exports.SessionUser = exports.DictionaryEmbeddedSchema = exports.DictionaryEmbedded = exports.PersonSchema = exports.Person = exports.ContactSchema = exports.Contact = exports.ResidenceSchema = exports.Residence = exports.I18nSchema = exports.I18n = exports.RecordSchema = exports.Record = exports.BaseSchema = exports.Base = exports.IdentifableSchema = exports.Identifable = exports.I18nDTO = exports.AttachementType = exports.FileLogInitType = exports.S3FileState = exports.GroupState = exports.WeekDay = exports.UserVerificationLevel = exports.ContactType = exports.RecordState = exports.KAFKA__BROKERS = exports.REDIS__CS = exports.MONGO__CS = exports.DL_SESSIONS__MONGO__CS = exports.APP__MONGO__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = exports.AllowPermissions = exports.PermissionGuard = exports.AccessTokenGuard = exports.SortDirection = exports.RESTSort = exports.RESTResult = exports.RESTResponseBody = exports.RESTRequestBody = exports.RESTQueryParams = exports.RESTPaging = exports.RESTPage = exports.RESTError = exports.SMTPService = exports.DictionariesService = exports.SessionsService = void 0;
4
+ exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.PictureSchema = exports.Picture = exports.AttachementSchema = exports.Attachement = exports.CropAreaSchema = exports.CropArea = exports.FileEmbeddedSchema = exports.FileEmbedded = exports.S3FileSchema = exports.S3File = exports.FileRecordSchema = exports.FileRecord = exports.FileStateSchema = exports.FileState = exports.FileMetaSchema = exports.FileMeta = exports.FileLogSchema = exports.FileLog = exports.LogInitiatorSchema = exports.LogInitiator = exports.S3Schema = exports.S3 = exports.Time = exports.TimeSchema = exports.StudentEmbedded = exports.StudentEmbeddedSchema = exports.Teacher = exports.TeacherSchema = exports.GroupSession = exports.GroupSessionSchema = exports.SessionSchema = exports.Session = void 0;
5
5
  const is_map_of_strings_decorator_1 = require("./decorators/is-map-of-strings.decorator");
6
6
  Object.defineProperty(exports, "IsMapOfStrings", { enumerable: true, get: function () { return is_map_of_strings_decorator_1.IsMapOfStrings; } });
7
7
  const dl_commons_module_1 = require("./dl-commons.module");
@@ -122,4 +122,15 @@ Object.defineProperty(exports, "S3File", { enumerable: true, get: function () {
122
122
  Object.defineProperty(exports, "S3FileSchema", { enumerable: true, get: function () { return s3_schema_1.S3FileSchema; } });
123
123
  Object.defineProperty(exports, "FileEmbedded", { enumerable: true, get: function () { return s3_schema_1.FileEmbedded; } });
124
124
  Object.defineProperty(exports, "FileEmbeddedSchema", { enumerable: true, get: function () { return s3_schema_1.FileEmbeddedSchema; } });
125
+ const crop_area_schema_1 = require("./models/schemas/embedded/crop-area.schema");
126
+ Object.defineProperty(exports, "CropArea", { enumerable: true, get: function () { return crop_area_schema_1.CropArea; } });
127
+ Object.defineProperty(exports, "CropAreaSchema", { enumerable: true, get: function () { return crop_area_schema_1.CropAreaSchema; } });
128
+ const attachement_type_enum_1 = require("./models/enums/attachement-type.enum");
129
+ Object.defineProperty(exports, "AttachementType", { enumerable: true, get: function () { return attachement_type_enum_1.AttachementType; } });
130
+ const attachement_schema_1 = require("./models/schemas/embedded/attachement.schema");
131
+ Object.defineProperty(exports, "Attachement", { enumerable: true, get: function () { return attachement_schema_1.Attachement; } });
132
+ Object.defineProperty(exports, "AttachementSchema", { enumerable: true, get: function () { return attachement_schema_1.AttachementSchema; } });
133
+ const picture_schema_1 = require("./models/schemas/embedded/picture.schema");
134
+ Object.defineProperty(exports, "Picture", { enumerable: true, get: function () { return picture_schema_1.Picture; } });
135
+ Object.defineProperty(exports, "PictureSchema", { enumerable: true, get: function () { return picture_schema_1.PictureSchema; } });
125
136
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,0FAA0E;AA0RtE,+FA1RK,4CAAc,OA0RL;AAzRlB,2DAAsD;AAySlD,gGAzSK,mCAAe,OAySL;AAxSnB,oEAAiE;AAmR7D,iGAnRK,mCAAgB,OAmRL;AAlRpB,qEAA2E;AA6QvE,2GA7QK,8CAA0B,OA6QL;AA5Q9B,2EAAuE;AAuQnE,qGAvQK,4CAAoB,OAuQL;AAtQxB,oEAA+D;AA4H3D,iGA5HK,qCAAgB,OA4HL;AA3HpB,gEAA8E;AA6H1E,iGA7HK,mCAAgB,OA6HL;AADhB,gGA5HuB,kCAAe,OA4HvB;AA3HnB,mEASwC;AAwHpC,0FAhIA,0BAAS,OAgIA;AACT,2FAhIA,2BAAU,OAgIA;AACV,kGAhIA,kCAAiB,OAgIA;AAGjB,0FAlIA,0BAAS,OAkIA;AACT,0FAlIA,0BAAS,OAkIA;AACT,+FAlIA,+BAAc,OAkIA;AAJd,+FA7HA,+BAAc,OA6HA;AACd,uGA7HA,uCAAsB,OA6HA;AA3H1B,6DAAyD;AA8IrD,wFA9IK,kBAAO,OA8IL;AA7IX,kFAWmD;AAsF/C,0FA/FA,8BAAS,OA+FA;AACT,yFA/FA,6BAAQ,OA+FA;AACR,2FA/FA,+BAAU,OA+FA;AACV,gGA/FA,oCAAe,O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U,OA6KzB;AA5Kd,oDAAsE;AAuFlE,gGAvFK,yBAAe,OAuFL;AADf,4FAtFsB,qBAAW,OAsFtB;AApFf,mEAyB6C;AAoJzC,mFA5KA,cAAE,OA4KA;AACF,yFA5KA,oBAAQ,OA4KA;AAGR,mGA5KA,8BAAkB,OA4KA;AADlB,6FA1KA,wBAAY,OA0KA;AAGZ,wFA5KA,mBAAO,OA4KA;AACP,8FA5KA,yBAAa,OA4KA;AAGb,+FA5KA,0BAAc,OA4KA;AADd,yFA1KA,oBAAQ,OA0KA;AAGR,0FA5KA,qBAAS,OA4KA;AACT,gGA5KA,2BAAe,OA4KA;AAEf,2FA5KA,sBAAU,OA4KA;AACV,iGA5KA,4BAAgB,OA4KA;AAEhB,uFA5KA,kBAAM,OA4KA;AACN,6FA5KA,wBAAY,OA4KA;AAEZ,6FA5KA,wBAAY,OA4KA;AACZ,mGA3KA,8BAAkB,OA2KA;AAvKtB,iFAAwG;AAyKpG,yFAzKK,2BAAQ,OAyKL;AACR,+FA1KiC,iCAAc,OA0KjC;AAzKlB,gFAAuE;AAyDnE,gGAzDK,uCAAe,OAyDL;AAvDnB,qFAAmH;AAyK/G,4FAzKK,gCAAW,OAyKL;AACX,kGA1KuC,sCAAiB,OA0KvC;AAzKrB,6EAAmG;AA2K/F,wFA3KK,wBAAO,OA2KL;AACP,8FA5Kc,8BAAa,OA4Kd"}
@@ -0,0 +1,4 @@
1
+ export declare enum AttachementType {
2
+ File = "file",
3
+ Link = "link"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttachementType = void 0;
4
+ var AttachementType;
5
+ (function (AttachementType) {
6
+ AttachementType["File"] = "file";
7
+ AttachementType["Link"] = "link";
8
+ })(AttachementType || (exports.AttachementType = AttachementType = {}));
9
+ //# sourceMappingURL=attachement-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachement-type.enum.js","sourceRoot":"","sources":["../../../src/models/enums/attachement-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,gCAAa,CAAA;AACjB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
@@ -0,0 +1,8 @@
1
+ import { AttachementType } from '../enums/attachement-type.enum';
2
+ import { IIdentifable } from './identifable.interface';
3
+ import { IFileEmbedded } from './s3.interface';
4
+ export interface IAttachement extends IIdentifable {
5
+ type: AttachementType;
6
+ file?: IFileEmbedded | null | undefined;
7
+ link?: string | null | undefined;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=attachement.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachement.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/attachement.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface ICropArea {
2
+ x1: number;
3
+ x2: number;
4
+ y1: number;
5
+ y2: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=crop-area.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crop-area.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/crop-area.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { GroupState } from '../enums/group-state.enum';
2
+ import { IBase } from './base.interface';
3
+ import { IDictionary } from './dictionary.interface';
4
+ import { IGroupSession } from './group-session.interface';
5
+ import { II18n } from './i18n.interface';
6
+ import { IStudentEmbedded } from './student-embedded.interface';
7
+ import { ITeacher } from './teacher.interface';
8
+ export interface IGroup extends IBase {
9
+ teacher: ITeacher;
10
+ students: IStudentEmbedded[];
11
+ sessions: IGroupSession[];
12
+ knowladgeLevels: IDictionary[];
13
+ description: II18n;
14
+ state: GroupState;
15
+ startDate: Date;
16
+ endDate: Date;
17
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=group.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/group.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { ICropArea } from './crop-area.interface';
2
+ import { IFileEmbedded } from './s3.interface';
3
+ export interface IPicture {
4
+ original: IFileEmbedded;
5
+ cropped?: IFileEmbedded | null | undefined;
6
+ cropArea?: ICropArea | null | undefined;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=picture.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"picture.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/picture.interface.ts"],"names":[],"mappings":""}
@@ -8,10 +8,10 @@ export declare class Base extends Identifable implements IBase {
8
8
  export declare const BaseSchema: import("mongoose").Schema<Base, import("mongoose").Model<Base, any, any, any, import("mongoose").Document<unknown, any, Base> & Base & Required<{
9
9
  _id: import("mongoose").Types.ObjectId;
10
10
  }> & {
11
- __v: number;
11
+ __v?: number;
12
12
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Base, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Base>> & import("mongoose").FlatRecord<Base> & Required<{
13
13
  _id: import("mongoose").Types.ObjectId;
14
14
  }> & {
15
- __v: number;
15
+ __v?: number;
16
16
  }>;
17
17
  export type BaseDocument = HydratedDocument<Base>;
@@ -0,0 +1,20 @@
1
+ import { HydratedDocument } from 'mongoose';
2
+ import { IAttachement } from '../../interfaces/attachement.interface';
3
+ import { Identifable } from '../identifable.schema';
4
+ import { AttachementType } from '../../enums/attachement-type.enum';
5
+ import { IFileEmbedded } from '../../interfaces/s3.interface';
6
+ export declare class Attachement extends Identifable implements IAttachement {
7
+ type: AttachementType;
8
+ file: IFileEmbedded;
9
+ link: string;
10
+ }
11
+ export declare const AttachementSchema: import("mongoose").Schema<Attachement, import("mongoose").Model<Attachement, any, any, any, import("mongoose").Document<unknown, any, Attachement> & Attachement & Required<{
12
+ _id: import("mongoose").Types.ObjectId;
13
+ }> & {
14
+ __v?: number;
15
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Attachement, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Attachement>> & import("mongoose").FlatRecord<Attachement> & Required<{
16
+ _id: import("mongoose").Types.ObjectId;
17
+ }> & {
18
+ __v?: number;
19
+ }>;
20
+ export type AttachementDocument = HydratedDocument<Attachement>;
@@ -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.AttachementSchema = exports.Attachement = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const identifable_schema_1 = require("../identifable.schema");
15
+ const attachement_type_enum_1 = require("../../enums/attachement-type.enum");
16
+ const s3_schema_1 = require("./s3.schema");
17
+ let Attachement = class Attachement extends identifable_schema_1.Identifable {
18
+ };
19
+ exports.Attachement = Attachement;
20
+ __decorate([
21
+ (0, mongoose_1.Prop)({ required: true, enum: attachement_type_enum_1.AttachementType, type: String }),
22
+ __metadata("design:type", String)
23
+ ], Attachement.prototype, "type", void 0);
24
+ __decorate([
25
+ (0, mongoose_1.Prop)({ type: s3_schema_1.FileEmbeddedSchema, required: false, default: null }),
26
+ __metadata("design:type", Object)
27
+ ], Attachement.prototype, "file", void 0);
28
+ __decorate([
29
+ (0, mongoose_1.Prop)({ type: String, required: false, default: null }),
30
+ __metadata("design:type", String)
31
+ ], Attachement.prototype, "link", void 0);
32
+ exports.Attachement = Attachement = __decorate([
33
+ (0, mongoose_1.Schema)({ _id: false })
34
+ ], Attachement);
35
+ exports.AttachementSchema = mongoose_1.SchemaFactory.createForClass(Attachement);
36
+ //# sourceMappingURL=attachement.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachement.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/attachement.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,8DAAoD;AACpD,6EAAoE;AAEpE,2CAAiD;AAG1C,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,gCAAW;CAS3C,CAAA;AATY,kCAAW;AAEpB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,uCAAe,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACxC;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC/C;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC1C;sBARJ,WAAW;IADvB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,WAAW,CASvB;AAEY,QAAA,iBAAiB,GAAG,wBAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC"}
@@ -11,10 +11,10 @@ export declare class Contact extends Identifable implements IContact {
11
11
  export declare const ContactSchema: import("mongoose").Schema<Contact, import("mongoose").Model<Contact, any, any, any, import("mongoose").Document<unknown, any, Contact> & Contact & Required<{
12
12
  _id: import("mongoose").Types.ObjectId;
13
13
  }> & {
14
- __v: number;
14
+ __v?: number;
15
15
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contact, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Contact>> & import("mongoose").FlatRecord<Contact> & Required<{
16
16
  _id: import("mongoose").Types.ObjectId;
17
17
  }> & {
18
- __v: number;
18
+ __v?: number;
19
19
  }>;
20
20
  export type ContactDocument = HydratedDocument<Contact>;
@@ -0,0 +1,18 @@
1
+ import { HydratedDocument } from 'mongoose';
2
+ import { ICropArea } from '../../interfaces/crop-area.interface';
3
+ export declare class CropArea implements ICropArea {
4
+ x1: number;
5
+ x2: number;
6
+ y1: number;
7
+ y2: number;
8
+ }
9
+ export declare const CropAreaSchema: import("mongoose").Schema<CropArea, import("mongoose").Model<CropArea, any, any, any, import("mongoose").Document<unknown, any, CropArea> & CropArea & {
10
+ _id: import("mongoose").Types.ObjectId;
11
+ } & {
12
+ __v?: number;
13
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CropArea, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<CropArea>> & import("mongoose").FlatRecord<CropArea> & {
14
+ _id: import("mongoose").Types.ObjectId;
15
+ } & {
16
+ __v?: number;
17
+ }>;
18
+ export type CropAreaDocument = HydratedDocument<CropArea>;
@@ -0,0 +1,37 @@
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.CropAreaSchema = exports.CropArea = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ let CropArea = class CropArea {
15
+ };
16
+ exports.CropArea = CropArea;
17
+ __decorate([
18
+ (0, mongoose_1.Prop)({ type: Number, required: true }),
19
+ __metadata("design:type", Number)
20
+ ], CropArea.prototype, "x1", void 0);
21
+ __decorate([
22
+ (0, mongoose_1.Prop)({ type: Number, required: true }),
23
+ __metadata("design:type", Number)
24
+ ], CropArea.prototype, "x2", void 0);
25
+ __decorate([
26
+ (0, mongoose_1.Prop)({ type: Number, required: true }),
27
+ __metadata("design:type", Number)
28
+ ], CropArea.prototype, "y1", void 0);
29
+ __decorate([
30
+ (0, mongoose_1.Prop)({ type: Number, required: true }),
31
+ __metadata("design:type", Number)
32
+ ], CropArea.prototype, "y2", void 0);
33
+ exports.CropArea = CropArea = __decorate([
34
+ (0, mongoose_1.Schema)({ _id: false })
35
+ ], CropArea);
36
+ exports.CropAreaSchema = mongoose_1.SchemaFactory.createForClass(CropArea);
37
+ //# sourceMappingURL=crop-area.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crop-area.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/crop-area.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAKxD,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAYpB,CAAA;AAZY,4BAAQ;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC5B;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC5B;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC5B;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC5B;mBAXF,QAAQ;IADpB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,QAAQ,CAYpB;AAEY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
@@ -11,10 +11,10 @@ export declare class DictionaryEmbedded extends Base implements IDictionary {
11
11
  export declare const DictionaryEmbeddedSchema: MongooseSchema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, import("mongoose").Document<unknown, any, DictionaryEmbedded> & DictionaryEmbedded & Required<{
12
12
  _id: Types.ObjectId;
13
13
  }> & {
14
- __v: number;
14
+ __v?: number;
15
15
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DictionaryEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<DictionaryEmbedded>> & import("mongoose").FlatRecord<DictionaryEmbedded> & Required<{
16
16
  _id: Types.ObjectId;
17
17
  }> & {
18
- __v: number;
18
+ __v?: number;
19
19
  }>;
20
20
  export type DictionaryEmbeddedDocument = HydratedDocument<DictionaryEmbedded>;
@@ -11,10 +11,10 @@ export declare class GroupSession extends Identifable implements IGroupSession {
11
11
  export declare const GroupSessionSchema: import("mongoose").Schema<GroupSession, import("mongoose").Model<GroupSession, any, any, any, import("mongoose").Document<unknown, any, GroupSession> & GroupSession & Required<{
12
12
  _id: import("mongoose").Types.ObjectId;
13
13
  }> & {
14
- __v: number;
14
+ __v?: number;
15
15
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GroupSession, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<GroupSession>> & import("mongoose").FlatRecord<GroupSession> & Required<{
16
16
  _id: import("mongoose").Types.ObjectId;
17
17
  }> & {
18
- __v: number;
18
+ __v?: number;
19
19
  }>;
20
20
  export type GroupSessionDocument = HydratedDocument<GroupSession>;
@@ -8,10 +8,10 @@ export declare class I18n implements II18n {
8
8
  export declare const I18nSchema: import("mongoose").Schema<I18n, import("mongoose").Model<I18n, any, any, any, import("mongoose").Document<unknown, any, I18n> & I18n & {
9
9
  _id: import("mongoose").Types.ObjectId;
10
10
  } & {
11
- __v: number;
11
+ __v?: number;
12
12
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, I18n, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<I18n>> & import("mongoose").FlatRecord<I18n> & {
13
13
  _id: import("mongoose").Types.ObjectId;
14
14
  } & {
15
- __v: number;
15
+ __v?: number;
16
16
  }>;
17
17
  export type I18nDocument = HydratedDocument<I18n>;
@@ -13,10 +13,10 @@ export declare class Person implements IPerson {
13
13
  export declare const PersonSchema: import("mongoose").Schema<Person, import("mongoose").Model<Person, any, any, any, import("mongoose").Document<unknown, any, Person> & Person & {
14
14
  _id: import("mongoose").Types.ObjectId;
15
15
  } & {
16
- __v: number;
16
+ __v?: number;
17
17
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Person, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Person>> & import("mongoose").FlatRecord<Person> & {
18
18
  _id: import("mongoose").Types.ObjectId;
19
19
  } & {
20
- __v: number;
20
+ __v?: number;
21
21
  }>;
22
22
  export type PersonDocument = HydratedDocument<Person>;
@@ -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;
8
+ cropArea: ICropArea;
9
+ }
10
+ export declare const PictureSchema: import("mongoose").Schema<Picture, import("mongoose").Model<Picture, any, any, any, import("mongoose").Document<unknown, any, Picture> & 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").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;;wCAC5C;AAGvB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iCAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC3C;kBARX,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"}
@@ -11,10 +11,10 @@ export declare class Record implements IRecord {
11
11
  export declare const RecordSchema: import("mongoose").Schema<Record, import("mongoose").Model<Record, any, any, any, import("mongoose").Document<unknown, any, Record> & Record & {
12
12
  _id: import("mongoose").Types.ObjectId;
13
13
  } & {
14
- __v: number;
14
+ __v?: number;
15
15
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Record, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Record>> & import("mongoose").FlatRecord<Record> & {
16
16
  _id: import("mongoose").Types.ObjectId;
17
17
  } & {
18
- __v: number;
18
+ __v?: number;
19
19
  }>;
20
20
  export type RecordDocument = HydratedDocument<Record>;
@@ -10,10 +10,10 @@ export declare class Residence implements IResidence {
10
10
  export declare const ResidenceSchema: import("mongoose").Schema<Residence, import("mongoose").Model<Residence, any, any, any, import("mongoose").Document<unknown, any, Residence> & Residence & {
11
11
  _id: import("mongoose").Types.ObjectId;
12
12
  } & {
13
- __v: number;
13
+ __v?: number;
14
14
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Residence, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Residence>> & import("mongoose").FlatRecord<Residence> & {
15
15
  _id: import("mongoose").Types.ObjectId;
16
16
  } & {
17
- __v: number;
17
+ __v?: number;
18
18
  }>;
19
19
  export type ResidenceDocument = HydratedDocument<Residence>;
@@ -49,74 +49,74 @@ export declare class FileEmbedded implements IFileEmbedded {
49
49
  export declare const S3Schema: import("mongoose").Schema<S3, import("mongoose").Model<S3, any, any, any, import("mongoose").Document<unknown, any, S3> & S3 & {
50
50
  _id: import("mongoose").Types.ObjectId;
51
51
  } & {
52
- __v: number;
52
+ __v?: number;
53
53
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3>> & import("mongoose").FlatRecord<S3> & {
54
54
  _id: import("mongoose").Types.ObjectId;
55
55
  } & {
56
- __v: number;
56
+ __v?: number;
57
57
  }>;
58
58
  export declare const LogInitiatorSchema: import("mongoose").Schema<LogInitiator, import("mongoose").Model<LogInitiator, any, any, any, import("mongoose").Document<unknown, any, LogInitiator> & LogInitiator & {
59
59
  _id: import("mongoose").Types.ObjectId;
60
60
  } & {
61
- __v: number;
61
+ __v?: number;
62
62
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LogInitiator, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<LogInitiator>> & import("mongoose").FlatRecord<LogInitiator> & {
63
63
  _id: import("mongoose").Types.ObjectId;
64
64
  } & {
65
- __v: number;
65
+ __v?: number;
66
66
  }>;
67
67
  export declare const FileLogSchema: import("mongoose").Schema<FileLog, import("mongoose").Model<FileLog, any, any, any, import("mongoose").Document<unknown, any, FileLog> & FileLog & {
68
68
  _id: import("mongoose").Types.ObjectId;
69
69
  } & {
70
- __v: number;
70
+ __v?: number;
71
71
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileLog, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileLog>> & import("mongoose").FlatRecord<FileLog> & {
72
72
  _id: import("mongoose").Types.ObjectId;
73
73
  } & {
74
- __v: number;
74
+ __v?: number;
75
75
  }>;
76
76
  export declare const FileMetaSchema: import("mongoose").Schema<FileMeta, import("mongoose").Model<FileMeta, any, any, any, import("mongoose").Document<unknown, any, FileMeta> & FileMeta & {
77
77
  _id: import("mongoose").Types.ObjectId;
78
78
  } & {
79
- __v: number;
79
+ __v?: number;
80
80
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileMeta, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileMeta>> & import("mongoose").FlatRecord<FileMeta> & {
81
81
  _id: import("mongoose").Types.ObjectId;
82
82
  } & {
83
- __v: number;
83
+ __v?: number;
84
84
  }>;
85
85
  export declare const FileStateSchema: import("mongoose").Schema<FileState, import("mongoose").Model<FileState, any, any, any, import("mongoose").Document<unknown, any, FileState> & FileState & {
86
86
  _id: import("mongoose").Types.ObjectId;
87
87
  } & {
88
- __v: number;
88
+ __v?: number;
89
89
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileState, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileState>> & import("mongoose").FlatRecord<FileState> & {
90
90
  _id: import("mongoose").Types.ObjectId;
91
91
  } & {
92
- __v: number;
92
+ __v?: number;
93
93
  }>;
94
94
  export declare const FileRecordSchema: import("mongoose").Schema<FileRecord, import("mongoose").Model<FileRecord, any, any, any, import("mongoose").Document<unknown, any, FileRecord> & FileRecord & {
95
95
  _id: import("mongoose").Types.ObjectId;
96
96
  } & {
97
- __v: number;
97
+ __v?: number;
98
98
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileRecord, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileRecord>> & import("mongoose").FlatRecord<FileRecord> & {
99
99
  _id: import("mongoose").Types.ObjectId;
100
100
  } & {
101
- __v: number;
101
+ __v?: number;
102
102
  }>;
103
103
  export declare const S3FileSchema: import("mongoose").Schema<S3File, import("mongoose").Model<S3File, any, any, any, import("mongoose").Document<unknown, any, S3File> & S3File & {
104
104
  _id: import("mongoose").Types.ObjectId;
105
105
  } & {
106
- __v: number;
106
+ __v?: number;
107
107
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3File, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3File>> & import("mongoose").FlatRecord<S3File> & {
108
108
  _id: import("mongoose").Types.ObjectId;
109
109
  } & {
110
- __v: number;
110
+ __v?: number;
111
111
  }>;
112
112
  export declare const FileEmbeddedSchema: import("mongoose").Schema<FileEmbedded, import("mongoose").Model<FileEmbedded, any, any, any, import("mongoose").Document<unknown, any, FileEmbedded> & FileEmbedded & {
113
113
  _id: import("mongoose").Types.ObjectId;
114
114
  } & {
115
- __v: number;
115
+ __v?: number;
116
116
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileEmbedded>> & import("mongoose").FlatRecord<FileEmbedded> & {
117
117
  _id: import("mongoose").Types.ObjectId;
118
118
  } & {
119
- __v: number;
119
+ __v?: number;
120
120
  }>;
121
121
  export type S3Document = HydratedDocument<S3>;
122
122
  export type LogInitiatorDocument = HydratedDocument<LogInitiator>;
@@ -14,10 +14,10 @@ export declare class SessionUser implements ISessionUser {
14
14
  export declare const SessionUserSchema: import("mongoose").Schema<SessionUser, import("mongoose").Model<SessionUser, any, any, any, import("mongoose").Document<unknown, any, SessionUser> & SessionUser & Required<{
15
15
  _id: string;
16
16
  }> & {
17
- __v: number;
17
+ __v?: number;
18
18
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, SessionUser, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<SessionUser>> & import("mongoose").FlatRecord<SessionUser> & Required<{
19
19
  _id: string;
20
20
  }> & {
21
- __v: number;
21
+ __v?: number;
22
22
  }>;
23
23
  export type SessionUserDocument = HydratedDocument<SessionUser>;
@@ -13,10 +13,10 @@ export declare class StudentEmbedded extends Identifable implements IStudentEmbe
13
13
  export declare const StudentEmbeddedSchema: import("mongoose").Schema<StudentEmbedded, import("mongoose").Model<StudentEmbedded, any, any, any, import("mongoose").Document<unknown, any, StudentEmbedded> & StudentEmbedded & Required<{
14
14
  _id: import("mongoose").Types.ObjectId;
15
15
  }> & {
16
- __v: number;
16
+ __v?: number;
17
17
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, StudentEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<StudentEmbedded>> & import("mongoose").FlatRecord<StudentEmbedded> & Required<{
18
18
  _id: import("mongoose").Types.ObjectId;
19
19
  }> & {
20
- __v: number;
20
+ __v?: number;
21
21
  }>;
22
22
  export type StudentEmbeddedDocument = HydratedDocument<StudentEmbedded>;