@experts_hub/shared 1.0.173 → 1.0.175

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/index.mjs CHANGED
@@ -304,7 +304,7 @@ __decorateClass([
304
304
  ], FreelancerUploadResumeDto.prototype, "uuid", 2);
305
305
 
306
306
  // src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
307
- import { IsNotEmpty as IsNotEmpty11, IsUUID as IsUUID2 } from "class-validator/types";
307
+ import { IsUUID as IsUUID2, IsNotEmpty as IsNotEmpty11 } from "class-validator";
308
308
  var FreelancerParseResumeDto = class {
309
309
  };
310
310
  __decorateClass([
@@ -313,7 +313,7 @@ __decorateClass([
313
313
  ], FreelancerParseResumeDto.prototype, "uuid", 2);
314
314
 
315
315
  // src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
316
- import { IsNotEmpty as IsNotEmpty12, IsUUID as IsUUID3 } from "class-validator/types";
316
+ import { IsUUID as IsUUID3, IsNotEmpty as IsNotEmpty12 } from "class-validator";
317
317
  var FreelancerInitiateAiAssessmentDto = class {
318
318
  };
319
319
  __decorateClass([
@@ -322,7 +322,7 @@ __decorateClass([
322
322
  ], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
323
323
 
324
324
  // src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
325
- import { IsNotEmpty as IsNotEmpty13, IsUUID as IsUUID4 } from "class-validator/types";
325
+ import { IsUUID as IsUUID4, IsNotEmpty as IsNotEmpty13 } from "class-validator";
326
326
  var FreelancerCaptureAiAssessmentStatusDto = class {
327
327
  };
328
328
  __decorateClass([
@@ -2989,6 +2989,47 @@ __decorateClass([
2989
2989
  ])
2990
2990
  ], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
2991
2991
 
2992
+ // src/modules/cms/pattern/pattern.ts
2993
+ var CMS_PATTERNS = {
2994
+ fetchCms: "cms.fetch",
2995
+ createCms: "cms.create",
2996
+ updateCms: "cms.update",
2997
+ deleteCms: "cms.delete"
2998
+ };
2999
+
3000
+ // src/modules/cms/dto/create-cms.dto.ts
3001
+ import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional19 } from "class-validator";
3002
+ var CreateCmsDto = class {
3003
+ };
3004
+ __decorateClass([
3005
+ IsNotEmpty39({ message: "Please enter name." })
3006
+ ], CreateCmsDto.prototype, "title", 2);
3007
+ __decorateClass([
3008
+ IsOptional19()
3009
+ ], CreateCmsDto.prototype, "content", 2);
3010
+ __decorateClass([
3011
+ IsOptional19(),
3012
+ IsBoolean12({ message: "Is active must be a boolean value" })
3013
+ ], CreateCmsDto.prototype, "isActive", 2);
3014
+
3015
+ // src/modules/cms/dto/update-cms.dto.ts
3016
+ import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional20 } from "class-validator";
3017
+ var UpdateCmsDto = class {
3018
+ };
3019
+ __decorateClass([
3020
+ IsOptional20()
3021
+ ], UpdateCmsDto.prototype, "uuid", 2);
3022
+ __decorateClass([
3023
+ IsNotEmpty40({ message: "Please enter name." })
3024
+ ], UpdateCmsDto.prototype, "title", 2);
3025
+ __decorateClass([
3026
+ IsOptional20()
3027
+ ], UpdateCmsDto.prototype, "content", 2);
3028
+ __decorateClass([
3029
+ IsOptional20(),
3030
+ IsBoolean13({ message: "Is active must be a boolean value" })
3031
+ ], UpdateCmsDto.prototype, "isActive", 2);
3032
+
2992
3033
  // src/adapters/tcp/user.tcp.adapter.ts
2993
3034
  import { config } from "dotenv";
2994
3035
  import { Transport } from "@nestjs/microservices";
@@ -3324,6 +3365,26 @@ __decorateClass([
3324
3365
  Permission = __decorateClass([
3325
3366
  Entity30("permissions")
3326
3367
  ], Permission);
3368
+
3369
+ // src/entities/cms.entity.ts
3370
+ import { Entity as Entity31, Column as Column32 } from "typeorm";
3371
+ var Cms = class extends BaseEntity {
3372
+ };
3373
+ __decorateClass([
3374
+ Column32({ name: "title", type: "varchar", nullable: true })
3375
+ ], Cms.prototype, "title", 2);
3376
+ __decorateClass([
3377
+ Column32({ name: "slug", type: "varchar", nullable: true, unique: true })
3378
+ ], Cms.prototype, "slug", 2);
3379
+ __decorateClass([
3380
+ Column32({ name: "content", type: "varchar", nullable: true })
3381
+ ], Cms.prototype, "content", 2);
3382
+ __decorateClass([
3383
+ Column32({ name: "is_active", type: "boolean", default: true })
3384
+ ], Cms.prototype, "isActive", 2);
3385
+ Cms = __decorateClass([
3386
+ Entity31("cms")
3387
+ ], Cms);
3327
3388
  export {
3328
3389
  AUTHENTICATION_PATTERN,
3329
3390
  AccountStatus,
@@ -3338,14 +3399,17 @@ export {
3338
3399
  BaseEntity,
3339
3400
  CLIENT_ADMIN_PATTERNS,
3340
3401
  CLIENT_PROFILE_PATTERN,
3402
+ CMS_PATTERNS,
3341
3403
  COMPANY_MEMBERS_PATTERNS,
3342
3404
  COMPANY_ROLES_PATTERNS,
3343
3405
  CaseStudyDto,
3344
3406
  ClientChangePasswordDto,
3345
3407
  ClientCreateAccountDto,
3346
3408
  ClientProfileQuestionDto,
3409
+ Cms,
3347
3410
  CompanyProfile,
3348
3411
  CompanyRole,
3412
+ CreateCmsDto,
3349
3413
  CreateCompanyMemberDto,
3350
3414
  CreateCompanyRoleDto,
3351
3415
  CreateQuestionDto,
@@ -3457,6 +3521,7 @@ export {
3457
3521
  ToggleCompanyMemberVisibilityDto,
3458
3522
  ToggleCompanyRoleVisibilityDto,
3459
3523
  TypeOfEmploymentEnum,
3524
+ UpdateCmsDto,
3460
3525
  UpdateCompanyMemberDto,
3461
3526
  UpdateCompanyProfileDto,
3462
3527
  UpdateCompanyRoleDto,
@@ -0,0 +1,5 @@
1
+ export declare class CreateCmsDto {
2
+ title: string;
3
+ content: string;
4
+ isActive: boolean;
5
+ }
@@ -0,0 +1,2 @@
1
+ export * from './create-cms.dto';
2
+ export * from './update-cms.dto';
@@ -0,0 +1,6 @@
1
+ export declare class UpdateCmsDto {
2
+ uuid: string;
3
+ title: string;
4
+ content: string;
5
+ isActive: boolean;
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from './pattern/pattern';
2
+ export * from './dto';
@@ -0,0 +1,6 @@
1
+ export declare const CMS_PATTERNS: {
2
+ fetchCms: string;
3
+ createCms: string;
4
+ updateCms: string;
5
+ deleteCms: string;
6
+ };
@@ -22,3 +22,4 @@ export * from './user/freelancer-skill';
22
22
  export * from './freelancer-admin';
23
23
  export * from './client-admin';
24
24
  export * from './user/freelancer-declaration';
25
+ export * from './cms';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.173",
3
+ "version": "1.0.175",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",