eh-commons 0.0.1-testing.97 → 0.0.2-testing.78
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.
- package/.prettierrc +2 -1
- package/dist/clients/index.d.ts +3 -0
- package/dist/clients/index.js +20 -0
- package/dist/clients/index.js.map +1 -0
- package/dist/clients/rest.client.d.ts +18 -0
- package/dist/clients/rest.client.js +101 -0
- package/dist/clients/rest.client.js.map +1 -0
- package/dist/clients/session.client.d.ts +3 -4
- package/dist/clients/session.client.js +4 -4
- package/dist/clients/session.client.js.map +1 -1
- package/dist/index.d.ts +22 -35
- package/dist/index.js +29 -55
- package/dist/index.js.map +1 -1
- package/dist/models/commons/interfaces/base.interface.d.ts +2 -2
- package/dist/models/interfaces/session/session.interface.d.ts +2 -2
- package/dist/models/rewards/embedded/origin.embedded.schema.d.ts +2 -2
- package/dist/models/rewards/embedded/rewards.embedded.d.ts +2 -2
- package/dist/models/s3/embedded/file-log.embedded.d.ts +2 -2
- package/dist/models/s3/embedded/file-meta.embedded.d.ts +2 -2
- package/dist/models/s3/embedded/file-record.embedded.d.ts +2 -2
- package/dist/models/s3/embedded/file-state.embedded.d.ts +2 -2
- package/dist/models/s3/embedded/file.embedded.d.ts +2 -2
- package/dist/models/s3/embedded/initiator.embedded.d.ts +2 -2
- package/dist/models/s3/embedded/s3.embedded.d.ts +2 -2
- package/dist/models/session/interfaces/session-client-data.interface.d.ts +2 -2
- package/dist/models/util/embedded/address.embedded.d.ts +2 -2
- package/dist/models/util/embedded/author.embedded.d.ts +2 -2
- package/dist/models/util/embedded/contact.embedded.d.ts +2 -2
- package/dist/models/util/embedded/geo-location.embedded.d.ts +2 -2
- package/dist/models/util/embedded/i18n.embedded.d.ts +2 -2
- package/dist/models/util/embedded/record.embedded.d.ts +2 -2
- package/dist/models/util/interfaces/person.interface.d.ts +0 -7
- package/dist/models/util/interfaces/person.interface.js +0 -2
- package/dist/models/wrappers/rest-wrapper.class.js +1 -4
- package/dist/models/wrappers/rest-wrapper.class.js.map +1 -1
- package/dist/modules/core/index.d.ts +6 -0
- package/dist/modules/core/index.js +23 -0
- package/dist/modules/core/index.js.map +1 -0
- package/dist/modules/core/models/enums/feed-type.enum.d.ts +6 -0
- package/dist/modules/core/models/enums/feed-type.enum.js +11 -0
- package/dist/modules/core/models/enums/feed-type.enum.js.map +1 -0
- package/dist/modules/core/models/interfaces/feed-thin.interface.d.ts +9 -0
- package/dist/modules/core/models/interfaces/feed-thin.interface.js +3 -0
- package/dist/modules/core/models/interfaces/feed-thin.interface.js.map +1 -0
- package/dist/modules/core/models/interfaces/index.d.ts +4 -0
- package/dist/modules/core/models/interfaces/index.js +21 -0
- package/dist/modules/core/models/interfaces/index.js.map +1 -0
- package/dist/modules/core/models/interfaces/range.interface.d.ts +4 -0
- package/dist/modules/core/models/interfaces/range.interface.js +3 -0
- package/dist/modules/core/models/interfaces/range.interface.js.map +1 -0
- package/dist/modules/core/models/interfaces/ref.interface.d.ts +6 -0
- package/dist/modules/core/models/interfaces/ref.interface.js +3 -0
- package/dist/modules/core/models/interfaces/ref.interface.js.map +1 -0
- package/dist/modules/core/models/interfaces/scope.interface.d.ts +14 -0
- package/dist/modules/core/models/interfaces/scope.interface.js +3 -0
- package/dist/modules/core/models/interfaces/scope.interface.js.map +1 -0
- package/dist/modules/core/models/schemas/index.d.ts +2 -0
- package/dist/modules/core/models/schemas/index.js +19 -0
- package/dist/modules/core/models/schemas/index.js.map +1 -0
- package/dist/modules/core/models/schemas/range.embedded.d.ts +14 -0
- package/dist/modules/core/models/schemas/range.embedded.js +29 -0
- package/dist/modules/core/models/schemas/range.embedded.js.map +1 -0
- package/dist/modules/core/models/schemas/scope.embedded.d.ts +25 -0
- package/dist/modules/core/models/schemas/scope.embedded.js +63 -0
- package/dist/modules/core/models/schemas/scope.embedded.js.map +1 -0
- package/dist/modules/dictionary/index.d.ts +5 -0
- package/dist/modules/dictionary/index.js +22 -0
- package/dist/modules/dictionary/index.js.map +1 -0
- package/dist/modules/dictionary/models/dtos/dictionary-list.dto.d.ts +10 -0
- package/dist/modules/dictionary/models/dtos/dictionary-list.dto.js +59 -0
- package/dist/modules/dictionary/models/dtos/dictionary-list.dto.js.map +1 -0
- package/dist/modules/dictionary/models/interfaces/index.d.ts +27 -0
- package/dist/modules/dictionary/models/interfaces/index.js +3 -0
- package/dist/modules/dictionary/models/interfaces/index.js.map +1 -0
- package/dist/modules/dictionary/models/schemas/index.d.ts +21 -0
- package/dist/modules/dictionary/models/schemas/index.js +47 -0
- package/dist/modules/dictionary/models/schemas/index.js.map +1 -0
- package/dist/modules/dictionary/services/dictionary.service.d.ts +13 -14
- package/dist/modules/dictionary/services/dictionary.service.js +43 -96
- package/dist/modules/dictionary/services/dictionary.service.js.map +1 -1
- package/dist/modules/dmm/dmm.module.d.ts +2 -0
- package/dist/modules/dmm/dmm.module.js +26 -0
- package/dist/modules/dmm/dmm.module.js.map +1 -0
- package/dist/modules/dmm/index.d.ts +4 -0
- package/dist/modules/dmm/index.js +21 -0
- package/dist/modules/dmm/index.js.map +1 -0
- package/dist/modules/dmm/models/interfaces/index.d.ts +12 -0
- package/dist/modules/dmm/models/interfaces/index.js +3 -0
- package/dist/modules/dmm/models/interfaces/index.js.map +1 -0
- package/dist/modules/dmm/models/schemas/index.d.ts +23 -0
- package/dist/modules/dmm/models/schemas/index.js +58 -0
- package/dist/modules/dmm/models/schemas/index.js.map +1 -0
- package/dist/modules/dmm/services/dmm.service.d.ts +26 -0
- package/dist/modules/dmm/services/dmm.service.js +40 -0
- package/dist/modules/dmm/services/dmm.service.js.map +1 -0
- package/dist/modules/emis/emis.module.d.ts +2 -0
- package/dist/modules/emis/emis.module.js +24 -0
- package/dist/modules/emis/emis.module.js.map +1 -0
- package/dist/modules/emis/index.d.ts +3 -0
- package/dist/modules/emis/index.js +20 -0
- package/dist/modules/emis/index.js.map +1 -0
- package/dist/modules/emis/models/interfaces/emis.interface.d.ts +34 -0
- package/dist/modules/emis/models/interfaces/emis.interface.js +3 -0
- package/dist/modules/emis/models/interfaces/emis.interface.js.map +1 -0
- package/dist/modules/emis/services/emis.service.d.ts +8 -0
- package/dist/modules/emis/services/emis.service.js +37 -0
- package/dist/modules/emis/services/emis.service.js.map +1 -0
- package/dist/modules/iam/iam.module.d.ts +2 -0
- package/dist/modules/iam/iam.module.js +24 -0
- package/dist/modules/iam/iam.module.js.map +1 -0
- package/dist/modules/iam/index.d.ts +5 -0
- package/dist/modules/iam/index.js +22 -0
- package/dist/modules/iam/index.js.map +1 -0
- package/dist/modules/iam/models/enums/index.d.ts +6 -0
- package/dist/modules/iam/models/enums/index.js +11 -0
- package/dist/modules/iam/models/enums/index.js.map +1 -0
- package/dist/modules/iam/models/interfaces/index.d.ts +101 -0
- package/dist/modules/iam/models/interfaces/index.js +3 -0
- package/dist/modules/iam/models/interfaces/index.js.map +1 -0
- package/dist/modules/iam/models/schemas/embedded/person.embedded.d.ts +19 -0
- package/dist/modules/iam/models/schemas/embedded/person.embedded.js +41 -0
- package/dist/modules/iam/models/schemas/embedded/person.embedded.js.map +1 -0
- package/dist/modules/iam/models/schemas/embedded/user-person-info.embedded.d.ts +17 -0
- package/dist/modules/iam/models/schemas/embedded/user-person-info.embedded.js +31 -0
- package/dist/modules/iam/models/schemas/embedded/user-person-info.embedded.js.map +1 -0
- package/dist/modules/iam/models/schemas/index.d.ts +2 -0
- package/dist/modules/iam/models/schemas/index.js +19 -0
- package/dist/modules/iam/models/schemas/index.js.map +1 -0
- package/dist/modules/iam/services/iam.service.d.ts +9 -0
- package/dist/modules/iam/services/iam.service.js +40 -0
- package/dist/modules/iam/services/iam.service.js.map +1 -0
- package/dist/modules/otp/index.d.ts +3 -0
- package/dist/modules/otp/index.js +20 -0
- package/dist/modules/otp/index.js.map +1 -0
- package/dist/modules/otp/models/interfaces/index.d.ts +18 -0
- package/dist/modules/otp/models/interfaces/index.js +3 -0
- package/dist/modules/otp/models/interfaces/index.js.map +1 -0
- package/dist/modules/otp/otp.module.d.ts +2 -0
- package/dist/modules/otp/otp.module.js +24 -0
- package/dist/modules/otp/otp.module.js.map +1 -0
- package/dist/modules/otp/services/otp.service.d.ts +11 -0
- package/dist/modules/otp/services/otp.service.js +48 -0
- package/dist/modules/otp/services/otp.service.js.map +1 -0
- package/dist/modules/session/functions/index.d.ts +5 -0
- package/dist/modules/session/functions/index.js +28 -0
- package/dist/modules/session/functions/index.js.map +1 -0
- package/dist/modules/session/guards/permission.guard.d.ts +15 -0
- package/dist/modules/session/guards/permission.guard.js +118 -0
- package/dist/modules/session/guards/permission.guard.js.map +1 -0
- package/dist/modules/session/guards/user.guard.d.ts +12 -0
- package/dist/modules/session/guards/user.guard.js +88 -0
- package/dist/modules/session/guards/user.guard.js.map +1 -0
- package/dist/modules/session/index.d.ts +9 -0
- package/dist/modules/session/index.js +26 -0
- package/dist/modules/session/index.js.map +1 -0
- package/dist/modules/session/models/classes/index.d.ts +3 -0
- package/dist/modules/session/models/classes/index.js +7 -0
- package/dist/modules/session/models/classes/index.js.map +1 -0
- package/dist/modules/session/models/interfaces/index.d.ts +54 -0
- package/dist/modules/session/models/interfaces/index.js +7 -0
- package/dist/modules/session/models/interfaces/index.js.map +1 -0
- package/dist/modules/session/reflectors/permission.reflector.d.ts +2 -0
- package/dist/modules/session/reflectors/permission.reflector.js +6 -0
- package/dist/modules/session/reflectors/permission.reflector.js.map +1 -0
- package/dist/modules/session/services/redis.service.d.ts +16 -0
- package/dist/modules/session/services/redis.service.js +94 -0
- package/dist/modules/session/services/redis.service.js.map +1 -0
- package/dist/modules/session/services/session-v1.service.d.ts +12 -0
- package/dist/modules/session/services/session-v1.service.js +36 -0
- package/dist/modules/session/services/session-v1.service.js.map +1 -0
- package/dist/modules/session/services/session-v2.service.d.ts +17 -0
- package/dist/modules/session/services/session-v2.service.js +102 -0
- package/dist/modules/session/services/session-v2.service.js.map +1 -0
- package/dist/modules/session/session.module.d.ts +2 -0
- package/dist/modules/session/session.module.js +27 -0
- package/dist/modules/session/session.module.js.map +1 -0
- package/dist/modules/storage/index.d.ts +4 -0
- package/dist/modules/storage/index.js +21 -0
- package/dist/modules/storage/index.js.map +1 -0
- package/dist/modules/storage/models/inerfaces/index.d.ts +7 -0
- package/dist/modules/storage/models/inerfaces/index.js +3 -0
- package/dist/modules/storage/models/inerfaces/index.js.map +1 -0
- package/dist/modules/storage/models/schemas/index.d.ts +36 -0
- package/dist/modules/storage/models/schemas/index.js +62 -0
- package/dist/modules/storage/models/schemas/index.js.map +1 -0
- package/dist/modules/storage/services/storage.service.d.ts +9 -0
- package/dist/modules/storage/services/storage.service.js +35 -0
- package/dist/modules/storage/services/storage.service.js.map +1 -0
- package/dist/modules/storage/storage.module.d.ts +2 -0
- package/dist/modules/storage/storage.module.js +24 -0
- package/dist/modules/storage/storage.module.js.map +1 -0
- package/dist/pipes/index.d.ts +13 -0
- package/dist/pipes/index.js +64 -0
- package/dist/pipes/index.js.map +1 -0
- package/dist/pipes/validate-mongo-id.pipe.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -18
- package/src/clients/index.ts +3 -0
- package/src/clients/rest.client.ts +112 -0
- package/src/clients/session.client.ts +10 -20
- package/src/index.ts +36 -164
- package/src/models/commons/interfaces/base.interface.ts +2 -2
- package/src/models/interfaces/session/session.interface.ts +6 -6
- package/src/models/session/interfaces/session-client-data.interface.ts +2 -2
- package/src/models/util/interfaces/person.interface.ts +1 -7
- package/src/models/wrappers/rest-wrapper.class.ts +1 -4
- package/src/modules/core/index.ts +6 -0
- package/src/modules/core/models/enums/feed-type.enum.ts +6 -0
- package/src/modules/core/models/interfaces/feed-thin.interface.ts +10 -0
- package/src/modules/core/models/interfaces/index.ts +4 -0
- package/src/modules/core/models/interfaces/range.interface.ts +4 -0
- package/src/modules/core/models/interfaces/ref.interface.ts +7 -0
- package/src/modules/core/models/interfaces/scope.interface.ts +15 -0
- package/src/modules/core/models/schemas/index.ts +2 -0
- package/src/modules/core/models/schemas/range.embedded.ts +13 -0
- package/src/modules/core/models/schemas/scope.embedded.ts +41 -0
- package/src/modules/dictionary/index.ts +5 -0
- package/src/modules/dictionary/{dtos → models/dtos}/dictionary-list.dto.ts +9 -16
- package/src/modules/dictionary/models/interfaces/index.ts +31 -0
- package/src/modules/dictionary/models/schemas/index.ts +28 -0
- package/src/modules/dictionary/services/dictionary.service.ts +55 -149
- package/src/modules/dmm/dmm.module.ts +13 -0
- package/src/modules/dmm/index.ts +4 -0
- package/src/modules/dmm/models/interfaces/index.ts +13 -0
- package/src/modules/dmm/models/schemas/index.ts +36 -0
- package/src/modules/dmm/services/dmm.service.ts +33 -0
- package/src/modules/emis/emis.module.ts +11 -0
- package/src/modules/emis/index.ts +3 -0
- package/src/modules/emis/models/interfaces/emis.interface.ts +37 -0
- package/src/modules/emis/services/emis.service.ts +30 -0
- package/src/modules/iam/iam.module.ts +11 -0
- package/src/modules/iam/index.ts +5 -0
- package/src/modules/iam/models/enums/index.ts +6 -0
- package/src/modules/iam/models/interfaces/index.ts +114 -0
- package/src/{models/util → modules/iam/models/schemas}/embedded/person.embedded.ts +5 -1
- package/src/modules/iam/models/schemas/embedded/user-person-info.embedded.ts +16 -0
- package/src/modules/iam/models/schemas/index.ts +2 -0
- package/src/modules/iam/services/iam.service.ts +35 -0
- package/src/modules/otp/index.ts +3 -0
- package/src/modules/otp/models/interfaces/index.ts +20 -0
- package/src/modules/otp/otp.module.ts +11 -0
- package/src/modules/otp/services/otp.service.ts +48 -0
- package/src/modules/session/functions/index.ts +24 -0
- package/src/modules/session/guards/permission.guard.ts +122 -0
- package/src/modules/session/guards/user.guard.ts +88 -0
- package/src/modules/session/index.ts +9 -0
- package/src/modules/session/models/classes/index.ts +3 -0
- package/src/modules/session/models/interfaces/index.ts +57 -0
- package/src/modules/{cache/reflector → session/reflectors}/permission.reflector.ts +1 -1
- package/src/modules/{cache → session}/services/redis.service.ts +23 -20
- package/src/modules/session/services/session-v1.service.ts +30 -0
- package/src/modules/session/services/session-v2.service.ts +113 -0
- package/src/modules/session/session.module.ts +14 -0
- package/src/modules/storage/index.ts +4 -0
- package/src/modules/storage/models/inerfaces/index.ts +8 -0
- package/src/modules/storage/models/schemas/index.ts +42 -0
- package/src/modules/storage/services/storage.service.ts +29 -0
- package/src/modules/storage/storage.module.ts +11 -0
- package/src/pipes/index.ts +49 -0
- package/src/pipes/validate-mongo-id.pipe.ts +1 -3
- package/src/functions/session/keyword.function.ts +0 -14
- package/src/models/dictionary/embedded/dictionary.embedded.ts +0 -31
- package/src/models/dictionary/interfaces/dictionary-embedded.interface.ts +0 -12
- package/src/models/dictionary/interfaces/dictionary-event.interface.ts +0 -6
- package/src/models/dictionary/interfaces/dictionary-setting.interface.ts +0 -5
- package/src/models/dictionary/interfaces/dictionary.interface.ts +0 -13
- package/src/models/session/interfaces/session-user-data.interface.ts +0 -16
- package/src/models/um/enums/client-type.enum.ts +0 -6
- package/src/models/um/enums/permission-include-strategy.enum.ts +0 -5
- package/src/models/um/interfaces/client.interface.ts +0 -23
- package/src/models/um/interfaces/credentials.interface.ts +0 -4
- package/src/models/um/interfaces/permission.interface.ts +0 -11
- package/src/models/um/interfaces/prof-info.interface.ts +0 -5
- package/src/models/um/interfaces/role.interface.ts +0 -14
- package/src/models/um/interfaces/user-client.interface.ts +0 -10
- package/src/models/um/interfaces/user.interface.ts +0 -20
- package/src/models/wrappers/permission-guard-config.wrapper.ts +0 -5
- package/src/modules/cache/cache.module.ts +0 -13
- package/src/modules/cache/guards/permission.guard.ts +0 -109
- package/src/modules/cache/services/session.service.ts +0 -23
|
@@ -7,11 +7,11 @@ export declare class FileLog implements IFileLog {
|
|
|
7
7
|
value: S3FileState;
|
|
8
8
|
initiator: LogInitiator;
|
|
9
9
|
}
|
|
10
|
-
export declare const FileLogSchema: import("mongoose").Schema<FileLog, import("mongoose").Model<FileLog, any, any, any, import("mongoose").Document<unknown, any, FileLog, any> & FileLog & {
|
|
10
|
+
export declare const FileLogSchema: import("mongoose").Schema<FileLog, import("mongoose").Model<FileLog, any, any, any, import("mongoose").Document<unknown, any, FileLog, any, {}> & FileLog & {
|
|
11
11
|
_id: import("mongoose").Types.ObjectId;
|
|
12
12
|
} & {
|
|
13
13
|
__v: number;
|
|
14
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileLog, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileLog>, {}> & import("mongoose").FlatRecord<FileLog> & {
|
|
14
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileLog, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileLog>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<FileLog> & {
|
|
15
15
|
_id: import("mongoose").Types.ObjectId;
|
|
16
16
|
} & {
|
|
17
17
|
__v: number;
|
|
@@ -6,11 +6,11 @@ export declare class FileMeta implements IFileMeta {
|
|
|
6
6
|
mimeType: string;
|
|
7
7
|
extension: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const FileMetaSchema: import("mongoose").Schema<FileMeta, import("mongoose").Model<FileMeta, any, any, any, import("mongoose").Document<unknown, any, FileMeta, any> & FileMeta & {
|
|
9
|
+
export declare const FileMetaSchema: import("mongoose").Schema<FileMeta, import("mongoose").Model<FileMeta, any, any, any, import("mongoose").Document<unknown, any, FileMeta, any, {}> & FileMeta & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
11
|
} & {
|
|
12
12
|
__v: number;
|
|
13
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileMeta, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileMeta>, {}> & import("mongoose").FlatRecord<FileMeta> & {
|
|
13
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileMeta, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileMeta>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<FileMeta> & {
|
|
14
14
|
_id: import("mongoose").Types.ObjectId;
|
|
15
15
|
} & {
|
|
16
16
|
__v: number;
|
|
@@ -4,11 +4,11 @@ export declare class FileRecord implements IFileRecord {
|
|
|
4
4
|
createdAt: Date;
|
|
5
5
|
updatedAt: Date;
|
|
6
6
|
}
|
|
7
|
-
export declare const FileRecordSchema: import("mongoose").Schema<FileRecord, import("mongoose").Model<FileRecord, any, any, any, import("mongoose").Document<unknown, any, FileRecord, any> & FileRecord & {
|
|
7
|
+
export declare const FileRecordSchema: import("mongoose").Schema<FileRecord, import("mongoose").Model<FileRecord, any, any, any, import("mongoose").Document<unknown, any, FileRecord, any, {}> & FileRecord & {
|
|
8
8
|
_id: import("mongoose").Types.ObjectId;
|
|
9
9
|
} & {
|
|
10
10
|
__v: number;
|
|
11
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileRecord, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileRecord>, {}> & import("mongoose").FlatRecord<FileRecord> & {
|
|
11
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileRecord, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileRecord>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<FileRecord> & {
|
|
12
12
|
_id: import("mongoose").Types.ObjectId;
|
|
13
13
|
} & {
|
|
14
14
|
__v: number;
|
|
@@ -6,11 +6,11 @@ export declare class FileState implements IFileState {
|
|
|
6
6
|
value: S3FileState;
|
|
7
7
|
log: FileLog[];
|
|
8
8
|
}
|
|
9
|
-
export declare const FileStateSchema: import("mongoose").Schema<FileState, import("mongoose").Model<FileState, any, any, any, import("mongoose").Document<unknown, any, FileState, any> & FileState & {
|
|
9
|
+
export declare const FileStateSchema: import("mongoose").Schema<FileState, import("mongoose").Model<FileState, any, any, any, import("mongoose").Document<unknown, any, FileState, any, {}> & FileState & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
11
|
} & {
|
|
12
12
|
__v: number;
|
|
13
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileState, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileState>, {}> & import("mongoose").FlatRecord<FileState> & {
|
|
13
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileState, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileState>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<FileState> & {
|
|
14
14
|
_id: import("mongoose").Types.ObjectId;
|
|
15
15
|
} & {
|
|
16
16
|
__v: number;
|
|
@@ -12,11 +12,11 @@ export declare class S3File implements IS3File {
|
|
|
12
12
|
record: FileRecord;
|
|
13
13
|
owner: string;
|
|
14
14
|
}
|
|
15
|
-
export declare const S3FileSchema: import("mongoose").Schema<S3File, import("mongoose").Model<S3File, any, any, any, import("mongoose").Document<unknown, any, S3File, any> & S3File & {
|
|
15
|
+
export declare const S3FileSchema: import("mongoose").Schema<S3File, import("mongoose").Model<S3File, any, any, any, import("mongoose").Document<unknown, any, S3File, any, {}> & S3File & {
|
|
16
16
|
_id: import("mongoose").Types.ObjectId;
|
|
17
17
|
} & {
|
|
18
18
|
__v: number;
|
|
19
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3File, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3File>, {}> & import("mongoose").FlatRecord<S3File> & {
|
|
19
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3File, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3File>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<S3File> & {
|
|
20
20
|
_id: import("mongoose").Types.ObjectId;
|
|
21
21
|
} & {
|
|
22
22
|
__v: number;
|
|
@@ -5,11 +5,11 @@ export declare class LogInitiator implements ILogInitiator {
|
|
|
5
5
|
type: FileLogInitType;
|
|
6
6
|
name: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const LogInitiatorSchema: import("mongoose").Schema<LogInitiator, import("mongoose").Model<LogInitiator, any, any, any, import("mongoose").Document<unknown, any, LogInitiator, any> & LogInitiator & {
|
|
8
|
+
export declare const LogInitiatorSchema: import("mongoose").Schema<LogInitiator, import("mongoose").Model<LogInitiator, any, any, any, import("mongoose").Document<unknown, any, LogInitiator, any, {}> & LogInitiator & {
|
|
9
9
|
_id: import("mongoose").Types.ObjectId;
|
|
10
10
|
} & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LogInitiator, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<LogInitiator>, {}> & import("mongoose").FlatRecord<LogInitiator> & {
|
|
12
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LogInitiator, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<LogInitiator>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<LogInitiator> & {
|
|
13
13
|
_id: import("mongoose").Types.ObjectId;
|
|
14
14
|
} & {
|
|
15
15
|
__v: number;
|
|
@@ -5,11 +5,11 @@ export declare class S3 implements IS3 {
|
|
|
5
5
|
bucket: string;
|
|
6
6
|
etag: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const S3Schema: import("mongoose").Schema<S3, import("mongoose").Model<S3, any, any, any, import("mongoose").Document<unknown, any, S3, any> & S3 & {
|
|
8
|
+
export declare const S3Schema: import("mongoose").Schema<S3, import("mongoose").Model<S3, any, any, any, import("mongoose").Document<unknown, any, S3, any, {}> & S3 & {
|
|
9
9
|
_id: import("mongoose").Types.ObjectId;
|
|
10
10
|
} & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3>, {}> & import("mongoose").FlatRecord<S3> & {
|
|
12
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, S3, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<S3>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<S3> & {
|
|
13
13
|
_id: import("mongoose").Types.ObjectId;
|
|
14
14
|
} & {
|
|
15
15
|
__v: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDictionaryEmbedded } from '
|
|
2
|
-
import { IPermission } from '
|
|
1
|
+
import { IDictionaryEmbedded } from '../../../modules/dictionary';
|
|
2
|
+
import { IPermission } from '../../../modules/iam';
|
|
3
3
|
import { IAddress } from '../../util/interfaces/address.interface';
|
|
4
4
|
import { IContact } from '../../util/interfaces/contact.interface';
|
|
5
5
|
import { II18n } from '../../util/interfaces/i18n.interface';
|
|
@@ -6,11 +6,11 @@ export declare class Address implements IAddress {
|
|
|
6
6
|
address: string;
|
|
7
7
|
location: GeoLocation;
|
|
8
8
|
}
|
|
9
|
-
export declare const AddressSchema: import("mongoose").Schema<Address, import("mongoose").Model<Address, any, any, any, import("mongoose").Document<unknown, any, Address, any> & Address & {
|
|
9
|
+
export declare const AddressSchema: import("mongoose").Schema<Address, import("mongoose").Model<Address, any, any, any, import("mongoose").Document<unknown, any, Address, any, {}> & Address & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
11
|
} & {
|
|
12
12
|
__v: number;
|
|
13
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Address, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Address>, {}> & import("mongoose").FlatRecord<Address> & {
|
|
13
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Address, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Address>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Address> & {
|
|
14
14
|
_id: import("mongoose").Types.ObjectId;
|
|
15
15
|
} & {
|
|
16
16
|
__v: number;
|
|
@@ -4,11 +4,11 @@ export declare class Author implements IAuthor {
|
|
|
4
4
|
userId: mongoose.Schema.Types.ObjectId;
|
|
5
5
|
fullName: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const AuthorSchema: mongoose.Schema<Author, mongoose.Model<Author, any, any, any, mongoose.Document<unknown, any, Author, any> & Author & {
|
|
7
|
+
export declare const AuthorSchema: mongoose.Schema<Author, mongoose.Model<Author, any, any, any, mongoose.Document<unknown, any, Author, any, {}> & Author & {
|
|
8
8
|
_id: mongoose.Types.ObjectId;
|
|
9
9
|
} & {
|
|
10
10
|
__v: number;
|
|
11
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Author, mongoose.Document<unknown, {}, mongoose.FlatRecord<Author>, {}> & mongoose.FlatRecord<Author> & {
|
|
11
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Author, mongoose.Document<unknown, {}, mongoose.FlatRecord<Author>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<Author> & {
|
|
12
12
|
_id: mongoose.Types.ObjectId;
|
|
13
13
|
} & {
|
|
14
14
|
__v: number;
|
|
@@ -6,11 +6,11 @@ export declare class Contact implements IContact {
|
|
|
6
6
|
value: string;
|
|
7
7
|
verified: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const ContactSchema: import("mongoose").Schema<Contact, import("mongoose").Model<Contact, any, any, any, import("mongoose").Document<unknown, any, Contact, any> & Contact & {
|
|
9
|
+
export declare const ContactSchema: import("mongoose").Schema<Contact, import("mongoose").Model<Contact, any, any, any, import("mongoose").Document<unknown, any, Contact, any, {}> & Contact & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
11
|
} & {
|
|
12
12
|
__v: number;
|
|
13
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contact, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Contact>, {}> & import("mongoose").FlatRecord<Contact> & {
|
|
13
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contact, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Contact>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Contact> & {
|
|
14
14
|
_id: import("mongoose").Types.ObjectId;
|
|
15
15
|
} & {
|
|
16
16
|
__v: number;
|
|
@@ -5,11 +5,11 @@ export declare class GeoLocation implements IGeoLocation {
|
|
|
5
5
|
lng: number;
|
|
6
6
|
system: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const GeoLocationSchema: import("mongoose").Schema<GeoLocation, import("mongoose").Model<GeoLocation, any, any, any, import("mongoose").Document<unknown, any, GeoLocation, any> & GeoLocation & {
|
|
8
|
+
export declare const GeoLocationSchema: import("mongoose").Schema<GeoLocation, import("mongoose").Model<GeoLocation, any, any, any, import("mongoose").Document<unknown, any, GeoLocation, any, {}> & GeoLocation & {
|
|
9
9
|
_id: import("mongoose").Types.ObjectId;
|
|
10
10
|
} & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GeoLocation, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<GeoLocation>, {}> & import("mongoose").FlatRecord<GeoLocation> & {
|
|
12
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GeoLocation, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<GeoLocation>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<GeoLocation> & {
|
|
13
13
|
_id: import("mongoose").Types.ObjectId;
|
|
14
14
|
} & {
|
|
15
15
|
__v: number;
|
|
@@ -5,11 +5,11 @@ export declare class I18n implements II18n {
|
|
|
5
5
|
en: string;
|
|
6
6
|
ua: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const I18nSchema: import("mongoose").Schema<I18n, import("mongoose").Model<I18n, any, any, any, import("mongoose").Document<unknown, any, I18n, any> & I18n & {
|
|
8
|
+
export declare const I18nSchema: import("mongoose").Schema<I18n, import("mongoose").Model<I18n, any, any, any, import("mongoose").Document<unknown, any, I18n, any, {}> & I18n & {
|
|
9
9
|
_id: import("mongoose").Types.ObjectId;
|
|
10
10
|
} & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, I18n, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<I18n>, {}> & import("mongoose").FlatRecord<I18n> & {
|
|
12
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, I18n, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<I18n>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<I18n> & {
|
|
13
13
|
_id: import("mongoose").Types.ObjectId;
|
|
14
14
|
} & {
|
|
15
15
|
__v: number;
|
|
@@ -8,11 +8,11 @@ export declare class Record implements IRecord {
|
|
|
8
8
|
updatedAt: Date;
|
|
9
9
|
deletedAt: Date;
|
|
10
10
|
}
|
|
11
|
-
export declare const RecordSchema: import("mongoose").Schema<Record, import("mongoose").Model<Record, any, any, any, import("mongoose").Document<unknown, any, Record, any> & Record & {
|
|
11
|
+
export declare const RecordSchema: import("mongoose").Schema<Record, import("mongoose").Model<Record, any, any, any, import("mongoose").Document<unknown, any, Record, any, {}> & Record & {
|
|
12
12
|
_id: import("mongoose").Types.ObjectId;
|
|
13
13
|
} & {
|
|
14
14
|
__v: number;
|
|
15
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Record, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Record>, {}> & import("mongoose").FlatRecord<Record> & {
|
|
15
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Record, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Record>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Record> & {
|
|
16
16
|
_id: import("mongoose").Types.ObjectId;
|
|
17
17
|
} & {
|
|
18
18
|
__v: number;
|
|
@@ -130,10 +130,7 @@ class RESTError {
|
|
|
130
130
|
constructor(keyword, debug, statusCode) {
|
|
131
131
|
this.keyword = keyword;
|
|
132
132
|
this.debug = debug;
|
|
133
|
-
|
|
134
|
-
this.statusCode = common_1.HttpStatus.BAD_REQUEST;
|
|
135
|
-
}
|
|
136
|
-
this.statusCode = statusCode;
|
|
133
|
+
this.statusCode = statusCode || common_1.HttpStatus.BAD_REQUEST;
|
|
137
134
|
}
|
|
138
135
|
static throw(keyword, statusCode, debug) {
|
|
139
136
|
const error = new RESTError(keyword, debug);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest-wrapper.class.js","sourceRoot":"","sources":["../../../src/models/wrappers/rest-wrapper.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yDAAyC;AACzC,qDAA+H;AAE/H,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,+CAAO,CAAA;IACP,kDAAS,CAAA;AACX,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,MAAa,QAAQ;CAQpB;AARD,4BAQC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,aAAa,CAAC;;2CACG;AAQ3B,MAAa,UAAU;IAcd,OAAO;QACZ,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;QACzC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IACpC,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,IAAY,EAAE,IAAY;QAC/C,MAAM,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;QAC/B,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAC/B,CAAC;CACF;AAvBD,gCAuBC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AG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;gBACrB,MAAM,IAAI,SAAS,CAAC,sBAAsB,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;YACzD,CAAC;YAED,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;gBAC5C,MAAM,IAAI,SAAS,CAAC,2BAA2B,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YACjE,CAAC;YAED,MAAM,CAAC,IAAI,CAAC;gBACV,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;gBACjB,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aACtC,CAAC,CAAC;QACL,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,WAAW;QAChB,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QACjC,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,IAAI,IAAI,KAAK,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;QACzC,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AA5CD,0CA4CC;AAxCC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6CACV"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./models/interfaces"), exports);
|
|
18
|
+
__exportStar(require("./models/schemas"), exports);
|
|
19
|
+
__exportStar(require("./instances/app-logger.instance"), exports);
|
|
20
|
+
__exportStar(require("./services/app-logger.service"), exports);
|
|
21
|
+
__exportStar(require("./models/enums/feed-type.enum"), exports);
|
|
22
|
+
__exportStar(require("./core.module"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,mDAAiC;AACjC,kEAAgD;AAChD,gEAA8C;AAC9C,gEAA8C;AAC9C,gDAA8B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FeedType = void 0;
|
|
4
|
+
var FeedType;
|
|
5
|
+
(function (FeedType) {
|
|
6
|
+
FeedType["EducationalContent"] = "educational-content";
|
|
7
|
+
FeedType["News"] = "news";
|
|
8
|
+
FeedType["Training"] = "training";
|
|
9
|
+
FeedType["Forum"] = "forum";
|
|
10
|
+
})(FeedType || (exports.FeedType = FeedType = {}));
|
|
11
|
+
//# sourceMappingURL=feed-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feed-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/enums/feed-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,sDAA0C,CAAA;IAC1C,yBAAa,CAAA;IACb,iCAAqB,CAAA;IACrB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { I18n } from '../../../../models/util/embedded/i18n.embedded';
|
|
2
|
+
import { IRef } from './ref.interface';
|
|
3
|
+
import { IScope } from './scope.interface';
|
|
4
|
+
export interface IFeedThin {
|
|
5
|
+
ref: IRef;
|
|
6
|
+
textNormal?: I18n;
|
|
7
|
+
textStylized?: I18n;
|
|
8
|
+
scope: IScope;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feed-thin.interface.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/interfaces/feed-thin.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./range.interface"), exports);
|
|
18
|
+
__exportStar(require("./scope.interface"), exports);
|
|
19
|
+
__exportStar(require("./ref.interface"), exports);
|
|
20
|
+
__exportStar(require("./feed-thin.interface"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,wDAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.interface.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/interfaces/range.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref.interface.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/interfaces/ref.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IDictionaryEmbedded } from "../../../dictionary";
|
|
2
|
+
import { IRangeINT } from "./range.interface";
|
|
3
|
+
export interface IScope {
|
|
4
|
+
ageRange: IRangeINT;
|
|
5
|
+
genders: number[];
|
|
6
|
+
districts: IDictionaryEmbedded[];
|
|
7
|
+
teacherLevels: IDictionaryEmbedded[];
|
|
8
|
+
schoolTypes: IDictionaryEmbedded[];
|
|
9
|
+
languageSectors: IDictionaryEmbedded[];
|
|
10
|
+
subjects: IDictionaryEmbedded[];
|
|
11
|
+
levels: IDictionaryEmbedded[];
|
|
12
|
+
highland: boolean;
|
|
13
|
+
tags: IDictionaryEmbedded[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.interface.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/interfaces/scope.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./range.embedded"), exports);
|
|
18
|
+
__exportStar(require("./scope.embedded"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,mDAAiC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IRangeINT } from '../interfaces';
|
|
2
|
+
export declare class RangeINT implements IRangeINT {
|
|
3
|
+
min: number;
|
|
4
|
+
max: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const RangeINTSchema: import("mongoose").Schema<RangeINT, import("mongoose").Model<RangeINT, any, any, any, import("mongoose").Document<unknown, any, RangeINT, any, {}> & RangeINT & {
|
|
7
|
+
_id: import("mongoose").Types.ObjectId;
|
|
8
|
+
} & {
|
|
9
|
+
__v: number;
|
|
10
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, RangeINT, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<RangeINT>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<RangeINT> & {
|
|
11
|
+
_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
} & {
|
|
13
|
+
__v: number;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RangeINTSchema = exports.RangeINT = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
let RangeINT = class RangeINT {
|
|
15
|
+
};
|
|
16
|
+
exports.RangeINT = RangeINT;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ type: Number, required: false }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], RangeINT.prototype, "min", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ type: Number, required: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], RangeINT.prototype, "max", void 0);
|
|
25
|
+
exports.RangeINT = RangeINT = __decorate([
|
|
26
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
27
|
+
], RangeINT);
|
|
28
|
+
exports.RangeINTSchema = mongoose_1.SchemaFactory.createForClass(RangeINT);
|
|
29
|
+
//# sourceMappingURL=range.embedded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.embedded.js","sourceRoot":"","sources":["../../../../../src/modules/core/models/schemas/range.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAIxD,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAMpB,CAAA;AANY,4BAAQ;AAEnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qCAC5B;AAGZ;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qCAC5B;mBALD,QAAQ;IADpB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,QAAQ,CAMpB;AAEY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HydratedDocument } from 'mongoose';
|
|
2
|
+
import { IRangeINT, IScope } from '../interfaces';
|
|
3
|
+
import { DictionaryEmbedded } from '../../../dictionary';
|
|
4
|
+
export declare class Scope implements IScope {
|
|
5
|
+
ageRange: IRangeINT;
|
|
6
|
+
genders: number[];
|
|
7
|
+
districts: DictionaryEmbedded[];
|
|
8
|
+
teacherLevels: DictionaryEmbedded[];
|
|
9
|
+
schoolTypes: DictionaryEmbedded[];
|
|
10
|
+
languageSectors: DictionaryEmbedded[];
|
|
11
|
+
subjects: DictionaryEmbedded[];
|
|
12
|
+
levels: DictionaryEmbedded[];
|
|
13
|
+
highland: boolean;
|
|
14
|
+
tags: DictionaryEmbedded[];
|
|
15
|
+
}
|
|
16
|
+
export declare const ScopeSchema: import("mongoose").Schema<Scope, import("mongoose").Model<Scope, any, any, any, import("mongoose").Document<unknown, any, Scope, any, {}> & Scope & {
|
|
17
|
+
_id: import("mongoose").Types.ObjectId;
|
|
18
|
+
} & {
|
|
19
|
+
__v: number;
|
|
20
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Scope, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Scope>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Scope> & {
|
|
21
|
+
_id: import("mongoose").Types.ObjectId;
|
|
22
|
+
} & {
|
|
23
|
+
__v: number;
|
|
24
|
+
}>;
|
|
25
|
+
export type ScopeDocument = HydratedDocument<Scope>;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.ScopeSchema = exports.Scope = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const range_embedded_1 = require("./range.embedded");
|
|
15
|
+
const dictionary_1 = require("../../../dictionary");
|
|
16
|
+
let Scope = class Scope {
|
|
17
|
+
};
|
|
18
|
+
exports.Scope = Scope;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, mongoose_1.Prop)({ type: range_embedded_1.RangeINTSchema, required: false, default: null }),
|
|
21
|
+
__metadata("design:type", Object)
|
|
22
|
+
], Scope.prototype, "ageRange", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, mongoose_1.Prop)({ type: [Number], required: false, default: [] }),
|
|
25
|
+
__metadata("design:type", Array)
|
|
26
|
+
], Scope.prototype, "genders", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, mongoose_1.Prop)({ type: [dictionary_1.DictionaryEmbeddedSchema], required: false, default: [] }),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], Scope.prototype, "districts", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, mongoose_1.Prop)({ type: [dictionary_1.DictionaryEmbeddedSchema], required: false, default: [] }),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], Scope.prototype, "teacherLevels", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, mongoose_1.Prop)({ type: [dictionary_1.DictionaryEmbeddedSchema], required: false, default: [] }),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], Scope.prototype, "schoolTypes", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, mongoose_1.Prop)({ type: [dictionary_1.DictionaryEmbeddedSchema], required: false, default: [] }),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], Scope.prototype, "languageSectors", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, mongoose_1.Prop)({ type: [dictionary_1.DictionaryEmbeddedSchema], required: false, default: [] }),
|
|
45
|
+
__metadata("design:type", Array)
|
|
46
|
+
], Scope.prototype, "subjects", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, mongoose_1.Prop)({ type: [dictionary_1.DictionaryEmbeddedSchema], required: false, default: [] }),
|
|
49
|
+
__metadata("design:type", Array)
|
|
50
|
+
], Scope.prototype, "levels", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, mongoose_1.Prop)({ type: Boolean, required: false, default: null }),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], Scope.prototype, "highland", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, mongoose_1.Prop)({ type: [dictionary_1.DictionaryEmbeddedSchema], required: false, default: [] }),
|
|
57
|
+
__metadata("design:type", Array)
|
|
58
|
+
], Scope.prototype, "tags", void 0);
|
|
59
|
+
exports.Scope = Scope = __decorate([
|
|
60
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
61
|
+
], Scope);
|
|
62
|
+
exports.ScopeSchema = mongoose_1.SchemaFactory.createForClass(Scope);
|
|
63
|
+
//# sourceMappingURL=scope.embedded.js.map
|