dl-commons 0.0.1-testing.57 → 0.0.2-testing.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/index.d.ts +10 -3
  2. package/dist/index.js +29 -2
  3. package/dist/index.js.map +1 -1
  4. package/dist/models/consts/env-vars.const.d.ts +1 -0
  5. package/dist/models/consts/env-vars.const.js +2 -1
  6. package/dist/models/consts/env-vars.const.js.map +1 -1
  7. package/dist/models/enums/s3.enum.d.ts +11 -0
  8. package/dist/models/enums/s3.enum.js +17 -0
  9. package/dist/models/enums/s3.enum.js.map +1 -0
  10. package/dist/models/interfaces/group-session.interface.d.ts +6 -2
  11. package/dist/models/interfaces/s3.interface.d.ts +47 -0
  12. package/dist/models/interfaces/s3.interface.js +3 -0
  13. package/dist/models/interfaces/s3.interface.js.map +1 -0
  14. package/dist/models/interfaces/smtp-api-config.interface.d.ts +5 -0
  15. package/dist/models/interfaces/smtp-api-config.interface.js +3 -0
  16. package/dist/models/interfaces/smtp-api-config.interface.js.map +1 -0
  17. package/dist/models/interfaces/smtp.interface.d.ts +5 -0
  18. package/dist/models/interfaces/smtp.interface.js +3 -0
  19. package/dist/models/interfaces/smtp.interface.js.map +1 -0
  20. package/dist/models/interfaces/user-meta.interface.d.ts +4 -0
  21. package/dist/models/interfaces/user-meta.interface.js +3 -0
  22. package/dist/models/interfaces/user-meta.interface.js.map +1 -0
  23. package/dist/models/interfaces/user.interface.d.ts +1 -0
  24. package/dist/models/schemas/base.schema.d.ts +2 -2
  25. package/dist/models/schemas/embedded/contact.schema.d.ts +2 -2
  26. package/dist/models/schemas/embedded/dictionary-embedded.schema.d.ts +2 -2
  27. package/dist/models/schemas/embedded/group-session.schema.d.ts +4 -5
  28. package/dist/models/schemas/embedded/group-session.schema.js +4 -7
  29. package/dist/models/schemas/embedded/group-session.schema.js.map +1 -1
  30. package/dist/models/schemas/embedded/i18n.embedded.d.ts +2 -2
  31. package/dist/models/schemas/embedded/person.schema.d.ts +2 -2
  32. package/dist/models/schemas/embedded/record.embedded.d.ts +2 -2
  33. package/dist/models/schemas/embedded/residence.schema.d.ts +2 -2
  34. package/dist/models/schemas/embedded/s3.schema.d.ts +128 -0
  35. package/dist/models/schemas/embedded/s3.schema.js +188 -0
  36. package/dist/models/schemas/embedded/s3.schema.js.map +1 -0
  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 +17 -0
  41. package/dist/models/schemas/embedded/time.schema.js +33 -0
  42. package/dist/models/schemas/embedded/time.schema.js.map +1 -0
  43. package/dist/models/schemas/identifable.schema.d.ts +2 -2
  44. package/dist/models/schemas/parent.schema.d.ts +2 -2
  45. package/dist/models/schemas/session.schema.d.ts +2 -2
  46. package/dist/services/sessions.service.d.ts +4 -1
  47. package/dist/services/sessions.service.js +34 -0
  48. package/dist/services/sessions.service.js.map +1 -1
  49. package/dist/services/smtp.service.d.ts +11 -0
  50. package/dist/services/smtp.service.js +71 -0
  51. package/dist/services/smtp.service.js.map +1 -0
  52. package/dist/tsconfig.tsbuildinfo +1 -1
  53. package/package.json +1 -1
  54. package/src/index.ts +87 -3
  55. package/src/models/consts/env-vars.const.ts +1 -0
  56. package/src/models/enums/s3.enum.ts +12 -0
  57. package/src/models/interfaces/group-session.interface.ts +7 -2
  58. package/src/models/interfaces/s3.interface.ts +55 -0
  59. package/src/models/interfaces/smtp-api-config.interface.ts +5 -0
  60. package/src/models/interfaces/smtp.interface.ts +5 -0
  61. package/src/models/interfaces/user-meta.interface.ts +4 -0
  62. package/src/models/interfaces/user.interface.ts +1 -0
  63. package/src/models/schemas/embedded/group-session.schema.ts +5 -7
  64. package/src/models/schemas/embedded/s3.schema.ts +133 -0
  65. package/src/models/schemas/embedded/time.schema.ts +18 -0
  66. package/src/services/sessions.service.ts +38 -1
  67. package/src/services/smtp.service.ts +71 -0
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { validationExceptionFactory } from './factories/exception.factory';
5
5
  import { BaseExceptionsFilter } from './filters/base-exception.filter';
6
6
  import { AccessTokenGuard } from './guards/access-token.guard';
7
7
  import { AllowPermissions, PermissionGuard } from './guards/permission.guard';
8
- import { APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, MONGO__CS, REDIS__CS, KAFKA__BROKERS } from './models/consts/env-vars.const';
8
+ import { APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, MONGO__CS, REDIS__CS, KAFKA__BROKERS, APP__MONGO__CS, DL_SESSIONS__MONGO__CS } from './models/consts/env-vars.const';
9
9
  import { I18nDTO } from './models/dtos/commons/i18n.dto';
10
10
  import { IMongoPage, RESTError, RESTPage, RESTPaging, RESTQueryParams, RESTRequestBody, RESTResponseBody, RESTResult, RESTSort, SortDirection } from './models/dtos/wrappers/rest-wrapper.class';
11
11
  import { ContactType } from './models/enums/contact-type.enum';
@@ -45,8 +45,15 @@ import { IStudentEmbedded } from './models/interfaces/student-embedded.interface
45
45
  import { StudentEmbedded, StudentEmbeddedDocument, StudentEmbeddedSchema } from './models/schemas/embedded/student-embedded.schema';
46
46
  import { ITeacher } from './models/interfaces/teacher.interface';
47
47
  import { WeekDay } from './models/enums/week-day.enum';
48
- import { IGroupSession } from './models/interfaces/group-session.interface';
48
+ import { IGroupSession, ITime } from './models/interfaces/group-session.interface';
49
49
  import { GroupState } from './models/enums/group-state.enum';
50
50
  import { GroupSessionSchema, GroupSessionDocument, GroupSession } from './models/schemas/embedded/group-session.schema';
51
51
  import { TeacherSchema, TeacherDocument, Teacher } from './models/schemas/embedded/teacher.schema';
52
- export { SessionsService, DictionariesService, RESTError, RESTPage, RESTPaging, RESTQueryParams, RESTRequestBody, RESTResponseBody, RESTResult, RESTSort, SortDirection, IMongoPage, AccessTokenGuard, PermissionGuard, AllowPermissions, APP__PORT, APP__DEBUG, APP__ACCESS_TOKEN, MONGO__CS, REDIS__CS, KAFKA__BROKERS, RecordState, ContactType, UserVerificationLevel, WeekDay, GroupState, I18nDTO, IIdentifable, IBase, IRecord, II18n, IDictionary, IPermission, IRole, IContact, IPerson, IResidence, ISessionUser, ISession, IUser, IParent, IGroupEmbedded, IStudentEmbedded, ITeacher, IGroupSession, 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, BaseExceptionsFilter, validationExceptionFactory, HandledException, IsMapOfStrings, transformers, MongoIdPipe, MongoIdsPipe, DLCommonsModule, };
52
+ import { ISMTPAPIConfig } from './models/interfaces/smtp-api-config.interface';
53
+ import { SMTPService } from './services/smtp.service';
54
+ import { Time, TimeDocument, TimeSchema } from './models/schemas/embedded/time.schema';
55
+ import { FileLogInitType, S3FileState } from './models/enums/s3.enum';
56
+ import { IS3, ILogInitiator, IS3File, IFileState, IFileRecord, IFileMeta, IFileLog } from './models/interfaces/s3.interface';
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
+ 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, };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Teacher = exports.TeacherSchema = exports.GroupSession = exports.GroupSessionSchema = exports.SessionSchema = 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.GroupState = exports.WeekDay = exports.UserVerificationLevel = exports.ContactType = exports.RecordState = exports.KAFKA__BROKERS = exports.REDIS__CS = exports.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.DictionariesService = exports.SessionsService = void 0;
4
- exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.StudentEmbedded = exports.StudentEmbeddedSchema = void 0;
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;
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");
@@ -24,6 +24,8 @@ Object.defineProperty(exports, "APP__ACCESS_TOKEN", { enumerable: true, get: fun
24
24
  Object.defineProperty(exports, "MONGO__CS", { enumerable: true, get: function () { return env_vars_const_1.MONGO__CS; } });
25
25
  Object.defineProperty(exports, "REDIS__CS", { enumerable: true, get: function () { return env_vars_const_1.REDIS__CS; } });
26
26
  Object.defineProperty(exports, "KAFKA__BROKERS", { enumerable: true, get: function () { return env_vars_const_1.KAFKA__BROKERS; } });
27
+ Object.defineProperty(exports, "APP__MONGO__CS", { enumerable: true, get: function () { return env_vars_const_1.APP__MONGO__CS; } });
28
+ Object.defineProperty(exports, "DL_SESSIONS__MONGO__CS", { enumerable: true, get: function () { return env_vars_const_1.DL_SESSIONS__MONGO__CS; } });
27
29
  const i18n_dto_1 = require("./models/dtos/commons/i18n.dto");
28
30
  Object.defineProperty(exports, "I18nDTO", { enumerable: true, get: function () { return i18n_dto_1.I18nDTO; } });
29
31
  const rest_wrapper_class_1 = require("./models/dtos/wrappers/rest-wrapper.class");
@@ -95,4 +97,29 @@ Object.defineProperty(exports, "GroupSession", { enumerable: true, get: function
95
97
  const teacher_schema_1 = require("./models/schemas/embedded/teacher.schema");
96
98
  Object.defineProperty(exports, "TeacherSchema", { enumerable: true, get: function () { return teacher_schema_1.TeacherSchema; } });
97
99
  Object.defineProperty(exports, "Teacher", { enumerable: true, get: function () { return teacher_schema_1.Teacher; } });
100
+ const smtp_service_1 = require("./services/smtp.service");
101
+ Object.defineProperty(exports, "SMTPService", { enumerable: true, get: function () { return smtp_service_1.SMTPService; } });
102
+ const time_schema_1 = require("./models/schemas/embedded/time.schema");
103
+ Object.defineProperty(exports, "Time", { enumerable: true, get: function () { return time_schema_1.Time; } });
104
+ Object.defineProperty(exports, "TimeSchema", { enumerable: true, get: function () { return time_schema_1.TimeSchema; } });
105
+ const s3_enum_1 = require("./models/enums/s3.enum");
106
+ Object.defineProperty(exports, "FileLogInitType", { enumerable: true, get: function () { return s3_enum_1.FileLogInitType; } });
107
+ Object.defineProperty(exports, "S3FileState", { enumerable: true, get: function () { return s3_enum_1.S3FileState; } });
108
+ const s3_schema_1 = require("./models/schemas/embedded/s3.schema");
109
+ Object.defineProperty(exports, "S3", { enumerable: true, get: function () { return s3_schema_1.S3; } });
110
+ Object.defineProperty(exports, "S3Schema", { enumerable: true, get: function () { return s3_schema_1.S3Schema; } });
111
+ Object.defineProperty(exports, "LogInitiatorSchema", { enumerable: true, get: function () { return s3_schema_1.LogInitiatorSchema; } });
112
+ Object.defineProperty(exports, "LogInitiator", { enumerable: true, get: function () { return s3_schema_1.LogInitiator; } });
113
+ Object.defineProperty(exports, "FileLog", { enumerable: true, get: function () { return s3_schema_1.FileLog; } });
114
+ Object.defineProperty(exports, "FileLogSchema", { enumerable: true, get: function () { return s3_schema_1.FileLogSchema; } });
115
+ Object.defineProperty(exports, "FileMetaSchema", { enumerable: true, get: function () { return s3_schema_1.FileMetaSchema; } });
116
+ Object.defineProperty(exports, "FileMeta", { enumerable: true, get: function () { return s3_schema_1.FileMeta; } });
117
+ Object.defineProperty(exports, "FileState", { enumerable: true, get: function () { return s3_schema_1.FileState; } });
118
+ Object.defineProperty(exports, "FileStateSchema", { enumerable: true, get: function () { return s3_schema_1.FileStateSchema; } });
119
+ Object.defineProperty(exports, "FileRecord", { enumerable: true, get: function () { return s3_schema_1.FileRecord; } });
120
+ Object.defineProperty(exports, "FileRecordSchema", { enumerable: true, get: function () { return s3_schema_1.FileRecordSchema; } });
121
+ Object.defineProperty(exports, "S3File", { enumerable: true, get: function () { return s3_schema_1.S3File; } });
122
+ Object.defineProperty(exports, "S3FileSchema", { enumerable: true, get: function () { return s3_schema_1.S3FileSchema; } });
123
+ Object.defineProperty(exports, "FileEmbedded", { enumerable: true, get: function () { return s3_schema_1.FileEmbedded; } });
124
+ Object.defineProperty(exports, "FileEmbeddedSchema", { enumerable: true, get: function () { return s3_schema_1.FileEmbeddedSchema; } });
98
125
  //# 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;AAsMtE,+FAtMK,4CAAc,OAsML;AArMlB,2DAAsD;AAqNlD,gGArNK,mCAAe,OAqNL;AApNnB,oEAAiE;AA+L7D,iGA/LK,mCAAgB,OA+LL;AA9LpB,qEAA2E;AAyLvE,2GAzLK,8CAA0B,OAyLL;AAxL9B,2EAAuE;AAmLnE,qGAnLK,4CAAoB,OAmLL;AAlLxB,oEAA+D;AAkF3D,iGAlFK,qCAAgB,OAkFL;AAjFpB,gEAA8E;AAmF1E,iGAnFK,mCAAgB,OAmFL;AADhB,gGAlFu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FAjKA,0BAAc,OAiKA;AADd,yFA/JA,oBAAQ,OA+JA;AAGR,0FAjKA,qBAAS,OAiKA;AACT,gGAjKA,2BAAe,OAiKA;AAEf,2FAjKA,sBAAU,OAiKA;AACV,iGAjKA,4BAAgB,OAiKA;AAEhB,uFAjKA,kBAAM,OAiKA;AACN,6FAjKA,wBAAY,OAiKA;AAEZ,6FAjKA,wBAAY,OAiKA;AACZ,mGAhKA,8BAAkB,OAgKA"}
@@ -1,6 +1,7 @@
1
1
  export declare const APP__PORT = "APP__PORT";
2
2
  export declare const APP__DEBUG = "APP__DEBUG";
3
3
  export declare const APP__ACCESS_TOKEN = "APP__ACCESS_TOKEN";
4
+ export declare const APP__MONGO__CS = "APP__MONGO__CS";
4
5
  export declare const MONGO__CS = "MONGO__CS";
5
6
  export declare const REDIS__CS = "REDIS__CS";
6
7
  export declare const KAFKA__BROKERS = "KAFKA__BROKERS";
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DL_SESSIONS__MONGO__CS = exports.KAFKA__BROKERS = exports.REDIS__CS = exports.MONGO__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = void 0;
3
+ exports.DL_SESSIONS__MONGO__CS = exports.KAFKA__BROKERS = exports.REDIS__CS = exports.MONGO__CS = exports.APP__MONGO__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = void 0;
4
4
  exports.APP__PORT = 'APP__PORT';
5
5
  exports.APP__DEBUG = 'APP__DEBUG';
6
6
  exports.APP__ACCESS_TOKEN = 'APP__ACCESS_TOKEN';
7
+ exports.APP__MONGO__CS = 'APP__MONGO__CS';
7
8
  exports.MONGO__CS = 'MONGO__CS';
8
9
  exports.REDIS__CS = 'REDIS__CS';
9
10
  exports.KAFKA__BROKERS = 'KAFKA__BROKERS';
@@ -1 +1 @@
1
- {"version":3,"file":"env-vars.const.js","sourceRoot":"","sources":["../../../src/models/consts/env-vars.const.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,sBAAsB,GAAG,wBAAwB,CAAC"}
1
+ {"version":3,"file":"env-vars.const.js","sourceRoot":"","sources":["../../../src/models/consts/env-vars.const.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AACxC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,sBAAsB,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare enum S3FileState {
2
+ INITIALIZED = "INITIALIZED",
3
+ CREATED = "CREATED",
4
+ COMMITTED = "COMMITTED",
5
+ SOFT_DELETED = "SOFT_DELETED",
6
+ DELETED = "DELETED"
7
+ }
8
+ export declare enum FileLogInitType {
9
+ SCHEDULER = "SCHEDULER",
10
+ APP = "APP"
11
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FileLogInitType = exports.S3FileState = void 0;
4
+ var S3FileState;
5
+ (function (S3FileState) {
6
+ S3FileState["INITIALIZED"] = "INITIALIZED";
7
+ S3FileState["CREATED"] = "CREATED";
8
+ S3FileState["COMMITTED"] = "COMMITTED";
9
+ S3FileState["SOFT_DELETED"] = "SOFT_DELETED";
10
+ S3FileState["DELETED"] = "DELETED";
11
+ })(S3FileState || (exports.S3FileState = S3FileState = {}));
12
+ var FileLogInitType;
13
+ (function (FileLogInitType) {
14
+ FileLogInitType["SCHEDULER"] = "SCHEDULER";
15
+ FileLogInitType["APP"] = "APP";
16
+ })(FileLogInitType || (exports.FileLogInitType = FileLogInitType = {}));
17
+ //# sourceMappingURL=s3.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s3.enum.js","sourceRoot":"","sources":["../../../src/models/enums/s3.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAMX;AAND,WAAY,WAAW;IACnB,0CAA2B,CAAA;IAC3B,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;IACvB,4CAA6B,CAAA;IAC7B,kCAAmB,CAAA;AACvB,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,8BAAW,CAAA;AACf,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
@@ -1,9 +1,13 @@
1
1
  import { WeekDay } from '../enums/week-day.enum';
2
2
  import { II18n } from './i18n.interface';
3
3
  import { IIdentifable } from './identifable.interface';
4
+ export interface ITime {
5
+ inString: string;
6
+ inNumber: number;
7
+ zone: string;
8
+ }
4
9
  export interface IGroupSession extends IIdentifable {
5
10
  description: II18n;
6
11
  day: WeekDay;
7
- time: string;
8
- timeZone: string;
12
+ time: ITime;
9
13
  }
@@ -0,0 +1,47 @@
1
+ import { mongo } from 'mongoose';
2
+ import { FileLogInitType, S3FileState } from '../enums/s3.enum';
3
+ export interface IS3 {
4
+ key: string;
5
+ bucket: string;
6
+ etag: string;
7
+ }
8
+ export interface ILogInitiator {
9
+ type: FileLogInitType;
10
+ name: string;
11
+ }
12
+ export interface IS3File {
13
+ id: mongo.ObjectId;
14
+ fileMeta: IFileMeta;
15
+ state: IFileState;
16
+ s3: IS3;
17
+ record: IFileRecord;
18
+ owner: string;
19
+ }
20
+ export interface IFileState {
21
+ value: S3FileState;
22
+ log: IFileLog[];
23
+ }
24
+ export interface IFileRecord {
25
+ createdAt: Date;
26
+ updatedAt: Date;
27
+ }
28
+ export interface IFileMeta {
29
+ name: string;
30
+ size: number;
31
+ mimeType: string;
32
+ extension: string;
33
+ }
34
+ export interface IFileLog {
35
+ createdAt: Date;
36
+ value: S3FileState;
37
+ initiator: ILogInitiator;
38
+ }
39
+ export interface IFileEmbedded {
40
+ id: string;
41
+ name: string;
42
+ size: number;
43
+ mimeType: string;
44
+ s3: IS3;
45
+ state: S3FileState;
46
+ createdAt: Date;
47
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=s3.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s3.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/s3.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface ISMTPAPIConfig {
2
+ endpoint: string;
3
+ headers?: Map<string, string> | null | undefined;
4
+ profile: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=smtp-api-config.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smtp-api-config.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/smtp-api-config.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface ISMTP {
2
+ _id: string;
3
+ status: string;
4
+ error: any;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=smtp.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smtp.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/smtp.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface IUserMeta {
2
+ userId?: string;
3
+ fullName: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-meta.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-meta.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/user-meta.interface.ts"],"names":[],"mappings":""}
@@ -11,4 +11,5 @@ export interface IUser extends IBase {
11
11
  contacts: IContact[];
12
12
  roles: IRole[];
13
13
  verificationLevel: UserVerificationLevel;
14
+ invited?: boolean;
14
15
  }
@@ -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>;
@@ -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>;
@@ -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>;
@@ -1,21 +1,20 @@
1
1
  import { HydratedDocument } from 'mongoose';
2
2
  import { Identifable } from '../identifable.schema';
3
- import { IGroupSession } from '../../interfaces/group-session.interface';
3
+ import { IGroupSession, ITime } from '../../interfaces/group-session.interface';
4
4
  import { WeekDay } from '../../enums/week-day.enum';
5
5
  import { II18n } from '../../interfaces/i18n.interface';
6
6
  export declare class GroupSession extends Identifable implements IGroupSession {
7
7
  description: II18n;
8
8
  day: WeekDay;
9
- time: string;
10
- timeZone: string;
9
+ time: ITime;
11
10
  }
12
11
  export declare const GroupSessionSchema: import("mongoose").Schema<GroupSession, import("mongoose").Model<GroupSession, any, any, any, import("mongoose").Document<unknown, any, GroupSession> & GroupSession & Required<{
13
12
  _id: import("mongoose").Types.ObjectId;
14
13
  }> & {
15
- __v?: number;
14
+ __v: number;
16
15
  }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GroupSession, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<GroupSession>> & import("mongoose").FlatRecord<GroupSession> & Required<{
17
16
  _id: import("mongoose").Types.ObjectId;
18
17
  }> & {
19
- __v?: number;
18
+ __v: number;
20
19
  }>;
21
20
  export type GroupSessionDocument = HydratedDocument<GroupSession>;
@@ -14,6 +14,7 @@ const mongoose_1 = require("@nestjs/mongoose");
14
14
  const identifable_schema_1 = require("../identifable.schema");
15
15
  const week_day_enum_1 = require("../../enums/week-day.enum");
16
16
  const i18n_embedded_1 = require("./i18n.embedded");
17
+ const time_schema_1 = require("./time.schema");
17
18
  let GroupSession = class GroupSession extends identifable_schema_1.Identifable {
18
19
  };
19
20
  exports.GroupSession = GroupSession;
@@ -22,17 +23,13 @@ __decorate([
22
23
  __metadata("design:type", Object)
23
24
  ], GroupSession.prototype, "description", void 0);
24
25
  __decorate([
25
- (0, mongoose_1.Prop)({ type: String, enum: week_day_enum_1.WeekDay, required: true }),
26
+ (0, mongoose_1.Prop)({ type: Number, enum: week_day_enum_1.WeekDay, required: true }),
26
27
  __metadata("design:type", Number)
27
28
  ], GroupSession.prototype, "day", void 0);
28
29
  __decorate([
29
- (0, mongoose_1.Prop)({ type: String, required: true }),
30
- __metadata("design:type", String)
30
+ (0, mongoose_1.Prop)({ type: time_schema_1.Time, required: true }),
31
+ __metadata("design:type", Object)
31
32
  ], GroupSession.prototype, "time", void 0);
32
- __decorate([
33
- (0, mongoose_1.Prop)({ type: String, required: true }),
34
- __metadata("design:type", String)
35
- ], GroupSession.prototype, "timeZone", void 0);
36
33
  exports.GroupSession = GroupSession = __decorate([
37
34
  (0, mongoose_1.Schema)()
38
35
  ], GroupSession);
@@ -1 +1 @@
1
- {"version":3,"file":"group-session.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/group-session.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,8DAAoD;AAEpD,6DAAoD;AACpD,mDAA6C;AAItC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,gCAAW;CAY5C,CAAA;AAZY,oCAAY;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,0BAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iDACzB;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACzC;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC1B;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACtB;uBAXR,YAAY;IADxB,IAAA,iBAAM,GAAE;GACI,YAAY,CAYxB;AAEY,QAAA,kBAAkB,GAAG,wBAAa,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"group-session.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/group-session.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,8DAAoD;AAEpD,6DAAoD;AACpD,mDAA6C;AAE7C,+CAAqC;AAG9B,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,gCAAW;CAS5C,CAAA;AATY,oCAAY;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,0BAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iDACzB;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACzC;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kBAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACzB;uBARH,YAAY;IADxB,IAAA,iBAAM,GAAE;GACI,YAAY,CASxB;AAEY,QAAA,kBAAkB,GAAG,wBAAa,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC"}
@@ -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>;
@@ -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>;
@@ -0,0 +1,128 @@
1
+ import { HydratedDocument, mongo } from 'mongoose';
2
+ import { IFileEmbedded, IFileLog, IFileMeta, IFileRecord, IFileState, ILogInitiator, IS3, IS3File } from '../../interfaces/s3.interface';
3
+ import { FileLogInitType, S3FileState } from '../../enums/s3.enum';
4
+ export declare class S3 implements IS3 {
5
+ key: string;
6
+ bucket: string;
7
+ etag: string;
8
+ }
9
+ export declare class LogInitiator implements ILogInitiator {
10
+ type: FileLogInitType;
11
+ name: string;
12
+ }
13
+ export declare class FileLog implements IFileLog {
14
+ createdAt: Date;
15
+ value: S3FileState;
16
+ initiator: LogInitiator;
17
+ }
18
+ export declare class FileMeta implements IFileMeta {
19
+ name: string;
20
+ size: number;
21
+ mimeType: string;
22
+ extension: string;
23
+ }
24
+ export declare class FileState implements IFileState {
25
+ value: S3FileState;
26
+ log: FileLog[];
27
+ }
28
+ export declare class FileRecord implements IFileRecord {
29
+ createdAt: Date;
30
+ updatedAt: Date;
31
+ }
32
+ export declare class S3File implements IS3File {
33
+ id: mongo.ObjectId;
34
+ fileMeta: FileMeta;
35
+ state: FileState;
36
+ s3: S3;
37
+ record: FileRecord;
38
+ owner: string;
39
+ }
40
+ export declare class FileEmbedded implements IFileEmbedded {
41
+ id: string;
42
+ name: string;
43
+ size: number;
44
+ mimeType: string;
45
+ s3: S3;
46
+ state: S3FileState;
47
+ createdAt: Date;
48
+ }
49
+ export declare const S3Schema: import("mongoose").Schema<S3, import("mongoose").Model<S3, any, any, any, import("mongoose").Document<unknown, any, S3> & S3 & {
50
+ _id: import("mongoose").Types.ObjectId;
51
+ } & {
52
+ __v: number;
53
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3>> & import("mongoose").FlatRecord<S3> & {
54
+ _id: import("mongoose").Types.ObjectId;
55
+ } & {
56
+ __v: number;
57
+ }>;
58
+ export declare const LogInitiatorSchema: import("mongoose").Schema<LogInitiator, import("mongoose").Model<LogInitiator, any, any, any, import("mongoose").Document<unknown, any, LogInitiator> & LogInitiator & {
59
+ _id: import("mongoose").Types.ObjectId;
60
+ } & {
61
+ __v: number;
62
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LogInitiator, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<LogInitiator>> & import("mongoose").FlatRecord<LogInitiator> & {
63
+ _id: import("mongoose").Types.ObjectId;
64
+ } & {
65
+ __v: number;
66
+ }>;
67
+ export declare const FileLogSchema: import("mongoose").Schema<FileLog, import("mongoose").Model<FileLog, any, any, any, import("mongoose").Document<unknown, any, FileLog> & FileLog & {
68
+ _id: import("mongoose").Types.ObjectId;
69
+ } & {
70
+ __v: number;
71
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileLog, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileLog>> & import("mongoose").FlatRecord<FileLog> & {
72
+ _id: import("mongoose").Types.ObjectId;
73
+ } & {
74
+ __v: number;
75
+ }>;
76
+ export declare const FileMetaSchema: import("mongoose").Schema<FileMeta, import("mongoose").Model<FileMeta, any, any, any, import("mongoose").Document<unknown, any, FileMeta> & FileMeta & {
77
+ _id: import("mongoose").Types.ObjectId;
78
+ } & {
79
+ __v: number;
80
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileMeta, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileMeta>> & import("mongoose").FlatRecord<FileMeta> & {
81
+ _id: import("mongoose").Types.ObjectId;
82
+ } & {
83
+ __v: number;
84
+ }>;
85
+ export declare const FileStateSchema: import("mongoose").Schema<FileState, import("mongoose").Model<FileState, any, any, any, import("mongoose").Document<unknown, any, FileState> & FileState & {
86
+ _id: import("mongoose").Types.ObjectId;
87
+ } & {
88
+ __v: number;
89
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileState, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileState>> & import("mongoose").FlatRecord<FileState> & {
90
+ _id: import("mongoose").Types.ObjectId;
91
+ } & {
92
+ __v: number;
93
+ }>;
94
+ export declare const FileRecordSchema: import("mongoose").Schema<FileRecord, import("mongoose").Model<FileRecord, any, any, any, import("mongoose").Document<unknown, any, FileRecord> & FileRecord & {
95
+ _id: import("mongoose").Types.ObjectId;
96
+ } & {
97
+ __v: number;
98
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileRecord, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileRecord>> & import("mongoose").FlatRecord<FileRecord> & {
99
+ _id: import("mongoose").Types.ObjectId;
100
+ } & {
101
+ __v: number;
102
+ }>;
103
+ export declare const S3FileSchema: import("mongoose").Schema<S3File, import("mongoose").Model<S3File, any, any, any, import("mongoose").Document<unknown, any, S3File> & S3File & {
104
+ _id: import("mongoose").Types.ObjectId;
105
+ } & {
106
+ __v: number;
107
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3File, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3File>> & import("mongoose").FlatRecord<S3File> & {
108
+ _id: import("mongoose").Types.ObjectId;
109
+ } & {
110
+ __v: number;
111
+ }>;
112
+ export declare const FileEmbeddedSchema: import("mongoose").Schema<FileEmbedded, import("mongoose").Model<FileEmbedded, any, any, any, import("mongoose").Document<unknown, any, FileEmbedded> & FileEmbedded & {
113
+ _id: import("mongoose").Types.ObjectId;
114
+ } & {
115
+ __v: number;
116
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileEmbedded, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileEmbedded>> & import("mongoose").FlatRecord<FileEmbedded> & {
117
+ _id: import("mongoose").Types.ObjectId;
118
+ } & {
119
+ __v: number;
120
+ }>;
121
+ export type S3Document = HydratedDocument<S3>;
122
+ export type LogInitiatorDocument = HydratedDocument<LogInitiator>;
123
+ export type FileLogDocument = HydratedDocument<FileLog>;
124
+ export type FileMetaDocument = HydratedDocument<FileMeta>;
125
+ export type FileStateDocument = HydratedDocument<FileState>;
126
+ export type FileRecordDocument = HydratedDocument<FileRecord>;
127
+ export type S3FileDocument = HydratedDocument<S3File>;
128
+ export type FileEmbeddedDocument = HydratedDocument<FileEmbedded>;