@venturialstd/user 0.0.1 → 0.0.2

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.
@@ -1,4 +1,4 @@
1
- import { DynamicModule, Type } from '@nestjs/common';
1
+ import { DynamicModule, Type } from "@nestjs/common";
2
2
  export interface UserModuleOptions {
3
3
  additionalEntities?: Type[];
4
4
  metadataDefaults?: Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"user.module.d.ts","sourceRoot":"","sources":["../src/user.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAY7D,MAAM,WAAW,iBAAiB;IAKhC,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;IAM5B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAM3C,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAS3C,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,qBACa,UAAU;IAKrB,MAAM,CAAC,OAAO,CAAC,OAAO,GAAE,iBAAsB,GAAG,aAAa;IAwB9D,MAAM,CAAC,UAAU,IAAI,aAAa;CAGnC"}
1
+ {"version":3,"file":"user.module.d.ts","sourceRoot":"","sources":["../src/user.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAY7D,MAAM,WAAW,iBAAiB;IAKhC,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;IAM5B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAM3C,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAS3C,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,qBACa,UAAU;IAKrB,MAAM,CAAC,OAAO,CAAC,OAAO,GAAE,iBAAsB,GAAG,aAAa;IA4B9D,MAAM,CAAC,UAAU,IAAI,aAAa;CAGnC"}
@@ -21,20 +21,24 @@ const user_service_1 = require("./services/user.service");
21
21
  let UserModule = UserModule_1 = class UserModule {
22
22
  static forRoot(options = {}) {
23
23
  const aclEntities = [role_entity_1.Role, permission_entity_1.Permission, role_permission_entity_1.RolePermission, user_role_entity_1.UserRole];
24
- const entities = [user_entity_1.User, ...aclEntities, ...(options.additionalEntities || [])];
24
+ const entities = [
25
+ user_entity_1.User,
26
+ ...aclEntities,
27
+ ...(options.additionalEntities || []),
28
+ ];
25
29
  return {
26
30
  module: UserModule_1,
27
- imports: [core_1.SharedModule.forRoot({}), typeorm_1.TypeOrmModule.forFeature(entities)],
31
+ imports: [core_1.SharedModule, typeorm_1.TypeOrmModule.forFeature(entities)],
28
32
  providers: [
29
33
  user_service_1.UserService,
30
34
  acl_service_1.AclService,
31
35
  {
32
- provide: 'USER_MODULE_OPTIONS',
36
+ provide: "USER_MODULE_OPTIONS",
33
37
  useValue: options,
34
38
  },
35
39
  ],
36
40
  controllers: [],
37
- exports: [user_service_1.UserService, acl_service_1.AclService, 'USER_MODULE_OPTIONS'],
41
+ exports: [user_service_1.UserService, acl_service_1.AclService, "USER_MODULE_OPTIONS"],
38
42
  };
39
43
  }
40
44
  static forFeature() {
@@ -1 +1 @@
1
- {"version":3,"file":"user.module.js","sourceRoot":"","sources":["../src/user.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA6D;AAC7D,6CAAgD;AAChD,6CAAkD;AAElD,oEAA0D;AAC1D,wDAA8C;AAC9C,8EAAmE;AACnE,wDAA8C;AAC9C,kEAAuD;AACvD,wDAAoD;AACpD,0DAAsD;AAgC/C,IAAM,UAAU,kBAAhB,MAAM,UAAU;IAKrB,MAAM,CAAC,OAAO,CAAC,UAA6B,EAAE;QAC5C,MAAM,WAAW,GAAG,CAAC,kBAAI,EAAE,8BAAU,EAAE,uC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SACtC,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,YAAU;YAClB,OAAO,EAAE,CAAC,mBAAY,EAAE,uBAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YAC3D,SAAS,EAAE;gBACT,0BAAW;gBACX,wBAAU;gBACV;oBACE,OAAO,EAAE,qBAAqB;oBAC9B,QAAQ,EAAE,OAAO;iBAClB;aACF;YACD,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,CAAC,0BAAW,EAAE,wBAAU,EAAE,qBAAqB,CAAC;SAC1D,CAAC;IACJ,CAAC;IAMD,MAAM,CAAC,UAAU;QACf,OAAO,YAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAChC,CAAC;CACF,CAAA;AApCY,gCAAU;qBAAV,UAAU;IADtB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,UAAU,CAoCtB"}
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "@venturialstd/user",
3
- "version": "0.0.1",
4
- "description": "User Management Module for Venturial",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "type": "commonjs",
8
- "files": [
9
- "dist"
10
- ],
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "scripts": {
15
- "build": "tsc -p tsconfig.json",
16
- "prepublishOnly": "npm run build",
17
- "release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
18
- "test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
19
- "test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
20
- "migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
21
- "migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
22
- "migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
23
- },
24
- "devDependencies": {
25
- "@nestjs/config": "^3.0.0",
26
- "@types/node": "^20.0.0",
27
- "dotenv": "^17.2.3",
28
- "nodemon": "^3.0.0",
29
- "ts-node": "^10.9.0",
30
- "tsconfig-paths": "^4.2.0",
31
- "typescript": "^5.9.3"
32
- },
33
- "peerDependencies": {
34
- "@nestjs/common": "^11.0.11",
35
- "@nestjs/core": "^11.0.5",
36
- "@nestjs/typeorm": "^10.0.0",
37
- "@venturialstd/core": "^1.0.16",
38
- "class-transformer": "^0.5.1",
39
- "class-validator": "^0.14.1",
40
- "typeorm": "^0.3.20"
41
- }
42
- }
1
+ {
2
+ "name": "@venturialstd/user",
3
+ "version": "0.0.2",
4
+ "description": "User Management Module for Venturial",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "type": "commonjs",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "scripts": {
15
+ "build": "tsc -p tsconfig.json",
16
+ "prepublishOnly": "npm run build",
17
+ "release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
18
+ "test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
19
+ "test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
20
+ "migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
21
+ "migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
22
+ "migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
23
+ },
24
+ "devDependencies": {
25
+ "@nestjs/config": "^3.0.0",
26
+ "@types/node": "^20.0.0",
27
+ "dotenv": "^17.2.3",
28
+ "nodemon": "^3.0.0",
29
+ "ts-node": "^10.9.0",
30
+ "tsconfig-paths": "^4.2.0",
31
+ "typescript": "^5.9.3"
32
+ },
33
+ "peerDependencies": {
34
+ "@nestjs/common": "^11.0.11",
35
+ "@nestjs/core": "^11.0.5",
36
+ "@nestjs/typeorm": "^10.0.0",
37
+ "@venturialstd/core": "^1.0.16",
38
+ "class-transformer": "^0.5.1",
39
+ "class-validator": "^0.14.1",
40
+ "typeorm": "^0.3.20"
41
+ }
42
+ }
@@ -1,3 +0,0 @@
1
- import { USER_ROLE } from '../constants/user.constant';
2
- export declare const RequireRoles: (...roles: USER_ROLE[]) => import("@nestjs/common").CustomDecorator<string>;
3
- //# sourceMappingURL=roles.decorator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roles.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/roles.decorator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAavD,eAAO,MAAM,YAAY,GAAI,GAAG,OAAO,SAAS,EAAE,qDAAgC,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequireRoles = void 0;
4
- const common_1 = require("@nestjs/common");
5
- const RequireRoles = (...roles) => (0, common_1.SetMetadata)('roles', roles);
6
- exports.RequireRoles = RequireRoles;
7
- //# sourceMappingURL=roles.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roles.decorator.js","sourceRoot":"","sources":["../../src/decorators/roles.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAA6C;AAetC,MAAM,YAAY,GAAG,CAAC,GAAG,KAAkB,EAAE,EAAE,CAAC,IAAA,oBAAW,EAAC,OAAO,EAAE,KAAK,CAAC,CAAC;AAAtE,QAAA,YAAY,gBAA0D"}