@kominal/common-nestjs 0.0.2 → 0.0.4
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.
|
@@ -15,7 +15,7 @@ export declare const TenantSchema: import("mongoose").Schema<Tenant, Model<Tenan
|
|
|
15
15
|
}> & {
|
|
16
16
|
__v: number;
|
|
17
17
|
}>;
|
|
18
|
-
declare const TenantCreateRequest_base: import("@nestjs/common").Type<Omit<Tenant, keyof BaseEntity
|
|
18
|
+
declare const TenantCreateRequest_base: import("@nestjs/common").Type<Omit<Tenant, "logo" | keyof BaseEntity>>;
|
|
19
19
|
export declare class TenantCreateRequest extends TenantCreateRequest_base {
|
|
20
20
|
}
|
|
21
21
|
declare const TenantUpdateRequest_base: import("@nestjs/common").Type<Omit<Tenant, keyof BaseEntity>>;
|
package/kominal-common.module.js
CHANGED
|
@@ -8,7 +8,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.KominalCommonModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
11
12
|
const health_controller_1 = require("./controllers/health.controller");
|
|
13
|
+
const access_token_entity_1 = require("./entities/access-token.entity");
|
|
14
|
+
const membership_entity_1 = require("./entities/membership.entity");
|
|
15
|
+
const tenant_entity_1 = require("./entities/tenant.entity");
|
|
16
|
+
const user_entity_1 = require("./entities/user.entity");
|
|
12
17
|
const admin_guard_1 = require("./guards/admin.guard");
|
|
13
18
|
const system_guard_1 = require("./guards/system.guard");
|
|
14
19
|
const tenant_guard_1 = require("./guards/tenant.guard");
|
|
@@ -21,6 +26,14 @@ let KominalCommonModule = class KominalCommonModule {
|
|
|
21
26
|
exports.KominalCommonModule = KominalCommonModule;
|
|
22
27
|
exports.KominalCommonModule = KominalCommonModule = __decorate([
|
|
23
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
|
+
],
|
|
24
37
|
controllers: [health_controller_1.HealthController],
|
|
25
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],
|
|
26
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],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kominal-common.module.js","sourceRoot":"","sources":["../src/kominal-common.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uEAAmE;AACnE,sDAAkD;AAClD,wDAAoD;AACpD,wDAAoD;AACpD,oDAAgD;AAChD,0DAAsD;AACtD,0DAAsD;AACtD,8DAA0D;
|
|
1
|
+
{"version":3,"file":"kominal-common.module.js","sourceRoot":"","sources":["../src/kominal-common.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,+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;AAenD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAb/B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACT,yBAAc,CAAC,UAAU,CAAC;gBACzB,EAAE,IAAI,EAAE,iCAAW,CAAC,IAAI,EAAE,MAAM,EAAE,uCAAiB,EAAE;gBACrD,EAAE,IAAI,EAAE,8BAAU,CAAC,IAAI,EAAE,MAAM,EAAE,oCAAgB,EAAE;gBACnD,EAAE,IAAI,EAAE,sBAAM,CAAC,IAAI,EAAE,MAAM,EAAE,4BAAY,EAAE;gBAC3C,EAAE,IAAI,EAAE,kBAAI,CAAC,IAAI,EAAE,MAAM,EAAE,wBAAU,EAAE;aACvC,CAAC;SACD;QACD,WAAW,EAAE,CAAC,oCAAgB,CAAC;QAC/B,SAAS,EAAE,CAAC,0BAAW,EAAE,0BAAW,EAAE,8BAAa,EAAE,wBAAU,EAAE,0BAAW,EAAE,sBAAS,EAAE,0BAAW,CAAC;QACrG,OAAO,EAAE,CAAC,0BAAW,EAAE,0BAAW,EAAE,8BAAa,EAAE,wBAAU,EAAE,0BAAW,EAAE,sBAAS,EAAE,0BAAW,CAAC;KACpG,CAAC;GACW,mBAAmB,CAAG"}
|
|
@@ -1,9 +1,31 @@
|
|
|
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");
|
|
4
14
|
class StoredFile {
|
|
5
15
|
}
|
|
6
16
|
exports.StoredFile = StoredFile;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], StoredFile.prototype, "name", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], StoredFile.prototype, "location", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], StoredFile.prototype, "key", void 0);
|
|
7
29
|
class StoredFileSignedUrl {
|
|
8
30
|
}
|
|
9
31
|
exports.StoredFileSignedUrl = StoredFileSignedUrl;
|
|
@@ -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;AAE9C,MAAa,UAAU;CAItB;AAJD,gCAIC;AAHwB;IAAtB,IAAA,qBAAW,GAAE;;wCAAsB;AACd;IAArB,IAAA,qBAAW,GAAE;;4CAAyB;AACjB;IAArB,IAAA,qBAAW,GAAE;;uCAAoB;AAGpC,MAAa,mBAAmB;CAE/B;AAFD,kDAEC"}
|