@experts_hub/shared 1.0.183 → 1.0.184
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/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -2
- package/dist/index.d.mts +39 -28
- package/dist/index.d.ts +39 -28
- package/dist/index.js +308 -269
- package/dist/index.mjs +354 -310
- 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.js
CHANGED
|
@@ -48,6 +48,7 @@ __export(index_exports, {
|
|
|
48
48
|
ClientCreateAccountDto: () => ClientCreateAccountDto,
|
|
49
49
|
ClientProfileQuestionDto: () => ClientProfileQuestionDto,
|
|
50
50
|
Cms: () => Cms,
|
|
51
|
+
CompanyMemberRole: () => CompanyMemberRole,
|
|
51
52
|
CompanyProfile: () => CompanyProfile,
|
|
52
53
|
CompanyRole: () => CompanyRole,
|
|
53
54
|
CompanyRolePermission: () => CompanyRolePermission,
|
|
@@ -1131,10 +1132,10 @@ var RATING_PATTERN = {
|
|
|
1131
1132
|
var import_class_validator35 = require("class-validator");
|
|
1132
1133
|
|
|
1133
1134
|
// src/entities/rating.entity.ts
|
|
1134
|
-
var
|
|
1135
|
+
var import_typeorm29 = require("typeorm");
|
|
1135
1136
|
|
|
1136
1137
|
// src/entities/user.entity.ts
|
|
1137
|
-
var
|
|
1138
|
+
var import_typeorm28 = require("typeorm");
|
|
1138
1139
|
|
|
1139
1140
|
// src/entities/base.entity.ts
|
|
1140
1141
|
var import_typeorm = require("typeorm");
|
|
@@ -2036,270 +2037,184 @@ SystemPreference = __decorateClass([
|
|
|
2036
2037
|
(0, import_typeorm14.Entity)("system_preferences")
|
|
2037
2038
|
], SystemPreference);
|
|
2038
2039
|
|
|
2039
|
-
// src/entities/company-role.entity.ts
|
|
2040
|
-
var import_typeorm17 = require("typeorm");
|
|
2041
|
-
|
|
2042
|
-
// src/entities/company-role-permission.entity.ts
|
|
2043
|
-
var import_typeorm16 = require("typeorm");
|
|
2044
|
-
|
|
2045
|
-
// src/entities/permission.entity.ts
|
|
2046
|
-
var import_typeorm15 = require("typeorm");
|
|
2047
|
-
var Permission = class extends BaseEntity {
|
|
2048
|
-
};
|
|
2049
|
-
__decorateClass([
|
|
2050
|
-
(0, import_typeorm15.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2051
|
-
], Permission.prototype, "name", 2);
|
|
2052
|
-
__decorateClass([
|
|
2053
|
-
(0, import_typeorm15.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2054
|
-
(0, import_typeorm15.Index)()
|
|
2055
|
-
], Permission.prototype, "slug", 2);
|
|
2056
|
-
__decorateClass([
|
|
2057
|
-
(0, import_typeorm15.Column)({ name: "description", type: "text", nullable: true })
|
|
2058
|
-
], Permission.prototype, "description", 2);
|
|
2059
|
-
__decorateClass([
|
|
2060
|
-
(0, import_typeorm15.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2061
|
-
], Permission.prototype, "isActive", 2);
|
|
2062
|
-
Permission = __decorateClass([
|
|
2063
|
-
(0, import_typeorm15.Entity)("permissions")
|
|
2064
|
-
], Permission);
|
|
2065
|
-
|
|
2066
|
-
// src/entities/company-role-permission.entity.ts
|
|
2067
|
-
var CompanyRolePermission = class extends BaseEntity {
|
|
2068
|
-
};
|
|
2069
|
-
__decorateClass([
|
|
2070
|
-
(0, import_typeorm16.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2071
|
-
(0, import_typeorm16.Index)()
|
|
2072
|
-
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2073
|
-
__decorateClass([
|
|
2074
|
-
(0, import_typeorm16.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2075
|
-
onDelete: "CASCADE"
|
|
2076
|
-
}),
|
|
2077
|
-
(0, import_typeorm16.JoinColumn)({ name: "company_role_id" })
|
|
2078
|
-
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2079
|
-
__decorateClass([
|
|
2080
|
-
(0, import_typeorm16.Column)({ name: "permission_id", type: "integer" }),
|
|
2081
|
-
(0, import_typeorm16.Index)()
|
|
2082
|
-
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2083
|
-
__decorateClass([
|
|
2084
|
-
(0, import_typeorm16.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
2085
|
-
(0, import_typeorm16.JoinColumn)({ name: "permission_id" })
|
|
2086
|
-
], CompanyRolePermission.prototype, "permission", 2);
|
|
2087
|
-
__decorateClass([
|
|
2088
|
-
(0, import_typeorm16.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
2089
|
-
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2090
|
-
CompanyRolePermission = __decorateClass([
|
|
2091
|
-
(0, import_typeorm16.Entity)("company_role_permissions")
|
|
2092
|
-
], CompanyRolePermission);
|
|
2093
|
-
|
|
2094
|
-
// src/entities/company-role.entity.ts
|
|
2095
|
-
var CompanyRole = class extends BaseEntity {
|
|
2096
|
-
};
|
|
2097
|
-
__decorateClass([
|
|
2098
|
-
(0, import_typeorm17.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2099
|
-
(0, import_typeorm17.Index)()
|
|
2100
|
-
], CompanyRole.prototype, "userId", 2);
|
|
2101
|
-
__decorateClass([
|
|
2102
|
-
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.otps),
|
|
2103
|
-
(0, import_typeorm17.JoinColumn)({ name: "user_id" })
|
|
2104
|
-
], CompanyRole.prototype, "user", 2);
|
|
2105
|
-
__decorateClass([
|
|
2106
|
-
(0, import_typeorm17.Column)({ name: "name", type: "varchar" })
|
|
2107
|
-
], CompanyRole.prototype, "name", 2);
|
|
2108
|
-
__decorateClass([
|
|
2109
|
-
(0, import_typeorm17.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2110
|
-
(0, import_typeorm17.Index)()
|
|
2111
|
-
], CompanyRole.prototype, "slug", 2);
|
|
2112
|
-
__decorateClass([
|
|
2113
|
-
(0, import_typeorm17.Column)({ name: "description", type: "text", nullable: true })
|
|
2114
|
-
], CompanyRole.prototype, "description", 2);
|
|
2115
|
-
__decorateClass([
|
|
2116
|
-
(0, import_typeorm17.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2117
|
-
], CompanyRole.prototype, "isActive", 2);
|
|
2118
|
-
__decorateClass([
|
|
2119
|
-
(0, import_typeorm17.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2120
|
-
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2121
|
-
CompanyRole = __decorateClass([
|
|
2122
|
-
(0, import_typeorm17.Entity)("company_roles")
|
|
2123
|
-
], CompanyRole);
|
|
2124
|
-
|
|
2125
2040
|
// src/entities/freelancer-experience.entity.ts
|
|
2126
|
-
var
|
|
2041
|
+
var import_typeorm15 = require("typeorm");
|
|
2127
2042
|
var FreelancerExperience = class extends BaseEntity {
|
|
2128
2043
|
};
|
|
2129
2044
|
// individual index to find experence by user
|
|
2130
2045
|
__decorateClass([
|
|
2131
|
-
(0,
|
|
2132
|
-
(0,
|
|
2046
|
+
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2047
|
+
(0, import_typeorm15.Index)()
|
|
2133
2048
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2134
2049
|
__decorateClass([
|
|
2135
|
-
(0,
|
|
2136
|
-
(0,
|
|
2050
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
2051
|
+
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
2137
2052
|
], FreelancerExperience.prototype, "user", 2);
|
|
2138
2053
|
__decorateClass([
|
|
2139
|
-
(0,
|
|
2054
|
+
(0, import_typeorm15.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
2140
2055
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2141
2056
|
__decorateClass([
|
|
2142
|
-
(0,
|
|
2057
|
+
(0, import_typeorm15.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
2143
2058
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2144
2059
|
__decorateClass([
|
|
2145
|
-
(0,
|
|
2060
|
+
(0, import_typeorm15.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
2146
2061
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2147
2062
|
__decorateClass([
|
|
2148
|
-
(0,
|
|
2063
|
+
(0, import_typeorm15.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2149
2064
|
], FreelancerExperience.prototype, "description", 2);
|
|
2150
2065
|
FreelancerExperience = __decorateClass([
|
|
2151
|
-
(0,
|
|
2066
|
+
(0, import_typeorm15.Entity)("freelancer_experiences")
|
|
2152
2067
|
], FreelancerExperience);
|
|
2153
2068
|
|
|
2154
2069
|
// src/entities/freelancer-education.entity.ts
|
|
2155
|
-
var
|
|
2070
|
+
var import_typeorm16 = require("typeorm");
|
|
2156
2071
|
var FreelancerEducation = class extends BaseEntity {
|
|
2157
2072
|
};
|
|
2158
2073
|
// individual index to find education by user
|
|
2159
2074
|
__decorateClass([
|
|
2160
|
-
(0,
|
|
2161
|
-
(0,
|
|
2075
|
+
(0, import_typeorm16.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2076
|
+
(0, import_typeorm16.Index)()
|
|
2162
2077
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2163
2078
|
__decorateClass([
|
|
2164
|
-
(0,
|
|
2165
|
-
(0,
|
|
2079
|
+
(0, import_typeorm16.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
2080
|
+
(0, import_typeorm16.JoinColumn)({ name: "user_id" })
|
|
2166
2081
|
], FreelancerEducation.prototype, "user", 2);
|
|
2167
2082
|
__decorateClass([
|
|
2168
|
-
(0,
|
|
2083
|
+
(0, import_typeorm16.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
2169
2084
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2170
2085
|
__decorateClass([
|
|
2171
|
-
(0,
|
|
2086
|
+
(0, import_typeorm16.Column)({ name: "university", type: "varchar", nullable: true })
|
|
2172
2087
|
], FreelancerEducation.prototype, "university", 2);
|
|
2173
2088
|
__decorateClass([
|
|
2174
|
-
(0,
|
|
2089
|
+
(0, import_typeorm16.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2175
2090
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2176
2091
|
FreelancerEducation = __decorateClass([
|
|
2177
|
-
(0,
|
|
2092
|
+
(0, import_typeorm16.Entity)("freelancer_educations")
|
|
2178
2093
|
], FreelancerEducation);
|
|
2179
2094
|
|
|
2180
2095
|
// src/entities/freelancer-project.entity.ts
|
|
2181
|
-
var
|
|
2096
|
+
var import_typeorm17 = require("typeorm");
|
|
2182
2097
|
var FreelancerProject = class extends BaseEntity {
|
|
2183
2098
|
};
|
|
2184
2099
|
// individual index to find project by user
|
|
2185
2100
|
__decorateClass([
|
|
2186
|
-
(0,
|
|
2187
|
-
(0,
|
|
2101
|
+
(0, import_typeorm17.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2102
|
+
(0, import_typeorm17.Index)()
|
|
2188
2103
|
], FreelancerProject.prototype, "userId", 2);
|
|
2189
2104
|
__decorateClass([
|
|
2190
|
-
(0,
|
|
2191
|
-
(0,
|
|
2105
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
2106
|
+
(0, import_typeorm17.JoinColumn)({ name: "user_id" })
|
|
2192
2107
|
], FreelancerProject.prototype, "user", 2);
|
|
2193
2108
|
__decorateClass([
|
|
2194
|
-
(0,
|
|
2109
|
+
(0, import_typeorm17.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2195
2110
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2196
2111
|
__decorateClass([
|
|
2197
|
-
(0,
|
|
2112
|
+
(0, import_typeorm17.Column)({ name: "start_date", type: "date", nullable: true })
|
|
2198
2113
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2199
2114
|
__decorateClass([
|
|
2200
|
-
(0,
|
|
2115
|
+
(0, import_typeorm17.Column)({ name: "end_date", type: "date", nullable: true })
|
|
2201
2116
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2202
2117
|
__decorateClass([
|
|
2203
|
-
(0,
|
|
2118
|
+
(0, import_typeorm17.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
2204
2119
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2205
2120
|
__decorateClass([
|
|
2206
|
-
(0,
|
|
2121
|
+
(0, import_typeorm17.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
2207
2122
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2208
2123
|
__decorateClass([
|
|
2209
|
-
(0,
|
|
2124
|
+
(0, import_typeorm17.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2210
2125
|
], FreelancerProject.prototype, "description", 2);
|
|
2211
2126
|
FreelancerProject = __decorateClass([
|
|
2212
|
-
(0,
|
|
2127
|
+
(0, import_typeorm17.Entity)("freelancer_projects")
|
|
2213
2128
|
], FreelancerProject);
|
|
2214
2129
|
|
|
2215
2130
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2216
|
-
var
|
|
2131
|
+
var import_typeorm18 = require("typeorm");
|
|
2217
2132
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2218
2133
|
};
|
|
2219
2134
|
// individual index to find case study by user
|
|
2220
2135
|
__decorateClass([
|
|
2221
|
-
(0,
|
|
2222
|
-
(0,
|
|
2136
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2137
|
+
(0, import_typeorm18.Index)()
|
|
2223
2138
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2224
2139
|
__decorateClass([
|
|
2225
|
-
(0,
|
|
2226
|
-
(0,
|
|
2140
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
2141
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2227
2142
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2228
2143
|
__decorateClass([
|
|
2229
|
-
(0,
|
|
2144
|
+
(0, import_typeorm18.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2230
2145
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2231
2146
|
__decorateClass([
|
|
2232
|
-
(0,
|
|
2147
|
+
(0, import_typeorm18.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2233
2148
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2234
2149
|
__decorateClass([
|
|
2235
|
-
(0,
|
|
2150
|
+
(0, import_typeorm18.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2236
2151
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2237
2152
|
FreelancerCaseStudy = __decorateClass([
|
|
2238
|
-
(0,
|
|
2153
|
+
(0, import_typeorm18.Entity)("freelancer_case_studies")
|
|
2239
2154
|
], FreelancerCaseStudy);
|
|
2240
2155
|
|
|
2241
2156
|
// src/entities/freelancer-coreskill.entity.ts
|
|
2242
|
-
var
|
|
2157
|
+
var import_typeorm19 = require("typeorm");
|
|
2243
2158
|
var FreelancerCoreSkill = class extends BaseEntity {
|
|
2244
2159
|
};
|
|
2245
2160
|
// individual index to find core skills by user
|
|
2246
2161
|
__decorateClass([
|
|
2247
|
-
(0,
|
|
2248
|
-
(0,
|
|
2162
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2163
|
+
(0, import_typeorm19.Index)()
|
|
2249
2164
|
], FreelancerCoreSkill.prototype, "userId", 2);
|
|
2250
2165
|
__decorateClass([
|
|
2251
|
-
(0,
|
|
2252
|
-
(0,
|
|
2166
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.freelancerCoreSkill),
|
|
2167
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2253
2168
|
], FreelancerCoreSkill.prototype, "user", 2);
|
|
2254
2169
|
__decorateClass([
|
|
2255
|
-
(0,
|
|
2170
|
+
(0, import_typeorm19.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2256
2171
|
], FreelancerCoreSkill.prototype, "skillName", 2);
|
|
2257
2172
|
FreelancerCoreSkill = __decorateClass([
|
|
2258
|
-
(0,
|
|
2173
|
+
(0, import_typeorm19.Entity)("freelancer_coreskills")
|
|
2259
2174
|
], FreelancerCoreSkill);
|
|
2260
2175
|
|
|
2261
2176
|
// src/entities/freelancer-tool.entity.ts
|
|
2262
|
-
var
|
|
2177
|
+
var import_typeorm20 = require("typeorm");
|
|
2263
2178
|
var FreelancerTool = class extends BaseEntity {
|
|
2264
2179
|
};
|
|
2265
2180
|
// individual index to find tool by user
|
|
2266
2181
|
__decorateClass([
|
|
2267
|
-
(0,
|
|
2268
|
-
(0,
|
|
2182
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2183
|
+
(0, import_typeorm20.Index)()
|
|
2269
2184
|
], FreelancerTool.prototype, "userId", 2);
|
|
2270
2185
|
__decorateClass([
|
|
2271
|
-
(0,
|
|
2272
|
-
(0,
|
|
2186
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
2187
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2273
2188
|
], FreelancerTool.prototype, "user", 2);
|
|
2274
2189
|
__decorateClass([
|
|
2275
|
-
(0,
|
|
2190
|
+
(0, import_typeorm20.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
2276
2191
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2277
2192
|
FreelancerTool = __decorateClass([
|
|
2278
|
-
(0,
|
|
2193
|
+
(0, import_typeorm20.Entity)("freelancer_tools")
|
|
2279
2194
|
], FreelancerTool);
|
|
2280
2195
|
|
|
2281
2196
|
// src/entities/freelancer-framework.entity.ts
|
|
2282
|
-
var
|
|
2197
|
+
var import_typeorm21 = require("typeorm");
|
|
2283
2198
|
var FreelancerFramework = class extends BaseEntity {
|
|
2284
2199
|
};
|
|
2285
2200
|
// individual index to find framework by user
|
|
2286
2201
|
__decorateClass([
|
|
2287
|
-
(0,
|
|
2288
|
-
(0,
|
|
2202
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2203
|
+
(0, import_typeorm21.Index)()
|
|
2289
2204
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2290
2205
|
__decorateClass([
|
|
2291
|
-
(0,
|
|
2292
|
-
(0,
|
|
2206
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
2207
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2293
2208
|
], FreelancerFramework.prototype, "user", 2);
|
|
2294
2209
|
__decorateClass([
|
|
2295
|
-
(0,
|
|
2210
|
+
(0, import_typeorm21.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
2296
2211
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2297
2212
|
FreelancerFramework = __decorateClass([
|
|
2298
|
-
(0,
|
|
2213
|
+
(0, import_typeorm21.Entity)("freelancer_frameworks")
|
|
2299
2214
|
], FreelancerFramework);
|
|
2300
2215
|
|
|
2301
2216
|
// src/entities/freelancer-assessment.entity.ts
|
|
2302
|
-
var
|
|
2217
|
+
var import_typeorm22 = require("typeorm");
|
|
2303
2218
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2304
2219
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2305
2220
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -2313,21 +2228,21 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2313
2228
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2314
2229
|
};
|
|
2315
2230
|
__decorateClass([
|
|
2316
|
-
(0,
|
|
2317
|
-
(0,
|
|
2231
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2232
|
+
(0, import_typeorm22.Index)()
|
|
2318
2233
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2319
2234
|
__decorateClass([
|
|
2320
|
-
(0,
|
|
2321
|
-
(0,
|
|
2235
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.assessments),
|
|
2236
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2322
2237
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2323
2238
|
__decorateClass([
|
|
2324
|
-
(0,
|
|
2239
|
+
(0, import_typeorm22.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
2325
2240
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2326
2241
|
__decorateClass([
|
|
2327
|
-
(0,
|
|
2242
|
+
(0, import_typeorm22.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
2328
2243
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2329
2244
|
__decorateClass([
|
|
2330
|
-
(0,
|
|
2245
|
+
(0, import_typeorm22.Column)({
|
|
2331
2246
|
name: "status",
|
|
2332
2247
|
type: "enum",
|
|
2333
2248
|
enum: AssessmentStatusEnum,
|
|
@@ -2335,11 +2250,11 @@ __decorateClass([
|
|
|
2335
2250
|
})
|
|
2336
2251
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2337
2252
|
FreelancerAssessment = __decorateClass([
|
|
2338
|
-
(0,
|
|
2253
|
+
(0, import_typeorm22.Entity)("freelancer_assessments")
|
|
2339
2254
|
], FreelancerAssessment);
|
|
2340
2255
|
|
|
2341
2256
|
// src/entities/freelancer-declaration.entity.ts
|
|
2342
|
-
var
|
|
2257
|
+
var import_typeorm23 = require("typeorm");
|
|
2343
2258
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2344
2259
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
2345
2260
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -2351,15 +2266,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2351
2266
|
};
|
|
2352
2267
|
// individual index to find declaration by user
|
|
2353
2268
|
__decorateClass([
|
|
2354
|
-
(0,
|
|
2355
|
-
(0,
|
|
2269
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2270
|
+
(0, import_typeorm23.Index)()
|
|
2356
2271
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2357
2272
|
__decorateClass([
|
|
2358
|
-
(0,
|
|
2359
|
-
(0,
|
|
2273
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
2274
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2360
2275
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2361
2276
|
__decorateClass([
|
|
2362
|
-
(0,
|
|
2277
|
+
(0, import_typeorm23.Column)({
|
|
2363
2278
|
name: "document_type",
|
|
2364
2279
|
type: "enum",
|
|
2365
2280
|
enum: DocumentType,
|
|
@@ -2367,21 +2282,136 @@ __decorateClass([
|
|
|
2367
2282
|
})
|
|
2368
2283
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2369
2284
|
__decorateClass([
|
|
2370
|
-
(0,
|
|
2285
|
+
(0, import_typeorm23.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2371
2286
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2372
2287
|
__decorateClass([
|
|
2373
|
-
(0,
|
|
2288
|
+
(0, import_typeorm23.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2374
2289
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2375
2290
|
__decorateClass([
|
|
2376
|
-
(0,
|
|
2291
|
+
(0, import_typeorm23.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2377
2292
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2378
2293
|
__decorateClass([
|
|
2379
|
-
(0,
|
|
2294
|
+
(0, import_typeorm23.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2380
2295
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2381
2296
|
FreelancerDeclaration = __decorateClass([
|
|
2382
|
-
(0,
|
|
2297
|
+
(0, import_typeorm23.Entity)("freelancer_declaration")
|
|
2383
2298
|
], FreelancerDeclaration);
|
|
2384
2299
|
|
|
2300
|
+
// src/entities/company-members-roles.entity.ts
|
|
2301
|
+
var import_typeorm27 = require("typeorm");
|
|
2302
|
+
|
|
2303
|
+
// src/entities/company-role.entity.ts
|
|
2304
|
+
var import_typeorm26 = require("typeorm");
|
|
2305
|
+
|
|
2306
|
+
// src/entities/company-role-permission.entity.ts
|
|
2307
|
+
var import_typeorm25 = require("typeorm");
|
|
2308
|
+
|
|
2309
|
+
// src/entities/permission.entity.ts
|
|
2310
|
+
var import_typeorm24 = require("typeorm");
|
|
2311
|
+
var Permission = class extends BaseEntity {
|
|
2312
|
+
};
|
|
2313
|
+
__decorateClass([
|
|
2314
|
+
(0, import_typeorm24.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2315
|
+
], Permission.prototype, "name", 2);
|
|
2316
|
+
__decorateClass([
|
|
2317
|
+
(0, import_typeorm24.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2318
|
+
(0, import_typeorm24.Index)()
|
|
2319
|
+
], Permission.prototype, "slug", 2);
|
|
2320
|
+
__decorateClass([
|
|
2321
|
+
(0, import_typeorm24.Column)({ name: "description", type: "text", nullable: true })
|
|
2322
|
+
], Permission.prototype, "description", 2);
|
|
2323
|
+
__decorateClass([
|
|
2324
|
+
(0, import_typeorm24.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2325
|
+
], Permission.prototype, "isActive", 2);
|
|
2326
|
+
Permission = __decorateClass([
|
|
2327
|
+
(0, import_typeorm24.Entity)("permissions")
|
|
2328
|
+
], Permission);
|
|
2329
|
+
|
|
2330
|
+
// src/entities/company-role-permission.entity.ts
|
|
2331
|
+
var CompanyRolePermission = class extends BaseEntity {
|
|
2332
|
+
};
|
|
2333
|
+
__decorateClass([
|
|
2334
|
+
(0, import_typeorm25.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2335
|
+
(0, import_typeorm25.Index)()
|
|
2336
|
+
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2337
|
+
__decorateClass([
|
|
2338
|
+
(0, import_typeorm25.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2339
|
+
onDelete: "CASCADE"
|
|
2340
|
+
}),
|
|
2341
|
+
(0, import_typeorm25.JoinColumn)({ name: "company_role_id" })
|
|
2342
|
+
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2343
|
+
__decorateClass([
|
|
2344
|
+
(0, import_typeorm25.Column)({ name: "permission_id", type: "integer" }),
|
|
2345
|
+
(0, import_typeorm25.Index)()
|
|
2346
|
+
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2347
|
+
__decorateClass([
|
|
2348
|
+
(0, import_typeorm25.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
2349
|
+
(0, import_typeorm25.JoinColumn)({ name: "permission_id" })
|
|
2350
|
+
], CompanyRolePermission.prototype, "permission", 2);
|
|
2351
|
+
__decorateClass([
|
|
2352
|
+
(0, import_typeorm25.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
2353
|
+
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2354
|
+
CompanyRolePermission = __decorateClass([
|
|
2355
|
+
(0, import_typeorm25.Entity)("company_role_permissions")
|
|
2356
|
+
], CompanyRolePermission);
|
|
2357
|
+
|
|
2358
|
+
// src/entities/company-role.entity.ts
|
|
2359
|
+
var CompanyRole = class extends BaseEntity {
|
|
2360
|
+
};
|
|
2361
|
+
__decorateClass([
|
|
2362
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2363
|
+
(0, import_typeorm26.Index)()
|
|
2364
|
+
], CompanyRole.prototype, "userId", 2);
|
|
2365
|
+
__decorateClass([
|
|
2366
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.otps),
|
|
2367
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
2368
|
+
], CompanyRole.prototype, "user", 2);
|
|
2369
|
+
__decorateClass([
|
|
2370
|
+
(0, import_typeorm26.Column)({ name: "name", type: "varchar" })
|
|
2371
|
+
], CompanyRole.prototype, "name", 2);
|
|
2372
|
+
__decorateClass([
|
|
2373
|
+
(0, import_typeorm26.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2374
|
+
(0, import_typeorm26.Index)()
|
|
2375
|
+
], CompanyRole.prototype, "slug", 2);
|
|
2376
|
+
__decorateClass([
|
|
2377
|
+
(0, import_typeorm26.Column)({ name: "description", type: "text", nullable: true })
|
|
2378
|
+
], CompanyRole.prototype, "description", 2);
|
|
2379
|
+
__decorateClass([
|
|
2380
|
+
(0, import_typeorm26.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2381
|
+
], CompanyRole.prototype, "isActive", 2);
|
|
2382
|
+
__decorateClass([
|
|
2383
|
+
(0, import_typeorm26.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2384
|
+
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2385
|
+
CompanyRole = __decorateClass([
|
|
2386
|
+
(0, import_typeorm26.Entity)("company_roles")
|
|
2387
|
+
], CompanyRole);
|
|
2388
|
+
|
|
2389
|
+
// src/entities/company-members-roles.entity.ts
|
|
2390
|
+
var CompanyMemberRole = class extends BaseEntity {
|
|
2391
|
+
};
|
|
2392
|
+
__decorateClass([
|
|
2393
|
+
(0, import_typeorm27.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2394
|
+
(0, import_typeorm27.Index)()
|
|
2395
|
+
], CompanyMemberRole.prototype, "userId", 2);
|
|
2396
|
+
__decorateClass([
|
|
2397
|
+
(0, import_typeorm27.ManyToOne)(() => User),
|
|
2398
|
+
(0, import_typeorm27.JoinColumn)({ name: "user_id" })
|
|
2399
|
+
], CompanyMemberRole.prototype, "user", 2);
|
|
2400
|
+
__decorateClass([
|
|
2401
|
+
(0, import_typeorm27.ManyToOne)(() => CompanyRole),
|
|
2402
|
+
(0, import_typeorm27.JoinColumn)({ name: "company_role_id" })
|
|
2403
|
+
], CompanyMemberRole.prototype, "role", 2);
|
|
2404
|
+
__decorateClass([
|
|
2405
|
+
(0, import_typeorm27.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2406
|
+
(0, import_typeorm27.Index)()
|
|
2407
|
+
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
2408
|
+
__decorateClass([
|
|
2409
|
+
(0, import_typeorm27.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
2410
|
+
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
2411
|
+
CompanyMemberRole = __decorateClass([
|
|
2412
|
+
(0, import_typeorm27.Entity)("company_member_roles")
|
|
2413
|
+
], CompanyMemberRole);
|
|
2414
|
+
|
|
2385
2415
|
// src/entities/user.entity.ts
|
|
2386
2416
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2387
2417
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2407,51 +2437,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2407
2437
|
var User = class extends BaseEntity {
|
|
2408
2438
|
};
|
|
2409
2439
|
__decorateClass([
|
|
2410
|
-
(0,
|
|
2440
|
+
(0, import_typeorm28.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
2411
2441
|
], User.prototype, "uniqueId", 2);
|
|
2412
2442
|
__decorateClass([
|
|
2413
|
-
(0,
|
|
2414
|
-
(0,
|
|
2443
|
+
(0, import_typeorm28.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2444
|
+
(0, import_typeorm28.Index)()
|
|
2415
2445
|
], User.prototype, "parentId", 2);
|
|
2416
2446
|
__decorateClass([
|
|
2417
|
-
(0,
|
|
2418
|
-
(0,
|
|
2447
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2448
|
+
(0, import_typeorm28.JoinColumn)({ name: "parent_id" })
|
|
2419
2449
|
], User.prototype, "parent", 2);
|
|
2420
2450
|
__decorateClass([
|
|
2421
|
-
(0,
|
|
2451
|
+
(0, import_typeorm28.OneToMany)(() => User, (user) => user.parent)
|
|
2422
2452
|
], User.prototype, "children", 2);
|
|
2423
2453
|
__decorateClass([
|
|
2424
|
-
(0,
|
|
2454
|
+
(0, import_typeorm28.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2425
2455
|
], User.prototype, "username", 2);
|
|
2426
2456
|
__decorateClass([
|
|
2427
|
-
(0,
|
|
2457
|
+
(0, import_typeorm28.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2428
2458
|
], User.prototype, "firstName", 2);
|
|
2429
2459
|
__decorateClass([
|
|
2430
|
-
(0,
|
|
2460
|
+
(0, import_typeorm28.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2431
2461
|
], User.prototype, "lastName", 2);
|
|
2432
2462
|
__decorateClass([
|
|
2433
|
-
(0,
|
|
2463
|
+
(0, import_typeorm28.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
2434
2464
|
], User.prototype, "dateOfBirth", 2);
|
|
2435
2465
|
__decorateClass([
|
|
2436
|
-
(0,
|
|
2466
|
+
(0, import_typeorm28.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2437
2467
|
], User.prototype, "gender", 2);
|
|
2438
2468
|
__decorateClass([
|
|
2439
|
-
(0,
|
|
2469
|
+
(0, import_typeorm28.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2440
2470
|
], User.prototype, "profilePictureUrl", 2);
|
|
2441
2471
|
__decorateClass([
|
|
2442
|
-
(0,
|
|
2472
|
+
(0, import_typeorm28.Column)({ name: "email", type: "varchar", unique: true })
|
|
2443
2473
|
], User.prototype, "email", 2);
|
|
2444
2474
|
__decorateClass([
|
|
2445
|
-
(0,
|
|
2475
|
+
(0, import_typeorm28.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2446
2476
|
], User.prototype, "mobileCode", 2);
|
|
2447
2477
|
__decorateClass([
|
|
2448
|
-
(0,
|
|
2478
|
+
(0, import_typeorm28.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2449
2479
|
], User.prototype, "mobile", 2);
|
|
2450
2480
|
__decorateClass([
|
|
2451
|
-
(0,
|
|
2481
|
+
(0, import_typeorm28.Column)({ name: "password", type: "varchar", nullable: true })
|
|
2452
2482
|
], User.prototype, "password", 2);
|
|
2453
2483
|
__decorateClass([
|
|
2454
|
-
(0,
|
|
2484
|
+
(0, import_typeorm28.Column)({
|
|
2455
2485
|
name: "account_type",
|
|
2456
2486
|
type: "enum",
|
|
2457
2487
|
enum: AccountType,
|
|
@@ -2459,7 +2489,7 @@ __decorateClass([
|
|
|
2459
2489
|
})
|
|
2460
2490
|
], User.prototype, "accountType", 2);
|
|
2461
2491
|
__decorateClass([
|
|
2462
|
-
(0,
|
|
2492
|
+
(0, import_typeorm28.Column)({
|
|
2463
2493
|
name: "account_status",
|
|
2464
2494
|
type: "enum",
|
|
2465
2495
|
enum: AccountStatus,
|
|
@@ -2467,36 +2497,36 @@ __decorateClass([
|
|
|
2467
2497
|
})
|
|
2468
2498
|
], User.prototype, "accountStatus", 2);
|
|
2469
2499
|
__decorateClass([
|
|
2470
|
-
(0,
|
|
2500
|
+
(0, import_typeorm28.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2471
2501
|
], User.prototype, "isEmailVerified", 2);
|
|
2472
2502
|
__decorateClass([
|
|
2473
|
-
(0,
|
|
2503
|
+
(0, import_typeorm28.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2474
2504
|
], User.prototype, "isMobileVerified", 2);
|
|
2475
2505
|
__decorateClass([
|
|
2476
|
-
(0,
|
|
2506
|
+
(0, import_typeorm28.Column)({
|
|
2477
2507
|
name: "last_login_at",
|
|
2478
2508
|
type: "timestamp with time zone",
|
|
2479
2509
|
nullable: true
|
|
2480
2510
|
})
|
|
2481
2511
|
], User.prototype, "lastLoginAt", 2);
|
|
2482
2512
|
__decorateClass([
|
|
2483
|
-
(0,
|
|
2513
|
+
(0, import_typeorm28.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2484
2514
|
], User.prototype, "lastLoginIp", 2);
|
|
2485
2515
|
__decorateClass([
|
|
2486
|
-
(0,
|
|
2516
|
+
(0, import_typeorm28.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2487
2517
|
], User.prototype, "resetToken", 2);
|
|
2488
2518
|
__decorateClass([
|
|
2489
|
-
(0,
|
|
2519
|
+
(0, import_typeorm28.Column)({
|
|
2490
2520
|
name: "reset_token_expire_at",
|
|
2491
2521
|
type: "timestamp with time zone",
|
|
2492
2522
|
nullable: true
|
|
2493
2523
|
})
|
|
2494
2524
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2495
2525
|
__decorateClass([
|
|
2496
|
-
(0,
|
|
2526
|
+
(0, import_typeorm28.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2497
2527
|
], User.prototype, "refreshTokens", 2);
|
|
2498
2528
|
__decorateClass([
|
|
2499
|
-
(0,
|
|
2529
|
+
(0, import_typeorm28.Column)({
|
|
2500
2530
|
name: "provider",
|
|
2501
2531
|
type: "enum",
|
|
2502
2532
|
enum: Provider,
|
|
@@ -2505,114 +2535,114 @@ __decorateClass([
|
|
|
2505
2535
|
})
|
|
2506
2536
|
], User.prototype, "provider", 2);
|
|
2507
2537
|
__decorateClass([
|
|
2508
|
-
(0,
|
|
2538
|
+
(0, import_typeorm28.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2509
2539
|
], User.prototype, "providerToken", 2);
|
|
2510
2540
|
__decorateClass([
|
|
2511
|
-
(0,
|
|
2541
|
+
(0, import_typeorm28.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2512
2542
|
], User.prototype, "linkedInId", 2);
|
|
2513
2543
|
__decorateClass([
|
|
2514
|
-
(0,
|
|
2544
|
+
(0, import_typeorm28.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2515
2545
|
], User.prototype, "googleId", 2);
|
|
2516
2546
|
__decorateClass([
|
|
2517
|
-
(0,
|
|
2547
|
+
(0, import_typeorm28.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2518
2548
|
], User.prototype, "gitLabsId", 2);
|
|
2519
2549
|
__decorateClass([
|
|
2520
|
-
(0,
|
|
2550
|
+
(0, import_typeorm28.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2521
2551
|
], User.prototype, "otps", 2);
|
|
2522
2552
|
__decorateClass([
|
|
2523
|
-
(0,
|
|
2553
|
+
(0, import_typeorm28.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2524
2554
|
], User.prototype, "senseloafLogs", 2);
|
|
2525
2555
|
__decorateClass([
|
|
2526
|
-
(0,
|
|
2556
|
+
(0, import_typeorm28.OneToOne)(
|
|
2527
2557
|
() => FreelancerProfile,
|
|
2528
2558
|
(freelancerProfile) => freelancerProfile.user
|
|
2529
2559
|
)
|
|
2530
2560
|
], User.prototype, "freelancerProfile", 2);
|
|
2531
2561
|
__decorateClass([
|
|
2532
|
-
(0,
|
|
2562
|
+
(0, import_typeorm28.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, {
|
|
2533
2563
|
cascade: true
|
|
2534
2564
|
})
|
|
2535
2565
|
], User.prototype, "companyProfile", 2);
|
|
2536
2566
|
__decorateClass([
|
|
2537
|
-
(0,
|
|
2538
|
-
], User.prototype, "
|
|
2567
|
+
(0, import_typeorm28.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
2568
|
+
], User.prototype, "companyMemberRoles", 2);
|
|
2539
2569
|
__decorateClass([
|
|
2540
|
-
(0,
|
|
2570
|
+
(0, import_typeorm28.OneToMany)(
|
|
2541
2571
|
() => FreelancerAssessment,
|
|
2542
2572
|
(freelancerAssessment) => freelancerAssessment.user
|
|
2543
2573
|
)
|
|
2544
2574
|
], User.prototype, "assessments", 2);
|
|
2545
2575
|
__decorateClass([
|
|
2546
|
-
(0,
|
|
2576
|
+
(0, import_typeorm28.OneToMany)(() => Job, (job) => job.user)
|
|
2547
2577
|
], User.prototype, "jobs", 2);
|
|
2548
2578
|
__decorateClass([
|
|
2549
|
-
(0,
|
|
2579
|
+
(0, import_typeorm28.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2550
2580
|
], User.prototype, "interviews", 2);
|
|
2551
2581
|
__decorateClass([
|
|
2552
|
-
(0,
|
|
2582
|
+
(0, import_typeorm28.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2553
2583
|
], User.prototype, "bankDetail", 2);
|
|
2554
2584
|
__decorateClass([
|
|
2555
|
-
(0,
|
|
2585
|
+
(0, import_typeorm28.OneToMany)(
|
|
2556
2586
|
() => SystemPreference,
|
|
2557
2587
|
(systemPreference) => systemPreference.user
|
|
2558
2588
|
)
|
|
2559
2589
|
], User.prototype, "systemPreference", 2);
|
|
2560
2590
|
__decorateClass([
|
|
2561
|
-
(0,
|
|
2591
|
+
(0, import_typeorm28.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2562
2592
|
], User.prototype, "givenRatings", 2);
|
|
2563
2593
|
__decorateClass([
|
|
2564
|
-
(0,
|
|
2594
|
+
(0, import_typeorm28.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2565
2595
|
], User.prototype, "receivedRatings", 2);
|
|
2566
2596
|
__decorateClass([
|
|
2567
|
-
(0,
|
|
2597
|
+
(0, import_typeorm28.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2568
2598
|
], User.prototype, "jobApplications", 2);
|
|
2569
2599
|
__decorateClass([
|
|
2570
|
-
(0,
|
|
2600
|
+
(0, import_typeorm28.OneToOne)(
|
|
2571
2601
|
() => FreelancerExperience,
|
|
2572
2602
|
(freelancerExperience) => freelancerExperience.user
|
|
2573
2603
|
)
|
|
2574
2604
|
], User.prototype, "freelancerExperience", 2);
|
|
2575
2605
|
__decorateClass([
|
|
2576
|
-
(0,
|
|
2606
|
+
(0, import_typeorm28.OneToOne)(
|
|
2577
2607
|
() => FreelancerEducation,
|
|
2578
2608
|
(freelancerEducation) => freelancerEducation.user
|
|
2579
2609
|
)
|
|
2580
2610
|
], User.prototype, "freelancerEducation", 2);
|
|
2581
2611
|
__decorateClass([
|
|
2582
|
-
(0,
|
|
2612
|
+
(0, import_typeorm28.OneToOne)(
|
|
2583
2613
|
() => FreelancerProject,
|
|
2584
2614
|
(freelancerProject) => freelancerProject.user
|
|
2585
2615
|
)
|
|
2586
2616
|
], User.prototype, "freelancerProject", 2);
|
|
2587
2617
|
__decorateClass([
|
|
2588
|
-
(0,
|
|
2618
|
+
(0, import_typeorm28.OneToOne)(
|
|
2589
2619
|
() => FreelancerCaseStudy,
|
|
2590
2620
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
2591
2621
|
)
|
|
2592
2622
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
2593
2623
|
__decorateClass([
|
|
2594
|
-
(0,
|
|
2624
|
+
(0, import_typeorm28.OneToOne)(
|
|
2595
2625
|
() => FreelancerCoreSkill,
|
|
2596
2626
|
(freelancerCoreSkill) => freelancerCoreSkill.user
|
|
2597
2627
|
)
|
|
2598
2628
|
], User.prototype, "freelancerCoreSkill", 2);
|
|
2599
2629
|
__decorateClass([
|
|
2600
|
-
(0,
|
|
2630
|
+
(0, import_typeorm28.OneToOne)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
2601
2631
|
], User.prototype, "freelancerTool", 2);
|
|
2602
2632
|
__decorateClass([
|
|
2603
|
-
(0,
|
|
2633
|
+
(0, import_typeorm28.OneToOne)(
|
|
2604
2634
|
() => FreelancerFramework,
|
|
2605
2635
|
(freelancerFramework) => freelancerFramework.user
|
|
2606
2636
|
)
|
|
2607
2637
|
], User.prototype, "freelancerFramework", 2);
|
|
2608
2638
|
__decorateClass([
|
|
2609
|
-
(0,
|
|
2639
|
+
(0, import_typeorm28.OneToOne)(
|
|
2610
2640
|
() => FreelancerDeclaration,
|
|
2611
2641
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
2612
2642
|
)
|
|
2613
2643
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2614
2644
|
User = __decorateClass([
|
|
2615
|
-
(0,
|
|
2645
|
+
(0, import_typeorm28.Entity)("users")
|
|
2616
2646
|
], User);
|
|
2617
2647
|
|
|
2618
2648
|
// src/entities/rating.entity.ts
|
|
@@ -2624,36 +2654,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2624
2654
|
var Rating = class extends BaseEntity {
|
|
2625
2655
|
};
|
|
2626
2656
|
__decorateClass([
|
|
2627
|
-
(0,
|
|
2628
|
-
(0,
|
|
2657
|
+
(0, import_typeorm29.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2658
|
+
(0, import_typeorm29.Index)()
|
|
2629
2659
|
], Rating.prototype, "reviewer_id", 2);
|
|
2630
2660
|
__decorateClass([
|
|
2631
|
-
(0,
|
|
2632
|
-
(0,
|
|
2661
|
+
(0, import_typeorm29.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2662
|
+
(0, import_typeorm29.JoinColumn)({ name: "reviewer_id" })
|
|
2633
2663
|
], Rating.prototype, "reviewer", 2);
|
|
2634
2664
|
__decorateClass([
|
|
2635
|
-
(0,
|
|
2636
|
-
(0,
|
|
2665
|
+
(0, import_typeorm29.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2666
|
+
(0, import_typeorm29.Index)()
|
|
2637
2667
|
], Rating.prototype, "reviewee_id", 2);
|
|
2638
2668
|
__decorateClass([
|
|
2639
|
-
(0,
|
|
2640
|
-
(0,
|
|
2669
|
+
(0, import_typeorm29.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2670
|
+
(0, import_typeorm29.JoinColumn)({ name: "reviewee_id" })
|
|
2641
2671
|
], Rating.prototype, "reviewee", 2);
|
|
2642
2672
|
__decorateClass([
|
|
2643
|
-
(0,
|
|
2673
|
+
(0, import_typeorm29.Column)({
|
|
2644
2674
|
type: "enum",
|
|
2645
2675
|
enum: RatingTypeEnum,
|
|
2646
2676
|
nullable: true
|
|
2647
2677
|
})
|
|
2648
2678
|
], Rating.prototype, "ratingType", 2);
|
|
2649
2679
|
__decorateClass([
|
|
2650
|
-
(0,
|
|
2680
|
+
(0, import_typeorm29.Column)({ type: "integer", nullable: true })
|
|
2651
2681
|
], Rating.prototype, "rating", 2);
|
|
2652
2682
|
__decorateClass([
|
|
2653
|
-
(0,
|
|
2683
|
+
(0, import_typeorm29.Column)({ type: "text", nullable: true })
|
|
2654
2684
|
], Rating.prototype, "review", 2);
|
|
2655
2685
|
Rating = __decorateClass([
|
|
2656
|
-
(0,
|
|
2686
|
+
(0, import_typeorm29.Entity)("ratings")
|
|
2657
2687
|
], Rating);
|
|
2658
2688
|
|
|
2659
2689
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2797,8 +2827,6 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
2797
2827
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
2798
2828
|
var import_class_validator40 = require("class-validator");
|
|
2799
2829
|
var CreateCompanyMemberDto = class {
|
|
2800
|
-
// @IsNotEmpty({ message: 'Please enter company role id' })
|
|
2801
|
-
// companyRoleId: number;
|
|
2802
2830
|
};
|
|
2803
2831
|
__decorateClass([
|
|
2804
2832
|
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter name." })
|
|
@@ -2806,6 +2834,11 @@ __decorateClass([
|
|
|
2806
2834
|
__decorateClass([
|
|
2807
2835
|
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter email" })
|
|
2808
2836
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
2837
|
+
__decorateClass([
|
|
2838
|
+
(0, import_class_validator40.IsArray)({ message: "Role IDs must be an array." }),
|
|
2839
|
+
(0, import_class_validator40.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
2840
|
+
(0, import_class_validator40.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
2841
|
+
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
2809
2842
|
|
|
2810
2843
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
2811
2844
|
var import_class_validator41 = require("class-validator");
|
|
@@ -2817,6 +2850,11 @@ __decorateClass([
|
|
|
2817
2850
|
__decorateClass([
|
|
2818
2851
|
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter email" })
|
|
2819
2852
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
2853
|
+
__decorateClass([
|
|
2854
|
+
(0, import_class_validator41.IsArray)({ message: "Role IDs must be an array." }),
|
|
2855
|
+
(0, import_class_validator41.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
2856
|
+
(0, import_class_validator41.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
2857
|
+
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
2820
2858
|
|
|
2821
2859
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
2822
2860
|
var import_class_validator42 = require("class-validator");
|
|
@@ -3275,7 +3313,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3275
3313
|
};
|
|
3276
3314
|
|
|
3277
3315
|
// src/entities/question.entity.ts
|
|
3278
|
-
var
|
|
3316
|
+
var import_typeorm30 = require("typeorm");
|
|
3279
3317
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3280
3318
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3281
3319
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3284,16 +3322,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3284
3322
|
var Question = class extends BaseEntity {
|
|
3285
3323
|
};
|
|
3286
3324
|
__decorateClass([
|
|
3287
|
-
(0,
|
|
3325
|
+
(0, import_typeorm30.Column)({ name: "question", type: "varchar" })
|
|
3288
3326
|
], Question.prototype, "question", 2);
|
|
3289
3327
|
__decorateClass([
|
|
3290
|
-
(0,
|
|
3328
|
+
(0, import_typeorm30.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
3291
3329
|
], Question.prototype, "hint", 2);
|
|
3292
3330
|
__decorateClass([
|
|
3293
|
-
(0,
|
|
3331
|
+
(0, import_typeorm30.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3294
3332
|
], Question.prototype, "slug", 2);
|
|
3295
3333
|
__decorateClass([
|
|
3296
|
-
(0,
|
|
3334
|
+
(0, import_typeorm30.Column)({
|
|
3297
3335
|
name: "question_for",
|
|
3298
3336
|
type: "enum",
|
|
3299
3337
|
enum: QuestionFor,
|
|
@@ -3301,96 +3339,96 @@ __decorateClass([
|
|
|
3301
3339
|
})
|
|
3302
3340
|
], Question.prototype, "questionFor", 2);
|
|
3303
3341
|
__decorateClass([
|
|
3304
|
-
(0,
|
|
3342
|
+
(0, import_typeorm30.Column)({ name: "type", type: "varchar", nullable: true })
|
|
3305
3343
|
], Question.prototype, "type", 2);
|
|
3306
3344
|
__decorateClass([
|
|
3307
|
-
(0,
|
|
3345
|
+
(0, import_typeorm30.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
3308
3346
|
], Question.prototype, "options", 2);
|
|
3309
3347
|
__decorateClass([
|
|
3310
|
-
(0,
|
|
3348
|
+
(0, import_typeorm30.Column)({ name: "is_active", type: "boolean", default: false })
|
|
3311
3349
|
], Question.prototype, "isActive", 2);
|
|
3312
3350
|
Question = __decorateClass([
|
|
3313
|
-
(0,
|
|
3351
|
+
(0, import_typeorm30.Entity)("questions")
|
|
3314
3352
|
], Question);
|
|
3315
3353
|
|
|
3316
3354
|
// src/entities/job-role.entity.ts
|
|
3317
|
-
var
|
|
3355
|
+
var import_typeorm31 = require("typeorm");
|
|
3318
3356
|
var JobRoles = class extends BaseEntity {
|
|
3319
3357
|
};
|
|
3320
3358
|
__decorateClass([
|
|
3321
|
-
(0,
|
|
3359
|
+
(0, import_typeorm31.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3322
3360
|
], JobRoles.prototype, "slug", 2);
|
|
3323
3361
|
__decorateClass([
|
|
3324
|
-
(0,
|
|
3362
|
+
(0, import_typeorm31.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3325
3363
|
], JobRoles.prototype, "name", 2);
|
|
3326
3364
|
__decorateClass([
|
|
3327
|
-
(0,
|
|
3365
|
+
(0, import_typeorm31.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3328
3366
|
], JobRoles.prototype, "isActive", 2);
|
|
3329
3367
|
JobRoles = __decorateClass([
|
|
3330
|
-
(0,
|
|
3368
|
+
(0, import_typeorm31.Entity)("job_roles")
|
|
3331
3369
|
], JobRoles);
|
|
3332
3370
|
|
|
3333
3371
|
// src/entities/plan.entity.ts
|
|
3334
|
-
var
|
|
3372
|
+
var import_typeorm33 = require("typeorm");
|
|
3335
3373
|
|
|
3336
3374
|
// src/entities/feature.entity.ts
|
|
3337
|
-
var
|
|
3375
|
+
var import_typeorm32 = require("typeorm");
|
|
3338
3376
|
var Feature = class extends BaseEntity {
|
|
3339
3377
|
};
|
|
3340
3378
|
__decorateClass([
|
|
3341
|
-
(0,
|
|
3379
|
+
(0, import_typeorm32.Column)({ name: "name", type: "varchar", unique: true })
|
|
3342
3380
|
], Feature.prototype, "name", 2);
|
|
3343
3381
|
__decorateClass([
|
|
3344
|
-
(0,
|
|
3382
|
+
(0, import_typeorm32.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
3345
3383
|
], Feature.prototype, "plans", 2);
|
|
3346
3384
|
Feature = __decorateClass([
|
|
3347
|
-
(0,
|
|
3385
|
+
(0, import_typeorm32.Entity)("features")
|
|
3348
3386
|
], Feature);
|
|
3349
3387
|
|
|
3350
3388
|
// src/entities/plan.entity.ts
|
|
3351
3389
|
var Plan = class extends BaseEntity {
|
|
3352
3390
|
};
|
|
3353
3391
|
__decorateClass([
|
|
3354
|
-
(0,
|
|
3392
|
+
(0, import_typeorm33.Column)({ name: "name", type: "varchar", unique: true })
|
|
3355
3393
|
], Plan.prototype, "name", 2);
|
|
3356
3394
|
__decorateClass([
|
|
3357
|
-
(0,
|
|
3395
|
+
(0, import_typeorm33.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3358
3396
|
], Plan.prototype, "description", 2);
|
|
3359
3397
|
__decorateClass([
|
|
3360
|
-
(0,
|
|
3398
|
+
(0, import_typeorm33.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3361
3399
|
], Plan.prototype, "price", 2);
|
|
3362
3400
|
__decorateClass([
|
|
3363
|
-
(0,
|
|
3401
|
+
(0, import_typeorm33.Column)({ name: "billing_period", type: "varchar" })
|
|
3364
3402
|
], Plan.prototype, "billingPeriod", 2);
|
|
3365
3403
|
__decorateClass([
|
|
3366
|
-
(0,
|
|
3404
|
+
(0, import_typeorm33.Column)({ name: "is_current", type: "boolean", default: false })
|
|
3367
3405
|
], Plan.prototype, "isCurrent", 2);
|
|
3368
3406
|
__decorateClass([
|
|
3369
|
-
(0,
|
|
3370
|
-
(0,
|
|
3407
|
+
(0, import_typeorm33.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3408
|
+
(0, import_typeorm33.JoinTable)()
|
|
3371
3409
|
], Plan.prototype, "features", 2);
|
|
3372
3410
|
Plan = __decorateClass([
|
|
3373
|
-
(0,
|
|
3411
|
+
(0, import_typeorm33.Entity)("plans")
|
|
3374
3412
|
], Plan);
|
|
3375
3413
|
|
|
3376
3414
|
// src/entities/cms.entity.ts
|
|
3377
|
-
var
|
|
3415
|
+
var import_typeorm34 = require("typeorm");
|
|
3378
3416
|
var Cms = class extends BaseEntity {
|
|
3379
3417
|
};
|
|
3380
3418
|
__decorateClass([
|
|
3381
|
-
(0,
|
|
3419
|
+
(0, import_typeorm34.Column)({ name: "title", type: "varchar", nullable: true })
|
|
3382
3420
|
], Cms.prototype, "title", 2);
|
|
3383
3421
|
__decorateClass([
|
|
3384
|
-
(0,
|
|
3422
|
+
(0, import_typeorm34.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3385
3423
|
], Cms.prototype, "slug", 2);
|
|
3386
3424
|
__decorateClass([
|
|
3387
|
-
(0,
|
|
3425
|
+
(0, import_typeorm34.Column)({ name: "content", type: "varchar", nullable: true })
|
|
3388
3426
|
], Cms.prototype, "content", 2);
|
|
3389
3427
|
__decorateClass([
|
|
3390
|
-
(0,
|
|
3428
|
+
(0, import_typeorm34.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3391
3429
|
], Cms.prototype, "isActive", 2);
|
|
3392
3430
|
Cms = __decorateClass([
|
|
3393
|
-
(0,
|
|
3431
|
+
(0, import_typeorm34.Entity)("cms")
|
|
3394
3432
|
], Cms);
|
|
3395
3433
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3396
3434
|
0 && (module.exports = {
|
|
@@ -3415,6 +3453,7 @@ Cms = __decorateClass([
|
|
|
3415
3453
|
ClientCreateAccountDto,
|
|
3416
3454
|
ClientProfileQuestionDto,
|
|
3417
3455
|
Cms,
|
|
3456
|
+
CompanyMemberRole,
|
|
3418
3457
|
CompanyProfile,
|
|
3419
3458
|
CompanyRole,
|
|
3420
3459
|
CompanyRolePermission,
|