@experts_hub/shared 1.0.144 → 1.0.146

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
@@ -955,10 +955,10 @@ import {
955
955
  } from "class-validator";
956
956
 
957
957
  // src/entities/rating.entity.ts
958
- import { Entity as Entity18, Column as Column19, ManyToOne as ManyToOne17, JoinColumn as JoinColumn17, Index as Index15 } from "typeorm";
958
+ import { Entity as Entity20, Column as Column21, ManyToOne as ManyToOne19, JoinColumn as JoinColumn19, Index as Index17 } from "typeorm";
959
959
 
960
960
  // src/entities/user.entity.ts
961
- import { Entity as Entity17, Column as Column18, OneToMany as OneToMany7, OneToOne, Index as Index14, ManyToOne as ManyToOne16, JoinColumn as JoinColumn16 } from "typeorm";
961
+ import { Entity as Entity19, Column as Column20, OneToMany as OneToMany7, OneToOne, Index as Index16, ManyToOne as ManyToOne18, JoinColumn as JoinColumn18 } from "typeorm";
962
962
 
963
963
  // src/entities/base.entity.ts
964
964
  import {
@@ -2020,6 +2020,79 @@ FreelancerEducation = __decorateClass([
2020
2020
  Entity16("freelancer_educations")
2021
2021
  ], FreelancerEducation);
2022
2022
 
2023
+ // src/entities/freelancer-project.entity.ts
2024
+ import {
2025
+ Entity as Entity17,
2026
+ Column as Column18,
2027
+ Index as Index14,
2028
+ ManyToOne as ManyToOne16,
2029
+ JoinColumn as JoinColumn16
2030
+ } from "typeorm";
2031
+ var FreelancerProject = class extends BaseEntity {
2032
+ };
2033
+ // individual index to find project by user
2034
+ __decorateClass([
2035
+ Column18({ name: "user_id", type: "integer", nullable: true }),
2036
+ Index14()
2037
+ ], FreelancerProject.prototype, "userId", 2);
2038
+ __decorateClass([
2039
+ ManyToOne16(() => User, (user) => user.freelancerProject),
2040
+ JoinColumn16({ name: "user_id" })
2041
+ ], FreelancerProject.prototype, "user", 2);
2042
+ __decorateClass([
2043
+ Column18({ name: "project_name", type: "varchar", nullable: true })
2044
+ ], FreelancerProject.prototype, "projectName", 2);
2045
+ __decorateClass([
2046
+ Column18({ name: "start_date", type: "date", nullable: true })
2047
+ ], FreelancerProject.prototype, "startDate", 2);
2048
+ __decorateClass([
2049
+ Column18({ name: "end_date", type: "date", nullable: true })
2050
+ ], FreelancerProject.prototype, "endDate", 2);
2051
+ __decorateClass([
2052
+ Column18({ name: "client_name", type: "varchar", nullable: true })
2053
+ ], FreelancerProject.prototype, "clientName", 2);
2054
+ __decorateClass([
2055
+ Column18({ name: "git_link", type: "varchar", nullable: true })
2056
+ ], FreelancerProject.prototype, "gitLink", 2);
2057
+ __decorateClass([
2058
+ Column18({ name: "description", type: "varchar", nullable: true })
2059
+ ], FreelancerProject.prototype, "description", 2);
2060
+ FreelancerProject = __decorateClass([
2061
+ Entity17("freelancer_projects")
2062
+ ], FreelancerProject);
2063
+
2064
+ // src/entities/freelancer-casestudy.entity.ts
2065
+ import {
2066
+ Entity as Entity18,
2067
+ Column as Column19,
2068
+ Index as Index15,
2069
+ ManyToOne as ManyToOne17,
2070
+ JoinColumn as JoinColumn17
2071
+ } from "typeorm";
2072
+ var FreelancerCaseStudy = class extends BaseEntity {
2073
+ };
2074
+ // individual index to find case study by user
2075
+ __decorateClass([
2076
+ Column19({ name: "user_id", type: "integer", nullable: true }),
2077
+ Index15()
2078
+ ], FreelancerCaseStudy.prototype, "userId", 2);
2079
+ __decorateClass([
2080
+ ManyToOne17(() => User, (user) => user.freelancerCaseStudy),
2081
+ JoinColumn17({ name: "user_id" })
2082
+ ], FreelancerCaseStudy.prototype, "user", 2);
2083
+ __decorateClass([
2084
+ Column19({ name: "project_name", type: "varchar", nullable: true })
2085
+ ], FreelancerCaseStudy.prototype, "projectName", 2);
2086
+ __decorateClass([
2087
+ Column19({ name: "case_study_link", type: "varchar", nullable: true })
2088
+ ], FreelancerCaseStudy.prototype, "CaseStudyLink", 2);
2089
+ __decorateClass([
2090
+ Column19({ name: "description", type: "varchar", nullable: true })
2091
+ ], FreelancerCaseStudy.prototype, "description", 2);
2092
+ FreelancerCaseStudy = __decorateClass([
2093
+ Entity18("freelancer_case_studies")
2094
+ ], FreelancerCaseStudy);
2095
+
2023
2096
  // src/entities/user.entity.ts
2024
2097
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
2025
2098
  AccountType2["ADMIN"] = "ADMIN";
@@ -2045,55 +2118,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
2045
2118
  var User = class extends BaseEntity {
2046
2119
  };
2047
2120
  __decorateClass([
2048
- Column18({ name: "unique_id", type: "varchar", unique: true })
2121
+ Column20({ name: "unique_id", type: "varchar", unique: true })
2049
2122
  ], User.prototype, "uniqueId", 2);
2050
2123
  __decorateClass([
2051
- Column18({ name: "parent_id", type: "integer", nullable: true }),
2052
- Index14()
2124
+ Column20({ name: "parent_id", type: "integer", nullable: true }),
2125
+ Index16()
2053
2126
  ], User.prototype, "parentId", 2);
2054
2127
  __decorateClass([
2055
- Column18({ name: "company_role_id", type: "integer", nullable: true }),
2056
- Index14()
2128
+ Column20({ name: "company_role_id", type: "integer", nullable: true }),
2129
+ Index16()
2057
2130
  ], User.prototype, "companyRoleId", 2);
2058
2131
  __decorateClass([
2059
- ManyToOne16(() => User, (user) => user.children, { nullable: true }),
2060
- JoinColumn16({ name: "parent_id" })
2132
+ ManyToOne18(() => User, (user) => user.children, { nullable: true }),
2133
+ JoinColumn18({ name: "parent_id" })
2061
2134
  ], User.prototype, "parent", 2);
2062
2135
  __decorateClass([
2063
2136
  OneToMany7(() => User, (user) => user.parent)
2064
2137
  ], User.prototype, "children", 2);
2065
2138
  __decorateClass([
2066
- Column18({ name: "username", type: "varchar", unique: true, nullable: true })
2139
+ Column20({ name: "username", type: "varchar", unique: true, nullable: true })
2067
2140
  ], User.prototype, "username", 2);
2068
2141
  __decorateClass([
2069
- Column18({ name: "first_name", type: "varchar", length: 100, nullable: true })
2142
+ Column20({ name: "first_name", type: "varchar", length: 100, nullable: true })
2070
2143
  ], User.prototype, "firstName", 2);
2071
2144
  __decorateClass([
2072
- Column18({ name: "last_name", type: "varchar", length: 100, nullable: true })
2145
+ Column20({ name: "last_name", type: "varchar", length: 100, nullable: true })
2073
2146
  ], User.prototype, "lastName", 2);
2074
2147
  __decorateClass([
2075
- Column18({ name: "date_of_birth", type: "date", nullable: true })
2148
+ Column20({ name: "date_of_birth", type: "date", nullable: true })
2076
2149
  ], User.prototype, "dateOfBirth", 2);
2077
2150
  __decorateClass([
2078
- Column18({ name: "gender", type: "varchar", length: 10, nullable: true })
2151
+ Column20({ name: "gender", type: "varchar", length: 10, nullable: true })
2079
2152
  ], User.prototype, "gender", 2);
2080
2153
  __decorateClass([
2081
- Column18({ name: "profile_picture_url", type: "text", nullable: true })
2154
+ Column20({ name: "profile_picture_url", type: "text", nullable: true })
2082
2155
  ], User.prototype, "profilePictureUrl", 2);
2083
2156
  __decorateClass([
2084
- Column18({ name: "email", type: "varchar", unique: true })
2157
+ Column20({ name: "email", type: "varchar", unique: true })
2085
2158
  ], User.prototype, "email", 2);
2086
2159
  __decorateClass([
2087
- Column18({ name: "mobile_code", type: "varchar", nullable: true })
2160
+ Column20({ name: "mobile_code", type: "varchar", nullable: true })
2088
2161
  ], User.prototype, "mobileCode", 2);
2089
2162
  __decorateClass([
2090
- Column18({ name: "mobile", type: "varchar", unique: true, nullable: true })
2163
+ Column20({ name: "mobile", type: "varchar", unique: true, nullable: true })
2091
2164
  ], User.prototype, "mobile", 2);
2092
2165
  __decorateClass([
2093
- Column18({ name: "password", type: "varchar" })
2166
+ Column20({ name: "password", type: "varchar", nullable: true })
2094
2167
  ], User.prototype, "password", 2);
2095
2168
  __decorateClass([
2096
- Column18({
2169
+ Column20({
2097
2170
  name: "account_type",
2098
2171
  type: "enum",
2099
2172
  enum: AccountType,
@@ -2101,7 +2174,7 @@ __decorateClass([
2101
2174
  })
2102
2175
  ], User.prototype, "accountType", 2);
2103
2176
  __decorateClass([
2104
- Column18({
2177
+ Column20({
2105
2178
  name: "account_status",
2106
2179
  type: "enum",
2107
2180
  enum: AccountStatus,
@@ -2109,29 +2182,26 @@ __decorateClass([
2109
2182
  })
2110
2183
  ], User.prototype, "accountStatus", 2);
2111
2184
  __decorateClass([
2112
- Column18({ name: "is_email_verified", type: "boolean", default: false })
2185
+ Column20({ name: "is_email_verified", type: "boolean", default: false })
2113
2186
  ], User.prototype, "isEmailVerified", 2);
2114
2187
  __decorateClass([
2115
- Column18({ name: "is_mobile_verified", type: "boolean", default: false })
2188
+ Column20({ name: "is_mobile_verified", type: "boolean", default: false })
2116
2189
  ], User.prototype, "isMobileVerified", 2);
2117
2190
  __decorateClass([
2118
- Column18({ name: "is_password_set_by_user", type: "boolean", default: false })
2119
- ], User.prototype, "isPasswordSetByUser", 2);
2120
- __decorateClass([
2121
- Column18({
2191
+ Column20({
2122
2192
  name: "last_login_at",
2123
2193
  type: "timestamp with time zone",
2124
2194
  nullable: true
2125
2195
  })
2126
2196
  ], User.prototype, "lastLoginAt", 2);
2127
2197
  __decorateClass([
2128
- Column18({ name: "last_login_ip", type: "varchar", nullable: true })
2198
+ Column20({ name: "last_login_ip", type: "varchar", nullable: true })
2129
2199
  ], User.prototype, "lastLoginIp", 2);
2130
2200
  __decorateClass([
2131
- Column18({ name: "reset_token", type: "varchar", nullable: true })
2201
+ Column20({ name: "reset_token", type: "varchar", nullable: true })
2132
2202
  ], User.prototype, "resetToken", 2);
2133
2203
  __decorateClass([
2134
- Column18({
2204
+ Column20({
2135
2205
  name: "reset_token_expire_at",
2136
2206
  type: "timestamp with time zone",
2137
2207
  nullable: true
@@ -2141,7 +2211,7 @@ __decorateClass([
2141
2211
  OneToMany7(() => RefreshToken, (token) => token.user)
2142
2212
  ], User.prototype, "refreshTokens", 2);
2143
2213
  __decorateClass([
2144
- Column18({
2214
+ Column20({
2145
2215
  name: "provider",
2146
2216
  type: "enum",
2147
2217
  enum: Provider,
@@ -2150,16 +2220,16 @@ __decorateClass([
2150
2220
  })
2151
2221
  ], User.prototype, "provider", 2);
2152
2222
  __decorateClass([
2153
- Column18({ name: "provider_token", type: "varchar", nullable: true })
2223
+ Column20({ name: "provider_token", type: "varchar", nullable: true })
2154
2224
  ], User.prototype, "providerToken", 2);
2155
2225
  __decorateClass([
2156
- Column18({ name: "linkedin_id", type: "varchar", nullable: true })
2226
+ Column20({ name: "linkedin_id", type: "varchar", nullable: true })
2157
2227
  ], User.prototype, "linkedInId", 2);
2158
2228
  __decorateClass([
2159
- Column18({ name: "google_id", type: "varchar", nullable: true })
2229
+ Column20({ name: "google_id", type: "varchar", nullable: true })
2160
2230
  ], User.prototype, "googleId", 2);
2161
2231
  __decorateClass([
2162
- Column18({ name: "gitlabs_id", type: "varchar", nullable: true })
2232
+ Column20({ name: "gitlabs_id", type: "varchar", nullable: true })
2163
2233
  ], User.prototype, "gitLabsId", 2);
2164
2234
  __decorateClass([
2165
2235
  OneToMany7(() => Otp, (otp) => otp.user)
@@ -2209,8 +2279,14 @@ __decorateClass([
2209
2279
  __decorateClass([
2210
2280
  OneToOne(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
2211
2281
  ], User.prototype, "freelancerEducation", 2);
2282
+ __decorateClass([
2283
+ OneToOne(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
2284
+ ], User.prototype, "freelancerProject", 2);
2285
+ __decorateClass([
2286
+ OneToOne(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
2287
+ ], User.prototype, "freelancerCaseStudy", 2);
2212
2288
  User = __decorateClass([
2213
- Entity17("users")
2289
+ Entity19("users")
2214
2290
  ], User);
2215
2291
 
2216
2292
  // src/entities/rating.entity.ts
@@ -2222,36 +2298,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
2222
2298
  var Rating = class extends BaseEntity {
2223
2299
  };
2224
2300
  __decorateClass([
2225
- Column19({ name: "reviewer_id", type: "integer" }),
2226
- Index15()
2301
+ Column21({ name: "reviewer_id", type: "integer" }),
2302
+ Index17()
2227
2303
  ], Rating.prototype, "reviewer_id", 2);
2228
2304
  __decorateClass([
2229
- ManyToOne17(() => User, { onDelete: "CASCADE" }),
2230
- JoinColumn17({ name: "reviewer_id" })
2305
+ ManyToOne19(() => User, { onDelete: "CASCADE" }),
2306
+ JoinColumn19({ name: "reviewer_id" })
2231
2307
  ], Rating.prototype, "reviewer", 2);
2232
2308
  __decorateClass([
2233
- Column19({ name: "reviewee_id", type: "integer" }),
2234
- Index15()
2309
+ Column21({ name: "reviewee_id", type: "integer" }),
2310
+ Index17()
2235
2311
  ], Rating.prototype, "reviewee_id", 2);
2236
2312
  __decorateClass([
2237
- ManyToOne17(() => User, { onDelete: "CASCADE" }),
2238
- JoinColumn17({ name: "reviewee_id" })
2313
+ ManyToOne19(() => User, { onDelete: "CASCADE" }),
2314
+ JoinColumn19({ name: "reviewee_id" })
2239
2315
  ], Rating.prototype, "reviewee", 2);
2240
2316
  __decorateClass([
2241
- Column19({
2317
+ Column21({
2242
2318
  type: "enum",
2243
2319
  enum: RatingTypeEnum,
2244
2320
  nullable: true
2245
2321
  })
2246
2322
  ], Rating.prototype, "ratingType", 2);
2247
2323
  __decorateClass([
2248
- Column19({ type: "integer", nullable: true })
2324
+ Column21({ type: "integer", nullable: true })
2249
2325
  ], Rating.prototype, "rating", 2);
2250
2326
  __decorateClass([
2251
- Column19({ type: "text", nullable: true })
2327
+ Column21({ type: "text", nullable: true })
2252
2328
  ], Rating.prototype, "review", 2);
2253
2329
  Rating = __decorateClass([
2254
- Entity18("ratings")
2330
+ Entity20("ratings")
2255
2331
  ], Rating);
2256
2332
 
2257
2333
  // src/modules/rating/dto/add.rating.dto.ts
@@ -2500,6 +2576,84 @@ __decorateClass([
2500
2576
  Type5(() => UpdateEducationDto)
2501
2577
  ], UpdateFreelancerEducationDto.prototype, "education", 2);
2502
2578
 
2579
+ // src/modules/user/freelancer-project/pattern/pattern.ts
2580
+ var FREELANCER_PROJECT_PATTERN = {
2581
+ fetchFreelancerProject: "fetch.freelancer.project",
2582
+ updateFreelancerProject: "update.freelancer.project"
2583
+ };
2584
+ var FREELANCER_CASESTUDY_PATTERN = {
2585
+ fetchFreelancerCaseStudy: "fetch.freelancer.casestudy",
2586
+ updateFreelancerCaseStudy: "update.freelancer.casestudy"
2587
+ };
2588
+
2589
+ // src/modules/user/freelancer-project/dto/update-freelancer-project.dto.ts
2590
+ import { IsArray as IsArray6, ValidateNested as ValidateNested5, IsString as IsString24, IsNotEmpty as IsNotEmpty32, IsOptional as IsOptional16 } from "class-validator";
2591
+ import { Type as Type6 } from "class-transformer";
2592
+ var UpdateProjectDto = class {
2593
+ };
2594
+ __decorateClass([
2595
+ IsOptional16()
2596
+ ], UpdateProjectDto.prototype, "uuid", 2);
2597
+ __decorateClass([
2598
+ IsString24(),
2599
+ IsNotEmpty32()
2600
+ ], UpdateProjectDto.prototype, "projectName", 2);
2601
+ __decorateClass([
2602
+ IsString24(),
2603
+ IsNotEmpty32()
2604
+ ], UpdateProjectDto.prototype, "startDate", 2);
2605
+ __decorateClass([
2606
+ IsString24(),
2607
+ IsNotEmpty32()
2608
+ ], UpdateProjectDto.prototype, "endDate", 2);
2609
+ __decorateClass([
2610
+ IsOptional16(),
2611
+ IsString24()
2612
+ ], UpdateProjectDto.prototype, "clientName", 2);
2613
+ __decorateClass([
2614
+ IsOptional16(),
2615
+ IsString24()
2616
+ ], UpdateProjectDto.prototype, "gitLink", 2);
2617
+ __decorateClass([
2618
+ IsOptional16(),
2619
+ IsString24()
2620
+ ], UpdateProjectDto.prototype, "description", 2);
2621
+ var UpdateFreelancerProjectDto = class {
2622
+ };
2623
+ __decorateClass([
2624
+ IsArray6(),
2625
+ ValidateNested5({ each: true }),
2626
+ Type6(() => UpdateProjectDto)
2627
+ ], UpdateFreelancerProjectDto.prototype, "project", 2);
2628
+
2629
+ // src/modules/user/freelancer-project/dto/update-freelancer-casestudy.dto.ts
2630
+ import { IsArray as IsArray7, ValidateNested as ValidateNested6, IsString as IsString25, IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional17 } from "class-validator";
2631
+ import { Type as Type7 } from "class-transformer";
2632
+ var UpdateCaseStudyDto = class {
2633
+ };
2634
+ __decorateClass([
2635
+ IsOptional17()
2636
+ ], UpdateCaseStudyDto.prototype, "uuid", 2);
2637
+ __decorateClass([
2638
+ IsString25(),
2639
+ IsNotEmpty33()
2640
+ ], UpdateCaseStudyDto.prototype, "projectName", 2);
2641
+ __decorateClass([
2642
+ IsString25(),
2643
+ IsNotEmpty33()
2644
+ ], UpdateCaseStudyDto.prototype, "CaseStudyLink", 2);
2645
+ __decorateClass([
2646
+ IsOptional17(),
2647
+ IsString25()
2648
+ ], UpdateCaseStudyDto.prototype, "description", 2);
2649
+ var UpdateFreelancerCaseStudyDto = class {
2650
+ };
2651
+ __decorateClass([
2652
+ IsArray7(),
2653
+ ValidateNested6({ each: true }),
2654
+ Type7(() => UpdateCaseStudyDto)
2655
+ ], UpdateFreelancerCaseStudyDto.prototype, "casestudy", 2);
2656
+
2503
2657
  // src/adapters/tcp/user.tcp.adapter.ts
2504
2658
  import { config } from "dotenv";
2505
2659
  import { Transport } from "@nestjs/microservices";
@@ -2717,7 +2871,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
2717
2871
  };
2718
2872
 
2719
2873
  // src/entities/question.entity.ts
2720
- import { Entity as Entity19, Column as Column20 } from "typeorm";
2874
+ import { Entity as Entity21, Column as Column22 } from "typeorm";
2721
2875
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2722
2876
  QuestionFor2["CLIENT"] = "CLIENT";
2723
2877
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -2726,16 +2880,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2726
2880
  var Question = class extends BaseEntity {
2727
2881
  };
2728
2882
  __decorateClass([
2729
- Column20({ name: "question", type: "varchar" })
2883
+ Column22({ name: "question", type: "varchar" })
2730
2884
  ], Question.prototype, "question", 2);
2731
2885
  __decorateClass([
2732
- Column20({ name: "hint", type: "varchar", nullable: true })
2886
+ Column22({ name: "hint", type: "varchar", nullable: true })
2733
2887
  ], Question.prototype, "hint", 2);
2734
2888
  __decorateClass([
2735
- Column20({ name: "slug", type: "varchar", nullable: true, unique: true })
2889
+ Column22({ name: "slug", type: "varchar", nullable: true, unique: true })
2736
2890
  ], Question.prototype, "slug", 2);
2737
2891
  __decorateClass([
2738
- Column20({
2892
+ Column22({
2739
2893
  name: "question_for",
2740
2894
  type: "enum",
2741
2895
  enum: QuestionFor,
@@ -2743,76 +2897,76 @@ __decorateClass([
2743
2897
  })
2744
2898
  ], Question.prototype, "questionFor", 2);
2745
2899
  __decorateClass([
2746
- Column20({ name: "type", type: "varchar", nullable: true })
2900
+ Column22({ name: "type", type: "varchar", nullable: true })
2747
2901
  ], Question.prototype, "type", 2);
2748
2902
  __decorateClass([
2749
- Column20({ name: "options", type: "jsonb", nullable: true })
2903
+ Column22({ name: "options", type: "jsonb", nullable: true })
2750
2904
  ], Question.prototype, "options", 2);
2751
2905
  __decorateClass([
2752
- Column20({ name: "is_active", type: "boolean", default: false })
2906
+ Column22({ name: "is_active", type: "boolean", default: false })
2753
2907
  ], Question.prototype, "isActive", 2);
2754
2908
  Question = __decorateClass([
2755
- Entity19("questions")
2909
+ Entity21("questions")
2756
2910
  ], Question);
2757
2911
 
2758
2912
  // src/entities/job-role.entity.ts
2759
- import { Entity as Entity20, Column as Column21 } from "typeorm";
2913
+ import { Entity as Entity22, Column as Column23 } from "typeorm";
2760
2914
  var JobRoles = class extends BaseEntity {
2761
2915
  };
2762
2916
  __decorateClass([
2763
- Column21({ name: "slug", type: "varchar", nullable: true, unique: true })
2917
+ Column23({ name: "slug", type: "varchar", nullable: true, unique: true })
2764
2918
  ], JobRoles.prototype, "slug", 2);
2765
2919
  __decorateClass([
2766
- Column21({ name: "name", type: "varchar", nullable: true })
2920
+ Column23({ name: "name", type: "varchar", nullable: true })
2767
2921
  ], JobRoles.prototype, "name", 2);
2768
2922
  __decorateClass([
2769
- Column21({ name: "is_active", type: "boolean", default: true })
2923
+ Column23({ name: "is_active", type: "boolean", default: true })
2770
2924
  ], JobRoles.prototype, "isActive", 2);
2771
2925
  JobRoles = __decorateClass([
2772
- Entity20("job_roles")
2926
+ Entity22("job_roles")
2773
2927
  ], JobRoles);
2774
2928
 
2775
2929
  // src/entities/plan.entity.ts
2776
- import { Entity as Entity22, Column as Column23, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
2930
+ import { Entity as Entity24, Column as Column25, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
2777
2931
 
2778
2932
  // src/entities/feature.entity.ts
2779
- import { Entity as Entity21, Column as Column22, ManyToMany } from "typeorm";
2933
+ import { Entity as Entity23, Column as Column24, ManyToMany } from "typeorm";
2780
2934
  var Feature = class extends BaseEntity {
2781
2935
  };
2782
2936
  __decorateClass([
2783
- Column22({ name: "name", type: "varchar", unique: true })
2937
+ Column24({ name: "name", type: "varchar", unique: true })
2784
2938
  ], Feature.prototype, "name", 2);
2785
2939
  __decorateClass([
2786
2940
  ManyToMany(() => Plan, (plan) => plan.features)
2787
2941
  ], Feature.prototype, "plans", 2);
2788
2942
  Feature = __decorateClass([
2789
- Entity21("features")
2943
+ Entity23("features")
2790
2944
  ], Feature);
2791
2945
 
2792
2946
  // src/entities/plan.entity.ts
2793
2947
  var Plan = class extends BaseEntity {
2794
2948
  };
2795
2949
  __decorateClass([
2796
- Column23({ name: "name", type: "varchar", unique: true })
2950
+ Column25({ name: "name", type: "varchar", unique: true })
2797
2951
  ], Plan.prototype, "name", 2);
2798
2952
  __decorateClass([
2799
- Column23({ name: "description", type: "varchar", nullable: true })
2953
+ Column25({ name: "description", type: "varchar", nullable: true })
2800
2954
  ], Plan.prototype, "description", 2);
2801
2955
  __decorateClass([
2802
- Column23({ name: "price", type: "decimal", precision: 10, scale: 2 })
2956
+ Column25({ name: "price", type: "decimal", precision: 10, scale: 2 })
2803
2957
  ], Plan.prototype, "price", 2);
2804
2958
  __decorateClass([
2805
- Column23({ name: "billing_period", type: "varchar" })
2959
+ Column25({ name: "billing_period", type: "varchar" })
2806
2960
  ], Plan.prototype, "billingPeriod", 2);
2807
2961
  __decorateClass([
2808
- Column23({ name: "is_current", type: "boolean", default: false })
2962
+ Column25({ name: "is_current", type: "boolean", default: false })
2809
2963
  ], Plan.prototype, "isCurrent", 2);
2810
2964
  __decorateClass([
2811
2965
  ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
2812
2966
  JoinTable()
2813
2967
  ], Plan.prototype, "features", 2);
2814
2968
  Plan = __decorateClass([
2815
- Entity22("plans")
2969
+ Entity24("plans")
2816
2970
  ], Plan);
2817
2971
  export {
2818
2972
  AUTHENTICATION_PATTERN,
@@ -2844,11 +2998,14 @@ export {
2844
2998
  CreateSubAdminDto,
2845
2999
  DurationTypeEnum,
2846
3000
  EmploymentType,
3001
+ FREELANCER_CASESTUDY_PATTERN,
2847
3002
  FREELANCER_EDUCATION_PATTERN,
2848
3003
  FREELANCER_EXPERIENCE_PATTERN,
3004
+ FREELANCER_PROJECT_PATTERN,
2849
3005
  Feature,
2850
3006
  ForgotPasswordDto,
2851
3007
  FreelancerBankDetailsDto,
3008
+ FreelancerCaseStudy,
2852
3009
  FreelancerChangePasswordDto,
2853
3010
  FreelancerCreateAccountDto,
2854
3011
  FreelancerDevelopmentPreferenceDto,
@@ -2856,6 +3013,7 @@ export {
2856
3013
  FreelancerExperience,
2857
3014
  FreelancerProfile,
2858
3015
  FreelancerProfileQuestionDto,
3016
+ FreelancerProject,
2859
3017
  FreelancerUploadResumeDto,
2860
3018
  FreelancerWorkShowcaseDto,
2861
3019
  FromUsOn,
@@ -2919,14 +3077,18 @@ export {
2919
3077
  ToggleCompanyMemberVisibilityDto,
2920
3078
  ToggleCompanyRoleVisibilityDto,
2921
3079
  TypeOfEmploymentEnum,
3080
+ UpdateCaseStudyDto,
2922
3081
  UpdateCompanyMemberDto,
2923
3082
  UpdateCompanyProfileDto,
2924
3083
  UpdateCompanyRoleDto,
2925
3084
  UpdateEducationDto,
2926
3085
  UpdateExperienceDto,
3086
+ UpdateFreelancerCaseStudyDto,
2927
3087
  UpdateFreelancerEducationDto,
2928
3088
  UpdateFreelancerExperienceDto,
2929
3089
  UpdateFreelancerProfileDto,
3090
+ UpdateFreelancerProjectDto,
3091
+ UpdateProjectDto,
2930
3092
  UpdateSubAdminAccountStatusDto,
2931
3093
  UpdateSubAdminDto,
2932
3094
  User,
@@ -16,3 +16,4 @@ export * from './company-role';
16
16
  export * from './user/freelancer-experience';
17
17
  export * from './company-member';
18
18
  export * from './user/freelancer-education';
19
+ export * from './user/freelancer-project';
@@ -0,0 +1,2 @@
1
+ export * from './update-freelancer-project.dto';
2
+ export * from './update-freelancer-casestudy.dto';
@@ -0,0 +1,9 @@
1
+ export declare class UpdateCaseStudyDto {
2
+ uuid?: string;
3
+ projectName: string;
4
+ CaseStudyLink: string;
5
+ description: string;
6
+ }
7
+ export declare class UpdateFreelancerCaseStudyDto {
8
+ casestudy: UpdateCaseStudyDto[];
9
+ }
@@ -0,0 +1,12 @@
1
+ export declare class UpdateProjectDto {
2
+ uuid?: string;
3
+ projectName: string;
4
+ startDate: string;
5
+ endDate: string;
6
+ clientName: string;
7
+ gitLink: string;
8
+ description: string;
9
+ }
10
+ export declare class UpdateFreelancerProjectDto {
11
+ project: UpdateProjectDto[];
12
+ }
@@ -0,0 +1,2 @@
1
+ export * from './pattern/pattern';
2
+ export * from './dto';
@@ -0,0 +1,8 @@
1
+ export declare const FREELANCER_PROJECT_PATTERN: {
2
+ fetchFreelancerProject: string;
3
+ updateFreelancerProject: string;
4
+ };
5
+ export declare const FREELANCER_CASESTUDY_PATTERN: {
6
+ fetchFreelancerCaseStudy: string;
7
+ updateFreelancerCaseStudy: string;
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.144",
3
+ "version": "1.0.146",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",