dl-commons 0.0.2-testing.32 → 0.0.2-testing.34

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 (34) hide show
  1. package/dist/index.d.ts +6 -4
  2. package/dist/index.js +12 -8
  3. package/dist/index.js.map +1 -1
  4. package/dist/models/consts/env-vars.const.d.ts +2 -0
  5. package/dist/models/consts/env-vars.const.js +3 -1
  6. package/dist/models/consts/env-vars.const.js.map +1 -1
  7. package/dist/models/enums/attachment-type.enum.d.ts +4 -0
  8. package/dist/models/enums/attachment-type.enum.js +9 -0
  9. package/dist/models/enums/attachment-type.enum.js.map +1 -0
  10. package/dist/models/interfaces/attachment.interface.d.ts +8 -0
  11. package/dist/models/interfaces/attachment.interface.js +3 -0
  12. package/dist/models/interfaces/attachment.interface.js.map +1 -0
  13. package/dist/models/interfaces/group-request.interface.d.ts +7 -0
  14. package/dist/models/interfaces/group-request.interface.js +3 -0
  15. package/dist/models/interfaces/group-request.interface.js.map +1 -0
  16. package/dist/models/schemas/embedded/attachment.schema.d.ts +20 -0
  17. package/dist/models/schemas/embedded/attachment.schema.js +36 -0
  18. package/dist/models/schemas/embedded/attachment.schema.js.map +1 -0
  19. package/dist/services/groups.service.d.ts +13 -0
  20. package/dist/services/groups.service.js +65 -0
  21. package/dist/services/groups.service.js.map +1 -0
  22. package/dist/services/students.service.d.ts +11 -0
  23. package/dist/services/students.service.js +48 -0
  24. package/dist/services/students.service.js.map +1 -0
  25. package/dist/tsconfig.tsbuildinfo +1 -1
  26. package/package.json +1 -1
  27. package/src/index.ts +12 -8
  28. package/src/models/consts/env-vars.const.ts +3 -1
  29. package/src/models/enums/{attachement-type.enum.ts → attachment-type.enum.ts} +1 -1
  30. package/src/models/interfaces/{attachement.interface.ts → attachment.interface.ts} +3 -3
  31. package/src/models/interfaces/group-request.interface.ts +8 -0
  32. package/src/models/schemas/embedded/{attachement.schema.ts → attachment.schema.ts} +7 -7
  33. package/src/services/groups.service.ts +63 -0
  34. package/src/services/students.service.ts +42 -0
package/dist/index.d.ts CHANGED
@@ -58,9 +58,9 @@ import { S3, S3Schema, S3Document, LogInitiatorDocument, LogInitiatorSchema, Log
58
58
  import { IUserMeta } from './models/interfaces/user-meta.interface';
59
59
  import { ICropArea } from './models/interfaces/crop-area.interface';
60
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';
61
+ import { AttachmentType } from './models/enums/attachment-type.enum';
62
+ import { IAttachment } from './models/interfaces/attachment.interface';
63
+ import { Attachment, AttachmentDocument, AttachmentSchema } from './models/schemas/embedded/attachment.schema';
64
64
  import { Picture, PictureSchema, PictureDocument } from './models/schemas/embedded/picture.schema';
65
65
  import { IPicture } from './models/interfaces/picture.interface';
66
66
  import { IAuthor } from './models/interfaces/author.interface';
@@ -83,4 +83,6 @@ import { Location, LocationDocument, LocationSchema } from './models/schemas/emb
83
83
  import { ILocation } from './models/interfaces/location.interface';
84
84
  import { IArchive } from './models/interfaces/archive.interface';
85
85
  import { Archive, ArchiveDocument, ArchiveSchema } from './models/schemas/embedded/archive.schema';
86
- export { PermissionsScannerService, SessionsService, DictionariesService, SMTPService, StorageService, IAMService, 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, UserType, WeekDay, GroupState, S3FileState, FileLogInitType, AttachementType, VirtualAddressType, LocationType, I18nDTO, CropAreaDTO, IDParams, 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, IAuthor, IFileEmbedded, IPhysicalAddress, IDateTimeRange, IVirtualAddress, ILocation, IArchive, 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, Author, AuthorSchema, AuthorDocument, PhysicalAddress, PhysicalAddressSchema, PhysicalAddressDocument, DateTimeRange, DateTimeRangeSchema, DateTimeRangeDocument, VirtualAddress, VirtualAddressSchema, VirtualAddressDocument, Location, LocationSchema, LocationDocument, Archive, ArchiveSchema, ArchiveDocument, BaseExceptionsFilter, validationExceptionFactory, HandledException, IsMapOfStrings, transformers, MongoIdPipe, MongoIdsPipe, DLCommonsModule, };
86
+ import { StudentsService } from './services/students.service';
87
+ import { GroupsService } from './services/groups.service';
88
+ export { PermissionsScannerService, SessionsService, DictionariesService, SMTPService, StorageService, IAMService, StudentsService, GroupsService, 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, UserType, WeekDay, GroupState, S3FileState, FileLogInitType, AttachmentType, VirtualAddressType, LocationType, I18nDTO, CropAreaDTO, IDParams, 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, IAttachment, IPicture, IAuthor, IFileEmbedded, IPhysicalAddress, IDateTimeRange, IVirtualAddress, ILocation, IArchive, 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, Attachment, AttachmentSchema, AttachmentDocument, Picture, PictureSchema, PictureDocument, Author, AuthorSchema, AuthorDocument, PhysicalAddress, PhysicalAddressSchema, PhysicalAddressDocument, DateTimeRange, DateTimeRangeSchema, DateTimeRangeDocument, VirtualAddress, VirtualAddressSchema, VirtualAddressDocument, Location, LocationSchema, LocationDocument, Archive, ArchiveSchema, ArchiveDocument, BaseExceptionsFilter, validationExceptionFactory, HandledException, IsMapOfStrings, transformers, MongoIdPipe, MongoIdsPipe, DLCommonsModule, };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResidenceSchema = exports.Residence = exports.I18nSchema = exports.I18n = exports.RecordSchema = exports.Record = exports.BaseSchema = exports.Base = exports.IdentifableSchema = exports.Identifable = exports.IDParams = exports.CropAreaDTO = exports.I18nDTO = exports.LocationType = exports.VirtualAddressType = exports.AttachementType = exports.FileLogInitType = exports.S3FileState = exports.GroupState = exports.WeekDay = exports.UserType = 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.IAMService = exports.StorageService = exports.SMTPService = exports.DictionariesService = exports.SessionsService = exports.PermissionsScannerService = void 0;
4
- exports.LocationSchema = exports.Location = exports.VirtualAddressSchema = exports.VirtualAddress = exports.DateTimeRangeSchema = exports.DateTimeRange = exports.PhysicalAddressSchema = exports.PhysicalAddress = exports.AuthorSchema = exports.Author = 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 = exports.SessionUserSchema = exports.SessionUser = exports.DictionaryEmbeddedSchema = exports.DictionaryEmbedded = exports.PersonSchema = exports.Person = exports.ContactSchema = exports.Contact = void 0;
5
- exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.ArchiveSchema = exports.Archive = void 0;
3
+ exports.I18nSchema = exports.I18n = exports.RecordSchema = exports.Record = exports.BaseSchema = exports.Base = exports.IdentifableSchema = exports.Identifable = exports.IDParams = exports.CropAreaDTO = exports.I18nDTO = exports.LocationType = exports.VirtualAddressType = exports.AttachmentType = exports.FileLogInitType = exports.S3FileState = exports.GroupState = exports.WeekDay = exports.UserType = 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.GroupsService = exports.StudentsService = exports.IAMService = exports.StorageService = exports.SMTPService = exports.DictionariesService = exports.SessionsService = exports.PermissionsScannerService = void 0;
4
+ exports.VirtualAddressSchema = exports.VirtualAddress = exports.DateTimeRangeSchema = exports.DateTimeRange = exports.PhysicalAddressSchema = exports.PhysicalAddress = exports.AuthorSchema = exports.Author = exports.PictureSchema = exports.Picture = exports.AttachmentSchema = exports.Attachment = 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 = exports.SessionUserSchema = exports.SessionUser = exports.DictionaryEmbeddedSchema = exports.DictionaryEmbedded = exports.PersonSchema = exports.Person = exports.ContactSchema = exports.Contact = exports.ResidenceSchema = exports.Residence = void 0;
5
+ exports.DLCommonsModule = exports.MongoIdsPipe = exports.MongoIdPipe = exports.transformers = exports.IsMapOfStrings = exports.HandledException = exports.validationExceptionFactory = exports.BaseExceptionsFilter = exports.ArchiveSchema = exports.Archive = exports.LocationSchema = exports.Location = void 0;
6
6
  const is_map_of_strings_decorator_1 = require("./decorators/is-map-of-strings.decorator");
7
7
  Object.defineProperty(exports, "IsMapOfStrings", { enumerable: true, get: function () { return is_map_of_strings_decorator_1.IsMapOfStrings; } });
8
8
  const dl_commons_module_1 = require("./dl-commons.module");
@@ -126,11 +126,11 @@ Object.defineProperty(exports, "FileEmbeddedSchema", { enumerable: true, get: fu
126
126
  const crop_area_schema_1 = require("./models/schemas/embedded/crop-area.schema");
127
127
  Object.defineProperty(exports, "CropArea", { enumerable: true, get: function () { return crop_area_schema_1.CropArea; } });
128
128
  Object.defineProperty(exports, "CropAreaSchema", { enumerable: true, get: function () { return crop_area_schema_1.CropAreaSchema; } });
129
- const attachement_type_enum_1 = require("./models/enums/attachement-type.enum");
130
- Object.defineProperty(exports, "AttachementType", { enumerable: true, get: function () { return attachement_type_enum_1.AttachementType; } });
131
- const attachement_schema_1 = require("./models/schemas/embedded/attachement.schema");
132
- Object.defineProperty(exports, "Attachement", { enumerable: true, get: function () { return attachement_schema_1.Attachement; } });
133
- Object.defineProperty(exports, "AttachementSchema", { enumerable: true, get: function () { return attachement_schema_1.AttachementSchema; } });
129
+ const attachment_type_enum_1 = require("./models/enums/attachment-type.enum");
130
+ Object.defineProperty(exports, "AttachmentType", { enumerable: true, get: function () { return attachment_type_enum_1.AttachmentType; } });
131
+ const attachment_schema_1 = require("./models/schemas/embedded/attachment.schema");
132
+ Object.defineProperty(exports, "Attachment", { enumerable: true, get: function () { return attachment_schema_1.Attachment; } });
133
+ Object.defineProperty(exports, "AttachmentSchema", { enumerable: true, get: function () { return attachment_schema_1.AttachmentSchema; } });
134
134
  const picture_schema_1 = require("./models/schemas/embedded/picture.schema");
135
135
  Object.defineProperty(exports, "Picture", { enumerable: true, get: function () { return picture_schema_1.Picture; } });
136
136
  Object.defineProperty(exports, "PictureSchema", { enumerable: true, get: function () { return picture_schema_1.PictureSchema; } });
@@ -168,4 +168,8 @@ Object.defineProperty(exports, "LocationSchema", { enumerable: true, get: functi
168
168
  const archive_schema_1 = require("./models/schemas/embedded/archive.schema");
169
169
  Object.defineProperty(exports, "Archive", { enumerable: true, get: function () { return archive_schema_1.Archive; } });
170
170
  Object.defineProperty(exports, "ArchiveSchema", { enumerable: true, get: function () { return archive_schema_1.ArchiveSchema; } });
171
+ const students_service_1 = require("./services/students.service");
172
+ Object.defineProperty(exports, "StudentsService", { enumerable: true, get: function () { return students_service_1.StudentsService; } });
173
+ const groups_service_1 = require("./services/groups.service");
174
+ Object.defineProperty(exports, "GroupsService", { enumerable: true, get: function () { return groups_service_1.GroupsService; } });
171
175
  //# sour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mG;AA+M/F,wFA/MK,wBAAO,OA+ML;AACP,8FAhN+B,8BAAa,OAgN/B;AA/MjB,kEAA8D;AAa1D,gGAbK,kCAAe,OAaL;AAZnB,8DAA0D;AAatD,8FAbK,8BAAa,OAaL"}
@@ -6,3 +6,5 @@ export declare const MONGO__CS = "MONGO__CS";
6
6
  export declare const REDIS__CS = "REDIS__CS";
7
7
  export declare const KAFKA__BROKERS = "KAFKA__BROKERS";
8
8
  export declare const DL_SESSIONS__MONGO__CS = "DL_SESSIONS__MONGO__CS";
9
+ export declare const DL_STUDENTS__REST__BASE_URL = "DL_STUDENTS__REST__BASE_URL";
10
+ export declare const DL_GROUPS__REST__BASE_URL = "DL_GROUPS__REST__BASE_URL";
@@ -1,6 +1,6 @@
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__MONGO__CS = exports.APP__ACCESS_TOKEN = exports.APP__DEBUG = exports.APP__PORT = void 0;
3
+ exports.DL_GROUPS__REST__BASE_URL = exports.DL_STUDENTS__REST__BASE_URL = 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';
@@ -9,4 +9,6 @@ exports.MONGO__CS = 'MONGO__CS';
9
9
  exports.REDIS__CS = 'REDIS__CS';
10
10
  exports.KAFKA__BROKERS = 'KAFKA__BROKERS';
11
11
  exports.DL_SESSIONS__MONGO__CS = 'DL_SESSIONS__MONGO__CS';
12
+ exports.DL_STUDENTS__REST__BASE_URL = 'DL_STUDENTS__REST__BASE_URL';
13
+ exports.DL_GROUPS__REST__BASE_URL = 'DL_GROUPS__REST__BASE_URL';
12
14
  //# sourceMappingURL=env-vars.const.js.map
@@ -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;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"}
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;AAClD,QAAA,2BAA2B,GAAG,6BAA6B,CAAC;AAC5D,QAAA,yBAAyB,GAAG,2BAA2B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare enum AttachmentType {
2
+ File = "file",
3
+ Link = "link"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttachmentType = void 0;
4
+ var AttachmentType;
5
+ (function (AttachmentType) {
6
+ AttachmentType["File"] = "file";
7
+ AttachmentType["Link"] = "link";
8
+ })(AttachmentType || (exports.AttachmentType = AttachmentType = {}));
9
+ //# sourceMappingURL=attachment-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment-type.enum.js","sourceRoot":"","sources":["../../../src/models/enums/attachment-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,+BAAa,CAAA;IACb,+BAAa,CAAA;AACjB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
@@ -0,0 +1,8 @@
1
+ import { AttachmentType } from '../enums/attachment-type.enum';
2
+ import { IIdentifable } from './identifable.interface';
3
+ import { IFileEmbedded } from './s3.interface';
4
+ export interface IAttachment extends IIdentifable {
5
+ type: AttachmentType;
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=attachment.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/attachment.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { IBase } from './base.interface';
2
+ export interface IGroupRequestEmbedded extends IBase {
3
+ status: string;
4
+ action: string;
5
+ description: string;
6
+ reason: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=group-request.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-request.interface.js","sourceRoot":"","sources":["../../../src/models/interfaces/group-request.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import { HydratedDocument } from 'mongoose';
2
+ import { IAttachment } from '../../interfaces/attachment.interface';
3
+ import { Identifable } from '../identifable.schema';
4
+ import { AttachmentType } from '../../enums/attachment-type.enum';
5
+ import { IFileEmbedded } from '../../interfaces/s3.interface';
6
+ export declare class Attachment extends Identifable implements IAttachment {
7
+ type: AttachmentType;
8
+ file: IFileEmbedded;
9
+ link: string;
10
+ }
11
+ export declare const AttachmentSchema: import("mongoose").Schema<Attachment, import("mongoose").Model<Attachment, any, any, any, import("mongoose").Document<unknown, any, Attachment, any> & Attachment & Required<{
12
+ _id: import("mongoose").Types.ObjectId;
13
+ }> & {
14
+ __v: number;
15
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Attachment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Attachment>, {}> & import("mongoose").FlatRecord<Attachment> & Required<{
16
+ _id: import("mongoose").Types.ObjectId;
17
+ }> & {
18
+ __v: number;
19
+ }>;
20
+ export type AttachmentDocument = HydratedDocument<Attachment>;
@@ -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.AttachmentSchema = exports.Attachment = void 0;
13
+ const mongoose_1 = require("@nestjs/mongoose");
14
+ const identifable_schema_1 = require("../identifable.schema");
15
+ const attachment_type_enum_1 = require("../../enums/attachment-type.enum");
16
+ const s3_schema_1 = require("./s3.schema");
17
+ let Attachment = class Attachment extends identifable_schema_1.Identifable {
18
+ };
19
+ exports.Attachment = Attachment;
20
+ __decorate([
21
+ (0, mongoose_1.Prop)({ required: true, enum: attachment_type_enum_1.AttachmentType, type: String }),
22
+ __metadata("design:type", String)
23
+ ], Attachment.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
+ ], Attachment.prototype, "file", void 0);
28
+ __decorate([
29
+ (0, mongoose_1.Prop)({ type: String, required: false, default: null }),
30
+ __metadata("design:type", String)
31
+ ], Attachment.prototype, "link", void 0);
32
+ exports.Attachment = Attachment = __decorate([
33
+ (0, mongoose_1.Schema)({ _id: false })
34
+ ], Attachment);
35
+ exports.AttachmentSchema = mongoose_1.SchemaFactory.createForClass(Attachment);
36
+ //# sourceMappingURL=attachment.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/attachment.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,8DAAoD;AACpD,2EAAkE;AAElE,2CAAiD;AAG1C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,gCAAW;CAS1C,CAAA;AATY,gCAAU;AAEnB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,qCAAc,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACxC;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCAC/C;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCAC1C;qBARJ,UAAU;IADtB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,UAAU,CAStB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { HttpService } from '@nestjs/axios';
2
+ import { ConfigService } from '@nestjs/config';
3
+ import { RESTResult } from '../models/dtos/wrappers/rest-wrapper.class';
4
+ import { IGroupEmbedded } from '../models/interfaces/group-embedded.interface';
5
+ import { IGroupRequestEmbedded } from '../models/interfaces/group-request.interface';
6
+ export declare class GroupsService {
7
+ private readonly _httpService;
8
+ private readonly _configService;
9
+ private _baseUrl;
10
+ constructor(_httpService: HttpService, _configService: ConfigService);
11
+ readGroup(id: string): Promise<RESTResult<IGroupEmbedded>>;
12
+ readGroupRequest(id: string): Promise<RESTResult<IGroupRequestEmbedded>>;
13
+ }
@@ -0,0 +1,65 @@
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.GroupsService = void 0;
13
+ const axios_1 = require("@nestjs/axios");
14
+ const common_1 = require("@nestjs/common");
15
+ const config_1 = require("@nestjs/config");
16
+ const rest_wrapper_class_1 = require("../models/dtos/wrappers/rest-wrapper.class");
17
+ const rxjs_1 = require("rxjs");
18
+ const env_vars_const_1 = require("../models/consts/env-vars.const");
19
+ let GroupsService = class GroupsService {
20
+ constructor(_httpService, _configService) {
21
+ this._httpService = _httpService;
22
+ this._configService = _configService;
23
+ this._baseUrl = this._configService.getOrThrow(env_vars_const_1.DL_GROUPS__REST__BASE_URL);
24
+ }
25
+ async readGroup(id) {
26
+ try {
27
+ const endpoint = `${this._baseUrl}/v1/groups/${id}`;
28
+ const response$ = this._httpService.get(endpoint);
29
+ const response = await (0, rxjs_1.firstValueFrom)(response$);
30
+ if (response.data.errors) {
31
+ throw new rest_wrapper_class_1.RESTError('students_api_error', response.data.errors);
32
+ }
33
+ if (!response.data || !response.data.result) {
34
+ throw new rest_wrapper_class_1.RESTError('students_api_error', 'empty response');
35
+ }
36
+ return response.data.result;
37
+ }
38
+ catch (e) {
39
+ throw rest_wrapper_class_1.RESTError.createFromCatch(e, { keyword: 'unknown', debug: e });
40
+ }
41
+ }
42
+ async readGroupRequest(id) {
43
+ try {
44
+ const endpoint = `${this._baseUrl}/v1/group-requests/${id}`;
45
+ const response$ = this._httpService.get(endpoint);
46
+ const response = await (0, rxjs_1.firstValueFrom)(response$);
47
+ if (response.data.errors) {
48
+ throw new rest_wrapper_class_1.RESTError('students_api_error', response.data.errors);
49
+ }
50
+ if (!response.data || !response.data.result) {
51
+ throw new rest_wrapper_class_1.RESTError('students_api_error', 'empty response');
52
+ }
53
+ return response.data.result;
54
+ }
55
+ catch (e) {
56
+ throw rest_wrapper_class_1.RESTError.createFromCatch(e, { keyword: 'unknown', debug: e });
57
+ }
58
+ }
59
+ };
60
+ exports.GroupsService = GroupsService;
61
+ exports.GroupsService = GroupsService = __decorate([
62
+ (0, common_1.Injectable)(),
63
+ __metadata("design:paramtypes", [axios_1.HttpService, config_1.ConfigService])
64
+ ], GroupsService);
65
+ //# sourceMappingURL=groups.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groups.service.js","sourceRoot":"","sources":["../../src/services/groups.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA4C;AAC5C,2CAA4C;AAC5C,2CAA+C;AAC/C,mFAAqG;AACrG,+BAAsC;AACtC,oEAA4E;AAKrE,IAAM,aAAa,GAAnB,MAAM,aAAa;IAMtB,YAA6B,YAAyB,EAAmB,cAA6B;QAA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,GAAG,MAAM,IAAA,qBAAc,EAAC,SAAS,CAAC,CAAC;YAEjD,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACvB,MAAM,IAAI,8BAAS,CAAC,oBAAoB,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACpE,CAAC;YAED,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;gBAC1C,MAAM,IAAI,8BAAS,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;YAChE,CAAC;YAED,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;QAChC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,8BAAS,CAAC,eAAe,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QACzE,CAAC;IACL,CAAC;CAEJ,CAAA;AApDY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAOkC,mBAAW,EAAmC,sBAAa;GAN7F,aAAa,CAoDzB"}
@@ -0,0 +1,11 @@
1
+ import { HttpService } from '@nestjs/axios';
2
+ import { ConfigService } from '@nestjs/config';
3
+ import { RESTResult } from '../models/dtos/wrappers/rest-wrapper.class';
4
+ import { IStudentEmbedded } from '../models/interfaces/student-embedded.interface';
5
+ export declare class StudentsService {
6
+ private readonly _httpService;
7
+ private readonly _configService;
8
+ private _baseUrl;
9
+ constructor(_httpService: HttpService, _configService: ConfigService);
10
+ read(id: string): Promise<RESTResult<IStudentEmbedded>>;
11
+ }
@@ -0,0 +1,48 @@
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.StudentsService = void 0;
13
+ const axios_1 = require("@nestjs/axios");
14
+ const common_1 = require("@nestjs/common");
15
+ const config_1 = require("@nestjs/config");
16
+ const rest_wrapper_class_1 = require("../models/dtos/wrappers/rest-wrapper.class");
17
+ const rxjs_1 = require("rxjs");
18
+ const env_vars_const_1 = require("../models/consts/env-vars.const");
19
+ let StudentsService = class StudentsService {
20
+ constructor(_httpService, _configService) {
21
+ this._httpService = _httpService;
22
+ this._configService = _configService;
23
+ this._baseUrl = this._configService.getOrThrow(env_vars_const_1.DL_STUDENTS__REST__BASE_URL);
24
+ }
25
+ async read(id) {
26
+ try {
27
+ const endpoint = `${this._baseUrl}/v1/students/${id}`;
28
+ const response$ = this._httpService.get(endpoint);
29
+ const response = await (0, rxjs_1.firstValueFrom)(response$);
30
+ if (response.data.errors) {
31
+ throw new rest_wrapper_class_1.RESTError('students_api_error', response.data.errors);
32
+ }
33
+ if (!response.data || !response.data.result) {
34
+ throw new rest_wrapper_class_1.RESTError('students_api_error', 'empty response');
35
+ }
36
+ return response.data.result;
37
+ }
38
+ catch (e) {
39
+ throw rest_wrapper_class_1.RESTError.createFromCatch(e, { keyword: 'unknown', debug: e });
40
+ }
41
+ }
42
+ };
43
+ exports.StudentsService = StudentsService;
44
+ exports.StudentsService = StudentsService = __decorate([
45
+ (0, common_1.Injectable)(),
46
+ __metadata("design:paramtypes", [axios_1.HttpService, config_1.ConfigService])
47
+ ], StudentsService);
48
+ //# sourceMappingURL=students.service.js.map
@@ -0,0 +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