@lenne.tech/nest-server 10.5.0 → 10.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/common/decorators/restricted.decorator.d.ts +5 -1
- package/dist/core/common/decorators/restricted.decorator.js +20 -3
- package/dist/core/common/decorators/restricted.decorator.js.map +1 -1
- package/dist/core/common/helpers/common.helper.js +2 -3
- package/dist/core/common/helpers/common.helper.js.map +1 -1
- package/dist/core/common/helpers/config.helper.js +1 -2
- package/dist/core/common/helpers/config.helper.js.map +1 -1
- package/dist/core/common/helpers/context.helper.d.ts +0 -1
- package/dist/core/common/helpers/context.helper.js +1 -2
- package/dist/core/common/helpers/context.helper.js.map +1 -1
- package/dist/core/common/helpers/db.helper.d.ts +0 -24
- package/dist/core/common/helpers/db.helper.js +20 -18
- package/dist/core/common/helpers/db.helper.js.map +1 -1
- package/dist/core/common/helpers/decorator.helper.d.ts +0 -24
- package/dist/core/common/helpers/decorator.helper.js +2 -3
- package/dist/core/common/helpers/decorator.helper.js.map +1 -1
- package/dist/core/common/helpers/file.helper.js +3 -4
- package/dist/core/common/helpers/file.helper.js.map +1 -1
- package/dist/core/common/helpers/filter.helper.d.ts +0 -24
- package/dist/core/common/helpers/filter.helper.js +6 -6
- package/dist/core/common/helpers/filter.helper.js.map +1 -1
- package/dist/core/common/helpers/graphql.helper.d.ts +2 -2
- package/dist/core/common/helpers/graphql.helper.js +12 -13
- package/dist/core/common/helpers/graphql.helper.js.map +1 -1
- package/dist/core/common/helpers/input.helper.d.ts +2 -0
- package/dist/core/common/helpers/input.helper.js +45 -38
- package/dist/core/common/helpers/input.helper.js.map +1 -1
- package/dist/core/common/helpers/model.helper.js +8 -8
- package/dist/core/common/helpers/model.helper.js.map +1 -1
- package/dist/core/common/helpers/service.helper.js +3 -4
- package/dist/core/common/helpers/service.helper.js.map +1 -1
- package/dist/core/common/helpers/table.helper.js +1 -2
- package/dist/core/common/helpers/table.helper.js.map +1 -1
- package/dist/core/common/interceptors/check-response.interceptor.d.ts +1 -0
- package/dist/core/common/interceptors/check-response.interceptor.js +8 -1
- package/dist/core/common/interceptors/check-response.interceptor.js.map +1 -1
- package/dist/core/common/interceptors/check-security.interceptor.d.ts +7 -0
- package/dist/core/common/interceptors/check-security.interceptor.js +30 -2
- package/dist/core/common/interceptors/check-security.interceptor.js.map +1 -1
- package/dist/core/common/interfaces/server-options.interface.d.ts +6 -2
- package/dist/core/common/interfaces/service-options.interface.d.ts +0 -24
- package/dist/core/common/models/core-persistence.model.d.ts +0 -26
- package/dist/core/common/models/core-persistence.model.js +1 -23
- package/dist/core/common/models/core-persistence.model.js.map +1 -1
- package/dist/core/common/plugins/mongoose-id.plugin.js +1 -2
- package/dist/core/common/plugins/mongoose-id.plugin.js.map +1 -1
- package/dist/core/common/services/crud.service.d.ts +0 -24
- package/dist/core/common/services/model-doc.service.d.ts +0 -24
- package/dist/core/common/services/module.service.d.ts +0 -24
- package/dist/core/common/types/field-selection.type.d.ts +0 -24
- package/dist/core/common/types/ids.type.d.ts +0 -24
- package/dist/core/common/types/populate-config.type.d.ts +0 -24
- package/dist/core/common/types/string-or-object-id.type.d.ts +0 -24
- package/dist/core/modules/auth/strategies/jwt-refresh.strategy.d.ts +0 -1
- package/dist/core/modules/file/core-file-info.model.d.ts +0 -24
- package/dist/core/modules/file/core-file.service.d.ts +0 -26
- package/dist/core/modules/file/interfaces/file-upload.interface.d.ts +0 -1
- package/dist/core/modules/user/core-user.model.d.ts +0 -24
- package/dist/core/modules/user/core-user.model.js +1 -2
- package/dist/core/modules/user/core-user.model.js.map +1 -1
- package/dist/core/modules/user/core-user.service.d.ts +0 -24
- package/dist/server/common/models/persistence.model.d.ts +0 -24
- package/dist/server/modules/file/file-info.model.d.ts +0 -25
- package/dist/server/modules/file/file.controller.d.ts +0 -1
- package/dist/server/modules/file/file.service.d.ts +0 -24
- package/dist/server/modules/user/avatar.controller.d.ts +0 -1
- package/dist/server/modules/user/user.model.d.ts +1 -24
- package/dist/server/modules/user/user.model.js +8 -2
- package/dist/server/modules/user/user.model.js.map +1 -1
- package/dist/server/modules/user/user.resolver.d.ts +1 -1
- package/dist/server/modules/user/user.resolver.js +1 -1
- package/dist/server/modules/user/user.resolver.js.map +1 -1
- package/dist/server/modules/user/user.service.d.ts +0 -25
- package/dist/test/test.helper.d.ts +0 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +28 -28
- package/src/core/common/decorators/restricted.decorator.ts +32 -6
- package/src/core/common/helpers/db.helper.ts +5 -1
- package/src/core/common/helpers/input.helper.ts +16 -4
- package/src/core/common/interceptors/check-response.interceptor.ts +13 -1
- package/src/core/common/interceptors/check-security.interceptor.ts +37 -2
- package/src/core/common/interfaces/server-options.interface.ts +26 -3
- package/src/core/common/models/core-persistence.model.ts +1 -25
- package/src/core/modules/user/core-user.model.ts +2 -3
- package/src/server/modules/user/user.model.ts +10 -3
- package/src/server/modules/user/user.resolver.ts +1 -1
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
1
|
import { Types } from 'mongoose';
|
|
26
2
|
import { CoreModel } from '../../common/models/core-model.model';
|
|
27
3
|
export declare class CoreFileInfo extends CoreModel {
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
4
|
-
/// <reference types="mongoose/types/callback" />
|
|
5
|
-
/// <reference types="mongoose/types/collection" />
|
|
6
|
-
/// <reference types="mongoose/types/connection" />
|
|
7
|
-
/// <reference types="mongoose/types/cursor" />
|
|
8
|
-
/// <reference types="mongoose/types/document" />
|
|
9
|
-
/// <reference types="mongoose/types/error" />
|
|
10
|
-
/// <reference types="mongoose/types/expressions" />
|
|
11
|
-
/// <reference types="mongoose/types/helpers" />
|
|
12
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
13
|
-
/// <reference types="mongoose/types/indexes" />
|
|
14
|
-
/// <reference types="mongoose/types/models" />
|
|
15
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
16
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
17
|
-
/// <reference types="mongoose/types/populate" />
|
|
18
|
-
/// <reference types="mongoose/types/query" />
|
|
19
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
20
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
21
|
-
/// <reference types="mongoose/types/session" />
|
|
22
|
-
/// <reference types="mongoose/types/types" />
|
|
23
|
-
/// <reference types="mongoose/types/utility" />
|
|
24
|
-
/// <reference types="mongoose/types/validation" />
|
|
25
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
27
1
|
import { MongooseGridFS } from '@lenne.tech/mongoose-gridfs';
|
|
28
2
|
import { GridFSBucket, GridFSBucketReadStream, GridFSBucketReadStreamOptions } from 'mongodb';
|
|
29
3
|
import { Connection, Types } from 'mongoose';
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
1
|
import { Document } from 'mongoose';
|
|
26
2
|
import { CorePersistenceModel } from '../../common/models/core-persistence.model';
|
|
27
3
|
import { CoreTokenData } from '../auth/interfaces/core-token-data.interface';
|
|
@@ -64,8 +64,7 @@ exports.CoreUserModel = CoreUserModel;
|
|
|
64
64
|
__decorate([
|
|
65
65
|
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
66
66
|
(0, graphql_1.Field)({ description: 'Email of the user', nullable: true }),
|
|
67
|
-
(0,
|
|
68
|
-
(0, mongoose_1.Prop)({ lowercase: true, trim: true, unique: true }),
|
|
67
|
+
(0, mongoose_1.Prop)({ index: true, lowercase: true, trim: true }),
|
|
69
68
|
__metadata("design:type", String)
|
|
70
69
|
], CoreUserModel.prototype, "email", void 0);
|
|
71
70
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-user.model.js","sourceRoot":"","sources":["../../../../src/core/modules/user/core-user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"core-user.model.js","sourceRoot":"","sources":["../../../../src/core/modules/user/core-user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAAuE;AACvE,qDAA6C;AAG7C,uFAA0E;AAC1E,4DAAwD;AACxD,uFAAkF;AAW3E,IAAe,aAAa,GAA5B,MAAe,aAAc,SAAQ,6CAAoB;IAAzD;;QAWL,UAAK,GAAW,SAAS,CAAC;QAS1B,cAAS,GAAW,SAAS,CAAC;QAS9B,aAAQ,GAAW,SAAS,CAAC;QAO7B,aAAQ,GAAW,SAAS,CAAC;QAS7B,UAAK,GAAa,SAAS,CAAC;QAS5B,aAAQ,GAAW,SAAS,CAAC;QAQ7B,uBAAkB,GAAW,SAAS,CAAC;QAUvC,kBAAa,GAAkC,SAAS,CAAC;QASzD,eAAU,GAA6E,SAAS,CAAC;QAQjG,sBAAiB,GAAW,SAAS,CAAC;QAQtC,aAAQ,GAAY,SAAS,CAAC;QAQ9B,eAAU,GAAS,SAAS,CAAC;IAkD/B,CAAC;IAzCQ,O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EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GACf,aAAa,CA2JlC"}
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
1
|
import { Document, Model } from 'mongoose';
|
|
26
2
|
import { ServiceOptions } from '../../common/interfaces/service-options.interface';
|
|
27
3
|
import { ConfigService } from '../../common/services/config.service';
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
1
|
import { Types } from 'mongoose';
|
|
26
2
|
import { CorePersistenceModel } from '../../../core/common/models/core-persistence.model';
|
|
27
3
|
export declare abstract class PersistenceModel extends CorePersistenceModel {
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
26
1
|
import { CoreFileInfo } from '../../../core/modules/file/core-file-info.model';
|
|
27
2
|
export declare class FileInfo extends CoreFileInfo {
|
|
28
3
|
}
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
1
|
import { Connection } from 'mongoose';
|
|
26
2
|
import { CoreFileService } from '../../../core/modules/file/core-file.service';
|
|
27
3
|
export declare class FileService extends CoreFileService {
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
1
|
import { Document, Schema } from 'mongoose';
|
|
26
2
|
import { CoreUserModel } from '../../../core/modules/user/core-user.model';
|
|
27
3
|
import { PersistenceModel } from '../../common/models/persistence.model';
|
|
@@ -29,6 +5,7 @@ export type UserDocument = Document & User;
|
|
|
29
5
|
export declare class User extends CoreUserModel implements PersistenceModel {
|
|
30
6
|
avatar: string;
|
|
31
7
|
createdBy: string;
|
|
8
|
+
email: string;
|
|
32
9
|
roles: string[];
|
|
33
10
|
updatedBy: string;
|
|
34
11
|
init(): this;
|
|
@@ -22,6 +22,7 @@ let User = class User extends core_user_model_1.CoreUserModel {
|
|
|
22
22
|
super(...arguments);
|
|
23
23
|
this.avatar = undefined;
|
|
24
24
|
this.createdBy = undefined;
|
|
25
|
+
this.email = undefined;
|
|
25
26
|
this.roles = undefined;
|
|
26
27
|
this.updatedBy = undefined;
|
|
27
28
|
}
|
|
@@ -44,8 +45,6 @@ let User = class User extends core_user_model_1.CoreUserModel {
|
|
|
44
45
|
this.verifiedAt = null;
|
|
45
46
|
this.createdAt = null;
|
|
46
47
|
this.createdBy = null;
|
|
47
|
-
this.labels = null;
|
|
48
|
-
this.tags = null;
|
|
49
48
|
this.updatedAt = null;
|
|
50
49
|
this.updatedBy = null;
|
|
51
50
|
}
|
|
@@ -68,6 +67,13 @@ __decorate([
|
|
|
68
67
|
(0, mongoose_1.Prop)({ ref: 'User', type: mongoose_2.Schema.Types.ObjectId }),
|
|
69
68
|
__metadata("design:type", String)
|
|
70
69
|
], User.prototype, "createdBy", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
72
|
+
(0, graphql_1.Field)({ description: 'Email of the user', nullable: true }),
|
|
73
|
+
(0, class_validator_1.IsEmail)(),
|
|
74
|
+
(0, mongoose_1.Prop)({ lowercase: true, trim: true, unique: true }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], User.prototype, "email", void 0);
|
|
71
77
|
__decorate([
|
|
72
78
|
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
73
79
|
(0, graphql_1.Field)(type => [String], { description: 'Roles of the user', nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../../../src/server/modules/user/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAAiF;AACjF,
|
|
1
|
+
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../../../src/server/modules/user/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAAiF;AACjF,qDAAsD;AACtD,uCAA4C;AAE5C,+FAAkF;AAClF,oEAAgE;AAChE,gFAA2E;AAWpE,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,+BAAa;IAAhC;;QAWL,WAAM,GAAW,SAAS,CAAC;QAa3B,cAAS,GAAW,SAAS,CAAC;QASrB,UAAK,GAAW,SAAS,CAAC;QAS1B,UAAK,GAAa,SAAS,CAAC;QAarC,cAAS,GAAW,SAAS,CAAC;IAkDhC,CAAC;IAzCU,IAAI;QACX,KAAK,CAAC,IAAI,EAAE,CAAC;QAEb,OAAO,IAAI,CAAC;IACd,CAAC;IAKQ,GAAG,CAAC,KAAK;QAChB,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAGjB,OAAO,IAAI,CAAC;IACd,CAAC;IAKQ,aAAa,CAAC,IAAU,EAAE,KAAe;QAChD,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7E,OAAO,IAAI,CAAC;QACd,CAAC;QAGD,IAAI,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CAAC;;mCACjB;AAS1B;IAJR,IAAA,iCAAU,EAAC,oBAAQ,CAAC,UAAU,CAAC;IAC/B,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7E,IAAA,4BAAU,GAAE;IACZ,IAAA,eAAI,EAAC,CAAC,MAAM,CAAC,CAAC;;mCACsB;AAarC;IANC,IAAA,iCAAU,EAAC,oBAAQ,CAAC,MAAM,CAAC;IAC3B,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,4CAA4C;QACzD,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,eAAI,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;uCACrB;eAvDnB,IAAI;IAHhB,IAAA,iCAAU,EAAC,oBAAQ,CAAC,KAAK,CAAC;IAC1B,IAAA,oBAAU,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACnC,IAAA,iBAAc,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GACxB,IAAI,CAyGhB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -22,5 +22,5 @@ export declare class UserResolver {
|
|
|
22
22
|
requestPasswordResetMail(email: string): Promise<boolean>;
|
|
23
23
|
updateUser(serviceOptions: ServiceOptions, input: UserInput, id: string): Promise<User>;
|
|
24
24
|
verifyUser(token: string): Promise<boolean>;
|
|
25
|
-
userCreated(): Promise<
|
|
25
|
+
userCreated(): Promise<import("graphql-subscriptions/dist/pubsub-async-iterable-iterator").PubSubAsyncIterableIterator<unknown>>;
|
|
26
26
|
}
|
|
@@ -80,7 +80,7 @@ let UserResolver = class UserResolver {
|
|
|
80
80
|
return !!(await this.userService.verify(token));
|
|
81
81
|
}
|
|
82
82
|
async userCreated() {
|
|
83
|
-
return this.pubSub.
|
|
83
|
+
return this.pubSub.asyncIterableIterator('userCreated');
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
exports.UserResolver = UserResolver;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.resolver.js","sourceRoot":"","sources":["../../../../src/server/modules/user/user.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgF;AAChF,iEAA+C;AAE/C,uEAAmE;AACnE,yHAA0G;AAC1G,qFAAwE;AACxE,oEAAgE;AAEhE,oDAAgD;AAChD,kEAA6D;AAC7D,qGAAuF;AACvF,6CAAoC;AACpC,iDAA6C;AAOtC,IAAM,YAAY,GAAlB,MAAM,YAAY;IAIvB,YACqB,WAAwB,EACL,MAAc;QADjC,gBAAW,GAAX,WAAW,CAAa;QACL,WAAM,GAAN,MAAM,CAAQ;IACnD,CAAC;IAWE,AAAN,KAAK,CAAC,SAAS,CAA0B,cAA8B,EAAU,IAAiB;QAChG,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE;YACvC,GAAG,cAAc;YACjB,SAAS,EAAE,wBAAU;SACtB,CAAC,CAAC;IACL,CAAC;IAOK,AAAN,KAAK,CAAC,iBAAiB,CAC0C,cAA8B,EACrF,IAAiB;QAEzB,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE;YAC/C,GAAG,cAAc;YACjB,SAAS,EAAE,wBAAU;SACtB,CAAC,CAAC;IACL,CAAC;IAOK,AAAN,KAAK,CAAC,OAAO,CAA0B,cAA8B,EAAc,EAAU;QAC3F,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,EAAE;YACpC,GAAG,cAAc;YACjB,KAAK,EAAE,CAAC,oBAAQ,CAAC,KAAK,EAAE,oBAAQ,CAAC,SAA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
-
/// <reference types="mongoose/types/collection" />
|
|
5
|
-
/// <reference types="mongoose/types/connection" />
|
|
6
|
-
/// <reference types="mongoose/types/cursor" />
|
|
7
|
-
/// <reference types="mongoose/types/document" />
|
|
8
|
-
/// <reference types="mongoose/types/error" />
|
|
9
|
-
/// <reference types="mongoose/types/expressions" />
|
|
10
|
-
/// <reference types="mongoose/types/helpers" />
|
|
11
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
12
|
-
/// <reference types="mongoose/types/indexes" />
|
|
13
|
-
/// <reference types="mongoose/types/models" />
|
|
14
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
15
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
16
|
-
/// <reference types="mongoose/types/populate" />
|
|
17
|
-
/// <reference types="mongoose/types/query" />
|
|
18
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
20
|
-
/// <reference types="mongoose/types/session" />
|
|
21
|
-
/// <reference types="mongoose/types/types" />
|
|
22
|
-
/// <reference types="mongoose/types/utility" />
|
|
23
|
-
/// <reference types="mongoose/types/validation" />
|
|
24
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
26
1
|
import { PubSub } from 'graphql-subscriptions';
|
|
27
2
|
import { Model } from 'mongoose';
|
|
28
3
|
import { ServiceOptions } from '../../../core/common/interfaces/service-options.interface';
|