@experts_hub/shared 1.0.399 → 1.0.401

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.
@@ -9,6 +9,8 @@ export declare class TimesheetLogs extends BaseEntity {
9
9
  endTime: string;
10
10
  workedHours: string;
11
11
  taskId: number;
12
+ projectName?: string;
13
+ deliverable?: string;
12
14
  taskName: string;
13
15
  description: string;
14
16
  }
package/dist/index.d.mts CHANGED
@@ -471,7 +471,7 @@ declare enum EmploymentType {
471
471
  declare class JobBasicInformationDto {
472
472
  isDraft?: boolean;
473
473
  jobRole: string;
474
- projectName: string;
474
+ projectName?: string;
475
475
  note?: string;
476
476
  skills: string[];
477
477
  openings: number;
@@ -1118,6 +1118,8 @@ declare class TimesheetLogs extends BaseEntity {
1118
1118
  endTime: string;
1119
1119
  workedHours: string;
1120
1120
  taskId: number;
1121
+ projectName?: string;
1122
+ deliverable?: string;
1121
1123
  taskName: string;
1122
1124
  description: string;
1123
1125
  }
package/dist/index.d.ts CHANGED
@@ -471,7 +471,7 @@ declare enum EmploymentType {
471
471
  declare class JobBasicInformationDto {
472
472
  isDraft?: boolean;
473
473
  jobRole: string;
474
- projectName: string;
474
+ projectName?: string;
475
475
  note?: string;
476
476
  skills: string[];
477
477
  openings: number;
@@ -1118,6 +1118,8 @@ declare class TimesheetLogs extends BaseEntity {
1118
1118
  endTime: string;
1119
1119
  workedHours: string;
1120
1120
  taskId: number;
1121
+ projectName?: string;
1122
+ deliverable?: string;
1121
1123
  taskName: string;
1122
1124
  description: string;
1123
1125
  }
package/dist/index.js CHANGED
@@ -1193,8 +1193,8 @@ __decorateClass([
1193
1193
  (0, import_class_validator33.IsString)({ message: "Job role must be a string" })
1194
1194
  ], JobBasicInformationDto.prototype, "jobRole", 2);
1195
1195
  __decorateClass([
1196
- (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1197
- (0, import_class_validator33.IsNotEmpty)({ message: "Please enter project name" })
1196
+ (0, import_class_validator33.IsOptional)(),
1197
+ (0, import_class_validator33.IsString)({ message: "Project name must be a string" })
1198
1198
  ], JobBasicInformationDto.prototype, "projectName", 2);
1199
1199
  __decorateClass([
1200
1200
  (0, import_class_validator33.IsOptional)(),
@@ -1291,8 +1291,7 @@ __decorateClass([
1291
1291
  (0, import_class_validator33.IsString)({ message: "Years of experience must be a string" })
1292
1292
  ], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
1293
1293
  __decorateClass([
1294
- (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1295
- (0, import_class_validator33.IsNotEmpty)({ message: "Please enter the business industry" }),
1294
+ (0, import_class_validator33.IsOptional)(),
1296
1295
  (0, import_class_validator33.IsString)({ message: "Business industry must be a string" })
1297
1296
  ], JobBasicInformationDto.prototype, "businessIndustry", 2);
1298
1297
 
@@ -3251,6 +3250,12 @@ __decorateClass([
3251
3250
  __decorateClass([
3252
3251
  (0, import_typeorm23.Column)({ name: "task_id", type: "integer", nullable: true })
3253
3252
  ], TimesheetLogs.prototype, "taskId", 2);
3253
+ __decorateClass([
3254
+ (0, import_typeorm23.Column)({ name: "project_name", type: "varchar", nullable: true })
3255
+ ], TimesheetLogs.prototype, "projectName", 2);
3256
+ __decorateClass([
3257
+ (0, import_typeorm23.Column)({ name: "deliverable", type: "varchar", nullable: true })
3258
+ ], TimesheetLogs.prototype, "deliverable", 2);
3254
3259
  __decorateClass([
3255
3260
  (0, import_typeorm23.Column)({ name: "task_name", type: "varchar", nullable: true })
3256
3261
  ], TimesheetLogs.prototype, "taskName", 2);
@@ -3258,7 +3263,7 @@ __decorateClass([
3258
3263
  (0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
3259
3264
  ], TimesheetLogs.prototype, "description", 2);
3260
3265
  TimesheetLogs = __decorateClass([
3261
- (0, import_typeorm23.Entity)("timesheet-logs")
3266
+ (0, import_typeorm23.Entity)("timesheet_logs")
3262
3267
  ], TimesheetLogs);
3263
3268
 
3264
3269
  // src/entities/timesheet-line-history.entity.ts
@@ -3325,7 +3330,7 @@ __decorateClass([
3325
3330
  (0, import_typeorm24.Column)({ name: "remarks", type: "varchar", nullable: true })
3326
3331
  ], TimesheetLineHistory.prototype, "remarks", 2);
3327
3332
  TimesheetLineHistory = __decorateClass([
3328
- (0, import_typeorm24.Entity)("timesheet-line-histories")
3333
+ (0, import_typeorm24.Entity)("timesheet_line_histories")
3329
3334
  ], TimesheetLineHistory);
3330
3335
 
3331
3336
  // src/entities/timesheet-line.entity.ts
@@ -3393,7 +3398,7 @@ __decorateClass([
3393
3398
  (0, import_typeorm25.Column)({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
3394
3399
  ], TimesheetLine.prototype, "status", 2);
3395
3400
  TimesheetLine = __decorateClass([
3396
- (0, import_typeorm25.Entity)("timesheet-line")
3401
+ (0, import_typeorm25.Entity)("timesheet_lines")
3397
3402
  ], TimesheetLine);
3398
3403
 
3399
3404
  // src/entities/job.entity.ts
package/dist/index.mjs CHANGED
@@ -993,8 +993,8 @@ __decorateClass([
993
993
  IsString12({ message: "Job role must be a string" })
994
994
  ], JobBasicInformationDto.prototype, "jobRole", 2);
995
995
  __decorateClass([
996
- ValidateIf3((o) => !o.isDraft),
997
- IsNotEmpty29({ message: "Please enter project name" })
996
+ IsOptional11(),
997
+ IsString12({ message: "Project name must be a string" })
998
998
  ], JobBasicInformationDto.prototype, "projectName", 2);
999
999
  __decorateClass([
1000
1000
  IsOptional11(),
@@ -1091,8 +1091,7 @@ __decorateClass([
1091
1091
  IsString12({ message: "Years of experience must be a string" })
1092
1092
  ], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
1093
1093
  __decorateClass([
1094
- ValidateIf3((o) => !o.isDraft),
1095
- IsNotEmpty29({ message: "Please enter the business industry" }),
1094
+ IsOptional11(),
1096
1095
  IsString12({ message: "Business industry must be a string" })
1097
1096
  ], JobBasicInformationDto.prototype, "businessIndustry", 2);
1098
1097
 
@@ -3178,6 +3177,12 @@ __decorateClass([
3178
3177
  __decorateClass([
3179
3178
  Column23({ name: "task_id", type: "integer", nullable: true })
3180
3179
  ], TimesheetLogs.prototype, "taskId", 2);
3180
+ __decorateClass([
3181
+ Column23({ name: "project_name", type: "varchar", nullable: true })
3182
+ ], TimesheetLogs.prototype, "projectName", 2);
3183
+ __decorateClass([
3184
+ Column23({ name: "deliverable", type: "varchar", nullable: true })
3185
+ ], TimesheetLogs.prototype, "deliverable", 2);
3181
3186
  __decorateClass([
3182
3187
  Column23({ name: "task_name", type: "varchar", nullable: true })
3183
3188
  ], TimesheetLogs.prototype, "taskName", 2);
@@ -3185,7 +3190,7 @@ __decorateClass([
3185
3190
  Column23({ name: "description", type: "varchar", nullable: true })
3186
3191
  ], TimesheetLogs.prototype, "description", 2);
3187
3192
  TimesheetLogs = __decorateClass([
3188
- Entity22("timesheet-logs")
3193
+ Entity22("timesheet_logs")
3189
3194
  ], TimesheetLogs);
3190
3195
 
3191
3196
  // src/entities/timesheet-line-history.entity.ts
@@ -3252,7 +3257,7 @@ __decorateClass([
3252
3257
  Column24({ name: "remarks", type: "varchar", nullable: true })
3253
3258
  ], TimesheetLineHistory.prototype, "remarks", 2);
3254
3259
  TimesheetLineHistory = __decorateClass([
3255
- Entity23("timesheet-line-histories")
3260
+ Entity23("timesheet_line_histories")
3256
3261
  ], TimesheetLineHistory);
3257
3262
 
3258
3263
  // src/entities/timesheet-line.entity.ts
@@ -3320,7 +3325,7 @@ __decorateClass([
3320
3325
  Column25({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
3321
3326
  ], TimesheetLine.prototype, "status", 2);
3322
3327
  TimesheetLine = __decorateClass([
3323
- Entity24("timesheet-line")
3328
+ Entity24("timesheet_lines")
3324
3329
  ], TimesheetLine);
3325
3330
 
3326
3331
  // src/entities/job.entity.ts
@@ -11,7 +11,7 @@ export declare enum EmploymentType {
11
11
  export declare class JobBasicInformationDto {
12
12
  isDraft?: boolean;
13
13
  jobRole: string;
14
- projectName: string;
14
+ projectName?: string;
15
15
  note?: string;
16
16
  skills: string[];
17
17
  openings: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.399",
3
+ "version": "1.0.401",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",