@experts_hub/shared 1.0.145 → 1.0.147
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/freelancer-casestudy.entity.d.ts +9 -0
- package/dist/entities/freelancer-project.entity.d.ts +12 -0
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +4 -0
- package/dist/index.d.mts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +237 -89
- package/dist/index.mjs +224 -70
- package/dist/modules/authentication/pattern/pattern.d.ts +1 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/user/freelancer-project/dto/index.d.ts +1 -0
- package/dist/modules/user/freelancer-project/dto/update-freelancer-project.dto.d.ts +19 -0
- package/dist/modules/user/freelancer-project/index.d.ts +2 -0
- package/dist/modules/user/freelancer-project/pattern/pattern.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -19,7 +19,8 @@ var AUTHENTICATION_PATTERN = {
|
|
|
19
19
|
fetchSessions: "fetch.sessions",
|
|
20
20
|
revokeSession: "revoke.session",
|
|
21
21
|
handleForgotPassword: "handle.forgot.password",
|
|
22
|
-
handleResetPassword: "handle.reset.password"
|
|
22
|
+
handleResetPassword: "handle.reset.password",
|
|
23
|
+
handleSetPassword: "handle.set.password"
|
|
23
24
|
};
|
|
24
25
|
|
|
25
26
|
// src/modules/authentication/dto/login.dto.ts
|
|
@@ -955,10 +956,10 @@ import {
|
|
|
955
956
|
} from "class-validator";
|
|
956
957
|
|
|
957
958
|
// src/entities/rating.entity.ts
|
|
958
|
-
import { Entity as
|
|
959
|
+
import { Entity as Entity20, Column as Column21, ManyToOne as ManyToOne19, JoinColumn as JoinColumn19, Index as Index17 } from "typeorm";
|
|
959
960
|
|
|
960
961
|
// src/entities/user.entity.ts
|
|
961
|
-
import { Entity as
|
|
962
|
+
import { Entity as Entity19, Column as Column20, OneToMany as OneToMany7, OneToOne, Index as Index16, ManyToOne as ManyToOne18, JoinColumn as JoinColumn18 } from "typeorm";
|
|
962
963
|
|
|
963
964
|
// src/entities/base.entity.ts
|
|
964
965
|
import {
|
|
@@ -2020,6 +2021,79 @@ FreelancerEducation = __decorateClass([
|
|
|
2020
2021
|
Entity16("freelancer_educations")
|
|
2021
2022
|
], FreelancerEducation);
|
|
2022
2023
|
|
|
2024
|
+
// src/entities/freelancer-project.entity.ts
|
|
2025
|
+
import {
|
|
2026
|
+
Entity as Entity17,
|
|
2027
|
+
Column as Column18,
|
|
2028
|
+
Index as Index14,
|
|
2029
|
+
ManyToOne as ManyToOne16,
|
|
2030
|
+
JoinColumn as JoinColumn16
|
|
2031
|
+
} from "typeorm";
|
|
2032
|
+
var FreelancerProject = class extends BaseEntity {
|
|
2033
|
+
};
|
|
2034
|
+
// individual index to find project by user
|
|
2035
|
+
__decorateClass([
|
|
2036
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2037
|
+
Index14()
|
|
2038
|
+
], FreelancerProject.prototype, "userId", 2);
|
|
2039
|
+
__decorateClass([
|
|
2040
|
+
ManyToOne16(() => User, (user) => user.freelancerProject),
|
|
2041
|
+
JoinColumn16({ name: "user_id" })
|
|
2042
|
+
], FreelancerProject.prototype, "user", 2);
|
|
2043
|
+
__decorateClass([
|
|
2044
|
+
Column18({ name: "project_name", type: "varchar", nullable: true })
|
|
2045
|
+
], FreelancerProject.prototype, "projectName", 2);
|
|
2046
|
+
__decorateClass([
|
|
2047
|
+
Column18({ name: "start_date", type: "date", nullable: true })
|
|
2048
|
+
], FreelancerProject.prototype, "startDate", 2);
|
|
2049
|
+
__decorateClass([
|
|
2050
|
+
Column18({ name: "end_date", type: "date", nullable: true })
|
|
2051
|
+
], FreelancerProject.prototype, "endDate", 2);
|
|
2052
|
+
__decorateClass([
|
|
2053
|
+
Column18({ name: "client_name", type: "varchar", nullable: true })
|
|
2054
|
+
], FreelancerProject.prototype, "clientName", 2);
|
|
2055
|
+
__decorateClass([
|
|
2056
|
+
Column18({ name: "git_link", type: "varchar", nullable: true })
|
|
2057
|
+
], FreelancerProject.prototype, "gitLink", 2);
|
|
2058
|
+
__decorateClass([
|
|
2059
|
+
Column18({ name: "description", type: "varchar", nullable: true })
|
|
2060
|
+
], FreelancerProject.prototype, "description", 2);
|
|
2061
|
+
FreelancerProject = __decorateClass([
|
|
2062
|
+
Entity17("freelancer_projects")
|
|
2063
|
+
], FreelancerProject);
|
|
2064
|
+
|
|
2065
|
+
// src/entities/freelancer-casestudy.entity.ts
|
|
2066
|
+
import {
|
|
2067
|
+
Entity as Entity18,
|
|
2068
|
+
Column as Column19,
|
|
2069
|
+
Index as Index15,
|
|
2070
|
+
ManyToOne as ManyToOne17,
|
|
2071
|
+
JoinColumn as JoinColumn17
|
|
2072
|
+
} from "typeorm";
|
|
2073
|
+
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2074
|
+
};
|
|
2075
|
+
// individual index to find case study by user
|
|
2076
|
+
__decorateClass([
|
|
2077
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2078
|
+
Index15()
|
|
2079
|
+
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2080
|
+
__decorateClass([
|
|
2081
|
+
ManyToOne17(() => User, (user) => user.freelancerCaseStudy),
|
|
2082
|
+
JoinColumn17({ name: "user_id" })
|
|
2083
|
+
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2084
|
+
__decorateClass([
|
|
2085
|
+
Column19({ name: "project_name", type: "varchar", nullable: true })
|
|
2086
|
+
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2087
|
+
__decorateClass([
|
|
2088
|
+
Column19({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2089
|
+
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2090
|
+
__decorateClass([
|
|
2091
|
+
Column19({ name: "description", type: "varchar", nullable: true })
|
|
2092
|
+
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2093
|
+
FreelancerCaseStudy = __decorateClass([
|
|
2094
|
+
Entity18("freelancer_case_studies")
|
|
2095
|
+
], FreelancerCaseStudy);
|
|
2096
|
+
|
|
2023
2097
|
// src/entities/user.entity.ts
|
|
2024
2098
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2025
2099
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2045,55 +2119,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2045
2119
|
var User = class extends BaseEntity {
|
|
2046
2120
|
};
|
|
2047
2121
|
__decorateClass([
|
|
2048
|
-
|
|
2122
|
+
Column20({ name: "unique_id", type: "varchar", unique: true })
|
|
2049
2123
|
], User.prototype, "uniqueId", 2);
|
|
2050
2124
|
__decorateClass([
|
|
2051
|
-
|
|
2052
|
-
|
|
2125
|
+
Column20({ name: "parent_id", type: "integer", nullable: true }),
|
|
2126
|
+
Index16()
|
|
2053
2127
|
], User.prototype, "parentId", 2);
|
|
2054
2128
|
__decorateClass([
|
|
2055
|
-
|
|
2056
|
-
|
|
2129
|
+
Column20({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2130
|
+
Index16()
|
|
2057
2131
|
], User.prototype, "companyRoleId", 2);
|
|
2058
2132
|
__decorateClass([
|
|
2059
|
-
|
|
2060
|
-
|
|
2133
|
+
ManyToOne18(() => User, (user) => user.children, { nullable: true }),
|
|
2134
|
+
JoinColumn18({ name: "parent_id" })
|
|
2061
2135
|
], User.prototype, "parent", 2);
|
|
2062
2136
|
__decorateClass([
|
|
2063
2137
|
OneToMany7(() => User, (user) => user.parent)
|
|
2064
2138
|
], User.prototype, "children", 2);
|
|
2065
2139
|
__decorateClass([
|
|
2066
|
-
|
|
2140
|
+
Column20({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2067
2141
|
], User.prototype, "username", 2);
|
|
2068
2142
|
__decorateClass([
|
|
2069
|
-
|
|
2143
|
+
Column20({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2070
2144
|
], User.prototype, "firstName", 2);
|
|
2071
2145
|
__decorateClass([
|
|
2072
|
-
|
|
2146
|
+
Column20({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2073
2147
|
], User.prototype, "lastName", 2);
|
|
2074
2148
|
__decorateClass([
|
|
2075
|
-
|
|
2149
|
+
Column20({ name: "date_of_birth", type: "date", nullable: true })
|
|
2076
2150
|
], User.prototype, "dateOfBirth", 2);
|
|
2077
2151
|
__decorateClass([
|
|
2078
|
-
|
|
2152
|
+
Column20({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2079
2153
|
], User.prototype, "gender", 2);
|
|
2080
2154
|
__decorateClass([
|
|
2081
|
-
|
|
2155
|
+
Column20({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2082
2156
|
], User.prototype, "profilePictureUrl", 2);
|
|
2083
2157
|
__decorateClass([
|
|
2084
|
-
|
|
2158
|
+
Column20({ name: "email", type: "varchar", unique: true })
|
|
2085
2159
|
], User.prototype, "email", 2);
|
|
2086
2160
|
__decorateClass([
|
|
2087
|
-
|
|
2161
|
+
Column20({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2088
2162
|
], User.prototype, "mobileCode", 2);
|
|
2089
2163
|
__decorateClass([
|
|
2090
|
-
|
|
2164
|
+
Column20({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2091
2165
|
], User.prototype, "mobile", 2);
|
|
2092
2166
|
__decorateClass([
|
|
2093
|
-
|
|
2167
|
+
Column20({ name: "password", type: "varchar", nullable: true })
|
|
2094
2168
|
], User.prototype, "password", 2);
|
|
2095
2169
|
__decorateClass([
|
|
2096
|
-
|
|
2170
|
+
Column20({
|
|
2097
2171
|
name: "account_type",
|
|
2098
2172
|
type: "enum",
|
|
2099
2173
|
enum: AccountType,
|
|
@@ -2101,7 +2175,7 @@ __decorateClass([
|
|
|
2101
2175
|
})
|
|
2102
2176
|
], User.prototype, "accountType", 2);
|
|
2103
2177
|
__decorateClass([
|
|
2104
|
-
|
|
2178
|
+
Column20({
|
|
2105
2179
|
name: "account_status",
|
|
2106
2180
|
type: "enum",
|
|
2107
2181
|
enum: AccountStatus,
|
|
@@ -2109,26 +2183,26 @@ __decorateClass([
|
|
|
2109
2183
|
})
|
|
2110
2184
|
], User.prototype, "accountStatus", 2);
|
|
2111
2185
|
__decorateClass([
|
|
2112
|
-
|
|
2186
|
+
Column20({ name: "is_email_verified", type: "boolean", default: false })
|
|
2113
2187
|
], User.prototype, "isEmailVerified", 2);
|
|
2114
2188
|
__decorateClass([
|
|
2115
|
-
|
|
2189
|
+
Column20({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2116
2190
|
], User.prototype, "isMobileVerified", 2);
|
|
2117
2191
|
__decorateClass([
|
|
2118
|
-
|
|
2192
|
+
Column20({
|
|
2119
2193
|
name: "last_login_at",
|
|
2120
2194
|
type: "timestamp with time zone",
|
|
2121
2195
|
nullable: true
|
|
2122
2196
|
})
|
|
2123
2197
|
], User.prototype, "lastLoginAt", 2);
|
|
2124
2198
|
__decorateClass([
|
|
2125
|
-
|
|
2199
|
+
Column20({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2126
2200
|
], User.prototype, "lastLoginIp", 2);
|
|
2127
2201
|
__decorateClass([
|
|
2128
|
-
|
|
2202
|
+
Column20({ name: "reset_token", type: "varchar", nullable: true })
|
|
2129
2203
|
], User.prototype, "resetToken", 2);
|
|
2130
2204
|
__decorateClass([
|
|
2131
|
-
|
|
2205
|
+
Column20({
|
|
2132
2206
|
name: "reset_token_expire_at",
|
|
2133
2207
|
type: "timestamp with time zone",
|
|
2134
2208
|
nullable: true
|
|
@@ -2138,7 +2212,7 @@ __decorateClass([
|
|
|
2138
2212
|
OneToMany7(() => RefreshToken, (token) => token.user)
|
|
2139
2213
|
], User.prototype, "refreshTokens", 2);
|
|
2140
2214
|
__decorateClass([
|
|
2141
|
-
|
|
2215
|
+
Column20({
|
|
2142
2216
|
name: "provider",
|
|
2143
2217
|
type: "enum",
|
|
2144
2218
|
enum: Provider,
|
|
@@ -2147,16 +2221,16 @@ __decorateClass([
|
|
|
2147
2221
|
})
|
|
2148
2222
|
], User.prototype, "provider", 2);
|
|
2149
2223
|
__decorateClass([
|
|
2150
|
-
|
|
2224
|
+
Column20({ name: "provider_token", type: "varchar", nullable: true })
|
|
2151
2225
|
], User.prototype, "providerToken", 2);
|
|
2152
2226
|
__decorateClass([
|
|
2153
|
-
|
|
2227
|
+
Column20({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2154
2228
|
], User.prototype, "linkedInId", 2);
|
|
2155
2229
|
__decorateClass([
|
|
2156
|
-
|
|
2230
|
+
Column20({ name: "google_id", type: "varchar", nullable: true })
|
|
2157
2231
|
], User.prototype, "googleId", 2);
|
|
2158
2232
|
__decorateClass([
|
|
2159
|
-
|
|
2233
|
+
Column20({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2160
2234
|
], User.prototype, "gitLabsId", 2);
|
|
2161
2235
|
__decorateClass([
|
|
2162
2236
|
OneToMany7(() => Otp, (otp) => otp.user)
|
|
@@ -2206,8 +2280,14 @@ __decorateClass([
|
|
|
2206
2280
|
__decorateClass([
|
|
2207
2281
|
OneToOne(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2208
2282
|
], User.prototype, "freelancerEducation", 2);
|
|
2283
|
+
__decorateClass([
|
|
2284
|
+
OneToOne(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
2285
|
+
], User.prototype, "freelancerProject", 2);
|
|
2286
|
+
__decorateClass([
|
|
2287
|
+
OneToOne(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
2288
|
+
], User.prototype, "freelancerCaseStudy", 2);
|
|
2209
2289
|
User = __decorateClass([
|
|
2210
|
-
|
|
2290
|
+
Entity19("users")
|
|
2211
2291
|
], User);
|
|
2212
2292
|
|
|
2213
2293
|
// src/entities/rating.entity.ts
|
|
@@ -2219,36 +2299,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2219
2299
|
var Rating = class extends BaseEntity {
|
|
2220
2300
|
};
|
|
2221
2301
|
__decorateClass([
|
|
2222
|
-
|
|
2223
|
-
|
|
2302
|
+
Column21({ name: "reviewer_id", type: "integer" }),
|
|
2303
|
+
Index17()
|
|
2224
2304
|
], Rating.prototype, "reviewer_id", 2);
|
|
2225
2305
|
__decorateClass([
|
|
2226
|
-
|
|
2227
|
-
|
|
2306
|
+
ManyToOne19(() => User, { onDelete: "CASCADE" }),
|
|
2307
|
+
JoinColumn19({ name: "reviewer_id" })
|
|
2228
2308
|
], Rating.prototype, "reviewer", 2);
|
|
2229
2309
|
__decorateClass([
|
|
2230
|
-
|
|
2231
|
-
|
|
2310
|
+
Column21({ name: "reviewee_id", type: "integer" }),
|
|
2311
|
+
Index17()
|
|
2232
2312
|
], Rating.prototype, "reviewee_id", 2);
|
|
2233
2313
|
__decorateClass([
|
|
2234
|
-
|
|
2235
|
-
|
|
2314
|
+
ManyToOne19(() => User, { onDelete: "CASCADE" }),
|
|
2315
|
+
JoinColumn19({ name: "reviewee_id" })
|
|
2236
2316
|
], Rating.prototype, "reviewee", 2);
|
|
2237
2317
|
__decorateClass([
|
|
2238
|
-
|
|
2318
|
+
Column21({
|
|
2239
2319
|
type: "enum",
|
|
2240
2320
|
enum: RatingTypeEnum,
|
|
2241
2321
|
nullable: true
|
|
2242
2322
|
})
|
|
2243
2323
|
], Rating.prototype, "ratingType", 2);
|
|
2244
2324
|
__decorateClass([
|
|
2245
|
-
|
|
2325
|
+
Column21({ type: "integer", nullable: true })
|
|
2246
2326
|
], Rating.prototype, "rating", 2);
|
|
2247
2327
|
__decorateClass([
|
|
2248
|
-
|
|
2328
|
+
Column21({ type: "text", nullable: true })
|
|
2249
2329
|
], Rating.prototype, "review", 2);
|
|
2250
2330
|
Rating = __decorateClass([
|
|
2251
|
-
|
|
2331
|
+
Entity20("ratings")
|
|
2252
2332
|
], Rating);
|
|
2253
2333
|
|
|
2254
2334
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2497,6 +2577,74 @@ __decorateClass([
|
|
|
2497
2577
|
Type5(() => UpdateEducationDto)
|
|
2498
2578
|
], UpdateFreelancerEducationDto.prototype, "education", 2);
|
|
2499
2579
|
|
|
2580
|
+
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
2581
|
+
var FREELANCER_PROJECT_PATTERN = {
|
|
2582
|
+
fetchFreelancerProject: "fetch.freelancer.project",
|
|
2583
|
+
createFreelancerProject: "create.freelancer.project"
|
|
2584
|
+
};
|
|
2585
|
+
|
|
2586
|
+
// src/modules/user/freelancer-project/dto/update-freelancer-project.dto.ts
|
|
2587
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested5, IsString as IsString24, IsNotEmpty as IsNotEmpty32, IsOptional as IsOptional16, IsDateString } from "class-validator";
|
|
2588
|
+
import { Type as Type6 } from "class-transformer";
|
|
2589
|
+
var CreateProjectDto = class {
|
|
2590
|
+
};
|
|
2591
|
+
__decorateClass([
|
|
2592
|
+
IsOptional16()
|
|
2593
|
+
], CreateProjectDto.prototype, "uuid", 2);
|
|
2594
|
+
__decorateClass([
|
|
2595
|
+
IsString24(),
|
|
2596
|
+
IsNotEmpty32()
|
|
2597
|
+
], CreateProjectDto.prototype, "projectName", 2);
|
|
2598
|
+
__decorateClass([
|
|
2599
|
+
IsDateString(),
|
|
2600
|
+
IsNotEmpty32()
|
|
2601
|
+
], CreateProjectDto.prototype, "startDate", 2);
|
|
2602
|
+
__decorateClass([
|
|
2603
|
+
IsDateString(),
|
|
2604
|
+
IsNotEmpty32()
|
|
2605
|
+
], CreateProjectDto.prototype, "endDate", 2);
|
|
2606
|
+
__decorateClass([
|
|
2607
|
+
IsOptional16(),
|
|
2608
|
+
IsString24()
|
|
2609
|
+
], CreateProjectDto.prototype, "clientName", 2);
|
|
2610
|
+
__decorateClass([
|
|
2611
|
+
IsOptional16(),
|
|
2612
|
+
IsString24()
|
|
2613
|
+
], CreateProjectDto.prototype, "gitLink", 2);
|
|
2614
|
+
__decorateClass([
|
|
2615
|
+
IsOptional16(),
|
|
2616
|
+
IsString24()
|
|
2617
|
+
], CreateProjectDto.prototype, "description", 2);
|
|
2618
|
+
var CreateCaseStudyDto = class {
|
|
2619
|
+
};
|
|
2620
|
+
__decorateClass([
|
|
2621
|
+
IsOptional16()
|
|
2622
|
+
], CreateCaseStudyDto.prototype, "uuid", 2);
|
|
2623
|
+
__decorateClass([
|
|
2624
|
+
IsString24(),
|
|
2625
|
+
IsNotEmpty32()
|
|
2626
|
+
], CreateCaseStudyDto.prototype, "projectName", 2);
|
|
2627
|
+
__decorateClass([
|
|
2628
|
+
IsString24(),
|
|
2629
|
+
IsNotEmpty32()
|
|
2630
|
+
], CreateCaseStudyDto.prototype, "caseStudyLink", 2);
|
|
2631
|
+
__decorateClass([
|
|
2632
|
+
IsOptional16(),
|
|
2633
|
+
IsString24()
|
|
2634
|
+
], CreateCaseStudyDto.prototype, "description", 2);
|
|
2635
|
+
var CreateFreelancerProjectDto = class {
|
|
2636
|
+
};
|
|
2637
|
+
__decorateClass([
|
|
2638
|
+
IsArray6(),
|
|
2639
|
+
ValidateNested5({ each: true }),
|
|
2640
|
+
Type6(() => CreateProjectDto)
|
|
2641
|
+
], CreateFreelancerProjectDto.prototype, "project", 2);
|
|
2642
|
+
__decorateClass([
|
|
2643
|
+
IsArray6(),
|
|
2644
|
+
ValidateNested5({ each: true }),
|
|
2645
|
+
Type6(() => CreateCaseStudyDto)
|
|
2646
|
+
], CreateFreelancerProjectDto.prototype, "casestudy", 2);
|
|
2647
|
+
|
|
2500
2648
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2501
2649
|
import { config } from "dotenv";
|
|
2502
2650
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -2714,7 +2862,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2714
2862
|
};
|
|
2715
2863
|
|
|
2716
2864
|
// src/entities/question.entity.ts
|
|
2717
|
-
import { Entity as
|
|
2865
|
+
import { Entity as Entity21, Column as Column22 } from "typeorm";
|
|
2718
2866
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2719
2867
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2720
2868
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2723,16 +2871,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2723
2871
|
var Question = class extends BaseEntity {
|
|
2724
2872
|
};
|
|
2725
2873
|
__decorateClass([
|
|
2726
|
-
|
|
2874
|
+
Column22({ name: "question", type: "varchar" })
|
|
2727
2875
|
], Question.prototype, "question", 2);
|
|
2728
2876
|
__decorateClass([
|
|
2729
|
-
|
|
2877
|
+
Column22({ name: "hint", type: "varchar", nullable: true })
|
|
2730
2878
|
], Question.prototype, "hint", 2);
|
|
2731
2879
|
__decorateClass([
|
|
2732
|
-
|
|
2880
|
+
Column22({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2733
2881
|
], Question.prototype, "slug", 2);
|
|
2734
2882
|
__decorateClass([
|
|
2735
|
-
|
|
2883
|
+
Column22({
|
|
2736
2884
|
name: "question_for",
|
|
2737
2885
|
type: "enum",
|
|
2738
2886
|
enum: QuestionFor,
|
|
@@ -2740,76 +2888,76 @@ __decorateClass([
|
|
|
2740
2888
|
})
|
|
2741
2889
|
], Question.prototype, "questionFor", 2);
|
|
2742
2890
|
__decorateClass([
|
|
2743
|
-
|
|
2891
|
+
Column22({ name: "type", type: "varchar", nullable: true })
|
|
2744
2892
|
], Question.prototype, "type", 2);
|
|
2745
2893
|
__decorateClass([
|
|
2746
|
-
|
|
2894
|
+
Column22({ name: "options", type: "jsonb", nullable: true })
|
|
2747
2895
|
], Question.prototype, "options", 2);
|
|
2748
2896
|
__decorateClass([
|
|
2749
|
-
|
|
2897
|
+
Column22({ name: "is_active", type: "boolean", default: false })
|
|
2750
2898
|
], Question.prototype, "isActive", 2);
|
|
2751
2899
|
Question = __decorateClass([
|
|
2752
|
-
|
|
2900
|
+
Entity21("questions")
|
|
2753
2901
|
], Question);
|
|
2754
2902
|
|
|
2755
2903
|
// src/entities/job-role.entity.ts
|
|
2756
|
-
import { Entity as
|
|
2904
|
+
import { Entity as Entity22, Column as Column23 } from "typeorm";
|
|
2757
2905
|
var JobRoles = class extends BaseEntity {
|
|
2758
2906
|
};
|
|
2759
2907
|
__decorateClass([
|
|
2760
|
-
|
|
2908
|
+
Column23({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2761
2909
|
], JobRoles.prototype, "slug", 2);
|
|
2762
2910
|
__decorateClass([
|
|
2763
|
-
|
|
2911
|
+
Column23({ name: "name", type: "varchar", nullable: true })
|
|
2764
2912
|
], JobRoles.prototype, "name", 2);
|
|
2765
2913
|
__decorateClass([
|
|
2766
|
-
|
|
2914
|
+
Column23({ name: "is_active", type: "boolean", default: true })
|
|
2767
2915
|
], JobRoles.prototype, "isActive", 2);
|
|
2768
2916
|
JobRoles = __decorateClass([
|
|
2769
|
-
|
|
2917
|
+
Entity22("job_roles")
|
|
2770
2918
|
], JobRoles);
|
|
2771
2919
|
|
|
2772
2920
|
// src/entities/plan.entity.ts
|
|
2773
|
-
import { Entity as
|
|
2921
|
+
import { Entity as Entity24, Column as Column25, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
2774
2922
|
|
|
2775
2923
|
// src/entities/feature.entity.ts
|
|
2776
|
-
import { Entity as
|
|
2924
|
+
import { Entity as Entity23, Column as Column24, ManyToMany } from "typeorm";
|
|
2777
2925
|
var Feature = class extends BaseEntity {
|
|
2778
2926
|
};
|
|
2779
2927
|
__decorateClass([
|
|
2780
|
-
|
|
2928
|
+
Column24({ name: "name", type: "varchar", unique: true })
|
|
2781
2929
|
], Feature.prototype, "name", 2);
|
|
2782
2930
|
__decorateClass([
|
|
2783
2931
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
2784
2932
|
], Feature.prototype, "plans", 2);
|
|
2785
2933
|
Feature = __decorateClass([
|
|
2786
|
-
|
|
2934
|
+
Entity23("features")
|
|
2787
2935
|
], Feature);
|
|
2788
2936
|
|
|
2789
2937
|
// src/entities/plan.entity.ts
|
|
2790
2938
|
var Plan = class extends BaseEntity {
|
|
2791
2939
|
};
|
|
2792
2940
|
__decorateClass([
|
|
2793
|
-
|
|
2941
|
+
Column25({ name: "name", type: "varchar", unique: true })
|
|
2794
2942
|
], Plan.prototype, "name", 2);
|
|
2795
2943
|
__decorateClass([
|
|
2796
|
-
|
|
2944
|
+
Column25({ name: "description", type: "varchar", nullable: true })
|
|
2797
2945
|
], Plan.prototype, "description", 2);
|
|
2798
2946
|
__decorateClass([
|
|
2799
|
-
|
|
2947
|
+
Column25({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2800
2948
|
], Plan.prototype, "price", 2);
|
|
2801
2949
|
__decorateClass([
|
|
2802
|
-
|
|
2950
|
+
Column25({ name: "billing_period", type: "varchar" })
|
|
2803
2951
|
], Plan.prototype, "billingPeriod", 2);
|
|
2804
2952
|
__decorateClass([
|
|
2805
|
-
|
|
2953
|
+
Column25({ name: "is_current", type: "boolean", default: false })
|
|
2806
2954
|
], Plan.prototype, "isCurrent", 2);
|
|
2807
2955
|
__decorateClass([
|
|
2808
2956
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2809
2957
|
JoinTable()
|
|
2810
2958
|
], Plan.prototype, "features", 2);
|
|
2811
2959
|
Plan = __decorateClass([
|
|
2812
|
-
|
|
2960
|
+
Entity24("plans")
|
|
2813
2961
|
], Plan);
|
|
2814
2962
|
export {
|
|
2815
2963
|
AUTHENTICATION_PATTERN,
|
|
@@ -2830,12 +2978,15 @@ export {
|
|
|
2830
2978
|
ClientProfileQuestionDto,
|
|
2831
2979
|
CompanyProfile,
|
|
2832
2980
|
CompanyRole,
|
|
2981
|
+
CreateCaseStudyDto,
|
|
2833
2982
|
CreateCompanyMemberDto,
|
|
2834
2983
|
CreateCompanyRoleDto,
|
|
2835
2984
|
CreateEducationDto,
|
|
2836
2985
|
CreateExperienceDto,
|
|
2837
2986
|
CreateFreelancerEducationDto,
|
|
2838
2987
|
CreateFreelancerExperienceDto,
|
|
2988
|
+
CreateFreelancerProjectDto,
|
|
2989
|
+
CreateProjectDto,
|
|
2839
2990
|
CreateQuestionDto,
|
|
2840
2991
|
CreateRatingDto,
|
|
2841
2992
|
CreateSubAdminDto,
|
|
@@ -2843,9 +2994,11 @@ export {
|
|
|
2843
2994
|
EmploymentType,
|
|
2844
2995
|
FREELANCER_EDUCATION_PATTERN,
|
|
2845
2996
|
FREELANCER_EXPERIENCE_PATTERN,
|
|
2997
|
+
FREELANCER_PROJECT_PATTERN,
|
|
2846
2998
|
Feature,
|
|
2847
2999
|
ForgotPasswordDto,
|
|
2848
3000
|
FreelancerBankDetailsDto,
|
|
3001
|
+
FreelancerCaseStudy,
|
|
2849
3002
|
FreelancerChangePasswordDto,
|
|
2850
3003
|
FreelancerCreateAccountDto,
|
|
2851
3004
|
FreelancerDevelopmentPreferenceDto,
|
|
@@ -2853,6 +3006,7 @@ export {
|
|
|
2853
3006
|
FreelancerExperience,
|
|
2854
3007
|
FreelancerProfile,
|
|
2855
3008
|
FreelancerProfileQuestionDto,
|
|
3009
|
+
FreelancerProject,
|
|
2856
3010
|
FreelancerUploadResumeDto,
|
|
2857
3011
|
FreelancerWorkShowcaseDto,
|
|
2858
3012
|
FromUsOn,
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './update-freelancer-project.dto';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class CreateProjectDto {
|
|
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 CreateCaseStudyDto {
|
|
11
|
+
uuid?: string;
|
|
12
|
+
projectName: string;
|
|
13
|
+
caseStudyLink: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class CreateFreelancerProjectDto {
|
|
17
|
+
project: CreateProjectDto[];
|
|
18
|
+
casestudy: CreateCaseStudyDto[];
|
|
19
|
+
}
|