@kominal/common-nestjs 0.0.25 → 0.0.27
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.
|
@@ -26,6 +26,7 @@ export declare const MembershipSchema: import("mongoose").Schema<Membership, Mod
|
|
|
26
26
|
}>;
|
|
27
27
|
export declare class MembershipCreateRequest {
|
|
28
28
|
email: string;
|
|
29
|
+
permissions: string[];
|
|
29
30
|
}
|
|
30
31
|
declare const MembershipPopulated_base: import("@nestjs/common").Type<Partial<Membership>>;
|
|
31
32
|
export declare class MembershipPopulated extends MembershipPopulated_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"membership.entity.js","sourceRoot":"","sources":["../../src/entities/membership.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,6CAA2D;AAC3D,qDAA4D;AAE5D,yDAAsD;AAGtD,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AACY,QAAA,yBAAyB,GAAG,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,CAAC,CAAC;AAGxG,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,2BAAY;CAM3C,CAAA;AANY,gCAAU;AACqB;IAAzC,IAAA,eAAI,GAAE;IAAE,IAAA,qBAAW,GAAE;IAAE,IAAA,0BAAQ,GAAE;;0CAAuB;AACf;IAAzC,IAAA,eAAI,GAAE;IAAE,IAAA,qBAAW,GAAE;IAAE,IAAA,0BAAQ,GAAE;;yCAAsB;AACW;IAAlE,IAAA,eAAI,GAAE;IAAE,IAAA,qBAAW,GAAE;IAAE,IAAA,yBAAO,GAAE;IAAE,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAA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";
|
|
2
|
-
import { ModelDefinition } from "@nestjs/mongoose";
|
|
3
|
-
export declare const kominalCommonModelDefinitions: ModelDefinition[];
|
|
4
|
-
export declare const kominalCommonModuleMetadata: ModuleMetadata;
|
|
5
1
|
export declare class KominalCommonModule {
|
|
6
2
|
}
|
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 =
|
|
9
|
+
exports.KominalCommonModule = 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,24 +21,21 @@ 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
|
-
|
|
24
|
+
const kominalCommonModelDefinitions = [
|
|
25
25
|
{ name: access_token_entity_1.AccessToken.name, schema: access_token_entity_1.AccessTokenSchema },
|
|
26
26
|
{ name: membership_entity_1.Membership.name, schema: membership_entity_1.MembershipSchema },
|
|
27
27
|
{ name: tenant_entity_1.Tenant.name, schema: tenant_entity_1.TenantSchema },
|
|
28
28
|
{ name: user_entity_1.User.name, schema: user_entity_1.UserSchema },
|
|
29
29
|
];
|
|
30
|
-
exports.kominalCommonModuleMetadata = {
|
|
31
|
-
imports: [
|
|
32
|
-
mongoose_1.MongooseModule.forFeature(exports.kominalCommonModelDefinitions)
|
|
33
|
-
],
|
|
34
|
-
controllers: [health_controller_1.HealthController],
|
|
35
|
-
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],
|
|
36
|
-
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],
|
|
37
|
-
};
|
|
38
30
|
let KominalCommonModule = class KominalCommonModule {
|
|
39
31
|
};
|
|
40
32
|
exports.KominalCommonModule = KominalCommonModule;
|
|
41
33
|
exports.KominalCommonModule = KominalCommonModule = __decorate([
|
|
42
|
-
(0, common_1.Module)(
|
|
34
|
+
(0, common_1.Module)({
|
|
35
|
+
imports: [mongoose_1.MongooseModule.forFeature(kominalCommonModelDefinitions)],
|
|
36
|
+
controllers: [health_controller_1.HealthController],
|
|
37
|
+
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],
|
|
38
|
+
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, mongoose_1.MongooseModule.forFeature(kominalCommonModelDefinitions)],
|
|
39
|
+
})
|
|
43
40
|
], KominalCommonModule);
|
|
44
41
|
//# 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,2CAAwC;AACxC,+CAAmE;AACnE,uEAAmE;AACnE,wEAAgF;AAChF,oEAA4E;AAC5E,4DAAgE;AAChE,wDAA0D;AAC1D,sDAAkD;AAClD,wDAAoD;AACpD,wDAAoD;AACpD,oDAAgD;AAChD,0DAAsD;AACtD,0DAAsD;AACtD,8DAA0D;AAE1D,MAAM,6BAA6B,GAAsB;IACvD,EAAE,IAAI,EAAE,iCAAW,CAAC,IAAI,EAAE,MAAM,EAAE,uCAAiB,EAAE;IACrD,EAAE,IAAI,EAAE,8BAAU,CAAC,IAAI,EAAE,MAAM,EAAE,oCAAgB,EAAE;IACnD,EAAE,IAAI,EAAE,sBAAM,CAAC,IAAI,EAAE,MAAM,EAAE,4BAAY,EAAE;IAC3C,EAAE,IAAI,EAAE,kBAAI,CAAC,IAAI,EAAE,MAAM,EAAE,wBAAU,EAAE;CACxC,CAAC;AAQK,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAN/B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,yBAAc,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC;QACnE,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,EAAE,yBAAc,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC;KAC9J,CAAC;GACW,mBAAmB,CAAG"}
|