@experts_hub/shared 1.0.265 → 1.0.267
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/entities/admin-permission.entity.d.ts +8 -0
- package/dist/index.d.mts +0 -3
- package/dist/index.d.ts +0 -3
- package/dist/index.js +4 -15
- package/dist/index.mjs +6 -20
- package/dist/modules/admin-role/dto/create-admin-role.dto.d.ts +0 -2
- package/dist/modules/admin-role/dto/update-admin-role.dto.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1911,14 +1911,11 @@ declare const ADMIN_ROLE_PATTERN: {
|
|
|
1911
1911
|
|
|
1912
1912
|
declare class CreateAdminRoleDto {
|
|
1913
1913
|
roleName: string;
|
|
1914
|
-
roleSlug: string;
|
|
1915
1914
|
roleDescription?: string;
|
|
1916
|
-
isActive?: boolean;
|
|
1917
1915
|
}
|
|
1918
1916
|
|
|
1919
1917
|
declare class UpdateAdminRoleDto {
|
|
1920
1918
|
roleName: string;
|
|
1921
|
-
roleSlug: string;
|
|
1922
1919
|
roleDescription?: string;
|
|
1923
1920
|
isActive?: boolean;
|
|
1924
1921
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1911,14 +1911,11 @@ declare const ADMIN_ROLE_PATTERN: {
|
|
|
1911
1911
|
|
|
1912
1912
|
declare class CreateAdminRoleDto {
|
|
1913
1913
|
roleName: string;
|
|
1914
|
-
roleSlug: string;
|
|
1915
1914
|
roleDescription?: string;
|
|
1916
|
-
isActive?: boolean;
|
|
1917
1915
|
}
|
|
1918
1916
|
|
|
1919
1917
|
declare class UpdateAdminRoleDto {
|
|
1920
1918
|
roleName: string;
|
|
1921
|
-
roleSlug: string;
|
|
1922
1919
|
roleDescription?: string;
|
|
1923
1920
|
isActive?: boolean;
|
|
1924
1921
|
}
|
package/dist/index.js
CHANGED
|
@@ -4311,18 +4311,10 @@ __decorateClass([
|
|
|
4311
4311
|
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
4312
4312
|
(0, import_class_validator60.IsString)({ message: "Role name must be a string." })
|
|
4313
4313
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4314
|
-
__decorateClass([
|
|
4315
|
-
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter admin role slug." }),
|
|
4316
|
-
(0, import_class_validator60.IsString)({ message: "Role slug must be a string." })
|
|
4317
|
-
], CreateAdminRoleDto.prototype, "roleSlug", 2);
|
|
4318
4314
|
__decorateClass([
|
|
4319
4315
|
(0, import_class_validator60.IsOptional)(),
|
|
4320
4316
|
(0, import_class_validator60.IsString)({ message: "Role description must be a string." })
|
|
4321
4317
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4322
|
-
__decorateClass([
|
|
4323
|
-
(0, import_class_validator60.IsOptional)(),
|
|
4324
|
-
(0, import_class_validator60.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
4325
|
-
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
4326
4318
|
|
|
4327
4319
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4328
4320
|
var import_class_validator61 = require("class-validator");
|
|
@@ -4332,10 +4324,6 @@ __decorateClass([
|
|
|
4332
4324
|
(0, import_class_validator61.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
4333
4325
|
(0, import_class_validator61.IsString)({ message: "Role name must be a string." })
|
|
4334
4326
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
4335
|
-
__decorateClass([
|
|
4336
|
-
(0, import_class_validator61.IsNotEmpty)({ message: "Please enter admin role slug." }),
|
|
4337
|
-
(0, import_class_validator61.IsString)({ message: "Role slug must be a string." })
|
|
4338
|
-
], UpdateAdminRoleDto.prototype, "roleSlug", 2);
|
|
4339
4327
|
__decorateClass([
|
|
4340
4328
|
(0, import_class_validator61.IsOptional)(),
|
|
4341
4329
|
(0, import_class_validator61.IsString)({ message: "Role description must be a string." })
|
|
@@ -4860,13 +4848,14 @@ var import_typeorm45 = require("typeorm");
|
|
|
4860
4848
|
var AdminRole = class extends BaseEntity {
|
|
4861
4849
|
};
|
|
4862
4850
|
__decorateClass([
|
|
4863
|
-
(0, import_typeorm45.Column)({ name: "role_name", type: "varchar",
|
|
4851
|
+
(0, import_typeorm45.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
4864
4852
|
], AdminRole.prototype, "roleName", 2);
|
|
4865
4853
|
__decorateClass([
|
|
4866
|
-
(0, import_typeorm45.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true })
|
|
4854
|
+
(0, import_typeorm45.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
4855
|
+
(0, import_typeorm45.Index)()
|
|
4867
4856
|
], AdminRole.prototype, "roleSlug", 2);
|
|
4868
4857
|
__decorateClass([
|
|
4869
|
-
(0, import_typeorm45.Column)({ name: "role_description", type: "varchar",
|
|
4858
|
+
(0, import_typeorm45.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
4870
4859
|
], AdminRole.prototype, "roleDescription", 2);
|
|
4871
4860
|
__decorateClass([
|
|
4872
4861
|
(0, import_typeorm45.Column)({ name: "is_active", type: "boolean", default: true })
|
package/dist/index.mjs
CHANGED
|
@@ -4448,25 +4448,17 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4448
4448
|
};
|
|
4449
4449
|
|
|
4450
4450
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4451
|
-
import {
|
|
4451
|
+
import { IsNotEmpty as IsNotEmpty51, IsOptional as IsOptional28, IsString as IsString34 } from "class-validator";
|
|
4452
4452
|
var CreateAdminRoleDto = class {
|
|
4453
4453
|
};
|
|
4454
4454
|
__decorateClass([
|
|
4455
4455
|
IsNotEmpty51({ message: "Please enter admin role name." }),
|
|
4456
4456
|
IsString34({ message: "Role name must be a string." })
|
|
4457
4457
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4458
|
-
__decorateClass([
|
|
4459
|
-
IsNotEmpty51({ message: "Please enter admin role slug." }),
|
|
4460
|
-
IsString34({ message: "Role slug must be a string." })
|
|
4461
|
-
], CreateAdminRoleDto.prototype, "roleSlug", 2);
|
|
4462
4458
|
__decorateClass([
|
|
4463
4459
|
IsOptional28(),
|
|
4464
4460
|
IsString34({ message: "Role description must be a string." })
|
|
4465
4461
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4466
|
-
__decorateClass([
|
|
4467
|
-
IsOptional28(),
|
|
4468
|
-
IsBoolean14({ message: "Is active must be a boolean value." })
|
|
4469
|
-
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
4470
4462
|
|
|
4471
4463
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4472
4464
|
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional29, IsString as IsString35 } from "class-validator";
|
|
@@ -4476,10 +4468,6 @@ __decorateClass([
|
|
|
4476
4468
|
IsNotEmpty52({ message: "Please enter admin role name." }),
|
|
4477
4469
|
IsString35({ message: "Role name must be a string." })
|
|
4478
4470
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
4479
|
-
__decorateClass([
|
|
4480
|
-
IsNotEmpty52({ message: "Please enter admin role slug." }),
|
|
4481
|
-
IsString35({ message: "Role slug must be a string." })
|
|
4482
|
-
], UpdateAdminRoleDto.prototype, "roleSlug", 2);
|
|
4483
4471
|
__decorateClass([
|
|
4484
4472
|
IsOptional29(),
|
|
4485
4473
|
IsString35({ message: "Role description must be a string." })
|
|
@@ -5003,20 +4991,18 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
5003
4991
|
], JobFreelancerRecommendation);
|
|
5004
4992
|
|
|
5005
4993
|
// src/entities/admin-role.entity.ts
|
|
5006
|
-
import {
|
|
5007
|
-
Entity as Entity43,
|
|
5008
|
-
Column as Column44
|
|
5009
|
-
} from "typeorm";
|
|
4994
|
+
import { Entity as Entity43, Column as Column44, Index as Index29 } from "typeorm";
|
|
5010
4995
|
var AdminRole = class extends BaseEntity {
|
|
5011
4996
|
};
|
|
5012
4997
|
__decorateClass([
|
|
5013
|
-
Column44({ name: "role_name", type: "varchar",
|
|
4998
|
+
Column44({ name: "role_name", type: "varchar", nullable: true })
|
|
5014
4999
|
], AdminRole.prototype, "roleName", 2);
|
|
5015
5000
|
__decorateClass([
|
|
5016
|
-
Column44({ name: "role_slug", type: "varchar", unique: true, nullable: true })
|
|
5001
|
+
Column44({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5002
|
+
Index29()
|
|
5017
5003
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5018
5004
|
__decorateClass([
|
|
5019
|
-
Column44({ name: "role_description", type: "varchar",
|
|
5005
|
+
Column44({ name: "role_description", type: "varchar", nullable: true })
|
|
5020
5006
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5021
5007
|
__decorateClass([
|
|
5022
5008
|
Column44({ name: "is_active", type: "boolean", default: true })
|