@experts_hub/shared 1.0.179 → 1.0.181
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/company-role.entity.d.ts +3 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +30 -23
- package/dist/index.d.ts +30 -23
- package/dist/index.js +281 -234
- package/dist/index.mjs +347 -290
- package/dist/modules/company-role/company-role.interface.d.ts +2 -0
- package/dist/modules/company-role/dto/create-company-role.dto.d.ts +1 -0
- package/dist/modules/company-role/dto/update-company-role.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1060,10 +1060,18 @@ import {
|
|
|
1060
1060
|
} from "class-validator";
|
|
1061
1061
|
|
|
1062
1062
|
// src/entities/rating.entity.ts
|
|
1063
|
-
import { Entity as
|
|
1063
|
+
import { Entity as Entity27, Column as Column28, ManyToOne as ManyToOne25, JoinColumn as JoinColumn25, Index as Index24 } from "typeorm";
|
|
1064
1064
|
|
|
1065
1065
|
// src/entities/user.entity.ts
|
|
1066
|
-
import {
|
|
1066
|
+
import {
|
|
1067
|
+
Entity as Entity26,
|
|
1068
|
+
Column as Column27,
|
|
1069
|
+
OneToMany as OneToMany8,
|
|
1070
|
+
OneToOne,
|
|
1071
|
+
Index as Index23,
|
|
1072
|
+
ManyToOne as ManyToOne24,
|
|
1073
|
+
JoinColumn as JoinColumn24
|
|
1074
|
+
} from "typeorm";
|
|
1067
1075
|
|
|
1068
1076
|
// src/entities/base.entity.ts
|
|
1069
1077
|
import {
|
|
@@ -1423,7 +1431,7 @@ __decorateClass([
|
|
|
1423
1431
|
Index3()
|
|
1424
1432
|
], CompanyProfile.prototype, "userId", 2);
|
|
1425
1433
|
__decorateClass([
|
|
1426
|
-
ManyToOne5(() => User, (user) => user.
|
|
1434
|
+
ManyToOne5(() => User, (user) => user.companyProfile),
|
|
1427
1435
|
JoinColumn5({ name: "user_id" })
|
|
1428
1436
|
], CompanyProfile.prototype, "user", 2);
|
|
1429
1437
|
__decorateClass([
|
|
@@ -2039,231 +2047,330 @@ SystemPreference = __decorateClass([
|
|
|
2039
2047
|
Entity13("system_preferences")
|
|
2040
2048
|
], SystemPreference);
|
|
2041
2049
|
|
|
2042
|
-
// src/entities/
|
|
2050
|
+
// src/entities/company-role.entity.ts
|
|
2043
2051
|
import {
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
Index as
|
|
2052
|
+
Column as Column17,
|
|
2053
|
+
Entity as Entity16,
|
|
2054
|
+
Index as Index13,
|
|
2055
|
+
JoinColumn as JoinColumn14,
|
|
2056
|
+
ManyToOne as ManyToOne14,
|
|
2057
|
+
OneToMany as OneToMany7
|
|
2058
|
+
} from "typeorm";
|
|
2059
|
+
|
|
2060
|
+
// src/entities/company-role-permission.entity.ts
|
|
2061
|
+
import {
|
|
2062
|
+
Column as Column16,
|
|
2063
|
+
Entity as Entity15,
|
|
2047
2064
|
ManyToOne as ManyToOne13,
|
|
2048
|
-
JoinColumn as JoinColumn13
|
|
2065
|
+
JoinColumn as JoinColumn13,
|
|
2066
|
+
Index as Index12
|
|
2067
|
+
} from "typeorm";
|
|
2068
|
+
|
|
2069
|
+
// src/entities/permission.entity.ts
|
|
2070
|
+
import { Column as Column15, Entity as Entity14, Index as Index11 } from "typeorm";
|
|
2071
|
+
var Permission = class extends BaseEntity {
|
|
2072
|
+
};
|
|
2073
|
+
__decorateClass([
|
|
2074
|
+
Column15({ name: "name", type: "varchar", nullable: true })
|
|
2075
|
+
], Permission.prototype, "name", 2);
|
|
2076
|
+
__decorateClass([
|
|
2077
|
+
Column15({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2078
|
+
Index11()
|
|
2079
|
+
], Permission.prototype, "slug", 2);
|
|
2080
|
+
__decorateClass([
|
|
2081
|
+
Column15({ name: "description", type: "text", nullable: true })
|
|
2082
|
+
], Permission.prototype, "description", 2);
|
|
2083
|
+
__decorateClass([
|
|
2084
|
+
Column15({ name: "is_active", type: "boolean", default: true })
|
|
2085
|
+
], Permission.prototype, "isActive", 2);
|
|
2086
|
+
Permission = __decorateClass([
|
|
2087
|
+
Entity14("permissions")
|
|
2088
|
+
], Permission);
|
|
2089
|
+
|
|
2090
|
+
// src/entities/company-role-permission.entity.ts
|
|
2091
|
+
var CompanyRolePermission = class extends BaseEntity {
|
|
2092
|
+
};
|
|
2093
|
+
__decorateClass([
|
|
2094
|
+
Column16({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2095
|
+
Index12()
|
|
2096
|
+
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2097
|
+
__decorateClass([
|
|
2098
|
+
ManyToOne13(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2099
|
+
onDelete: "CASCADE"
|
|
2100
|
+
}),
|
|
2101
|
+
JoinColumn13({ name: "company_role_id" })
|
|
2102
|
+
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2103
|
+
__decorateClass([
|
|
2104
|
+
Column16({ name: "permission_id", type: "integer" }),
|
|
2105
|
+
Index12()
|
|
2106
|
+
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2107
|
+
__decorateClass([
|
|
2108
|
+
ManyToOne13(() => Permission, { onDelete: "CASCADE" }),
|
|
2109
|
+
JoinColumn13({ name: "permission_id" })
|
|
2110
|
+
], CompanyRolePermission.prototype, "permission", 2);
|
|
2111
|
+
__decorateClass([
|
|
2112
|
+
Column16({ name: "assigned_by", type: "integer", nullable: true })
|
|
2113
|
+
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2114
|
+
CompanyRolePermission = __decorateClass([
|
|
2115
|
+
Entity15("company_role_permissions")
|
|
2116
|
+
], CompanyRolePermission);
|
|
2117
|
+
|
|
2118
|
+
// src/entities/company-role.entity.ts
|
|
2119
|
+
var CompanyRole = class extends BaseEntity {
|
|
2120
|
+
};
|
|
2121
|
+
__decorateClass([
|
|
2122
|
+
Column17({ name: "user_id", type: "integer", nullable: true }),
|
|
2123
|
+
Index13()
|
|
2124
|
+
], CompanyRole.prototype, "userId", 2);
|
|
2125
|
+
__decorateClass([
|
|
2126
|
+
ManyToOne14(() => User, (user) => user.otps),
|
|
2127
|
+
JoinColumn14({ name: "user_id" })
|
|
2128
|
+
], CompanyRole.prototype, "user", 2);
|
|
2129
|
+
__decorateClass([
|
|
2130
|
+
Column17({ name: "name", type: "varchar" })
|
|
2131
|
+
], CompanyRole.prototype, "name", 2);
|
|
2132
|
+
__decorateClass([
|
|
2133
|
+
Column17({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2134
|
+
Index13()
|
|
2135
|
+
], CompanyRole.prototype, "slug", 2);
|
|
2136
|
+
__decorateClass([
|
|
2137
|
+
Column17({ name: "description", type: "text", nullable: true })
|
|
2138
|
+
], CompanyRole.prototype, "description", 2);
|
|
2139
|
+
__decorateClass([
|
|
2140
|
+
Column17({ name: "is_active", type: "boolean", default: true })
|
|
2141
|
+
], CompanyRole.prototype, "isActive", 2);
|
|
2142
|
+
__decorateClass([
|
|
2143
|
+
OneToMany7(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2144
|
+
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2145
|
+
CompanyRole = __decorateClass([
|
|
2146
|
+
Entity16("company_roles")
|
|
2147
|
+
], CompanyRole);
|
|
2148
|
+
|
|
2149
|
+
// src/entities/freelancer-experience.entity.ts
|
|
2150
|
+
import {
|
|
2151
|
+
Entity as Entity17,
|
|
2152
|
+
Column as Column18,
|
|
2153
|
+
Index as Index14,
|
|
2154
|
+
ManyToOne as ManyToOne15,
|
|
2155
|
+
JoinColumn as JoinColumn15
|
|
2049
2156
|
} from "typeorm";
|
|
2050
2157
|
var FreelancerExperience = class extends BaseEntity {
|
|
2051
2158
|
};
|
|
2052
2159
|
// individual index to find experence by user
|
|
2053
2160
|
__decorateClass([
|
|
2054
|
-
|
|
2055
|
-
|
|
2161
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2162
|
+
Index14()
|
|
2056
2163
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2057
2164
|
__decorateClass([
|
|
2058
|
-
|
|
2059
|
-
|
|
2165
|
+
ManyToOne15(() => User, (user) => user.freelancerExperience),
|
|
2166
|
+
JoinColumn15({ name: "user_id" })
|
|
2060
2167
|
], FreelancerExperience.prototype, "user", 2);
|
|
2061
2168
|
__decorateClass([
|
|
2062
|
-
|
|
2169
|
+
Column18({ name: "company_name", type: "varchar", nullable: true })
|
|
2063
2170
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2064
2171
|
__decorateClass([
|
|
2065
|
-
|
|
2172
|
+
Column18({ name: "designation", type: "varchar", nullable: true })
|
|
2066
2173
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2067
2174
|
__decorateClass([
|
|
2068
|
-
|
|
2175
|
+
Column18({ name: "job_duration", type: "varchar", nullable: true })
|
|
2069
2176
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2070
2177
|
__decorateClass([
|
|
2071
|
-
|
|
2178
|
+
Column18({ name: "description", type: "varchar", nullable: true })
|
|
2072
2179
|
], FreelancerExperience.prototype, "description", 2);
|
|
2073
2180
|
FreelancerExperience = __decorateClass([
|
|
2074
|
-
|
|
2181
|
+
Entity17("freelancer_experiences")
|
|
2075
2182
|
], FreelancerExperience);
|
|
2076
2183
|
|
|
2077
2184
|
// src/entities/freelancer-education.entity.ts
|
|
2078
2185
|
import {
|
|
2079
|
-
Entity as
|
|
2080
|
-
Column as
|
|
2081
|
-
Index as
|
|
2082
|
-
ManyToOne as
|
|
2083
|
-
JoinColumn as
|
|
2186
|
+
Entity as Entity18,
|
|
2187
|
+
Column as Column19,
|
|
2188
|
+
Index as Index15,
|
|
2189
|
+
ManyToOne as ManyToOne16,
|
|
2190
|
+
JoinColumn as JoinColumn16
|
|
2084
2191
|
} from "typeorm";
|
|
2085
2192
|
var FreelancerEducation = class extends BaseEntity {
|
|
2086
2193
|
};
|
|
2087
2194
|
// individual index to find education by user
|
|
2088
2195
|
__decorateClass([
|
|
2089
|
-
|
|
2090
|
-
|
|
2196
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2197
|
+
Index15()
|
|
2091
2198
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2092
2199
|
__decorateClass([
|
|
2093
|
-
|
|
2094
|
-
|
|
2200
|
+
ManyToOne16(() => User, (user) => user.freelancerEducation),
|
|
2201
|
+
JoinColumn16({ name: "user_id" })
|
|
2095
2202
|
], FreelancerEducation.prototype, "user", 2);
|
|
2096
2203
|
__decorateClass([
|
|
2097
|
-
|
|
2204
|
+
Column19({ name: "degree", type: "varchar", nullable: true })
|
|
2098
2205
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2099
2206
|
__decorateClass([
|
|
2100
|
-
|
|
2207
|
+
Column19({ name: "university", type: "varchar", nullable: true })
|
|
2101
2208
|
], FreelancerEducation.prototype, "university", 2);
|
|
2102
2209
|
__decorateClass([
|
|
2103
|
-
|
|
2210
|
+
Column19({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2104
2211
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2105
2212
|
FreelancerEducation = __decorateClass([
|
|
2106
|
-
|
|
2213
|
+
Entity18("freelancer_educations")
|
|
2107
2214
|
], FreelancerEducation);
|
|
2108
2215
|
|
|
2109
2216
|
// src/entities/freelancer-project.entity.ts
|
|
2110
2217
|
import {
|
|
2111
|
-
Entity as
|
|
2112
|
-
Column as
|
|
2113
|
-
Index as
|
|
2114
|
-
ManyToOne as
|
|
2115
|
-
JoinColumn as
|
|
2218
|
+
Entity as Entity19,
|
|
2219
|
+
Column as Column20,
|
|
2220
|
+
Index as Index16,
|
|
2221
|
+
ManyToOne as ManyToOne17,
|
|
2222
|
+
JoinColumn as JoinColumn17
|
|
2116
2223
|
} from "typeorm";
|
|
2117
2224
|
var FreelancerProject = class extends BaseEntity {
|
|
2118
2225
|
};
|
|
2119
2226
|
// individual index to find project by user
|
|
2120
2227
|
__decorateClass([
|
|
2121
|
-
|
|
2122
|
-
|
|
2228
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2229
|
+
Index16()
|
|
2123
2230
|
], FreelancerProject.prototype, "userId", 2);
|
|
2124
2231
|
__decorateClass([
|
|
2125
|
-
|
|
2126
|
-
|
|
2232
|
+
ManyToOne17(() => User, (user) => user.freelancerProject),
|
|
2233
|
+
JoinColumn17({ name: "user_id" })
|
|
2127
2234
|
], FreelancerProject.prototype, "user", 2);
|
|
2128
2235
|
__decorateClass([
|
|
2129
|
-
|
|
2236
|
+
Column20({ name: "project_name", type: "varchar", nullable: true })
|
|
2130
2237
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2131
2238
|
__decorateClass([
|
|
2132
|
-
|
|
2239
|
+
Column20({ name: "start_date", type: "date", nullable: true })
|
|
2133
2240
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2134
2241
|
__decorateClass([
|
|
2135
|
-
|
|
2242
|
+
Column20({ name: "end_date", type: "date", nullable: true })
|
|
2136
2243
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2137
2244
|
__decorateClass([
|
|
2138
|
-
|
|
2245
|
+
Column20({ name: "client_name", type: "varchar", nullable: true })
|
|
2139
2246
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2140
2247
|
__decorateClass([
|
|
2141
|
-
|
|
2248
|
+
Column20({ name: "git_link", type: "varchar", nullable: true })
|
|
2142
2249
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2143
2250
|
__decorateClass([
|
|
2144
|
-
|
|
2251
|
+
Column20({ name: "description", type: "varchar", nullable: true })
|
|
2145
2252
|
], FreelancerProject.prototype, "description", 2);
|
|
2146
2253
|
FreelancerProject = __decorateClass([
|
|
2147
|
-
|
|
2254
|
+
Entity19("freelancer_projects")
|
|
2148
2255
|
], FreelancerProject);
|
|
2149
2256
|
|
|
2150
2257
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2151
2258
|
import {
|
|
2152
|
-
Entity as
|
|
2153
|
-
Column as
|
|
2154
|
-
Index as
|
|
2155
|
-
ManyToOne as
|
|
2156
|
-
JoinColumn as
|
|
2259
|
+
Entity as Entity20,
|
|
2260
|
+
Column as Column21,
|
|
2261
|
+
Index as Index17,
|
|
2262
|
+
ManyToOne as ManyToOne18,
|
|
2263
|
+
JoinColumn as JoinColumn18
|
|
2157
2264
|
} from "typeorm";
|
|
2158
2265
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2159
2266
|
};
|
|
2160
2267
|
// individual index to find case study by user
|
|
2161
2268
|
__decorateClass([
|
|
2162
|
-
|
|
2163
|
-
|
|
2269
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2270
|
+
Index17()
|
|
2164
2271
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2165
2272
|
__decorateClass([
|
|
2166
|
-
|
|
2167
|
-
|
|
2273
|
+
ManyToOne18(() => User, (user) => user.freelancerCaseStudy),
|
|
2274
|
+
JoinColumn18({ name: "user_id" })
|
|
2168
2275
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2169
2276
|
__decorateClass([
|
|
2170
|
-
|
|
2277
|
+
Column21({ name: "project_name", type: "varchar", nullable: true })
|
|
2171
2278
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2172
2279
|
__decorateClass([
|
|
2173
|
-
|
|
2280
|
+
Column21({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2174
2281
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2175
2282
|
__decorateClass([
|
|
2176
|
-
|
|
2283
|
+
Column21({ name: "description", type: "varchar", nullable: true })
|
|
2177
2284
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2178
2285
|
FreelancerCaseStudy = __decorateClass([
|
|
2179
|
-
|
|
2286
|
+
Entity20("freelancer_case_studies")
|
|
2180
2287
|
], FreelancerCaseStudy);
|
|
2181
2288
|
|
|
2182
2289
|
// src/entities/freelancer-coreskill.entity.ts
|
|
2183
2290
|
import {
|
|
2184
|
-
Entity as
|
|
2185
|
-
Column as
|
|
2186
|
-
Index as
|
|
2187
|
-
ManyToOne as
|
|
2188
|
-
JoinColumn as
|
|
2291
|
+
Entity as Entity21,
|
|
2292
|
+
Column as Column22,
|
|
2293
|
+
Index as Index18,
|
|
2294
|
+
ManyToOne as ManyToOne19,
|
|
2295
|
+
JoinColumn as JoinColumn19
|
|
2189
2296
|
} from "typeorm";
|
|
2190
2297
|
var FreelancerCoreSkill = class extends BaseEntity {
|
|
2191
2298
|
};
|
|
2192
2299
|
// individual index to find core skills by user
|
|
2193
2300
|
__decorateClass([
|
|
2194
|
-
|
|
2195
|
-
|
|
2301
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2302
|
+
Index18()
|
|
2196
2303
|
], FreelancerCoreSkill.prototype, "userId", 2);
|
|
2197
2304
|
__decorateClass([
|
|
2198
|
-
|
|
2199
|
-
|
|
2305
|
+
ManyToOne19(() => User, (user) => user.freelancerCoreSkill),
|
|
2306
|
+
JoinColumn19({ name: "user_id" })
|
|
2200
2307
|
], FreelancerCoreSkill.prototype, "user", 2);
|
|
2201
2308
|
__decorateClass([
|
|
2202
|
-
|
|
2309
|
+
Column22({ name: "skill_name", type: "varchar", nullable: true })
|
|
2203
2310
|
], FreelancerCoreSkill.prototype, "skillName", 2);
|
|
2204
2311
|
FreelancerCoreSkill = __decorateClass([
|
|
2205
|
-
|
|
2312
|
+
Entity21("freelancer_coreskills")
|
|
2206
2313
|
], FreelancerCoreSkill);
|
|
2207
2314
|
|
|
2208
2315
|
// src/entities/freelancer-tool.entity.ts
|
|
2209
2316
|
import {
|
|
2210
|
-
Entity as
|
|
2211
|
-
Column as
|
|
2212
|
-
Index as
|
|
2213
|
-
ManyToOne as
|
|
2214
|
-
JoinColumn as
|
|
2317
|
+
Entity as Entity22,
|
|
2318
|
+
Column as Column23,
|
|
2319
|
+
Index as Index19,
|
|
2320
|
+
ManyToOne as ManyToOne20,
|
|
2321
|
+
JoinColumn as JoinColumn20
|
|
2215
2322
|
} from "typeorm";
|
|
2216
2323
|
var FreelancerTool = class extends BaseEntity {
|
|
2217
2324
|
};
|
|
2218
2325
|
// individual index to find tool by user
|
|
2219
2326
|
__decorateClass([
|
|
2220
|
-
|
|
2221
|
-
|
|
2327
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2328
|
+
Index19()
|
|
2222
2329
|
], FreelancerTool.prototype, "userId", 2);
|
|
2223
2330
|
__decorateClass([
|
|
2224
|
-
|
|
2225
|
-
|
|
2331
|
+
ManyToOne20(() => User, (user) => user.freelancerTool),
|
|
2332
|
+
JoinColumn20({ name: "user_id" })
|
|
2226
2333
|
], FreelancerTool.prototype, "user", 2);
|
|
2227
2334
|
__decorateClass([
|
|
2228
|
-
|
|
2335
|
+
Column23({ name: "tool_name", type: "varchar", nullable: true })
|
|
2229
2336
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2230
2337
|
FreelancerTool = __decorateClass([
|
|
2231
|
-
|
|
2338
|
+
Entity22("freelancer_tools")
|
|
2232
2339
|
], FreelancerTool);
|
|
2233
2340
|
|
|
2234
2341
|
// src/entities/freelancer-framework.entity.ts
|
|
2235
2342
|
import {
|
|
2236
|
-
Entity as
|
|
2237
|
-
Column as
|
|
2238
|
-
Index as
|
|
2239
|
-
ManyToOne as
|
|
2240
|
-
JoinColumn as
|
|
2343
|
+
Entity as Entity23,
|
|
2344
|
+
Column as Column24,
|
|
2345
|
+
Index as Index20,
|
|
2346
|
+
ManyToOne as ManyToOne21,
|
|
2347
|
+
JoinColumn as JoinColumn21
|
|
2241
2348
|
} from "typeorm";
|
|
2242
2349
|
var FreelancerFramework = class extends BaseEntity {
|
|
2243
2350
|
};
|
|
2244
2351
|
// individual index to find framework by user
|
|
2245
2352
|
__decorateClass([
|
|
2246
|
-
|
|
2247
|
-
|
|
2353
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
2354
|
+
Index20()
|
|
2248
2355
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2249
2356
|
__decorateClass([
|
|
2250
|
-
|
|
2251
|
-
|
|
2357
|
+
ManyToOne21(() => User, (user) => user.freelancerFramework),
|
|
2358
|
+
JoinColumn21({ name: "user_id" })
|
|
2252
2359
|
], FreelancerFramework.prototype, "user", 2);
|
|
2253
2360
|
__decorateClass([
|
|
2254
|
-
|
|
2361
|
+
Column24({ name: "framework_name", type: "varchar", nullable: true })
|
|
2255
2362
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2256
2363
|
FreelancerFramework = __decorateClass([
|
|
2257
|
-
|
|
2364
|
+
Entity23("freelancer_frameworks")
|
|
2258
2365
|
], FreelancerFramework);
|
|
2259
2366
|
|
|
2260
2367
|
// src/entities/freelancer-assessment.entity.ts
|
|
2261
2368
|
import {
|
|
2262
|
-
Entity as
|
|
2263
|
-
Column as
|
|
2264
|
-
Index as
|
|
2265
|
-
ManyToOne as
|
|
2266
|
-
JoinColumn as
|
|
2369
|
+
Entity as Entity24,
|
|
2370
|
+
Column as Column25,
|
|
2371
|
+
Index as Index21,
|
|
2372
|
+
ManyToOne as ManyToOne22,
|
|
2373
|
+
JoinColumn as JoinColumn22
|
|
2267
2374
|
} from "typeorm";
|
|
2268
2375
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2269
2376
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -2278,21 +2385,21 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2278
2385
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2279
2386
|
};
|
|
2280
2387
|
__decorateClass([
|
|
2281
|
-
|
|
2282
|
-
|
|
2388
|
+
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
2389
|
+
Index21()
|
|
2283
2390
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2284
2391
|
__decorateClass([
|
|
2285
|
-
|
|
2286
|
-
|
|
2392
|
+
ManyToOne22(() => User, (user) => user.assessments),
|
|
2393
|
+
JoinColumn22({ name: "user_id" })
|
|
2287
2394
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2288
2395
|
__decorateClass([
|
|
2289
|
-
|
|
2396
|
+
Column25({ name: "interview_id", type: "varchar", nullable: true })
|
|
2290
2397
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2291
2398
|
__decorateClass([
|
|
2292
|
-
|
|
2399
|
+
Column25({ name: "interview_link", type: "text", nullable: true })
|
|
2293
2400
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2294
2401
|
__decorateClass([
|
|
2295
|
-
|
|
2402
|
+
Column25({
|
|
2296
2403
|
name: "status",
|
|
2297
2404
|
type: "enum",
|
|
2298
2405
|
enum: AssessmentStatusEnum,
|
|
@@ -2300,16 +2407,16 @@ __decorateClass([
|
|
|
2300
2407
|
})
|
|
2301
2408
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2302
2409
|
FreelancerAssessment = __decorateClass([
|
|
2303
|
-
|
|
2410
|
+
Entity24("freelancer_assessments")
|
|
2304
2411
|
], FreelancerAssessment);
|
|
2305
2412
|
|
|
2306
2413
|
// src/entities/freelancer-declaration.entity.ts
|
|
2307
2414
|
import {
|
|
2308
|
-
Entity as
|
|
2309
|
-
Column as
|
|
2310
|
-
Index as
|
|
2311
|
-
ManyToOne as
|
|
2312
|
-
JoinColumn as
|
|
2415
|
+
Entity as Entity25,
|
|
2416
|
+
Column as Column26,
|
|
2417
|
+
Index as Index22,
|
|
2418
|
+
ManyToOne as ManyToOne23,
|
|
2419
|
+
JoinColumn as JoinColumn23
|
|
2313
2420
|
} from "typeorm";
|
|
2314
2421
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2315
2422
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -2322,15 +2429,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2322
2429
|
};
|
|
2323
2430
|
// individual index to find declaration by user
|
|
2324
2431
|
__decorateClass([
|
|
2325
|
-
|
|
2326
|
-
|
|
2432
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
2433
|
+
Index22()
|
|
2327
2434
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2328
2435
|
__decorateClass([
|
|
2329
|
-
|
|
2330
|
-
|
|
2436
|
+
ManyToOne23(() => User, (user) => user.freelancerDeclaration),
|
|
2437
|
+
JoinColumn23({ name: "user_id" })
|
|
2331
2438
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2332
2439
|
__decorateClass([
|
|
2333
|
-
|
|
2440
|
+
Column26({
|
|
2334
2441
|
name: "document_type",
|
|
2335
2442
|
type: "enum",
|
|
2336
2443
|
enum: DocumentType,
|
|
@@ -2338,19 +2445,19 @@ __decorateClass([
|
|
|
2338
2445
|
})
|
|
2339
2446
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2340
2447
|
__decorateClass([
|
|
2341
|
-
|
|
2448
|
+
Column26({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2342
2449
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2343
2450
|
__decorateClass([
|
|
2344
|
-
|
|
2451
|
+
Column26({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2345
2452
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2346
2453
|
__decorateClass([
|
|
2347
|
-
|
|
2454
|
+
Column26({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2348
2455
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2349
2456
|
__decorateClass([
|
|
2350
|
-
|
|
2457
|
+
Column26({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2351
2458
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2352
2459
|
FreelancerDeclaration = __decorateClass([
|
|
2353
|
-
|
|
2460
|
+
Entity25("freelancer_declaration")
|
|
2354
2461
|
], FreelancerDeclaration);
|
|
2355
2462
|
|
|
2356
2463
|
// src/entities/user.entity.ts
|
|
@@ -2378,51 +2485,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2378
2485
|
var User = class extends BaseEntity {
|
|
2379
2486
|
};
|
|
2380
2487
|
__decorateClass([
|
|
2381
|
-
|
|
2488
|
+
Column27({ name: "unique_id", type: "varchar", unique: true })
|
|
2382
2489
|
], User.prototype, "uniqueId", 2);
|
|
2383
2490
|
__decorateClass([
|
|
2384
|
-
|
|
2385
|
-
|
|
2491
|
+
Column27({ name: "parent_id", type: "integer", nullable: true }),
|
|
2492
|
+
Index23()
|
|
2386
2493
|
], User.prototype, "parentId", 2);
|
|
2387
2494
|
__decorateClass([
|
|
2388
|
-
|
|
2389
|
-
|
|
2495
|
+
ManyToOne24(() => User, (user) => user.children, { nullable: true }),
|
|
2496
|
+
JoinColumn24({ name: "parent_id" })
|
|
2390
2497
|
], User.prototype, "parent", 2);
|
|
2391
2498
|
__decorateClass([
|
|
2392
|
-
|
|
2499
|
+
OneToMany8(() => User, (user) => user.parent)
|
|
2393
2500
|
], User.prototype, "children", 2);
|
|
2394
2501
|
__decorateClass([
|
|
2395
|
-
|
|
2502
|
+
Column27({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2396
2503
|
], User.prototype, "username", 2);
|
|
2397
2504
|
__decorateClass([
|
|
2398
|
-
|
|
2505
|
+
Column27({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2399
2506
|
], User.prototype, "firstName", 2);
|
|
2400
2507
|
__decorateClass([
|
|
2401
|
-
|
|
2508
|
+
Column27({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2402
2509
|
], User.prototype, "lastName", 2);
|
|
2403
2510
|
__decorateClass([
|
|
2404
|
-
|
|
2511
|
+
Column27({ name: "date_of_birth", type: "date", nullable: true })
|
|
2405
2512
|
], User.prototype, "dateOfBirth", 2);
|
|
2406
2513
|
__decorateClass([
|
|
2407
|
-
|
|
2514
|
+
Column27({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2408
2515
|
], User.prototype, "gender", 2);
|
|
2409
2516
|
__decorateClass([
|
|
2410
|
-
|
|
2517
|
+
Column27({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2411
2518
|
], User.prototype, "profilePictureUrl", 2);
|
|
2412
2519
|
__decorateClass([
|
|
2413
|
-
|
|
2520
|
+
Column27({ name: "email", type: "varchar", unique: true })
|
|
2414
2521
|
], User.prototype, "email", 2);
|
|
2415
2522
|
__decorateClass([
|
|
2416
|
-
|
|
2523
|
+
Column27({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2417
2524
|
], User.prototype, "mobileCode", 2);
|
|
2418
2525
|
__decorateClass([
|
|
2419
|
-
|
|
2526
|
+
Column27({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2420
2527
|
], User.prototype, "mobile", 2);
|
|
2421
2528
|
__decorateClass([
|
|
2422
|
-
|
|
2529
|
+
Column27({ name: "password", type: "varchar", nullable: true })
|
|
2423
2530
|
], User.prototype, "password", 2);
|
|
2424
2531
|
__decorateClass([
|
|
2425
|
-
|
|
2532
|
+
Column27({
|
|
2426
2533
|
name: "account_type",
|
|
2427
2534
|
type: "enum",
|
|
2428
2535
|
enum: AccountType,
|
|
@@ -2430,7 +2537,7 @@ __decorateClass([
|
|
|
2430
2537
|
})
|
|
2431
2538
|
], User.prototype, "accountType", 2);
|
|
2432
2539
|
__decorateClass([
|
|
2433
|
-
|
|
2540
|
+
Column27({
|
|
2434
2541
|
name: "account_status",
|
|
2435
2542
|
type: "enum",
|
|
2436
2543
|
enum: AccountStatus,
|
|
@@ -2438,36 +2545,36 @@ __decorateClass([
|
|
|
2438
2545
|
})
|
|
2439
2546
|
], User.prototype, "accountStatus", 2);
|
|
2440
2547
|
__decorateClass([
|
|
2441
|
-
|
|
2548
|
+
Column27({ name: "is_email_verified", type: "boolean", default: false })
|
|
2442
2549
|
], User.prototype, "isEmailVerified", 2);
|
|
2443
2550
|
__decorateClass([
|
|
2444
|
-
|
|
2551
|
+
Column27({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2445
2552
|
], User.prototype, "isMobileVerified", 2);
|
|
2446
2553
|
__decorateClass([
|
|
2447
|
-
|
|
2554
|
+
Column27({
|
|
2448
2555
|
name: "last_login_at",
|
|
2449
2556
|
type: "timestamp with time zone",
|
|
2450
2557
|
nullable: true
|
|
2451
2558
|
})
|
|
2452
2559
|
], User.prototype, "lastLoginAt", 2);
|
|
2453
2560
|
__decorateClass([
|
|
2454
|
-
|
|
2561
|
+
Column27({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2455
2562
|
], User.prototype, "lastLoginIp", 2);
|
|
2456
2563
|
__decorateClass([
|
|
2457
|
-
|
|
2564
|
+
Column27({ name: "reset_token", type: "varchar", nullable: true })
|
|
2458
2565
|
], User.prototype, "resetToken", 2);
|
|
2459
2566
|
__decorateClass([
|
|
2460
|
-
|
|
2567
|
+
Column27({
|
|
2461
2568
|
name: "reset_token_expire_at",
|
|
2462
2569
|
type: "timestamp with time zone",
|
|
2463
2570
|
nullable: true
|
|
2464
2571
|
})
|
|
2465
2572
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2466
2573
|
__decorateClass([
|
|
2467
|
-
|
|
2574
|
+
OneToMany8(() => RefreshToken, (token) => token.user)
|
|
2468
2575
|
], User.prototype, "refreshTokens", 2);
|
|
2469
2576
|
__decorateClass([
|
|
2470
|
-
|
|
2577
|
+
Column27({
|
|
2471
2578
|
name: "provider",
|
|
2472
2579
|
type: "enum",
|
|
2473
2580
|
enum: Provider,
|
|
@@ -2476,22 +2583,22 @@ __decorateClass([
|
|
|
2476
2583
|
})
|
|
2477
2584
|
], User.prototype, "provider", 2);
|
|
2478
2585
|
__decorateClass([
|
|
2479
|
-
|
|
2586
|
+
Column27({ name: "provider_token", type: "varchar", nullable: true })
|
|
2480
2587
|
], User.prototype, "providerToken", 2);
|
|
2481
2588
|
__decorateClass([
|
|
2482
|
-
|
|
2589
|
+
Column27({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2483
2590
|
], User.prototype, "linkedInId", 2);
|
|
2484
2591
|
__decorateClass([
|
|
2485
|
-
|
|
2592
|
+
Column27({ name: "google_id", type: "varchar", nullable: true })
|
|
2486
2593
|
], User.prototype, "googleId", 2);
|
|
2487
2594
|
__decorateClass([
|
|
2488
|
-
|
|
2595
|
+
Column27({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2489
2596
|
], User.prototype, "gitLabsId", 2);
|
|
2490
2597
|
__decorateClass([
|
|
2491
|
-
|
|
2598
|
+
OneToMany8(() => Otp, (otp) => otp.user)
|
|
2492
2599
|
], User.prototype, "otps", 2);
|
|
2493
2600
|
__decorateClass([
|
|
2494
|
-
|
|
2601
|
+
OneToMany8(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2495
2602
|
], User.prototype, "senseloafLogs", 2);
|
|
2496
2603
|
__decorateClass([
|
|
2497
2604
|
OneToOne(
|
|
@@ -2500,61 +2607,90 @@ __decorateClass([
|
|
|
2500
2607
|
)
|
|
2501
2608
|
], User.prototype, "freelancerProfile", 2);
|
|
2502
2609
|
__decorateClass([
|
|
2503
|
-
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user, {
|
|
2610
|
+
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user, {
|
|
2611
|
+
cascade: true
|
|
2612
|
+
})
|
|
2504
2613
|
], User.prototype, "companyProfile", 2);
|
|
2505
2614
|
__decorateClass([
|
|
2506
|
-
|
|
2615
|
+
OneToMany8(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2616
|
+
], User.prototype, "companyRoles", 2);
|
|
2617
|
+
__decorateClass([
|
|
2618
|
+
OneToMany8(
|
|
2619
|
+
() => FreelancerAssessment,
|
|
2620
|
+
(freelancerAssessment) => freelancerAssessment.user
|
|
2621
|
+
)
|
|
2507
2622
|
], User.prototype, "assessments", 2);
|
|
2508
2623
|
__decorateClass([
|
|
2509
|
-
|
|
2624
|
+
OneToMany8(() => Job, (job) => job.user)
|
|
2510
2625
|
], User.prototype, "jobs", 2);
|
|
2511
2626
|
__decorateClass([
|
|
2512
|
-
|
|
2627
|
+
OneToMany8(() => Interview, (interview) => interview.user)
|
|
2513
2628
|
], User.prototype, "interviews", 2);
|
|
2514
2629
|
__decorateClass([
|
|
2515
|
-
|
|
2630
|
+
OneToMany8(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2516
2631
|
], User.prototype, "bankDetail", 2);
|
|
2517
2632
|
__decorateClass([
|
|
2518
|
-
|
|
2633
|
+
OneToMany8(
|
|
2519
2634
|
() => SystemPreference,
|
|
2520
2635
|
(systemPreference) => systemPreference.user
|
|
2521
2636
|
)
|
|
2522
2637
|
], User.prototype, "systemPreference", 2);
|
|
2523
2638
|
__decorateClass([
|
|
2524
|
-
|
|
2639
|
+
OneToMany8(() => Rating, (rating) => rating.reviewer)
|
|
2525
2640
|
], User.prototype, "givenRatings", 2);
|
|
2526
2641
|
__decorateClass([
|
|
2527
|
-
|
|
2642
|
+
OneToMany8(() => Rating, (rating) => rating.reviewee)
|
|
2528
2643
|
], User.prototype, "receivedRatings", 2);
|
|
2529
2644
|
__decorateClass([
|
|
2530
|
-
|
|
2645
|
+
OneToMany8(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2531
2646
|
], User.prototype, "jobApplications", 2);
|
|
2532
2647
|
__decorateClass([
|
|
2533
|
-
OneToOne(
|
|
2648
|
+
OneToOne(
|
|
2649
|
+
() => FreelancerExperience,
|
|
2650
|
+
(freelancerExperience) => freelancerExperience.user
|
|
2651
|
+
)
|
|
2534
2652
|
], User.prototype, "freelancerExperience", 2);
|
|
2535
2653
|
__decorateClass([
|
|
2536
|
-
OneToOne(
|
|
2654
|
+
OneToOne(
|
|
2655
|
+
() => FreelancerEducation,
|
|
2656
|
+
(freelancerEducation) => freelancerEducation.user
|
|
2657
|
+
)
|
|
2537
2658
|
], User.prototype, "freelancerEducation", 2);
|
|
2538
2659
|
__decorateClass([
|
|
2539
|
-
OneToOne(
|
|
2660
|
+
OneToOne(
|
|
2661
|
+
() => FreelancerProject,
|
|
2662
|
+
(freelancerProject) => freelancerProject.user
|
|
2663
|
+
)
|
|
2540
2664
|
], User.prototype, "freelancerProject", 2);
|
|
2541
2665
|
__decorateClass([
|
|
2542
|
-
OneToOne(
|
|
2666
|
+
OneToOne(
|
|
2667
|
+
() => FreelancerCaseStudy,
|
|
2668
|
+
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
2669
|
+
)
|
|
2543
2670
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
2544
2671
|
__decorateClass([
|
|
2545
|
-
OneToOne(
|
|
2672
|
+
OneToOne(
|
|
2673
|
+
() => FreelancerCoreSkill,
|
|
2674
|
+
(freelancerCoreSkill) => freelancerCoreSkill.user
|
|
2675
|
+
)
|
|
2546
2676
|
], User.prototype, "freelancerCoreSkill", 2);
|
|
2547
2677
|
__decorateClass([
|
|
2548
2678
|
OneToOne(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
2549
2679
|
], User.prototype, "freelancerTool", 2);
|
|
2550
2680
|
__decorateClass([
|
|
2551
|
-
OneToOne(
|
|
2681
|
+
OneToOne(
|
|
2682
|
+
() => FreelancerFramework,
|
|
2683
|
+
(freelancerFramework) => freelancerFramework.user
|
|
2684
|
+
)
|
|
2552
2685
|
], User.prototype, "freelancerFramework", 2);
|
|
2553
2686
|
__decorateClass([
|
|
2554
|
-
OneToOne(
|
|
2687
|
+
OneToOne(
|
|
2688
|
+
() => FreelancerDeclaration,
|
|
2689
|
+
(freelancerDeclaration) => freelancerDeclaration.user
|
|
2690
|
+
)
|
|
2555
2691
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2556
2692
|
User = __decorateClass([
|
|
2557
|
-
|
|
2693
|
+
Entity26("users")
|
|
2558
2694
|
], User);
|
|
2559
2695
|
|
|
2560
2696
|
// src/entities/rating.entity.ts
|
|
@@ -2566,36 +2702,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2566
2702
|
var Rating = class extends BaseEntity {
|
|
2567
2703
|
};
|
|
2568
2704
|
__decorateClass([
|
|
2569
|
-
|
|
2570
|
-
|
|
2705
|
+
Column28({ name: "reviewer_id", type: "integer" }),
|
|
2706
|
+
Index24()
|
|
2571
2707
|
], Rating.prototype, "reviewer_id", 2);
|
|
2572
2708
|
__decorateClass([
|
|
2573
|
-
|
|
2574
|
-
|
|
2709
|
+
ManyToOne25(() => User, { onDelete: "CASCADE" }),
|
|
2710
|
+
JoinColumn25({ name: "reviewer_id" })
|
|
2575
2711
|
], Rating.prototype, "reviewer", 2);
|
|
2576
2712
|
__decorateClass([
|
|
2577
|
-
|
|
2578
|
-
|
|
2713
|
+
Column28({ name: "reviewee_id", type: "integer" }),
|
|
2714
|
+
Index24()
|
|
2579
2715
|
], Rating.prototype, "reviewee_id", 2);
|
|
2580
2716
|
__decorateClass([
|
|
2581
|
-
|
|
2582
|
-
|
|
2717
|
+
ManyToOne25(() => User, { onDelete: "CASCADE" }),
|
|
2718
|
+
JoinColumn25({ name: "reviewee_id" })
|
|
2583
2719
|
], Rating.prototype, "reviewee", 2);
|
|
2584
2720
|
__decorateClass([
|
|
2585
|
-
|
|
2721
|
+
Column28({
|
|
2586
2722
|
type: "enum",
|
|
2587
2723
|
enum: RatingTypeEnum,
|
|
2588
2724
|
nullable: true
|
|
2589
2725
|
})
|
|
2590
2726
|
], Rating.prototype, "ratingType", 2);
|
|
2591
2727
|
__decorateClass([
|
|
2592
|
-
|
|
2728
|
+
Column28({ type: "integer", nullable: true })
|
|
2593
2729
|
], Rating.prototype, "rating", 2);
|
|
2594
2730
|
__decorateClass([
|
|
2595
|
-
|
|
2731
|
+
Column28({ type: "text", nullable: true })
|
|
2596
2732
|
], Rating.prototype, "review", 2);
|
|
2597
2733
|
Rating = __decorateClass([
|
|
2598
|
-
|
|
2734
|
+
Entity27("ratings")
|
|
2599
2735
|
], Rating);
|
|
2600
2736
|
|
|
2601
2737
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2633,7 +2769,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
2633
2769
|
};
|
|
2634
2770
|
|
|
2635
2771
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
2636
|
-
import { IsBoolean as IsBoolean6, IsNotEmpty as IsNotEmpty30, IsOptional as IsOptional10 } from "class-validator";
|
|
2772
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as IsNotEmpty30, IsOptional as IsOptional10 } from "class-validator";
|
|
2637
2773
|
var CreateCompanyRoleDto = class {
|
|
2638
2774
|
};
|
|
2639
2775
|
__decorateClass([
|
|
@@ -2645,13 +2781,18 @@ __decorateClass([
|
|
|
2645
2781
|
__decorateClass([
|
|
2646
2782
|
IsNotEmpty30({ message: "Please enter description" })
|
|
2647
2783
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
2784
|
+
__decorateClass([
|
|
2785
|
+
IsArray2({ message: "Permission IDs must be an array." }),
|
|
2786
|
+
ArrayNotEmpty2({ message: "Please select at least one permission." }),
|
|
2787
|
+
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
2788
|
+
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
2648
2789
|
__decorateClass([
|
|
2649
2790
|
IsOptional10(),
|
|
2650
2791
|
IsBoolean6({ message: "Is active must be a boolean value" })
|
|
2651
2792
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
2652
2793
|
|
|
2653
2794
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
2654
|
-
import { IsBoolean as IsBoolean7, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional11 } from "class-validator";
|
|
2795
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional11 } from "class-validator";
|
|
2655
2796
|
var UpdateCompanyRoleDto = class {
|
|
2656
2797
|
};
|
|
2657
2798
|
__decorateClass([
|
|
@@ -2663,6 +2804,11 @@ __decorateClass([
|
|
|
2663
2804
|
__decorateClass([
|
|
2664
2805
|
IsNotEmpty31({ message: "Please enter description" })
|
|
2665
2806
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2807
|
+
__decorateClass([
|
|
2808
|
+
IsArray3({ message: "Permission IDs must be an array." }),
|
|
2809
|
+
ArrayNotEmpty3({ message: "Please select at least one permission." }),
|
|
2810
|
+
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
2811
|
+
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
2666
2812
|
__decorateClass([
|
|
2667
2813
|
IsOptional11(),
|
|
2668
2814
|
IsBoolean7({ message: "Is active must be a boolean value" })
|
|
@@ -2771,7 +2917,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
2771
2917
|
};
|
|
2772
2918
|
|
|
2773
2919
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
2774
|
-
import { IsArray as
|
|
2920
|
+
import { IsArray as IsArray4, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional15 } from "class-validator";
|
|
2775
2921
|
import { Type as Type3 } from "class-transformer";
|
|
2776
2922
|
var EducationDto = class {
|
|
2777
2923
|
};
|
|
@@ -2793,7 +2939,7 @@ __decorateClass([
|
|
|
2793
2939
|
var FreelancerEducationDto = class {
|
|
2794
2940
|
};
|
|
2795
2941
|
__decorateClass([
|
|
2796
|
-
|
|
2942
|
+
IsArray4(),
|
|
2797
2943
|
ValidateNested2({ each: true }),
|
|
2798
2944
|
Type3(() => EducationDto)
|
|
2799
2945
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
@@ -2805,7 +2951,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
2805
2951
|
};
|
|
2806
2952
|
|
|
2807
2953
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
2808
|
-
import { IsArray as
|
|
2954
|
+
import { IsArray as IsArray5, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength12 } from "class-validator";
|
|
2809
2955
|
import { Type as Type4 } from "class-transformer";
|
|
2810
2956
|
var ProjectDto = class {
|
|
2811
2957
|
};
|
|
@@ -2858,12 +3004,12 @@ __decorateClass([
|
|
|
2858
3004
|
var FreelancerProjectDto = class {
|
|
2859
3005
|
};
|
|
2860
3006
|
__decorateClass([
|
|
2861
|
-
|
|
3007
|
+
IsArray5(),
|
|
2862
3008
|
ValidateNested3({ each: true }),
|
|
2863
3009
|
Type4(() => ProjectDto)
|
|
2864
3010
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
2865
3011
|
__decorateClass([
|
|
2866
|
-
|
|
3012
|
+
IsArray5(),
|
|
2867
3013
|
ValidateNested3({ each: true }),
|
|
2868
3014
|
Type4(() => CaseStudyDto)
|
|
2869
3015
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
@@ -2880,7 +3026,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
2880
3026
|
};
|
|
2881
3027
|
|
|
2882
3028
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
2883
|
-
import { IsArray as
|
|
3029
|
+
import { IsArray as IsArray6, IsString as IsString25, IsOptional as IsOptional17 } from "class-validator";
|
|
2884
3030
|
import { Type as Type5 } from "class-transformer";
|
|
2885
3031
|
var FreelancerSkillDto = class {
|
|
2886
3032
|
constructor() {
|
|
@@ -2891,19 +3037,19 @@ var FreelancerSkillDto = class {
|
|
|
2891
3037
|
};
|
|
2892
3038
|
__decorateClass([
|
|
2893
3039
|
IsOptional17(),
|
|
2894
|
-
|
|
3040
|
+
IsArray6(),
|
|
2895
3041
|
Type5(() => String),
|
|
2896
3042
|
IsString25({ each: true })
|
|
2897
3043
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
2898
3044
|
__decorateClass([
|
|
2899
3045
|
IsOptional17(),
|
|
2900
|
-
|
|
3046
|
+
IsArray6(),
|
|
2901
3047
|
Type5(() => String),
|
|
2902
3048
|
IsString25({ each: true })
|
|
2903
3049
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
2904
3050
|
__decorateClass([
|
|
2905
3051
|
IsOptional17(),
|
|
2906
|
-
|
|
3052
|
+
IsArray6(),
|
|
2907
3053
|
Type5(() => String),
|
|
2908
3054
|
IsString25({ each: true })
|
|
2909
3055
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
@@ -3211,7 +3357,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3211
3357
|
};
|
|
3212
3358
|
|
|
3213
3359
|
// src/entities/question.entity.ts
|
|
3214
|
-
import { Entity as
|
|
3360
|
+
import { Entity as Entity28, Column as Column29 } from "typeorm";
|
|
3215
3361
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3216
3362
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3217
3363
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3220,16 +3366,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3220
3366
|
var Question = class extends BaseEntity {
|
|
3221
3367
|
};
|
|
3222
3368
|
__decorateClass([
|
|
3223
|
-
|
|
3369
|
+
Column29({ name: "question", type: "varchar" })
|
|
3224
3370
|
], Question.prototype, "question", 2);
|
|
3225
3371
|
__decorateClass([
|
|
3226
|
-
|
|
3372
|
+
Column29({ name: "hint", type: "varchar", nullable: true })
|
|
3227
3373
|
], Question.prototype, "hint", 2);
|
|
3228
3374
|
__decorateClass([
|
|
3229
|
-
|
|
3375
|
+
Column29({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3230
3376
|
], Question.prototype, "slug", 2);
|
|
3231
3377
|
__decorateClass([
|
|
3232
|
-
|
|
3378
|
+
Column29({
|
|
3233
3379
|
name: "question_for",
|
|
3234
3380
|
type: "enum",
|
|
3235
3381
|
enum: QuestionFor,
|
|
@@ -3237,107 +3383,18 @@ __decorateClass([
|
|
|
3237
3383
|
})
|
|
3238
3384
|
], Question.prototype, "questionFor", 2);
|
|
3239
3385
|
__decorateClass([
|
|
3240
|
-
|
|
3386
|
+
Column29({ name: "type", type: "varchar", nullable: true })
|
|
3241
3387
|
], Question.prototype, "type", 2);
|
|
3242
3388
|
__decorateClass([
|
|
3243
|
-
|
|
3389
|
+
Column29({ name: "options", type: "jsonb", nullable: true })
|
|
3244
3390
|
], Question.prototype, "options", 2);
|
|
3245
3391
|
__decorateClass([
|
|
3246
|
-
|
|
3392
|
+
Column29({ name: "is_active", type: "boolean", default: false })
|
|
3247
3393
|
], Question.prototype, "isActive", 2);
|
|
3248
3394
|
Question = __decorateClass([
|
|
3249
|
-
|
|
3395
|
+
Entity28("questions")
|
|
3250
3396
|
], Question);
|
|
3251
3397
|
|
|
3252
|
-
// src/entities/company-role.entity.ts
|
|
3253
|
-
import {
|
|
3254
|
-
Column as Column29,
|
|
3255
|
-
Entity as Entity28,
|
|
3256
|
-
Index as Index24,
|
|
3257
|
-
OneToMany as OneToMany9
|
|
3258
|
-
} from "typeorm";
|
|
3259
|
-
|
|
3260
|
-
// src/entities/company-role-permission.entity.ts
|
|
3261
|
-
import {
|
|
3262
|
-
Column as Column28,
|
|
3263
|
-
Entity as Entity27,
|
|
3264
|
-
ManyToOne as ManyToOne24,
|
|
3265
|
-
JoinColumn as JoinColumn24,
|
|
3266
|
-
Index as Index23
|
|
3267
|
-
} from "typeorm";
|
|
3268
|
-
|
|
3269
|
-
// src/entities/permission.entity.ts
|
|
3270
|
-
import { Column as Column27, Entity as Entity26, Index as Index22 } from "typeorm";
|
|
3271
|
-
var Permission = class extends BaseEntity {
|
|
3272
|
-
};
|
|
3273
|
-
__decorateClass([
|
|
3274
|
-
Column27({ name: "name", type: "varchar", nullable: true })
|
|
3275
|
-
], Permission.prototype, "name", 2);
|
|
3276
|
-
__decorateClass([
|
|
3277
|
-
Column27({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3278
|
-
Index22()
|
|
3279
|
-
], Permission.prototype, "slug", 2);
|
|
3280
|
-
__decorateClass([
|
|
3281
|
-
Column27({ name: "description", type: "text", nullable: true })
|
|
3282
|
-
], Permission.prototype, "description", 2);
|
|
3283
|
-
__decorateClass([
|
|
3284
|
-
Column27({ name: "is_active", type: "boolean", default: true })
|
|
3285
|
-
], Permission.prototype, "isActive", 2);
|
|
3286
|
-
Permission = __decorateClass([
|
|
3287
|
-
Entity26("permissions")
|
|
3288
|
-
], Permission);
|
|
3289
|
-
|
|
3290
|
-
// src/entities/company-role-permission.entity.ts
|
|
3291
|
-
var CompanyRolePermission = class extends BaseEntity {
|
|
3292
|
-
};
|
|
3293
|
-
__decorateClass([
|
|
3294
|
-
Column28({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3295
|
-
Index23()
|
|
3296
|
-
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3297
|
-
__decorateClass([
|
|
3298
|
-
ManyToOne24(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3299
|
-
onDelete: "CASCADE"
|
|
3300
|
-
}),
|
|
3301
|
-
JoinColumn24({ name: "company_role_id" })
|
|
3302
|
-
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3303
|
-
__decorateClass([
|
|
3304
|
-
Column28({ name: "permission_id", type: "integer" }),
|
|
3305
|
-
Index23()
|
|
3306
|
-
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3307
|
-
__decorateClass([
|
|
3308
|
-
ManyToOne24(() => Permission, { onDelete: "CASCADE" }),
|
|
3309
|
-
JoinColumn24({ name: "permission_id" })
|
|
3310
|
-
], CompanyRolePermission.prototype, "permission", 2);
|
|
3311
|
-
__decorateClass([
|
|
3312
|
-
Column28({ name: "assigned_by", type: "integer", nullable: true })
|
|
3313
|
-
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3314
|
-
CompanyRolePermission = __decorateClass([
|
|
3315
|
-
Entity27("company_role_permissions")
|
|
3316
|
-
], CompanyRolePermission);
|
|
3317
|
-
|
|
3318
|
-
// src/entities/company-role.entity.ts
|
|
3319
|
-
var CompanyRole = class extends BaseEntity {
|
|
3320
|
-
};
|
|
3321
|
-
__decorateClass([
|
|
3322
|
-
Column29({ name: "name", type: "varchar" })
|
|
3323
|
-
], CompanyRole.prototype, "name", 2);
|
|
3324
|
-
__decorateClass([
|
|
3325
|
-
Column29({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3326
|
-
Index24()
|
|
3327
|
-
], CompanyRole.prototype, "slug", 2);
|
|
3328
|
-
__decorateClass([
|
|
3329
|
-
Column29({ name: "description", type: "text", nullable: true })
|
|
3330
|
-
], CompanyRole.prototype, "description", 2);
|
|
3331
|
-
__decorateClass([
|
|
3332
|
-
Column29({ name: "is_active", type: "boolean", default: true })
|
|
3333
|
-
], CompanyRole.prototype, "isActive", 2);
|
|
3334
|
-
__decorateClass([
|
|
3335
|
-
OneToMany9(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3336
|
-
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3337
|
-
CompanyRole = __decorateClass([
|
|
3338
|
-
Entity28("company_roles")
|
|
3339
|
-
], CompanyRole);
|
|
3340
|
-
|
|
3341
3398
|
// src/entities/job-role.entity.ts
|
|
3342
3399
|
import { Entity as Entity29, Column as Column30 } from "typeorm";
|
|
3343
3400
|
var JobRoles = class extends BaseEntity {
|