@kominal/common-nestjs 0.0.6 → 0.0.8
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/kominal-common.module.js
CHANGED
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.KominalCommonModule = void 0;
|
|
9
|
+
exports.KominalCommonModule = exports.kominalCommonModuleMetadata = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
12
12
|
const health_controller_1 = require("./controllers/health.controller");
|
|
@@ -21,22 +21,23 @@ const user_guard_1 = require("./guards/user.guard");
|
|
|
21
21
|
const auth_service_1 = require("./services/auth.service");
|
|
22
22
|
const file_service_1 = require("./services/file.service");
|
|
23
23
|
const health_service_1 = require("./services/health.service");
|
|
24
|
+
exports.kominalCommonModuleMetadata = {
|
|
25
|
+
imports: [
|
|
26
|
+
mongoose_1.MongooseModule.forFeature([
|
|
27
|
+
{ name: access_token_entity_1.AccessToken.name, schema: access_token_entity_1.AccessTokenSchema },
|
|
28
|
+
{ name: membership_entity_1.Membership.name, schema: membership_entity_1.MembershipSchema },
|
|
29
|
+
{ name: tenant_entity_1.Tenant.name, schema: tenant_entity_1.TenantSchema },
|
|
30
|
+
{ name: user_entity_1.User.name, schema: user_entity_1.UserSchema },
|
|
31
|
+
])
|
|
32
|
+
],
|
|
33
|
+
controllers: [health_controller_1.HealthController],
|
|
34
|
+
providers: [auth_service_1.AuthService, file_service_1.FileService, health_service_1.HealthService, admin_guard_1.AdminGuard, tenant_guard_1.TenantGuard, user_guard_1.UserGuard, system_guard_1.SystemGuard],
|
|
35
|
+
exports: [auth_service_1.AuthService, file_service_1.FileService, health_service_1.HealthService, admin_guard_1.AdminGuard, tenant_guard_1.TenantGuard, user_guard_1.UserGuard, system_guard_1.SystemGuard],
|
|
36
|
+
};
|
|
24
37
|
let KominalCommonModule = class KominalCommonModule {
|
|
25
38
|
};
|
|
26
39
|
exports.KominalCommonModule = KominalCommonModule;
|
|
27
40
|
exports.KominalCommonModule = KominalCommonModule = __decorate([
|
|
28
|
-
(0, common_1.Module)(
|
|
29
|
-
imports: [
|
|
30
|
-
mongoose_1.MongooseModule.forFeature([
|
|
31
|
-
{ name: access_token_entity_1.AccessToken.name, schema: access_token_entity_1.AccessTokenSchema },
|
|
32
|
-
{ name: membership_entity_1.Membership.name, schema: membership_entity_1.MembershipSchema },
|
|
33
|
-
{ name: tenant_entity_1.Tenant.name, schema: tenant_entity_1.TenantSchema },
|
|
34
|
-
{ name: user_entity_1.User.name, schema: user_entity_1.UserSchema },
|
|
35
|
-
])
|
|
36
|
-
],
|
|
37
|
-
controllers: [health_controller_1.HealthController],
|
|
38
|
-
providers: [auth_service_1.AuthService, file_service_1.FileService, health_service_1.HealthService, admin_guard_1.AdminGuard, tenant_guard_1.TenantGuard, user_guard_1.UserGuard, system_guard_1.SystemGuard],
|
|
39
|
-
exports: [auth_service_1.AuthService, file_service_1.FileService, health_service_1.HealthService, admin_guard_1.AdminGuard, tenant_guard_1.TenantGuard, user_guard_1.UserGuard, system_guard_1.SystemGuard],
|
|
40
|
-
})
|
|
41
|
+
(0, common_1.Module)(exports.kominalCommonModuleMetadata)
|
|
41
42
|
], KominalCommonModule);
|
|
42
43
|
//# sourceMappingURL=kominal-common.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kominal-common.module.js","sourceRoot":"","sources":["../src/kominal-common.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"kominal-common.module.js","sourceRoot":"","sources":["../src/kominal-common.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwD;AACxD,+CAAkD;AAClD,uEAAmE;AACnE,wEAAgF;AAChF,oEAA4E;AAC5E,4DAAgE;AAChE,wDAA0D;AAC1D,sDAAkD;AAClD,wDAAoD;AACpD,wDAAoD;AACpD,oDAAgD;AAChD,0DAAsD;AACtD,0DAAsD;AACtD,8DAA0D;AAE7C,QAAA,2BAA2B,GAAmB;IACzD,OAAO,EAAE;QACP,yBAAc,CAAC,UAAU,CAAC;YACxB,EAAE,IAAI,EAAE,iCAAW,CAAC,IAAI,EAAE,MAAM,EAAE,uCAAiB,EAAE;YACrD,EAAE,IAAI,EAAE,8BAAU,CAAC,IAAI,EAAE,MAAM,EAAE,oCAAgB,EAAE;YACnD,EAAE,IAAI,EAAE,sBAAM,CAAC,IAAI,EAAE,MAAM,EAAE,4BAAY,EAAE;YAC3C,EAAE,IAAI,EAAE,kBAAI,CAAC,IAAI,EAAE,MAAM,EAAE,wBAAU,EAAE;SACxC,CAAC;KACH;IACD,WAAW,EAAE,CAAC,oCAAgB,CAAC;IAC/B,SAAS,EAAE,CAAC,0BAAW,EAAE,0BAAW,EAAE,8BAAa,EAAE,wBAAU,EAAE,0BAAW,EAAE,sBAAS,EAAE,0BAAW,CAAC;IACrG,OAAO,EAAE,CAAC,0BAAW,EAAE,0BAAW,EAAE,8BAAa,EAAE,wBAAU,EAAE,0BAAW,EAAE,sBAAS,EAAE,0BAAW,CAAC;CACpG,CAAA;AAGM,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,eAAM,EAAC,mCAA2B,CAAC;GACvB,mBAAmB,CAAG"}
|
|
@@ -1,10 +1,41 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.StoredFileSignedUrl = exports.StoredFile = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
4
15
|
class StoredFile {
|
|
5
16
|
}
|
|
6
17
|
exports.StoredFile = StoredFile;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, swagger_1.ApiProperty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], StoredFile.prototype, "name", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, swagger_1.ApiProperty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], StoredFile.prototype, "location", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], StoredFile.prototype, "key", void 0);
|
|
7
33
|
class StoredFileSignedUrl {
|
|
8
34
|
}
|
|
9
35
|
exports.StoredFileSignedUrl = StoredFileSignedUrl;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], StoredFileSignedUrl.prototype, "url", void 0);
|
|
10
41
|
//# sourceMappingURL=stored-file.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stored-file.model.js","sourceRoot":"","sources":["../../src/models/stored-file.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stored-file.model.js","sourceRoot":"","sources":["../../src/models/stored-file.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAE3C,MAAa,UAAU;CAItB;AAJD,gCAIC;AAHkC;IAAjC,IAAA,0BAAQ,GAAE;IAAE,IAAA,qBAAW,GAAE;;wCAAqB;AACb;IAAjC,IAAA,0BAAQ,GAAE;IAAE,IAAA,qBAAW,GAAE;;4CAAyB;AACjB;IAAjC,IAAA,0BAAQ,GAAE;IAAE,IAAA,qBAAW,GAAE;;uCAAoB;AAG/C,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AADmC;IAAjC,IAAA,0BAAQ,GAAE;IAAE,IAAA,qBAAW,GAAE;;gDAAoB"}
|
package/package.json
CHANGED
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kominal/common-nestjs",
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "nest build",
|
|
8
|
+
"postbuild": "cp package.json dist",
|
|
9
|
+
"push": "npm run build && cd dist && npm publish"
|
|
10
|
+
},
|
|
11
|
+
"author": "",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@aws-sdk/client-s3": "^3.787.0",
|
|
18
|
+
"@aws-sdk/s3-request-presigner": "^3.787.0",
|
|
19
|
+
"@nestjs/common": "^11.0.20",
|
|
20
|
+
"@nestjs/mongoose": "^11.0.3",
|
|
21
|
+
"@nestjs/swagger": "^11.1.4",
|
|
22
|
+
"class-transformer": "^0.5.1",
|
|
23
|
+
"class-validator": "^0.14.1",
|
|
24
|
+
"express": "^5.1.0",
|
|
25
|
+
"jsonwebtoken": "^9.0.2",
|
|
26
|
+
"jwks-rsa": "^3.2.0",
|
|
27
|
+
"uuid": "^11.1.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/node": "^22.14.1"
|
|
31
|
+
}
|
|
30
32
|
}
|