@darraghor/nest-backend-libs 2.22.0 → 2.23.1
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/authz/ApiKeyAuthGuard.d.ts +5 -0
- package/dist/authz/ApiKeyAuthGuard.js +27 -0
- package/dist/authz/ApiKeyAuthGuard.js.map +1 -0
- package/dist/authz/UserValidation.service.d.ts +9 -4
- package/dist/authz/UserValidation.service.js +74 -23
- package/dist/authz/UserValidation.service.js.map +1 -1
- package/dist/authz/apikeystrategy.d.ts +12 -0
- package/dist/authz/apikeystrategy.js +43 -0
- package/dist/authz/apikeystrategy.js.map +1 -0
- package/dist/authz/authz.module.js +10 -1
- package/dist/authz/authz.module.js.map +1 -1
- package/dist/authz/authzstrategy.js +2 -1
- package/dist/authz/authzstrategy.js.map +1 -1
- package/dist/authz/index.d.ts +3 -0
- package/dist/authz/index.js +7 -1
- package/dist/authz/index.js.map +1 -1
- package/dist/authz/isOwnerOrThrow.d.ts +2 -0
- package/dist/authz/isOwnerOrThrow.js +20 -0
- package/dist/authz/isOwnerOrThrow.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/invitations/entities/invitation.entity.d.ts +3 -3
- package/dist/invitations/entities/invitation.entity.js +11 -9
- package/dist/invitations/entities/invitation.entity.js.map +1 -1
- package/dist/invitations/invitation.module.js +3 -2
- package/dist/invitations/invitation.module.js.map +1 -1
- package/dist/invitations/invitation.service.d.ts +9 -3
- package/dist/invitations/invitation.service.js +132 -34
- package/dist/invitations/invitation.service.js.map +1 -1
- package/dist/organisation-memberships/entities/organisation-membership.entity.d.ts +2 -0
- package/dist/organisation-memberships/entities/organisation-membership.entity.js +11 -0
- package/dist/organisation-memberships/entities/organisation-membership.entity.js.map +1 -1
- package/dist/user-api-key/CreateApiKeyDto.d.ts +3 -0
- package/dist/user-api-key/CreateApiKeyDto.js +24 -0
- package/dist/user-api-key/CreateApiKeyDto.js.map +1 -0
- package/dist/user-api-key/index.d.ts +3 -0
- package/dist/user-api-key/index.js +10 -0
- package/dist/user-api-key/index.js.map +1 -0
- package/dist/user-api-key/user-apikey.controller.d.ts +13 -0
- package/dist/user-api-key/user-apikey.controller.js +88 -0
- package/dist/user-api-key/user-apikey.controller.js.map +1 -0
- package/dist/user-api-key/user-apikey.module.d.ts +2 -0
- package/dist/user-api-key/user-apikey.module.js +27 -0
- package/dist/user-api-key/user-apikey.module.js.map +1 -0
- package/dist/user-api-key/user-apikey.service.d.ts +17 -0
- package/dist/user-api-key/user-apikey.service.js +91 -0
- package/dist/user-api-key/user-apikey.service.js.map +1 -0
- package/dist/user-api-key/userApiKey.entity.d.ts +12 -0
- package/dist/user-api-key/userApiKey.entity.js +77 -0
- package/dist/user-api-key/userApiKey.entity.js.map +1 -0
- package/dist/user-external/user-external.module.js +0 -2
- package/dist/user-external/user-external.module.js.map +1 -1
- package/dist/user-internal/dto/userResponseDto.d.ts +2 -2
- package/dist/user-internal/dto/userResponseDto.js +2 -2
- package/dist/user-internal/dto/userResponseDto.js.map +1 -1
- package/dist/user-internal/entities/user.entity.d.ts +4 -2
- package/dist/user-internal/entities/user.entity.js +12 -4
- package/dist/user-internal/entities/user.entity.js.map +1 -1
- package/dist/user-internal/user-internal.module.js +0 -1
- package/dist/user-internal/user-internal.module.js.map +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,77 @@
|
|
|
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.UserApiKey = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const user_internal_1 = require("../user-internal");
|
|
16
|
+
let UserApiKey = class UserApiKey {
|
|
17
|
+
id;
|
|
18
|
+
uuid;
|
|
19
|
+
apiKey;
|
|
20
|
+
description;
|
|
21
|
+
user;
|
|
22
|
+
userId;
|
|
23
|
+
createdDate;
|
|
24
|
+
updateDate;
|
|
25
|
+
deletedDate;
|
|
26
|
+
};
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
29
|
+
(0, swagger_1.ApiProperty)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], UserApiKey.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)("uuid", {
|
|
34
|
+
name: "uuid",
|
|
35
|
+
default: () => "uuid_generate_v4()",
|
|
36
|
+
}),
|
|
37
|
+
(0, typeorm_1.Generated)("uuid"),
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
|
+
(0, typeorm_1.Index)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UserApiKey.prototype, "uuid", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], UserApiKey.prototype, "apiKey", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], UserApiKey.prototype, "description", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.ManyToOne)(() => user_internal_1.User),
|
|
52
|
+
__metadata("design:type", user_internal_1.User)
|
|
53
|
+
], UserApiKey.prototype, "user", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.RelationId)((userApiKey) => userApiKey.user),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], UserApiKey.prototype, "userId", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
60
|
+
(0, swagger_1.ApiProperty)(),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], UserApiKey.prototype, "createdDate", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
65
|
+
(0, swagger_1.ApiProperty)(),
|
|
66
|
+
__metadata("design:type", Date)
|
|
67
|
+
], UserApiKey.prototype, "updateDate", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
70
|
+
(0, swagger_1.ApiProperty)(),
|
|
71
|
+
__metadata("design:type", Date)
|
|
72
|
+
], UserApiKey.prototype, "deletedDate", void 0);
|
|
73
|
+
UserApiKey = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)()
|
|
75
|
+
], UserApiKey);
|
|
76
|
+
exports.UserApiKey = UserApiKey;
|
|
77
|
+
//# sourceMappingURL=userApiKey.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userApiKey.entity.js","sourceRoot":"","sources":["../../src/user-api-key/userApiKey.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAC5C,qCAWiB;AACjB,oDAAsC;AAG/B,IAAM,UAAU,GAAhB,MAAM,UAAU;IAGnB,EAAE,CAAU;IASL,IAAI,CAAU;IAGrB,MAAM,CAAU;IAGhB,WAAW,CAAU;IAGrB,IAAI,CAAQ;IAGZ,MAAM,CAAU;IAIhB,WAAW,CAAQ;IAInB,UAAU,CAAQ;IAIlB,WAAW,CAAQ;CACtB,CAAA;AApCG;IAAC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,GAAE;;sCACF;AAEZ;IAAC,IAAA,gBAAM,EAAC,MAAM,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB;KACtC,CAAC;IACD,IAAA,mBAAS,EAAC,MAAM,CAAC;IACjB,IAAA,qBAAW,GAAE;IACb,IAAA,eAAK,GAAE;;wCACa;AAErB;IAAC,IAAA,qBAAW,GAAE;;0CACE;AAEhB;IAAC,IAAA,qBAAW,GAAE;;+CACO;AAErB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAI,CAAC;8BACf,oBAAI;wCAAC;AAEZ;IAAC,IAAA,oBAAU,EAAC,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;;0CACxC;AAEhB;IAAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,GAAE;8BACA,IAAI;+CAAC;AAEnB;IAAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,GAAE;8BACD,IAAI;8CAAC;AAElB;IAAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,GAAE;8BACA,IAAI;+CAAC;AApCV,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAqCtB;AArCY,gCAAU"}
|
|
@@ -16,8 +16,6 @@ UserExternalModule = __decorate([
|
|
|
16
16
|
(0, common_1.Module)({
|
|
17
17
|
imports: [user_internal_module_1.UserInternalModule],
|
|
18
18
|
controllers: [user_controller_1.UserController],
|
|
19
|
-
providers: [],
|
|
20
|
-
exports: [],
|
|
21
19
|
})
|
|
22
20
|
], UserExternalModule);
|
|
23
21
|
exports.UserExternalModule = UserExternalModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-external.module.js","sourceRoot":"","sources":["../../src/user-external/user-external.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsC;AACtC,uDAAiD;AACjD,gFAAyE;
|
|
1
|
+
{"version":3,"file":"user-external.module.js","sourceRoot":"","sources":["../../src/user-external/user-external.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsC;AACtC,uDAAiD;AACjD,gFAAyE;AAMlE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,kBAAkB;IAJ9B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,yCAAkB,CAAC;QAC7B,WAAW,EAAE,CAAC,gCAAc,CAAC;KAChC,CAAC;GACW,kBAAkB,CAAG;AAArB,gDAAkB"}
|
|
@@ -9,8 +9,8 @@ export declare class UserDto {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
familyName?: string;
|
|
11
11
|
givenName?: string;
|
|
12
|
-
picture
|
|
13
|
-
auth0UserId
|
|
12
|
+
picture?: string;
|
|
13
|
+
auth0UserId?: string;
|
|
14
14
|
username?: string;
|
|
15
15
|
memberships: OrganisationMembership[];
|
|
16
16
|
createdDate: Date;
|
|
@@ -69,11 +69,11 @@ __decorate([
|
|
|
69
69
|
__metadata("design:type", String)
|
|
70
70
|
], UserDto.prototype, "givenName", void 0);
|
|
71
71
|
__decorate([
|
|
72
|
-
(0, swagger_1.
|
|
72
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
73
73
|
__metadata("design:type", String)
|
|
74
74
|
], UserDto.prototype, "picture", void 0);
|
|
75
75
|
__decorate([
|
|
76
|
-
(0, swagger_1.
|
|
76
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
77
77
|
__metadata("design:type", String)
|
|
78
78
|
], UserDto.prototype, "auth0UserId", void 0);
|
|
79
79
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userResponseDto.js","sourceRoot":"","sources":["../../../src/user-internal/dto/userResponseDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAiE;AACjE,qCAA+B;AAC/B,2HAA8G;AAE9G,MAAa,OAAO;IAEhB,OAAO,CAAW;IAGlB,EAAE,CAAU;IAGZ,KAAK,CAAU;IAGR,IAAI,CAAU;IAGrB,aAAa,CAAW;IAIxB,OAAO,CAAW;IAGlB,IAAI,CAAU;IAGd,UAAU,CAAU;IAGpB,SAAS,CAAU;IAGnB,OAAO,CAAU;IAGjB,WAAW,CAAU;IAGrB,QAAQ,CAAU;IAGlB,WAAW,CAA4B;IAGvC,WAAW,CAAQ;IAGnB,UAAU,CAAQ;IAGlB,WAAW,CAAQ;CACtB;AAhDG;IAAC,IAAA,qBAAW,GAAE;;wCACI;AAElB;IAAC,IAAA,qBAAW,GAAE;;mCACF;AAEZ;IAAC,IAAA,qBAAW,GAAE;;sCACC;AAEf;IAAC,IAAA,qBAAW,GAAE;;qCACO;AAErB;IAAC,IAAA,qBAAW,GAAE;;8CACU;AAExB;IAAC,IAAA,qBAAW,GAAE;IACb,IAAA,gBAAM,EAAC,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;;wCACP;AAElB;IAAC,IAAA,6BAAmB,GAAE;;qCACR;AAEd;IAAC,IAAA,6BAAmB,GAAE;;2CACF;AAEpB;IAAC,IAAA,6BAAmB,GAAE;;0CACH;AAEnB;IAAC,IAAA,
|
|
1
|
+
{"version":3,"file":"userResponseDto.js","sourceRoot":"","sources":["../../../src/user-internal/dto/userResponseDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAiE;AACjE,qCAA+B;AAC/B,2HAA8G;AAE9G,MAAa,OAAO;IAEhB,OAAO,CAAW;IAGlB,EAAE,CAAU;IAGZ,KAAK,CAAU;IAGR,IAAI,CAAU;IAGrB,aAAa,CAAW;IAIxB,OAAO,CAAW;IAGlB,IAAI,CAAU;IAGd,UAAU,CAAU;IAGpB,SAAS,CAAU;IAGnB,OAAO,CAAU;IAGjB,WAAW,CAAU;IAGrB,QAAQ,CAAU;IAGlB,WAAW,CAA4B;IAGvC,WAAW,CAAQ;IAGnB,UAAU,CAAQ;IAGlB,WAAW,CAAQ;CACtB;AAhDG;IAAC,IAAA,qBAAW,GAAE;;wCACI;AAElB;IAAC,IAAA,qBAAW,GAAE;;mCACF;AAEZ;IAAC,IAAA,qBAAW,GAAE;;sCACC;AAEf;IAAC,IAAA,qBAAW,GAAE;;qCACO;AAErB;IAAC,IAAA,qBAAW,GAAE;;8CACU;AAExB;IAAC,IAAA,qBAAW,GAAE;IACb,IAAA,gBAAM,EAAC,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;;wCACP;AAElB;IAAC,IAAA,6BAAmB,GAAE;;qCACR;AAEd;IAAC,IAAA,6BAAmB,GAAE;;2CACF;AAEpB;IAAC,IAAA,6BAAmB,GAAE;;0CACH;AAEnB;IAAC,IAAA,6BAAmB,GAAE;;wCACL;AAEjB;IAAC,IAAA,6BAAmB,GAAE;;4CACD;AAErB;IAAC,IAAA,6BAAmB,GAAE;;yCACJ;AAElB;IAAC,IAAA,qBAAW,EAAC,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,uDAAsB,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;4CAC1B;AAEvC;IAAC,IAAA,qBAAW,GAAE;8BACA,IAAI;4CAAC;AAEnB;IAAC,IAAA,qBAAW,GAAE;8BACD,IAAI;2CAAC;AAElB;IAAC,IAAA,qBAAW,GAAE;8BACA,IAAI;4CAAC;AAhDvB,0BAiDC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrganisationMembership } from "../../organisation-memberships/entities/organisation-membership.entity";
|
|
2
|
+
import { UserApiKey } from "../../user-api-key/userApiKey.entity";
|
|
2
3
|
export declare class User {
|
|
3
4
|
id: number;
|
|
4
5
|
email: string;
|
|
@@ -8,10 +9,11 @@ export declare class User {
|
|
|
8
9
|
name?: string;
|
|
9
10
|
familyName?: string;
|
|
10
11
|
givenName?: string;
|
|
11
|
-
picture
|
|
12
|
-
auth0UserId
|
|
12
|
+
picture?: string;
|
|
13
|
+
auth0UserId?: string;
|
|
13
14
|
username?: string;
|
|
14
15
|
memberships: OrganisationMembership[];
|
|
16
|
+
apiKeys: UserApiKey[];
|
|
15
17
|
createdDate: Date;
|
|
16
18
|
updateDate: Date;
|
|
17
19
|
deletedDate: Date;
|
|
@@ -14,6 +14,7 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const organisation_membership_entity_1 = require("../../organisation-memberships/entities/organisation-membership.entity");
|
|
17
|
+
const userApiKey_entity_1 = require("../../user-api-key/userApiKey.entity");
|
|
17
18
|
let User = class User {
|
|
18
19
|
id;
|
|
19
20
|
email;
|
|
@@ -27,6 +28,7 @@ let User = class User {
|
|
|
27
28
|
auth0UserId;
|
|
28
29
|
username;
|
|
29
30
|
memberships;
|
|
31
|
+
apiKeys;
|
|
30
32
|
createdDate;
|
|
31
33
|
updateDate;
|
|
32
34
|
deletedDate;
|
|
@@ -83,13 +85,13 @@ __decorate([
|
|
|
83
85
|
__metadata("design:type", String)
|
|
84
86
|
], User.prototype, "givenName", void 0);
|
|
85
87
|
__decorate([
|
|
86
|
-
(0, swagger_1.
|
|
87
|
-
(0, typeorm_1.Column)(),
|
|
88
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
89
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
88
90
|
__metadata("design:type", String)
|
|
89
91
|
], User.prototype, "picture", void 0);
|
|
90
92
|
__decorate([
|
|
91
|
-
(0, swagger_1.
|
|
92
|
-
(0, typeorm_1.Column)(),
|
|
93
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
94
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
93
95
|
(0, typeorm_1.Index)({ unique: true }),
|
|
94
96
|
__metadata("design:type", String)
|
|
95
97
|
], User.prototype, "auth0UserId", void 0);
|
|
@@ -106,6 +108,12 @@ __decorate([
|
|
|
106
108
|
}),
|
|
107
109
|
__metadata("design:type", Array)
|
|
108
110
|
], User.prototype, "memberships", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiProperty)({ type: () => userApiKey_entity_1.UserApiKey, isArray: true }),
|
|
113
|
+
(0, class_transformer_1.Type)(() => userApiKey_entity_1.UserApiKey),
|
|
114
|
+
(0, typeorm_1.OneToMany)(() => userApiKey_entity_1.UserApiKey, (om) => om.user, {}),
|
|
115
|
+
__metadata("design:type", Array)
|
|
116
|
+
], User.prototype, "apiKeys", void 0);
|
|
109
117
|
__decorate([
|
|
110
118
|
(0, typeorm_1.CreateDateColumn)(),
|
|
111
119
|
(0, swagger_1.ApiProperty)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/user-internal/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAiE;AACjE,yDAAuC;AACvC,qCAaiB;AACjB,2HAA8G;
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/user-internal/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAiE;AACjE,yDAAuC;AACvC,qCAaiB;AACjB,2HAA8G;AAC9G,4EAAgE;AAGzD,IAAM,IAAI,GAAV,MAAM,IAAI;IAGb,EAAE,CAAU;IAIZ,KAAK,CAAU;IASR,IAAI,CAAU;IAIrB,aAAa,CAAW;IAIxB,OAAO,CAAW;IAIlB,IAAI,CAAU;IAId,UAAU,CAAU;IAIpB,SAAS,CAAU;IAInB,OAAO,CAAU;IAKjB,WAAW,CAAU;IAIrB,QAAQ,CAAU;IAOlB,WAAW,CAA4B;IAKvC,OAAO,CAAgB;IAIvB,WAAW,CAAQ;IAInB,UAAU,CAAQ;IAIlB,WAAW,CAAQ;IAEnB,4DAA4D;IAItD,AAAN,KAAK,CAAC,UAAU;QACZ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
17
|
(0, common_1.Module)({
|
|
18
18
|
imports: [typeorm_1.TypeOrmModule.forFeature([user_entity_1.User])],
|
|
19
|
-
controllers: [],
|
|
20
19
|
providers: [user_service_1.UserService],
|
|
21
20
|
exports: [user_service_1.UserService],
|
|
22
21
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-internal.module.js","sourceRoot":"","sources":["../../src/user-internal/user-internal.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsC;AACtC,gEAA0D;AAC1D,uEAA2D;AAC3D,6CAA8C;
|
|
1
|
+
{"version":3,"file":"user-internal.module.js","sourceRoot":"","sources":["../../src/user-internal/user-internal.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsC;AACtC,gEAA0D;AAC1D,uEAA2D;AAC3D,6CAA8C;AAOvC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,kBAAkB;IAL9B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,kBAAI,CAAC,CAAC,CAAC;QAC3C,SAAS,EAAE,CAAC,0BAAW,CAAC;QACxB,OAAO,EAAE,CAAC,0BAAW,CAAC;KACzB,CAAC;GACW,kBAAkB,CAAG;AAArB,gDAAkB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darraghor/nest-backend-libs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"description": "Some helpers for personal projects in nestjs",
|
|
6
6
|
"homepage": "https://github.com/darraghoriordan/nest-backend-libs",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"pre-commit": "npx lint-staged",
|
|
40
40
|
"prettier": "prettier --write src/*",
|
|
41
41
|
"prepare": "husky install",
|
|
42
|
+
"knip": "knip",
|
|
42
43
|
"release": "npx semantic-release",
|
|
43
44
|
"semantic-release": "semantic-release",
|
|
44
45
|
"copyOpenApiGenerationModule": "copyfiles --error --up 1 \"src/open-api-generation/**/*\" \"src/open-api-generation/*\" \"src/database-initialisation/*\" dist"
|
|
@@ -72,9 +73,12 @@
|
|
|
72
73
|
"dotenv": "16.0.3",
|
|
73
74
|
"helmet": "6.0.1",
|
|
74
75
|
"jwks-rsa": "3.0.1",
|
|
76
|
+
"knip": "1.14.3",
|
|
77
|
+
"nanoid": "4.0.1",
|
|
75
78
|
"nestjs-pino": "3.1.2",
|
|
76
79
|
"nodemailer": "6.9.1",
|
|
77
80
|
"passport": "0.6.0",
|
|
81
|
+
"passport-headerapikey": "1.2.2",
|
|
78
82
|
"passport-jwt": "4.0.1",
|
|
79
83
|
"pg": "8.9.0",
|
|
80
84
|
"pino-http": "8.3.3",
|