@experts_hub/shared 1.0.183 → 1.0.185
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-members-roles.entity.d.ts +10 -0
- package/dist/entities/company-profile.entity.d.ts +6 -1
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -2
- package/dist/index.d.mts +44 -28
- package/dist/index.d.ts +44 -28
- package/dist/index.js +328 -270
- package/dist/index.mjs +374 -318
- package/dist/modules/company-member/company-member.interface.d.ts +2 -1
- package/dist/modules/company-member/dto/create-company-member.dto.d.ts +1 -0
- package/dist/modules/company-member/dto/update-company-member.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1060,17 +1060,17 @@ import {
|
|
|
1060
1060
|
} from "class-validator";
|
|
1061
1061
|
|
|
1062
1062
|
// src/entities/rating.entity.ts
|
|
1063
|
-
import { Entity as
|
|
1063
|
+
import { Entity as Entity28, Column as Column29, ManyToOne as ManyToOne26, JoinColumn as JoinColumn26, Index as Index25 } from "typeorm";
|
|
1064
1064
|
|
|
1065
1065
|
// src/entities/user.entity.ts
|
|
1066
1066
|
import {
|
|
1067
|
-
Entity as
|
|
1068
|
-
Column as
|
|
1067
|
+
Entity as Entity27,
|
|
1068
|
+
Column as Column28,
|
|
1069
1069
|
OneToMany as OneToMany8,
|
|
1070
1070
|
OneToOne,
|
|
1071
|
-
Index as
|
|
1072
|
-
ManyToOne as
|
|
1073
|
-
JoinColumn as
|
|
1071
|
+
Index as Index24,
|
|
1072
|
+
ManyToOne as ManyToOne25,
|
|
1073
|
+
JoinColumn as JoinColumn25
|
|
1074
1074
|
} from "typeorm";
|
|
1075
1075
|
|
|
1076
1076
|
// src/entities/base.entity.ts
|
|
@@ -1397,13 +1397,7 @@ FreelancerProfile = __decorateClass([
|
|
|
1397
1397
|
], FreelancerProfile);
|
|
1398
1398
|
|
|
1399
1399
|
// src/entities/company-profile.entity.ts
|
|
1400
|
-
import {
|
|
1401
|
-
Entity as Entity5,
|
|
1402
|
-
Column as Column6,
|
|
1403
|
-
ManyToOne as ManyToOne5,
|
|
1404
|
-
JoinColumn as JoinColumn5,
|
|
1405
|
-
Index as Index3
|
|
1406
|
-
} from "typeorm";
|
|
1400
|
+
import { Entity as Entity5, Column as Column6, ManyToOne as ManyToOne5, JoinColumn as JoinColumn5, Index as Index3 } from "typeorm";
|
|
1407
1401
|
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
1408
1402
|
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
1409
1403
|
KindOfHire2["PARTTIME"] = "PARTTIME";
|
|
@@ -1423,6 +1417,11 @@ var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
|
|
|
1423
1417
|
FromUsOn2["OTHER"] = "OTHER";
|
|
1424
1418
|
return FromUsOn2;
|
|
1425
1419
|
})(FromUsOn || {});
|
|
1420
|
+
var CompanyOnboardingStepEnum = /* @__PURE__ */ ((CompanyOnboardingStepEnum2) => {
|
|
1421
|
+
CompanyOnboardingStepEnum2["SIGN_UP"] = "SIGN_UP";
|
|
1422
|
+
CompanyOnboardingStepEnum2["PROFILE_COMPLETION"] = "PROFILE_COMPLETION";
|
|
1423
|
+
return CompanyOnboardingStepEnum2;
|
|
1424
|
+
})(CompanyOnboardingStepEnum || {});
|
|
1426
1425
|
var CompanyProfile = class extends BaseEntity {
|
|
1427
1426
|
};
|
|
1428
1427
|
// individual index to find company profile by user
|
|
@@ -1447,7 +1446,11 @@ __decorateClass([
|
|
|
1447
1446
|
Column6({ name: "about_company", type: "varchar", nullable: true })
|
|
1448
1447
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1449
1448
|
__decorateClass([
|
|
1450
|
-
Column6({
|
|
1449
|
+
Column6({
|
|
1450
|
+
name: "is_service_aggrement_signed",
|
|
1451
|
+
type: "boolean",
|
|
1452
|
+
default: false
|
|
1453
|
+
})
|
|
1451
1454
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1452
1455
|
__decorateClass([
|
|
1453
1456
|
Column6({ name: "company_address", type: "varchar", nullable: true })
|
|
@@ -1488,6 +1491,14 @@ __decorateClass([
|
|
|
1488
1491
|
__decorateClass([
|
|
1489
1492
|
Column6({ name: "found_us_on_detail", type: "varchar", nullable: true })
|
|
1490
1493
|
], CompanyProfile.prototype, "foundUsOnDetail", 2);
|
|
1494
|
+
__decorateClass([
|
|
1495
|
+
Column6({
|
|
1496
|
+
name: "onboarding_step_completed",
|
|
1497
|
+
type: "enum",
|
|
1498
|
+
enum: CompanyOnboardingStepEnum,
|
|
1499
|
+
nullable: true
|
|
1500
|
+
})
|
|
1501
|
+
], CompanyProfile.prototype, "onboardingStepCompleted", 2);
|
|
1491
1502
|
CompanyProfile = __decorateClass([
|
|
1492
1503
|
Entity5("company_profiles")
|
|
1493
1504
|
], CompanyProfile);
|
|
@@ -2047,330 +2058,231 @@ SystemPreference = __decorateClass([
|
|
|
2047
2058
|
Entity13("system_preferences")
|
|
2048
2059
|
], SystemPreference);
|
|
2049
2060
|
|
|
2050
|
-
// src/entities/company-role.entity.ts
|
|
2051
|
-
import {
|
|
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,
|
|
2064
|
-
ManyToOne as ManyToOne13,
|
|
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
2061
|
// src/entities/freelancer-experience.entity.ts
|
|
2150
2062
|
import {
|
|
2151
|
-
Entity as
|
|
2152
|
-
Column as
|
|
2153
|
-
Index as
|
|
2154
|
-
ManyToOne as
|
|
2155
|
-
JoinColumn as
|
|
2063
|
+
Entity as Entity14,
|
|
2064
|
+
Column as Column15,
|
|
2065
|
+
Index as Index11,
|
|
2066
|
+
ManyToOne as ManyToOne13,
|
|
2067
|
+
JoinColumn as JoinColumn13
|
|
2156
2068
|
} from "typeorm";
|
|
2157
2069
|
var FreelancerExperience = class extends BaseEntity {
|
|
2158
2070
|
};
|
|
2159
2071
|
// individual index to find experence by user
|
|
2160
2072
|
__decorateClass([
|
|
2161
|
-
|
|
2162
|
-
|
|
2073
|
+
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
2074
|
+
Index11()
|
|
2163
2075
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2164
2076
|
__decorateClass([
|
|
2165
|
-
|
|
2166
|
-
|
|
2077
|
+
ManyToOne13(() => User, (user) => user.freelancerExperience),
|
|
2078
|
+
JoinColumn13({ name: "user_id" })
|
|
2167
2079
|
], FreelancerExperience.prototype, "user", 2);
|
|
2168
2080
|
__decorateClass([
|
|
2169
|
-
|
|
2081
|
+
Column15({ name: "company_name", type: "varchar", nullable: true })
|
|
2170
2082
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2171
2083
|
__decorateClass([
|
|
2172
|
-
|
|
2084
|
+
Column15({ name: "designation", type: "varchar", nullable: true })
|
|
2173
2085
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2174
2086
|
__decorateClass([
|
|
2175
|
-
|
|
2087
|
+
Column15({ name: "job_duration", type: "varchar", nullable: true })
|
|
2176
2088
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2177
2089
|
__decorateClass([
|
|
2178
|
-
|
|
2090
|
+
Column15({ name: "description", type: "varchar", nullable: true })
|
|
2179
2091
|
], FreelancerExperience.prototype, "description", 2);
|
|
2180
2092
|
FreelancerExperience = __decorateClass([
|
|
2181
|
-
|
|
2093
|
+
Entity14("freelancer_experiences")
|
|
2182
2094
|
], FreelancerExperience);
|
|
2183
2095
|
|
|
2184
2096
|
// src/entities/freelancer-education.entity.ts
|
|
2185
2097
|
import {
|
|
2186
|
-
Entity as
|
|
2187
|
-
Column as
|
|
2188
|
-
Index as
|
|
2189
|
-
ManyToOne as
|
|
2190
|
-
JoinColumn as
|
|
2098
|
+
Entity as Entity15,
|
|
2099
|
+
Column as Column16,
|
|
2100
|
+
Index as Index12,
|
|
2101
|
+
ManyToOne as ManyToOne14,
|
|
2102
|
+
JoinColumn as JoinColumn14
|
|
2191
2103
|
} from "typeorm";
|
|
2192
2104
|
var FreelancerEducation = class extends BaseEntity {
|
|
2193
2105
|
};
|
|
2194
2106
|
// individual index to find education by user
|
|
2195
2107
|
__decorateClass([
|
|
2196
|
-
|
|
2197
|
-
|
|
2108
|
+
Column16({ name: "user_id", type: "integer", nullable: true }),
|
|
2109
|
+
Index12()
|
|
2198
2110
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2199
2111
|
__decorateClass([
|
|
2200
|
-
|
|
2201
|
-
|
|
2112
|
+
ManyToOne14(() => User, (user) => user.freelancerEducation),
|
|
2113
|
+
JoinColumn14({ name: "user_id" })
|
|
2202
2114
|
], FreelancerEducation.prototype, "user", 2);
|
|
2203
2115
|
__decorateClass([
|
|
2204
|
-
|
|
2116
|
+
Column16({ name: "degree", type: "varchar", nullable: true })
|
|
2205
2117
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2206
2118
|
__decorateClass([
|
|
2207
|
-
|
|
2119
|
+
Column16({ name: "university", type: "varchar", nullable: true })
|
|
2208
2120
|
], FreelancerEducation.prototype, "university", 2);
|
|
2209
2121
|
__decorateClass([
|
|
2210
|
-
|
|
2122
|
+
Column16({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2211
2123
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2212
2124
|
FreelancerEducation = __decorateClass([
|
|
2213
|
-
|
|
2125
|
+
Entity15("freelancer_educations")
|
|
2214
2126
|
], FreelancerEducation);
|
|
2215
2127
|
|
|
2216
2128
|
// src/entities/freelancer-project.entity.ts
|
|
2217
2129
|
import {
|
|
2218
|
-
Entity as
|
|
2219
|
-
Column as
|
|
2220
|
-
Index as
|
|
2221
|
-
ManyToOne as
|
|
2222
|
-
JoinColumn as
|
|
2130
|
+
Entity as Entity16,
|
|
2131
|
+
Column as Column17,
|
|
2132
|
+
Index as Index13,
|
|
2133
|
+
ManyToOne as ManyToOne15,
|
|
2134
|
+
JoinColumn as JoinColumn15
|
|
2223
2135
|
} from "typeorm";
|
|
2224
2136
|
var FreelancerProject = class extends BaseEntity {
|
|
2225
2137
|
};
|
|
2226
2138
|
// individual index to find project by user
|
|
2227
2139
|
__decorateClass([
|
|
2228
|
-
|
|
2229
|
-
|
|
2140
|
+
Column17({ name: "user_id", type: "integer", nullable: true }),
|
|
2141
|
+
Index13()
|
|
2230
2142
|
], FreelancerProject.prototype, "userId", 2);
|
|
2231
2143
|
__decorateClass([
|
|
2232
|
-
|
|
2233
|
-
|
|
2144
|
+
ManyToOne15(() => User, (user) => user.freelancerProject),
|
|
2145
|
+
JoinColumn15({ name: "user_id" })
|
|
2234
2146
|
], FreelancerProject.prototype, "user", 2);
|
|
2235
2147
|
__decorateClass([
|
|
2236
|
-
|
|
2148
|
+
Column17({ name: "project_name", type: "varchar", nullable: true })
|
|
2237
2149
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2238
2150
|
__decorateClass([
|
|
2239
|
-
|
|
2151
|
+
Column17({ name: "start_date", type: "date", nullable: true })
|
|
2240
2152
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2241
2153
|
__decorateClass([
|
|
2242
|
-
|
|
2154
|
+
Column17({ name: "end_date", type: "date", nullable: true })
|
|
2243
2155
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2244
2156
|
__decorateClass([
|
|
2245
|
-
|
|
2157
|
+
Column17({ name: "client_name", type: "varchar", nullable: true })
|
|
2246
2158
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2247
2159
|
__decorateClass([
|
|
2248
|
-
|
|
2160
|
+
Column17({ name: "git_link", type: "varchar", nullable: true })
|
|
2249
2161
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2250
2162
|
__decorateClass([
|
|
2251
|
-
|
|
2163
|
+
Column17({ name: "description", type: "varchar", nullable: true })
|
|
2252
2164
|
], FreelancerProject.prototype, "description", 2);
|
|
2253
2165
|
FreelancerProject = __decorateClass([
|
|
2254
|
-
|
|
2166
|
+
Entity16("freelancer_projects")
|
|
2255
2167
|
], FreelancerProject);
|
|
2256
2168
|
|
|
2257
2169
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2258
2170
|
import {
|
|
2259
|
-
Entity as
|
|
2260
|
-
Column as
|
|
2261
|
-
Index as
|
|
2262
|
-
ManyToOne as
|
|
2263
|
-
JoinColumn as
|
|
2171
|
+
Entity as Entity17,
|
|
2172
|
+
Column as Column18,
|
|
2173
|
+
Index as Index14,
|
|
2174
|
+
ManyToOne as ManyToOne16,
|
|
2175
|
+
JoinColumn as JoinColumn16
|
|
2264
2176
|
} from "typeorm";
|
|
2265
2177
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2266
2178
|
};
|
|
2267
2179
|
// individual index to find case study by user
|
|
2268
2180
|
__decorateClass([
|
|
2269
|
-
|
|
2270
|
-
|
|
2181
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2182
|
+
Index14()
|
|
2271
2183
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2272
2184
|
__decorateClass([
|
|
2273
|
-
|
|
2274
|
-
|
|
2185
|
+
ManyToOne16(() => User, (user) => user.freelancerCaseStudy),
|
|
2186
|
+
JoinColumn16({ name: "user_id" })
|
|
2275
2187
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2276
2188
|
__decorateClass([
|
|
2277
|
-
|
|
2189
|
+
Column18({ name: "project_name", type: "varchar", nullable: true })
|
|
2278
2190
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2279
2191
|
__decorateClass([
|
|
2280
|
-
|
|
2192
|
+
Column18({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2281
2193
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2282
2194
|
__decorateClass([
|
|
2283
|
-
|
|
2195
|
+
Column18({ name: "description", type: "varchar", nullable: true })
|
|
2284
2196
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2285
2197
|
FreelancerCaseStudy = __decorateClass([
|
|
2286
|
-
|
|
2198
|
+
Entity17("freelancer_case_studies")
|
|
2287
2199
|
], FreelancerCaseStudy);
|
|
2288
2200
|
|
|
2289
2201
|
// src/entities/freelancer-coreskill.entity.ts
|
|
2290
2202
|
import {
|
|
2291
|
-
Entity as
|
|
2292
|
-
Column as
|
|
2293
|
-
Index as
|
|
2294
|
-
ManyToOne as
|
|
2295
|
-
JoinColumn as
|
|
2203
|
+
Entity as Entity18,
|
|
2204
|
+
Column as Column19,
|
|
2205
|
+
Index as Index15,
|
|
2206
|
+
ManyToOne as ManyToOne17,
|
|
2207
|
+
JoinColumn as JoinColumn17
|
|
2296
2208
|
} from "typeorm";
|
|
2297
2209
|
var FreelancerCoreSkill = class extends BaseEntity {
|
|
2298
2210
|
};
|
|
2299
2211
|
// individual index to find core skills by user
|
|
2300
2212
|
__decorateClass([
|
|
2301
|
-
|
|
2302
|
-
|
|
2213
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2214
|
+
Index15()
|
|
2303
2215
|
], FreelancerCoreSkill.prototype, "userId", 2);
|
|
2304
2216
|
__decorateClass([
|
|
2305
|
-
|
|
2306
|
-
|
|
2217
|
+
ManyToOne17(() => User, (user) => user.freelancerCoreSkill),
|
|
2218
|
+
JoinColumn17({ name: "user_id" })
|
|
2307
2219
|
], FreelancerCoreSkill.prototype, "user", 2);
|
|
2308
2220
|
__decorateClass([
|
|
2309
|
-
|
|
2221
|
+
Column19({ name: "skill_name", type: "varchar", nullable: true })
|
|
2310
2222
|
], FreelancerCoreSkill.prototype, "skillName", 2);
|
|
2311
2223
|
FreelancerCoreSkill = __decorateClass([
|
|
2312
|
-
|
|
2224
|
+
Entity18("freelancer_coreskills")
|
|
2313
2225
|
], FreelancerCoreSkill);
|
|
2314
2226
|
|
|
2315
2227
|
// src/entities/freelancer-tool.entity.ts
|
|
2316
2228
|
import {
|
|
2317
|
-
Entity as
|
|
2318
|
-
Column as
|
|
2319
|
-
Index as
|
|
2320
|
-
ManyToOne as
|
|
2321
|
-
JoinColumn as
|
|
2229
|
+
Entity as Entity19,
|
|
2230
|
+
Column as Column20,
|
|
2231
|
+
Index as Index16,
|
|
2232
|
+
ManyToOne as ManyToOne18,
|
|
2233
|
+
JoinColumn as JoinColumn18
|
|
2322
2234
|
} from "typeorm";
|
|
2323
2235
|
var FreelancerTool = class extends BaseEntity {
|
|
2324
2236
|
};
|
|
2325
2237
|
// individual index to find tool by user
|
|
2326
2238
|
__decorateClass([
|
|
2327
|
-
|
|
2328
|
-
|
|
2239
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2240
|
+
Index16()
|
|
2329
2241
|
], FreelancerTool.prototype, "userId", 2);
|
|
2330
2242
|
__decorateClass([
|
|
2331
|
-
|
|
2332
|
-
|
|
2243
|
+
ManyToOne18(() => User, (user) => user.freelancerTool),
|
|
2244
|
+
JoinColumn18({ name: "user_id" })
|
|
2333
2245
|
], FreelancerTool.prototype, "user", 2);
|
|
2334
2246
|
__decorateClass([
|
|
2335
|
-
|
|
2247
|
+
Column20({ name: "tool_name", type: "varchar", nullable: true })
|
|
2336
2248
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2337
2249
|
FreelancerTool = __decorateClass([
|
|
2338
|
-
|
|
2250
|
+
Entity19("freelancer_tools")
|
|
2339
2251
|
], FreelancerTool);
|
|
2340
2252
|
|
|
2341
2253
|
// src/entities/freelancer-framework.entity.ts
|
|
2342
2254
|
import {
|
|
2343
|
-
Entity as
|
|
2344
|
-
Column as
|
|
2345
|
-
Index as
|
|
2346
|
-
ManyToOne as
|
|
2347
|
-
JoinColumn as
|
|
2255
|
+
Entity as Entity20,
|
|
2256
|
+
Column as Column21,
|
|
2257
|
+
Index as Index17,
|
|
2258
|
+
ManyToOne as ManyToOne19,
|
|
2259
|
+
JoinColumn as JoinColumn19
|
|
2348
2260
|
} from "typeorm";
|
|
2349
2261
|
var FreelancerFramework = class extends BaseEntity {
|
|
2350
2262
|
};
|
|
2351
2263
|
// individual index to find framework by user
|
|
2352
2264
|
__decorateClass([
|
|
2353
|
-
|
|
2354
|
-
|
|
2265
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2266
|
+
Index17()
|
|
2355
2267
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2356
2268
|
__decorateClass([
|
|
2357
|
-
|
|
2358
|
-
|
|
2269
|
+
ManyToOne19(() => User, (user) => user.freelancerFramework),
|
|
2270
|
+
JoinColumn19({ name: "user_id" })
|
|
2359
2271
|
], FreelancerFramework.prototype, "user", 2);
|
|
2360
2272
|
__decorateClass([
|
|
2361
|
-
|
|
2273
|
+
Column21({ name: "framework_name", type: "varchar", nullable: true })
|
|
2362
2274
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2363
2275
|
FreelancerFramework = __decorateClass([
|
|
2364
|
-
|
|
2276
|
+
Entity20("freelancer_frameworks")
|
|
2365
2277
|
], FreelancerFramework);
|
|
2366
2278
|
|
|
2367
2279
|
// src/entities/freelancer-assessment.entity.ts
|
|
2368
2280
|
import {
|
|
2369
|
-
Entity as
|
|
2370
|
-
Column as
|
|
2371
|
-
Index as
|
|
2372
|
-
ManyToOne as
|
|
2373
|
-
JoinColumn as
|
|
2281
|
+
Entity as Entity21,
|
|
2282
|
+
Column as Column22,
|
|
2283
|
+
Index as Index18,
|
|
2284
|
+
ManyToOne as ManyToOne20,
|
|
2285
|
+
JoinColumn as JoinColumn20
|
|
2374
2286
|
} from "typeorm";
|
|
2375
2287
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2376
2288
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -2385,21 +2297,21 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2385
2297
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2386
2298
|
};
|
|
2387
2299
|
__decorateClass([
|
|
2388
|
-
|
|
2389
|
-
|
|
2300
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2301
|
+
Index18()
|
|
2390
2302
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2391
2303
|
__decorateClass([
|
|
2392
|
-
|
|
2393
|
-
|
|
2304
|
+
ManyToOne20(() => User, (user) => user.assessments),
|
|
2305
|
+
JoinColumn20({ name: "user_id" })
|
|
2394
2306
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2395
2307
|
__decorateClass([
|
|
2396
|
-
|
|
2308
|
+
Column22({ name: "interview_id", type: "varchar", nullable: true })
|
|
2397
2309
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2398
2310
|
__decorateClass([
|
|
2399
|
-
|
|
2311
|
+
Column22({ name: "interview_link", type: "text", nullable: true })
|
|
2400
2312
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2401
2313
|
__decorateClass([
|
|
2402
|
-
|
|
2314
|
+
Column22({
|
|
2403
2315
|
name: "status",
|
|
2404
2316
|
type: "enum",
|
|
2405
2317
|
enum: AssessmentStatusEnum,
|
|
@@ -2407,16 +2319,16 @@ __decorateClass([
|
|
|
2407
2319
|
})
|
|
2408
2320
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2409
2321
|
FreelancerAssessment = __decorateClass([
|
|
2410
|
-
|
|
2322
|
+
Entity21("freelancer_assessments")
|
|
2411
2323
|
], FreelancerAssessment);
|
|
2412
2324
|
|
|
2413
2325
|
// src/entities/freelancer-declaration.entity.ts
|
|
2414
2326
|
import {
|
|
2415
|
-
Entity as
|
|
2416
|
-
Column as
|
|
2417
|
-
Index as
|
|
2418
|
-
ManyToOne as
|
|
2419
|
-
JoinColumn as
|
|
2327
|
+
Entity as Entity22,
|
|
2328
|
+
Column as Column23,
|
|
2329
|
+
Index as Index19,
|
|
2330
|
+
ManyToOne as ManyToOne21,
|
|
2331
|
+
JoinColumn as JoinColumn21
|
|
2420
2332
|
} from "typeorm";
|
|
2421
2333
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2422
2334
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -2429,15 +2341,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2429
2341
|
};
|
|
2430
2342
|
// individual index to find declaration by user
|
|
2431
2343
|
__decorateClass([
|
|
2432
|
-
|
|
2433
|
-
|
|
2344
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2345
|
+
Index19()
|
|
2434
2346
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2435
2347
|
__decorateClass([
|
|
2436
|
-
|
|
2437
|
-
|
|
2348
|
+
ManyToOne21(() => User, (user) => user.freelancerDeclaration),
|
|
2349
|
+
JoinColumn21({ name: "user_id" })
|
|
2438
2350
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2439
2351
|
__decorateClass([
|
|
2440
|
-
|
|
2352
|
+
Column23({
|
|
2441
2353
|
name: "document_type",
|
|
2442
2354
|
type: "enum",
|
|
2443
2355
|
enum: DocumentType,
|
|
@@ -2445,21 +2357,155 @@ __decorateClass([
|
|
|
2445
2357
|
})
|
|
2446
2358
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2447
2359
|
__decorateClass([
|
|
2448
|
-
|
|
2360
|
+
Column23({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2449
2361
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2450
2362
|
__decorateClass([
|
|
2451
|
-
|
|
2363
|
+
Column23({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2452
2364
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2453
2365
|
__decorateClass([
|
|
2454
|
-
|
|
2366
|
+
Column23({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2455
2367
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2456
2368
|
__decorateClass([
|
|
2457
|
-
|
|
2369
|
+
Column23({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2458
2370
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2459
2371
|
FreelancerDeclaration = __decorateClass([
|
|
2460
|
-
|
|
2372
|
+
Entity22("freelancer_declaration")
|
|
2461
2373
|
], FreelancerDeclaration);
|
|
2462
2374
|
|
|
2375
|
+
// src/entities/company-members-roles.entity.ts
|
|
2376
|
+
import {
|
|
2377
|
+
Column as Column27,
|
|
2378
|
+
Entity as Entity26,
|
|
2379
|
+
ManyToOne as ManyToOne24,
|
|
2380
|
+
JoinColumn as JoinColumn24,
|
|
2381
|
+
Index as Index23
|
|
2382
|
+
} from "typeorm";
|
|
2383
|
+
|
|
2384
|
+
// src/entities/company-role.entity.ts
|
|
2385
|
+
import {
|
|
2386
|
+
Column as Column26,
|
|
2387
|
+
Entity as Entity25,
|
|
2388
|
+
Index as Index22,
|
|
2389
|
+
JoinColumn as JoinColumn23,
|
|
2390
|
+
ManyToOne as ManyToOne23,
|
|
2391
|
+
OneToMany as OneToMany7
|
|
2392
|
+
} from "typeorm";
|
|
2393
|
+
|
|
2394
|
+
// src/entities/company-role-permission.entity.ts
|
|
2395
|
+
import {
|
|
2396
|
+
Column as Column25,
|
|
2397
|
+
Entity as Entity24,
|
|
2398
|
+
ManyToOne as ManyToOne22,
|
|
2399
|
+
JoinColumn as JoinColumn22,
|
|
2400
|
+
Index as Index21
|
|
2401
|
+
} from "typeorm";
|
|
2402
|
+
|
|
2403
|
+
// src/entities/permission.entity.ts
|
|
2404
|
+
import { Column as Column24, Entity as Entity23, Index as Index20 } from "typeorm";
|
|
2405
|
+
var Permission = class extends BaseEntity {
|
|
2406
|
+
};
|
|
2407
|
+
__decorateClass([
|
|
2408
|
+
Column24({ name: "name", type: "varchar", nullable: true })
|
|
2409
|
+
], Permission.prototype, "name", 2);
|
|
2410
|
+
__decorateClass([
|
|
2411
|
+
Column24({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2412
|
+
Index20()
|
|
2413
|
+
], Permission.prototype, "slug", 2);
|
|
2414
|
+
__decorateClass([
|
|
2415
|
+
Column24({ name: "description", type: "text", nullable: true })
|
|
2416
|
+
], Permission.prototype, "description", 2);
|
|
2417
|
+
__decorateClass([
|
|
2418
|
+
Column24({ name: "is_active", type: "boolean", default: true })
|
|
2419
|
+
], Permission.prototype, "isActive", 2);
|
|
2420
|
+
Permission = __decorateClass([
|
|
2421
|
+
Entity23("permissions")
|
|
2422
|
+
], Permission);
|
|
2423
|
+
|
|
2424
|
+
// src/entities/company-role-permission.entity.ts
|
|
2425
|
+
var CompanyRolePermission = class extends BaseEntity {
|
|
2426
|
+
};
|
|
2427
|
+
__decorateClass([
|
|
2428
|
+
Column25({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2429
|
+
Index21()
|
|
2430
|
+
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2431
|
+
__decorateClass([
|
|
2432
|
+
ManyToOne22(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2433
|
+
onDelete: "CASCADE"
|
|
2434
|
+
}),
|
|
2435
|
+
JoinColumn22({ name: "company_role_id" })
|
|
2436
|
+
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2437
|
+
__decorateClass([
|
|
2438
|
+
Column25({ name: "permission_id", type: "integer" }),
|
|
2439
|
+
Index21()
|
|
2440
|
+
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2441
|
+
__decorateClass([
|
|
2442
|
+
ManyToOne22(() => Permission, { onDelete: "CASCADE" }),
|
|
2443
|
+
JoinColumn22({ name: "permission_id" })
|
|
2444
|
+
], CompanyRolePermission.prototype, "permission", 2);
|
|
2445
|
+
__decorateClass([
|
|
2446
|
+
Column25({ name: "assigned_by", type: "integer", nullable: true })
|
|
2447
|
+
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2448
|
+
CompanyRolePermission = __decorateClass([
|
|
2449
|
+
Entity24("company_role_permissions")
|
|
2450
|
+
], CompanyRolePermission);
|
|
2451
|
+
|
|
2452
|
+
// src/entities/company-role.entity.ts
|
|
2453
|
+
var CompanyRole = class extends BaseEntity {
|
|
2454
|
+
};
|
|
2455
|
+
__decorateClass([
|
|
2456
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
2457
|
+
Index22()
|
|
2458
|
+
], CompanyRole.prototype, "userId", 2);
|
|
2459
|
+
__decorateClass([
|
|
2460
|
+
ManyToOne23(() => User, (user) => user.otps),
|
|
2461
|
+
JoinColumn23({ name: "user_id" })
|
|
2462
|
+
], CompanyRole.prototype, "user", 2);
|
|
2463
|
+
__decorateClass([
|
|
2464
|
+
Column26({ name: "name", type: "varchar" })
|
|
2465
|
+
], CompanyRole.prototype, "name", 2);
|
|
2466
|
+
__decorateClass([
|
|
2467
|
+
Column26({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2468
|
+
Index22()
|
|
2469
|
+
], CompanyRole.prototype, "slug", 2);
|
|
2470
|
+
__decorateClass([
|
|
2471
|
+
Column26({ name: "description", type: "text", nullable: true })
|
|
2472
|
+
], CompanyRole.prototype, "description", 2);
|
|
2473
|
+
__decorateClass([
|
|
2474
|
+
Column26({ name: "is_active", type: "boolean", default: true })
|
|
2475
|
+
], CompanyRole.prototype, "isActive", 2);
|
|
2476
|
+
__decorateClass([
|
|
2477
|
+
OneToMany7(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2478
|
+
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2479
|
+
CompanyRole = __decorateClass([
|
|
2480
|
+
Entity25("company_roles")
|
|
2481
|
+
], CompanyRole);
|
|
2482
|
+
|
|
2483
|
+
// src/entities/company-members-roles.entity.ts
|
|
2484
|
+
var CompanyMemberRole = class extends BaseEntity {
|
|
2485
|
+
};
|
|
2486
|
+
__decorateClass([
|
|
2487
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
2488
|
+
Index23()
|
|
2489
|
+
], CompanyMemberRole.prototype, "userId", 2);
|
|
2490
|
+
__decorateClass([
|
|
2491
|
+
ManyToOne24(() => User),
|
|
2492
|
+
JoinColumn24({ name: "user_id" })
|
|
2493
|
+
], CompanyMemberRole.prototype, "user", 2);
|
|
2494
|
+
__decorateClass([
|
|
2495
|
+
ManyToOne24(() => CompanyRole),
|
|
2496
|
+
JoinColumn24({ name: "company_role_id" })
|
|
2497
|
+
], CompanyMemberRole.prototype, "role", 2);
|
|
2498
|
+
__decorateClass([
|
|
2499
|
+
Column27({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2500
|
+
Index23()
|
|
2501
|
+
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
2502
|
+
__decorateClass([
|
|
2503
|
+
Column27({ name: "assigned_by", type: "integer", nullable: true })
|
|
2504
|
+
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
2505
|
+
CompanyMemberRole = __decorateClass([
|
|
2506
|
+
Entity26("company_member_roles")
|
|
2507
|
+
], CompanyMemberRole);
|
|
2508
|
+
|
|
2463
2509
|
// src/entities/user.entity.ts
|
|
2464
2510
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2465
2511
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2485,51 +2531,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2485
2531
|
var User = class extends BaseEntity {
|
|
2486
2532
|
};
|
|
2487
2533
|
__decorateClass([
|
|
2488
|
-
|
|
2534
|
+
Column28({ name: "unique_id", type: "varchar", unique: true })
|
|
2489
2535
|
], User.prototype, "uniqueId", 2);
|
|
2490
2536
|
__decorateClass([
|
|
2491
|
-
|
|
2492
|
-
|
|
2537
|
+
Column28({ name: "parent_id", type: "integer", nullable: true }),
|
|
2538
|
+
Index24()
|
|
2493
2539
|
], User.prototype, "parentId", 2);
|
|
2494
2540
|
__decorateClass([
|
|
2495
|
-
|
|
2496
|
-
|
|
2541
|
+
ManyToOne25(() => User, (user) => user.children, { nullable: true }),
|
|
2542
|
+
JoinColumn25({ name: "parent_id" })
|
|
2497
2543
|
], User.prototype, "parent", 2);
|
|
2498
2544
|
__decorateClass([
|
|
2499
2545
|
OneToMany8(() => User, (user) => user.parent)
|
|
2500
2546
|
], User.prototype, "children", 2);
|
|
2501
2547
|
__decorateClass([
|
|
2502
|
-
|
|
2548
|
+
Column28({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2503
2549
|
], User.prototype, "username", 2);
|
|
2504
2550
|
__decorateClass([
|
|
2505
|
-
|
|
2551
|
+
Column28({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2506
2552
|
], User.prototype, "firstName", 2);
|
|
2507
2553
|
__decorateClass([
|
|
2508
|
-
|
|
2554
|
+
Column28({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2509
2555
|
], User.prototype, "lastName", 2);
|
|
2510
2556
|
__decorateClass([
|
|
2511
|
-
|
|
2557
|
+
Column28({ name: "date_of_birth", type: "date", nullable: true })
|
|
2512
2558
|
], User.prototype, "dateOfBirth", 2);
|
|
2513
2559
|
__decorateClass([
|
|
2514
|
-
|
|
2560
|
+
Column28({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2515
2561
|
], User.prototype, "gender", 2);
|
|
2516
2562
|
__decorateClass([
|
|
2517
|
-
|
|
2563
|
+
Column28({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2518
2564
|
], User.prototype, "profilePictureUrl", 2);
|
|
2519
2565
|
__decorateClass([
|
|
2520
|
-
|
|
2566
|
+
Column28({ name: "email", type: "varchar", unique: true })
|
|
2521
2567
|
], User.prototype, "email", 2);
|
|
2522
2568
|
__decorateClass([
|
|
2523
|
-
|
|
2569
|
+
Column28({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2524
2570
|
], User.prototype, "mobileCode", 2);
|
|
2525
2571
|
__decorateClass([
|
|
2526
|
-
|
|
2572
|
+
Column28({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2527
2573
|
], User.prototype, "mobile", 2);
|
|
2528
2574
|
__decorateClass([
|
|
2529
|
-
|
|
2575
|
+
Column28({ name: "password", type: "varchar", nullable: true })
|
|
2530
2576
|
], User.prototype, "password", 2);
|
|
2531
2577
|
__decorateClass([
|
|
2532
|
-
|
|
2578
|
+
Column28({
|
|
2533
2579
|
name: "account_type",
|
|
2534
2580
|
type: "enum",
|
|
2535
2581
|
enum: AccountType,
|
|
@@ -2537,7 +2583,7 @@ __decorateClass([
|
|
|
2537
2583
|
})
|
|
2538
2584
|
], User.prototype, "accountType", 2);
|
|
2539
2585
|
__decorateClass([
|
|
2540
|
-
|
|
2586
|
+
Column28({
|
|
2541
2587
|
name: "account_status",
|
|
2542
2588
|
type: "enum",
|
|
2543
2589
|
enum: AccountStatus,
|
|
@@ -2545,26 +2591,26 @@ __decorateClass([
|
|
|
2545
2591
|
})
|
|
2546
2592
|
], User.prototype, "accountStatus", 2);
|
|
2547
2593
|
__decorateClass([
|
|
2548
|
-
|
|
2594
|
+
Column28({ name: "is_email_verified", type: "boolean", default: false })
|
|
2549
2595
|
], User.prototype, "isEmailVerified", 2);
|
|
2550
2596
|
__decorateClass([
|
|
2551
|
-
|
|
2597
|
+
Column28({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2552
2598
|
], User.prototype, "isMobileVerified", 2);
|
|
2553
2599
|
__decorateClass([
|
|
2554
|
-
|
|
2600
|
+
Column28({
|
|
2555
2601
|
name: "last_login_at",
|
|
2556
2602
|
type: "timestamp with time zone",
|
|
2557
2603
|
nullable: true
|
|
2558
2604
|
})
|
|
2559
2605
|
], User.prototype, "lastLoginAt", 2);
|
|
2560
2606
|
__decorateClass([
|
|
2561
|
-
|
|
2607
|
+
Column28({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2562
2608
|
], User.prototype, "lastLoginIp", 2);
|
|
2563
2609
|
__decorateClass([
|
|
2564
|
-
|
|
2610
|
+
Column28({ name: "reset_token", type: "varchar", nullable: true })
|
|
2565
2611
|
], User.prototype, "resetToken", 2);
|
|
2566
2612
|
__decorateClass([
|
|
2567
|
-
|
|
2613
|
+
Column28({
|
|
2568
2614
|
name: "reset_token_expire_at",
|
|
2569
2615
|
type: "timestamp with time zone",
|
|
2570
2616
|
nullable: true
|
|
@@ -2574,7 +2620,7 @@ __decorateClass([
|
|
|
2574
2620
|
OneToMany8(() => RefreshToken, (token) => token.user)
|
|
2575
2621
|
], User.prototype, "refreshTokens", 2);
|
|
2576
2622
|
__decorateClass([
|
|
2577
|
-
|
|
2623
|
+
Column28({
|
|
2578
2624
|
name: "provider",
|
|
2579
2625
|
type: "enum",
|
|
2580
2626
|
enum: Provider,
|
|
@@ -2583,16 +2629,16 @@ __decorateClass([
|
|
|
2583
2629
|
})
|
|
2584
2630
|
], User.prototype, "provider", 2);
|
|
2585
2631
|
__decorateClass([
|
|
2586
|
-
|
|
2632
|
+
Column28({ name: "provider_token", type: "varchar", nullable: true })
|
|
2587
2633
|
], User.prototype, "providerToken", 2);
|
|
2588
2634
|
__decorateClass([
|
|
2589
|
-
|
|
2635
|
+
Column28({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2590
2636
|
], User.prototype, "linkedInId", 2);
|
|
2591
2637
|
__decorateClass([
|
|
2592
|
-
|
|
2638
|
+
Column28({ name: "google_id", type: "varchar", nullable: true })
|
|
2593
2639
|
], User.prototype, "googleId", 2);
|
|
2594
2640
|
__decorateClass([
|
|
2595
|
-
|
|
2641
|
+
Column28({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2596
2642
|
], User.prototype, "gitLabsId", 2);
|
|
2597
2643
|
__decorateClass([
|
|
2598
2644
|
OneToMany8(() => Otp, (otp) => otp.user)
|
|
@@ -2612,8 +2658,8 @@ __decorateClass([
|
|
|
2612
2658
|
})
|
|
2613
2659
|
], User.prototype, "companyProfile", 2);
|
|
2614
2660
|
__decorateClass([
|
|
2615
|
-
OneToMany8(() =>
|
|
2616
|
-
], User.prototype, "
|
|
2661
|
+
OneToMany8(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
2662
|
+
], User.prototype, "companyMemberRoles", 2);
|
|
2617
2663
|
__decorateClass([
|
|
2618
2664
|
OneToMany8(
|
|
2619
2665
|
() => FreelancerAssessment,
|
|
@@ -2690,7 +2736,7 @@ __decorateClass([
|
|
|
2690
2736
|
)
|
|
2691
2737
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2692
2738
|
User = __decorateClass([
|
|
2693
|
-
|
|
2739
|
+
Entity27("users")
|
|
2694
2740
|
], User);
|
|
2695
2741
|
|
|
2696
2742
|
// src/entities/rating.entity.ts
|
|
@@ -2702,36 +2748,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2702
2748
|
var Rating = class extends BaseEntity {
|
|
2703
2749
|
};
|
|
2704
2750
|
__decorateClass([
|
|
2705
|
-
|
|
2706
|
-
|
|
2751
|
+
Column29({ name: "reviewer_id", type: "integer" }),
|
|
2752
|
+
Index25()
|
|
2707
2753
|
], Rating.prototype, "reviewer_id", 2);
|
|
2708
2754
|
__decorateClass([
|
|
2709
|
-
|
|
2710
|
-
|
|
2755
|
+
ManyToOne26(() => User, { onDelete: "CASCADE" }),
|
|
2756
|
+
JoinColumn26({ name: "reviewer_id" })
|
|
2711
2757
|
], Rating.prototype, "reviewer", 2);
|
|
2712
2758
|
__decorateClass([
|
|
2713
|
-
|
|
2714
|
-
|
|
2759
|
+
Column29({ name: "reviewee_id", type: "integer" }),
|
|
2760
|
+
Index25()
|
|
2715
2761
|
], Rating.prototype, "reviewee_id", 2);
|
|
2716
2762
|
__decorateClass([
|
|
2717
|
-
|
|
2718
|
-
|
|
2763
|
+
ManyToOne26(() => User, { onDelete: "CASCADE" }),
|
|
2764
|
+
JoinColumn26({ name: "reviewee_id" })
|
|
2719
2765
|
], Rating.prototype, "reviewee", 2);
|
|
2720
2766
|
__decorateClass([
|
|
2721
|
-
|
|
2767
|
+
Column29({
|
|
2722
2768
|
type: "enum",
|
|
2723
2769
|
enum: RatingTypeEnum,
|
|
2724
2770
|
nullable: true
|
|
2725
2771
|
})
|
|
2726
2772
|
], Rating.prototype, "ratingType", 2);
|
|
2727
2773
|
__decorateClass([
|
|
2728
|
-
|
|
2774
|
+
Column29({ type: "integer", nullable: true })
|
|
2729
2775
|
], Rating.prototype, "rating", 2);
|
|
2730
2776
|
__decorateClass([
|
|
2731
|
-
|
|
2777
|
+
Column29({ type: "text", nullable: true })
|
|
2732
2778
|
], Rating.prototype, "review", 2);
|
|
2733
2779
|
Rating = __decorateClass([
|
|
2734
|
-
|
|
2780
|
+
Entity28("ratings")
|
|
2735
2781
|
], Rating);
|
|
2736
2782
|
|
|
2737
2783
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2879,10 +2925,8 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
2879
2925
|
};
|
|
2880
2926
|
|
|
2881
2927
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
2882
|
-
import { IsNotEmpty as IsNotEmpty33 } from "class-validator";
|
|
2928
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as IsNotEmpty33 } from "class-validator";
|
|
2883
2929
|
var CreateCompanyMemberDto = class {
|
|
2884
|
-
// @IsNotEmpty({ message: 'Please enter company role id' })
|
|
2885
|
-
// companyRoleId: number;
|
|
2886
2930
|
};
|
|
2887
2931
|
__decorateClass([
|
|
2888
2932
|
IsNotEmpty33({ message: "Please enter name." })
|
|
@@ -2890,9 +2934,14 @@ __decorateClass([
|
|
|
2890
2934
|
__decorateClass([
|
|
2891
2935
|
IsNotEmpty33({ message: "Please enter email" })
|
|
2892
2936
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
2937
|
+
__decorateClass([
|
|
2938
|
+
IsArray4({ message: "Role IDs must be an array." }),
|
|
2939
|
+
ArrayNotEmpty4({ message: "Please select at least one role." }),
|
|
2940
|
+
IsInt4({ each: true, message: "Each role ID must be an integer." })
|
|
2941
|
+
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
2893
2942
|
|
|
2894
2943
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
2895
|
-
import { IsNotEmpty as IsNotEmpty34 } from "class-validator";
|
|
2944
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as IsNotEmpty34 } from "class-validator";
|
|
2896
2945
|
var UpdateCompanyMemberDto = class {
|
|
2897
2946
|
};
|
|
2898
2947
|
__decorateClass([
|
|
@@ -2901,6 +2950,11 @@ __decorateClass([
|
|
|
2901
2950
|
__decorateClass([
|
|
2902
2951
|
IsNotEmpty34({ message: "Please enter email" })
|
|
2903
2952
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
2953
|
+
__decorateClass([
|
|
2954
|
+
IsArray5({ message: "Role IDs must be an array." }),
|
|
2955
|
+
ArrayNotEmpty5({ message: "Please select at least one role." }),
|
|
2956
|
+
IsInt5({ each: true, message: "Each role ID must be an integer." })
|
|
2957
|
+
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
2904
2958
|
|
|
2905
2959
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
2906
2960
|
import { IsBoolean as IsBoolean11 } from "class-validator";
|
|
@@ -2917,7 +2971,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
2917
2971
|
};
|
|
2918
2972
|
|
|
2919
2973
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
2920
|
-
import { IsArray as
|
|
2974
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional15 } from "class-validator";
|
|
2921
2975
|
import { Type as Type3 } from "class-transformer";
|
|
2922
2976
|
var EducationDto = class {
|
|
2923
2977
|
};
|
|
@@ -2939,7 +2993,7 @@ __decorateClass([
|
|
|
2939
2993
|
var FreelancerEducationDto = class {
|
|
2940
2994
|
};
|
|
2941
2995
|
__decorateClass([
|
|
2942
|
-
|
|
2996
|
+
IsArray6(),
|
|
2943
2997
|
ValidateNested2({ each: true }),
|
|
2944
2998
|
Type3(() => EducationDto)
|
|
2945
2999
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
@@ -2951,7 +3005,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
2951
3005
|
};
|
|
2952
3006
|
|
|
2953
3007
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
2954
|
-
import { IsArray as
|
|
3008
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength12 } from "class-validator";
|
|
2955
3009
|
import { Type as Type4 } from "class-transformer";
|
|
2956
3010
|
var ProjectDto = class {
|
|
2957
3011
|
};
|
|
@@ -3004,12 +3058,12 @@ __decorateClass([
|
|
|
3004
3058
|
var FreelancerProjectDto = class {
|
|
3005
3059
|
};
|
|
3006
3060
|
__decorateClass([
|
|
3007
|
-
|
|
3061
|
+
IsArray7(),
|
|
3008
3062
|
ValidateNested3({ each: true }),
|
|
3009
3063
|
Type4(() => ProjectDto)
|
|
3010
3064
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
3011
3065
|
__decorateClass([
|
|
3012
|
-
|
|
3066
|
+
IsArray7(),
|
|
3013
3067
|
ValidateNested3({ each: true }),
|
|
3014
3068
|
Type4(() => CaseStudyDto)
|
|
3015
3069
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
@@ -3026,7 +3080,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3026
3080
|
};
|
|
3027
3081
|
|
|
3028
3082
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3029
|
-
import { IsArray as
|
|
3083
|
+
import { IsArray as IsArray8, IsString as IsString25, IsOptional as IsOptional17 } from "class-validator";
|
|
3030
3084
|
import { Type as Type5 } from "class-transformer";
|
|
3031
3085
|
var FreelancerSkillDto = class {
|
|
3032
3086
|
constructor() {
|
|
@@ -3037,19 +3091,19 @@ var FreelancerSkillDto = class {
|
|
|
3037
3091
|
};
|
|
3038
3092
|
__decorateClass([
|
|
3039
3093
|
IsOptional17(),
|
|
3040
|
-
|
|
3094
|
+
IsArray8(),
|
|
3041
3095
|
Type5(() => String),
|
|
3042
3096
|
IsString25({ each: true })
|
|
3043
3097
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3044
3098
|
__decorateClass([
|
|
3045
3099
|
IsOptional17(),
|
|
3046
|
-
|
|
3100
|
+
IsArray8(),
|
|
3047
3101
|
Type5(() => String),
|
|
3048
3102
|
IsString25({ each: true })
|
|
3049
3103
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3050
3104
|
__decorateClass([
|
|
3051
3105
|
IsOptional17(),
|
|
3052
|
-
|
|
3106
|
+
IsArray8(),
|
|
3053
3107
|
Type5(() => String),
|
|
3054
3108
|
IsString25({ each: true })
|
|
3055
3109
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
@@ -3359,7 +3413,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3359
3413
|
};
|
|
3360
3414
|
|
|
3361
3415
|
// src/entities/question.entity.ts
|
|
3362
|
-
import { Entity as
|
|
3416
|
+
import { Entity as Entity29, Column as Column30 } from "typeorm";
|
|
3363
3417
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3364
3418
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3365
3419
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3368,16 +3422,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3368
3422
|
var Question = class extends BaseEntity {
|
|
3369
3423
|
};
|
|
3370
3424
|
__decorateClass([
|
|
3371
|
-
|
|
3425
|
+
Column30({ name: "question", type: "varchar" })
|
|
3372
3426
|
], Question.prototype, "question", 2);
|
|
3373
3427
|
__decorateClass([
|
|
3374
|
-
|
|
3428
|
+
Column30({ name: "hint", type: "varchar", nullable: true })
|
|
3375
3429
|
], Question.prototype, "hint", 2);
|
|
3376
3430
|
__decorateClass([
|
|
3377
|
-
|
|
3431
|
+
Column30({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3378
3432
|
], Question.prototype, "slug", 2);
|
|
3379
3433
|
__decorateClass([
|
|
3380
|
-
|
|
3434
|
+
Column30({
|
|
3381
3435
|
name: "question_for",
|
|
3382
3436
|
type: "enum",
|
|
3383
3437
|
enum: QuestionFor,
|
|
@@ -3385,96 +3439,96 @@ __decorateClass([
|
|
|
3385
3439
|
})
|
|
3386
3440
|
], Question.prototype, "questionFor", 2);
|
|
3387
3441
|
__decorateClass([
|
|
3388
|
-
|
|
3442
|
+
Column30({ name: "type", type: "varchar", nullable: true })
|
|
3389
3443
|
], Question.prototype, "type", 2);
|
|
3390
3444
|
__decorateClass([
|
|
3391
|
-
|
|
3445
|
+
Column30({ name: "options", type: "jsonb", nullable: true })
|
|
3392
3446
|
], Question.prototype, "options", 2);
|
|
3393
3447
|
__decorateClass([
|
|
3394
|
-
|
|
3448
|
+
Column30({ name: "is_active", type: "boolean", default: false })
|
|
3395
3449
|
], Question.prototype, "isActive", 2);
|
|
3396
3450
|
Question = __decorateClass([
|
|
3397
|
-
|
|
3451
|
+
Entity29("questions")
|
|
3398
3452
|
], Question);
|
|
3399
3453
|
|
|
3400
3454
|
// src/entities/job-role.entity.ts
|
|
3401
|
-
import { Entity as
|
|
3455
|
+
import { Entity as Entity30, Column as Column31 } from "typeorm";
|
|
3402
3456
|
var JobRoles = class extends BaseEntity {
|
|
3403
3457
|
};
|
|
3404
3458
|
__decorateClass([
|
|
3405
|
-
|
|
3459
|
+
Column31({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3406
3460
|
], JobRoles.prototype, "slug", 2);
|
|
3407
3461
|
__decorateClass([
|
|
3408
|
-
|
|
3462
|
+
Column31({ name: "name", type: "varchar", nullable: true })
|
|
3409
3463
|
], JobRoles.prototype, "name", 2);
|
|
3410
3464
|
__decorateClass([
|
|
3411
|
-
|
|
3465
|
+
Column31({ name: "is_active", type: "boolean", default: true })
|
|
3412
3466
|
], JobRoles.prototype, "isActive", 2);
|
|
3413
3467
|
JobRoles = __decorateClass([
|
|
3414
|
-
|
|
3468
|
+
Entity30("job_roles")
|
|
3415
3469
|
], JobRoles);
|
|
3416
3470
|
|
|
3417
3471
|
// src/entities/plan.entity.ts
|
|
3418
|
-
import { Entity as
|
|
3472
|
+
import { Entity as Entity32, Column as Column33, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
3419
3473
|
|
|
3420
3474
|
// src/entities/feature.entity.ts
|
|
3421
|
-
import { Entity as
|
|
3475
|
+
import { Entity as Entity31, Column as Column32, ManyToMany as ManyToMany2 } from "typeorm";
|
|
3422
3476
|
var Feature = class extends BaseEntity {
|
|
3423
3477
|
};
|
|
3424
3478
|
__decorateClass([
|
|
3425
|
-
|
|
3479
|
+
Column32({ name: "name", type: "varchar", unique: true })
|
|
3426
3480
|
], Feature.prototype, "name", 2);
|
|
3427
3481
|
__decorateClass([
|
|
3428
|
-
|
|
3482
|
+
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
3429
3483
|
], Feature.prototype, "plans", 2);
|
|
3430
3484
|
Feature = __decorateClass([
|
|
3431
|
-
|
|
3485
|
+
Entity31("features")
|
|
3432
3486
|
], Feature);
|
|
3433
3487
|
|
|
3434
3488
|
// src/entities/plan.entity.ts
|
|
3435
3489
|
var Plan = class extends BaseEntity {
|
|
3436
3490
|
};
|
|
3437
3491
|
__decorateClass([
|
|
3438
|
-
|
|
3492
|
+
Column33({ name: "name", type: "varchar", unique: true })
|
|
3439
3493
|
], Plan.prototype, "name", 2);
|
|
3440
3494
|
__decorateClass([
|
|
3441
|
-
|
|
3495
|
+
Column33({ name: "description", type: "varchar", nullable: true })
|
|
3442
3496
|
], Plan.prototype, "description", 2);
|
|
3443
3497
|
__decorateClass([
|
|
3444
|
-
|
|
3498
|
+
Column33({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3445
3499
|
], Plan.prototype, "price", 2);
|
|
3446
3500
|
__decorateClass([
|
|
3447
|
-
|
|
3501
|
+
Column33({ name: "billing_period", type: "varchar" })
|
|
3448
3502
|
], Plan.prototype, "billingPeriod", 2);
|
|
3449
3503
|
__decorateClass([
|
|
3450
|
-
|
|
3504
|
+
Column33({ name: "is_current", type: "boolean", default: false })
|
|
3451
3505
|
], Plan.prototype, "isCurrent", 2);
|
|
3452
3506
|
__decorateClass([
|
|
3453
|
-
|
|
3507
|
+
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3454
3508
|
JoinTable()
|
|
3455
3509
|
], Plan.prototype, "features", 2);
|
|
3456
3510
|
Plan = __decorateClass([
|
|
3457
|
-
|
|
3511
|
+
Entity32("plans")
|
|
3458
3512
|
], Plan);
|
|
3459
3513
|
|
|
3460
3514
|
// src/entities/cms.entity.ts
|
|
3461
|
-
import { Entity as
|
|
3515
|
+
import { Entity as Entity33, Column as Column34 } from "typeorm";
|
|
3462
3516
|
var Cms = class extends BaseEntity {
|
|
3463
3517
|
};
|
|
3464
3518
|
__decorateClass([
|
|
3465
|
-
|
|
3519
|
+
Column34({ name: "title", type: "varchar", nullable: true })
|
|
3466
3520
|
], Cms.prototype, "title", 2);
|
|
3467
3521
|
__decorateClass([
|
|
3468
|
-
|
|
3522
|
+
Column34({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3469
3523
|
], Cms.prototype, "slug", 2);
|
|
3470
3524
|
__decorateClass([
|
|
3471
|
-
|
|
3525
|
+
Column34({ name: "content", type: "varchar", nullable: true })
|
|
3472
3526
|
], Cms.prototype, "content", 2);
|
|
3473
3527
|
__decorateClass([
|
|
3474
|
-
|
|
3528
|
+
Column34({ name: "is_active", type: "boolean", default: true })
|
|
3475
3529
|
], Cms.prototype, "isActive", 2);
|
|
3476
3530
|
Cms = __decorateClass([
|
|
3477
|
-
|
|
3531
|
+
Entity33("cms")
|
|
3478
3532
|
], Cms);
|
|
3479
3533
|
export {
|
|
3480
3534
|
AUTHENTICATION_PATTERN,
|
|
@@ -3498,6 +3552,8 @@ export {
|
|
|
3498
3552
|
ClientCreateAccountDto,
|
|
3499
3553
|
ClientProfileQuestionDto,
|
|
3500
3554
|
Cms,
|
|
3555
|
+
CompanyMemberRole,
|
|
3556
|
+
CompanyOnboardingStepEnum,
|
|
3501
3557
|
CompanyProfile,
|
|
3502
3558
|
CompanyRole,
|
|
3503
3559
|
CompanyRolePermission,
|