@experts_hub/shared 1.0.180 → 1.0.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/company-role.entity.d.ts +3 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +28 -23
- package/dist/index.d.ts +28 -23
- package/dist/index.js +275 -236
- package/dist/index.mjs +330 -281
- package/dist/modules/client-admin/pattern/pattern.d.ts +1 -0
- package/dist/modules/freelancer-admin/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1131,10 +1131,10 @@ var RATING_PATTERN = {
|
|
|
1131
1131
|
var import_class_validator35 = require("class-validator");
|
|
1132
1132
|
|
|
1133
1133
|
// src/entities/rating.entity.ts
|
|
1134
|
-
var
|
|
1134
|
+
var import_typeorm28 = require("typeorm");
|
|
1135
1135
|
|
|
1136
1136
|
// src/entities/user.entity.ts
|
|
1137
|
-
var
|
|
1137
|
+
var import_typeorm27 = require("typeorm");
|
|
1138
1138
|
|
|
1139
1139
|
// src/entities/base.entity.ts
|
|
1140
1140
|
var import_typeorm = require("typeorm");
|
|
@@ -1452,7 +1452,7 @@ __decorateClass([
|
|
|
1452
1452
|
(0, import_typeorm6.Index)()
|
|
1453
1453
|
], CompanyProfile.prototype, "userId", 2);
|
|
1454
1454
|
__decorateClass([
|
|
1455
|
-
(0, import_typeorm6.ManyToOne)(() => User, (user) => user.
|
|
1455
|
+
(0, import_typeorm6.ManyToOne)(() => User, (user) => user.companyProfile),
|
|
1456
1456
|
(0, import_typeorm6.JoinColumn)({ name: "user_id" })
|
|
1457
1457
|
], CompanyProfile.prototype, "user", 2);
|
|
1458
1458
|
__decorateClass([
|
|
@@ -2036,184 +2036,270 @@ SystemPreference = __decorateClass([
|
|
|
2036
2036
|
(0, import_typeorm14.Entity)("system_preferences")
|
|
2037
2037
|
], SystemPreference);
|
|
2038
2038
|
|
|
2039
|
-
// src/entities/
|
|
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
|
|
2040
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
|
+
// src/entities/freelancer-experience.entity.ts
|
|
2126
|
+
var import_typeorm18 = require("typeorm");
|
|
2041
2127
|
var FreelancerExperience = class extends BaseEntity {
|
|
2042
2128
|
};
|
|
2043
2129
|
// individual index to find experence by user
|
|
2044
2130
|
__decorateClass([
|
|
2045
|
-
(0,
|
|
2046
|
-
(0,
|
|
2131
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2132
|
+
(0, import_typeorm18.Index)()
|
|
2047
2133
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2048
2134
|
__decorateClass([
|
|
2049
|
-
(0,
|
|
2050
|
-
(0,
|
|
2135
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
2136
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2051
2137
|
], FreelancerExperience.prototype, "user", 2);
|
|
2052
2138
|
__decorateClass([
|
|
2053
|
-
(0,
|
|
2139
|
+
(0, import_typeorm18.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
2054
2140
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2055
2141
|
__decorateClass([
|
|
2056
|
-
(0,
|
|
2142
|
+
(0, import_typeorm18.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
2057
2143
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2058
2144
|
__decorateClass([
|
|
2059
|
-
(0,
|
|
2145
|
+
(0, import_typeorm18.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
2060
2146
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2061
2147
|
__decorateClass([
|
|
2062
|
-
(0,
|
|
2148
|
+
(0, import_typeorm18.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2063
2149
|
], FreelancerExperience.prototype, "description", 2);
|
|
2064
2150
|
FreelancerExperience = __decorateClass([
|
|
2065
|
-
(0,
|
|
2151
|
+
(0, import_typeorm18.Entity)("freelancer_experiences")
|
|
2066
2152
|
], FreelancerExperience);
|
|
2067
2153
|
|
|
2068
2154
|
// src/entities/freelancer-education.entity.ts
|
|
2069
|
-
var
|
|
2155
|
+
var import_typeorm19 = require("typeorm");
|
|
2070
2156
|
var FreelancerEducation = class extends BaseEntity {
|
|
2071
2157
|
};
|
|
2072
2158
|
// individual index to find education by user
|
|
2073
2159
|
__decorateClass([
|
|
2074
|
-
(0,
|
|
2075
|
-
(0,
|
|
2160
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2161
|
+
(0, import_typeorm19.Index)()
|
|
2076
2162
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2077
2163
|
__decorateClass([
|
|
2078
|
-
(0,
|
|
2079
|
-
(0,
|
|
2164
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
2165
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2080
2166
|
], FreelancerEducation.prototype, "user", 2);
|
|
2081
2167
|
__decorateClass([
|
|
2082
|
-
(0,
|
|
2168
|
+
(0, import_typeorm19.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
2083
2169
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2084
2170
|
__decorateClass([
|
|
2085
|
-
(0,
|
|
2171
|
+
(0, import_typeorm19.Column)({ name: "university", type: "varchar", nullable: true })
|
|
2086
2172
|
], FreelancerEducation.prototype, "university", 2);
|
|
2087
2173
|
__decorateClass([
|
|
2088
|
-
(0,
|
|
2174
|
+
(0, import_typeorm19.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2089
2175
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2090
2176
|
FreelancerEducation = __decorateClass([
|
|
2091
|
-
(0,
|
|
2177
|
+
(0, import_typeorm19.Entity)("freelancer_educations")
|
|
2092
2178
|
], FreelancerEducation);
|
|
2093
2179
|
|
|
2094
2180
|
// src/entities/freelancer-project.entity.ts
|
|
2095
|
-
var
|
|
2181
|
+
var import_typeorm20 = require("typeorm");
|
|
2096
2182
|
var FreelancerProject = class extends BaseEntity {
|
|
2097
2183
|
};
|
|
2098
2184
|
// individual index to find project by user
|
|
2099
2185
|
__decorateClass([
|
|
2100
|
-
(0,
|
|
2101
|
-
(0,
|
|
2186
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2187
|
+
(0, import_typeorm20.Index)()
|
|
2102
2188
|
], FreelancerProject.prototype, "userId", 2);
|
|
2103
2189
|
__decorateClass([
|
|
2104
|
-
(0,
|
|
2105
|
-
(0,
|
|
2190
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
2191
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2106
2192
|
], FreelancerProject.prototype, "user", 2);
|
|
2107
2193
|
__decorateClass([
|
|
2108
|
-
(0,
|
|
2194
|
+
(0, import_typeorm20.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2109
2195
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2110
2196
|
__decorateClass([
|
|
2111
|
-
(0,
|
|
2197
|
+
(0, import_typeorm20.Column)({ name: "start_date", type: "date", nullable: true })
|
|
2112
2198
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2113
2199
|
__decorateClass([
|
|
2114
|
-
(0,
|
|
2200
|
+
(0, import_typeorm20.Column)({ name: "end_date", type: "date", nullable: true })
|
|
2115
2201
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2116
2202
|
__decorateClass([
|
|
2117
|
-
(0,
|
|
2203
|
+
(0, import_typeorm20.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
2118
2204
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2119
2205
|
__decorateClass([
|
|
2120
|
-
(0,
|
|
2206
|
+
(0, import_typeorm20.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
2121
2207
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2122
2208
|
__decorateClass([
|
|
2123
|
-
(0,
|
|
2209
|
+
(0, import_typeorm20.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2124
2210
|
], FreelancerProject.prototype, "description", 2);
|
|
2125
2211
|
FreelancerProject = __decorateClass([
|
|
2126
|
-
(0,
|
|
2212
|
+
(0, import_typeorm20.Entity)("freelancer_projects")
|
|
2127
2213
|
], FreelancerProject);
|
|
2128
2214
|
|
|
2129
2215
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2130
|
-
var
|
|
2216
|
+
var import_typeorm21 = require("typeorm");
|
|
2131
2217
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2132
2218
|
};
|
|
2133
2219
|
// individual index to find case study by user
|
|
2134
2220
|
__decorateClass([
|
|
2135
|
-
(0,
|
|
2136
|
-
(0,
|
|
2221
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2222
|
+
(0, import_typeorm21.Index)()
|
|
2137
2223
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2138
2224
|
__decorateClass([
|
|
2139
|
-
(0,
|
|
2140
|
-
(0,
|
|
2225
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
2226
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2141
2227
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2142
2228
|
__decorateClass([
|
|
2143
|
-
(0,
|
|
2229
|
+
(0, import_typeorm21.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2144
2230
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2145
2231
|
__decorateClass([
|
|
2146
|
-
(0,
|
|
2232
|
+
(0, import_typeorm21.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2147
2233
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2148
2234
|
__decorateClass([
|
|
2149
|
-
(0,
|
|
2235
|
+
(0, import_typeorm21.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2150
2236
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2151
2237
|
FreelancerCaseStudy = __decorateClass([
|
|
2152
|
-
(0,
|
|
2238
|
+
(0, import_typeorm21.Entity)("freelancer_case_studies")
|
|
2153
2239
|
], FreelancerCaseStudy);
|
|
2154
2240
|
|
|
2155
2241
|
// src/entities/freelancer-coreskill.entity.ts
|
|
2156
|
-
var
|
|
2242
|
+
var import_typeorm22 = require("typeorm");
|
|
2157
2243
|
var FreelancerCoreSkill = class extends BaseEntity {
|
|
2158
2244
|
};
|
|
2159
2245
|
// individual index to find core skills by user
|
|
2160
2246
|
__decorateClass([
|
|
2161
|
-
(0,
|
|
2162
|
-
(0,
|
|
2247
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2248
|
+
(0, import_typeorm22.Index)()
|
|
2163
2249
|
], FreelancerCoreSkill.prototype, "userId", 2);
|
|
2164
2250
|
__decorateClass([
|
|
2165
|
-
(0,
|
|
2166
|
-
(0,
|
|
2251
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerCoreSkill),
|
|
2252
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2167
2253
|
], FreelancerCoreSkill.prototype, "user", 2);
|
|
2168
2254
|
__decorateClass([
|
|
2169
|
-
(0,
|
|
2255
|
+
(0, import_typeorm22.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2170
2256
|
], FreelancerCoreSkill.prototype, "skillName", 2);
|
|
2171
2257
|
FreelancerCoreSkill = __decorateClass([
|
|
2172
|
-
(0,
|
|
2258
|
+
(0, import_typeorm22.Entity)("freelancer_coreskills")
|
|
2173
2259
|
], FreelancerCoreSkill);
|
|
2174
2260
|
|
|
2175
2261
|
// src/entities/freelancer-tool.entity.ts
|
|
2176
|
-
var
|
|
2262
|
+
var import_typeorm23 = require("typeorm");
|
|
2177
2263
|
var FreelancerTool = class extends BaseEntity {
|
|
2178
2264
|
};
|
|
2179
2265
|
// individual index to find tool by user
|
|
2180
2266
|
__decorateClass([
|
|
2181
|
-
(0,
|
|
2182
|
-
(0,
|
|
2267
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2268
|
+
(0, import_typeorm23.Index)()
|
|
2183
2269
|
], FreelancerTool.prototype, "userId", 2);
|
|
2184
2270
|
__decorateClass([
|
|
2185
|
-
(0,
|
|
2186
|
-
(0,
|
|
2271
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
2272
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2187
2273
|
], FreelancerTool.prototype, "user", 2);
|
|
2188
2274
|
__decorateClass([
|
|
2189
|
-
(0,
|
|
2275
|
+
(0, import_typeorm23.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
2190
2276
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2191
2277
|
FreelancerTool = __decorateClass([
|
|
2192
|
-
(0,
|
|
2278
|
+
(0, import_typeorm23.Entity)("freelancer_tools")
|
|
2193
2279
|
], FreelancerTool);
|
|
2194
2280
|
|
|
2195
2281
|
// src/entities/freelancer-framework.entity.ts
|
|
2196
|
-
var
|
|
2282
|
+
var import_typeorm24 = require("typeorm");
|
|
2197
2283
|
var FreelancerFramework = class extends BaseEntity {
|
|
2198
2284
|
};
|
|
2199
2285
|
// individual index to find framework by user
|
|
2200
2286
|
__decorateClass([
|
|
2201
|
-
(0,
|
|
2202
|
-
(0,
|
|
2287
|
+
(0, import_typeorm24.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2288
|
+
(0, import_typeorm24.Index)()
|
|
2203
2289
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2204
2290
|
__decorateClass([
|
|
2205
|
-
(0,
|
|
2206
|
-
(0,
|
|
2291
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
2292
|
+
(0, import_typeorm24.JoinColumn)({ name: "user_id" })
|
|
2207
2293
|
], FreelancerFramework.prototype, "user", 2);
|
|
2208
2294
|
__decorateClass([
|
|
2209
|
-
(0,
|
|
2295
|
+
(0, import_typeorm24.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
2210
2296
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2211
2297
|
FreelancerFramework = __decorateClass([
|
|
2212
|
-
(0,
|
|
2298
|
+
(0, import_typeorm24.Entity)("freelancer_frameworks")
|
|
2213
2299
|
], FreelancerFramework);
|
|
2214
2300
|
|
|
2215
2301
|
// src/entities/freelancer-assessment.entity.ts
|
|
2216
|
-
var
|
|
2302
|
+
var import_typeorm25 = require("typeorm");
|
|
2217
2303
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2218
2304
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2219
2305
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -2227,21 +2313,21 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2227
2313
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2228
2314
|
};
|
|
2229
2315
|
__decorateClass([
|
|
2230
|
-
(0,
|
|
2231
|
-
(0,
|
|
2316
|
+
(0, import_typeorm25.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2317
|
+
(0, import_typeorm25.Index)()
|
|
2232
2318
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2233
2319
|
__decorateClass([
|
|
2234
|
-
(0,
|
|
2235
|
-
(0,
|
|
2320
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.assessments),
|
|
2321
|
+
(0, import_typeorm25.JoinColumn)({ name: "user_id" })
|
|
2236
2322
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2237
2323
|
__decorateClass([
|
|
2238
|
-
(0,
|
|
2324
|
+
(0, import_typeorm25.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
2239
2325
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2240
2326
|
__decorateClass([
|
|
2241
|
-
(0,
|
|
2327
|
+
(0, import_typeorm25.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
2242
2328
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2243
2329
|
__decorateClass([
|
|
2244
|
-
(0,
|
|
2330
|
+
(0, import_typeorm25.Column)({
|
|
2245
2331
|
name: "status",
|
|
2246
2332
|
type: "enum",
|
|
2247
2333
|
enum: AssessmentStatusEnum,
|
|
@@ -2249,11 +2335,11 @@ __decorateClass([
|
|
|
2249
2335
|
})
|
|
2250
2336
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2251
2337
|
FreelancerAssessment = __decorateClass([
|
|
2252
|
-
(0,
|
|
2338
|
+
(0, import_typeorm25.Entity)("freelancer_assessments")
|
|
2253
2339
|
], FreelancerAssessment);
|
|
2254
2340
|
|
|
2255
2341
|
// src/entities/freelancer-declaration.entity.ts
|
|
2256
|
-
var
|
|
2342
|
+
var import_typeorm26 = require("typeorm");
|
|
2257
2343
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2258
2344
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
2259
2345
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -2265,15 +2351,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2265
2351
|
};
|
|
2266
2352
|
// individual index to find declaration by user
|
|
2267
2353
|
__decorateClass([
|
|
2268
|
-
(0,
|
|
2269
|
-
(0,
|
|
2354
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2355
|
+
(0, import_typeorm26.Index)()
|
|
2270
2356
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2271
2357
|
__decorateClass([
|
|
2272
|
-
(0,
|
|
2273
|
-
(0,
|
|
2358
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
2359
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
2274
2360
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2275
2361
|
__decorateClass([
|
|
2276
|
-
(0,
|
|
2362
|
+
(0, import_typeorm26.Column)({
|
|
2277
2363
|
name: "document_type",
|
|
2278
2364
|
type: "enum",
|
|
2279
2365
|
enum: DocumentType,
|
|
@@ -2281,19 +2367,19 @@ __decorateClass([
|
|
|
2281
2367
|
})
|
|
2282
2368
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2283
2369
|
__decorateClass([
|
|
2284
|
-
(0,
|
|
2370
|
+
(0, import_typeorm26.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2285
2371
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2286
2372
|
__decorateClass([
|
|
2287
|
-
(0,
|
|
2373
|
+
(0, import_typeorm26.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2288
2374
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2289
2375
|
__decorateClass([
|
|
2290
|
-
(0,
|
|
2376
|
+
(0, import_typeorm26.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2291
2377
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2292
2378
|
__decorateClass([
|
|
2293
|
-
(0,
|
|
2379
|
+
(0, import_typeorm26.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2294
2380
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2295
2381
|
FreelancerDeclaration = __decorateClass([
|
|
2296
|
-
(0,
|
|
2382
|
+
(0, import_typeorm26.Entity)("freelancer_declaration")
|
|
2297
2383
|
], FreelancerDeclaration);
|
|
2298
2384
|
|
|
2299
2385
|
// src/entities/user.entity.ts
|
|
@@ -2321,51 +2407,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2321
2407
|
var User = class extends BaseEntity {
|
|
2322
2408
|
};
|
|
2323
2409
|
__decorateClass([
|
|
2324
|
-
(0,
|
|
2410
|
+
(0, import_typeorm27.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
2325
2411
|
], User.prototype, "uniqueId", 2);
|
|
2326
2412
|
__decorateClass([
|
|
2327
|
-
(0,
|
|
2328
|
-
(0,
|
|
2413
|
+
(0, import_typeorm27.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2414
|
+
(0, import_typeorm27.Index)()
|
|
2329
2415
|
], User.prototype, "parentId", 2);
|
|
2330
2416
|
__decorateClass([
|
|
2331
|
-
(0,
|
|
2332
|
-
(0,
|
|
2417
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2418
|
+
(0, import_typeorm27.JoinColumn)({ name: "parent_id" })
|
|
2333
2419
|
], User.prototype, "parent", 2);
|
|
2334
2420
|
__decorateClass([
|
|
2335
|
-
(0,
|
|
2421
|
+
(0, import_typeorm27.OneToMany)(() => User, (user) => user.parent)
|
|
2336
2422
|
], User.prototype, "children", 2);
|
|
2337
2423
|
__decorateClass([
|
|
2338
|
-
(0,
|
|
2424
|
+
(0, import_typeorm27.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2339
2425
|
], User.prototype, "username", 2);
|
|
2340
2426
|
__decorateClass([
|
|
2341
|
-
(0,
|
|
2427
|
+
(0, import_typeorm27.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2342
2428
|
], User.prototype, "firstName", 2);
|
|
2343
2429
|
__decorateClass([
|
|
2344
|
-
(0,
|
|
2430
|
+
(0, import_typeorm27.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2345
2431
|
], User.prototype, "lastName", 2);
|
|
2346
2432
|
__decorateClass([
|
|
2347
|
-
(0,
|
|
2433
|
+
(0, import_typeorm27.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
2348
2434
|
], User.prototype, "dateOfBirth", 2);
|
|
2349
2435
|
__decorateClass([
|
|
2350
|
-
(0,
|
|
2436
|
+
(0, import_typeorm27.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2351
2437
|
], User.prototype, "gender", 2);
|
|
2352
2438
|
__decorateClass([
|
|
2353
|
-
(0,
|
|
2439
|
+
(0, import_typeorm27.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2354
2440
|
], User.prototype, "profilePictureUrl", 2);
|
|
2355
2441
|
__decorateClass([
|
|
2356
|
-
(0,
|
|
2442
|
+
(0, import_typeorm27.Column)({ name: "email", type: "varchar", unique: true })
|
|
2357
2443
|
], User.prototype, "email", 2);
|
|
2358
2444
|
__decorateClass([
|
|
2359
|
-
(0,
|
|
2445
|
+
(0, import_typeorm27.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2360
2446
|
], User.prototype, "mobileCode", 2);
|
|
2361
2447
|
__decorateClass([
|
|
2362
|
-
(0,
|
|
2448
|
+
(0, import_typeorm27.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2363
2449
|
], User.prototype, "mobile", 2);
|
|
2364
2450
|
__decorateClass([
|
|
2365
|
-
(0,
|
|
2451
|
+
(0, import_typeorm27.Column)({ name: "password", type: "varchar", nullable: true })
|
|
2366
2452
|
], User.prototype, "password", 2);
|
|
2367
2453
|
__decorateClass([
|
|
2368
|
-
(0,
|
|
2454
|
+
(0, import_typeorm27.Column)({
|
|
2369
2455
|
name: "account_type",
|
|
2370
2456
|
type: "enum",
|
|
2371
2457
|
enum: AccountType,
|
|
@@ -2373,7 +2459,7 @@ __decorateClass([
|
|
|
2373
2459
|
})
|
|
2374
2460
|
], User.prototype, "accountType", 2);
|
|
2375
2461
|
__decorateClass([
|
|
2376
|
-
(0,
|
|
2462
|
+
(0, import_typeorm27.Column)({
|
|
2377
2463
|
name: "account_status",
|
|
2378
2464
|
type: "enum",
|
|
2379
2465
|
enum: AccountStatus,
|
|
@@ -2381,36 +2467,36 @@ __decorateClass([
|
|
|
2381
2467
|
})
|
|
2382
2468
|
], User.prototype, "accountStatus", 2);
|
|
2383
2469
|
__decorateClass([
|
|
2384
|
-
(0,
|
|
2470
|
+
(0, import_typeorm27.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2385
2471
|
], User.prototype, "isEmailVerified", 2);
|
|
2386
2472
|
__decorateClass([
|
|
2387
|
-
(0,
|
|
2473
|
+
(0, import_typeorm27.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2388
2474
|
], User.prototype, "isMobileVerified", 2);
|
|
2389
2475
|
__decorateClass([
|
|
2390
|
-
(0,
|
|
2476
|
+
(0, import_typeorm27.Column)({
|
|
2391
2477
|
name: "last_login_at",
|
|
2392
2478
|
type: "timestamp with time zone",
|
|
2393
2479
|
nullable: true
|
|
2394
2480
|
})
|
|
2395
2481
|
], User.prototype, "lastLoginAt", 2);
|
|
2396
2482
|
__decorateClass([
|
|
2397
|
-
(0,
|
|
2483
|
+
(0, import_typeorm27.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2398
2484
|
], User.prototype, "lastLoginIp", 2);
|
|
2399
2485
|
__decorateClass([
|
|
2400
|
-
(0,
|
|
2486
|
+
(0, import_typeorm27.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2401
2487
|
], User.prototype, "resetToken", 2);
|
|
2402
2488
|
__decorateClass([
|
|
2403
|
-
(0,
|
|
2489
|
+
(0, import_typeorm27.Column)({
|
|
2404
2490
|
name: "reset_token_expire_at",
|
|
2405
2491
|
type: "timestamp with time zone",
|
|
2406
2492
|
nullable: true
|
|
2407
2493
|
})
|
|
2408
2494
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2409
2495
|
__decorateClass([
|
|
2410
|
-
(0,
|
|
2496
|
+
(0, import_typeorm27.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2411
2497
|
], User.prototype, "refreshTokens", 2);
|
|
2412
2498
|
__decorateClass([
|
|
2413
|
-
(0,
|
|
2499
|
+
(0, import_typeorm27.Column)({
|
|
2414
2500
|
name: "provider",
|
|
2415
2501
|
type: "enum",
|
|
2416
2502
|
enum: Provider,
|
|
@@ -2419,85 +2505,114 @@ __decorateClass([
|
|
|
2419
2505
|
})
|
|
2420
2506
|
], User.prototype, "provider", 2);
|
|
2421
2507
|
__decorateClass([
|
|
2422
|
-
(0,
|
|
2508
|
+
(0, import_typeorm27.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2423
2509
|
], User.prototype, "providerToken", 2);
|
|
2424
2510
|
__decorateClass([
|
|
2425
|
-
(0,
|
|
2511
|
+
(0, import_typeorm27.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2426
2512
|
], User.prototype, "linkedInId", 2);
|
|
2427
2513
|
__decorateClass([
|
|
2428
|
-
(0,
|
|
2514
|
+
(0, import_typeorm27.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2429
2515
|
], User.prototype, "googleId", 2);
|
|
2430
2516
|
__decorateClass([
|
|
2431
|
-
(0,
|
|
2517
|
+
(0, import_typeorm27.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2432
2518
|
], User.prototype, "gitLabsId", 2);
|
|
2433
2519
|
__decorateClass([
|
|
2434
|
-
(0,
|
|
2520
|
+
(0, import_typeorm27.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2435
2521
|
], User.prototype, "otps", 2);
|
|
2436
2522
|
__decorateClass([
|
|
2437
|
-
(0,
|
|
2523
|
+
(0, import_typeorm27.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2438
2524
|
], User.prototype, "senseloafLogs", 2);
|
|
2439
2525
|
__decorateClass([
|
|
2440
|
-
(0,
|
|
2526
|
+
(0, import_typeorm27.OneToOne)(
|
|
2441
2527
|
() => FreelancerProfile,
|
|
2442
2528
|
(freelancerProfile) => freelancerProfile.user
|
|
2443
2529
|
)
|
|
2444
2530
|
], User.prototype, "freelancerProfile", 2);
|
|
2445
2531
|
__decorateClass([
|
|
2446
|
-
(0,
|
|
2532
|
+
(0, import_typeorm27.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, {
|
|
2533
|
+
cascade: true
|
|
2534
|
+
})
|
|
2447
2535
|
], User.prototype, "companyProfile", 2);
|
|
2448
2536
|
__decorateClass([
|
|
2449
|
-
(0,
|
|
2537
|
+
(0, import_typeorm27.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2538
|
+
], User.prototype, "companyRoles", 2);
|
|
2539
|
+
__decorateClass([
|
|
2540
|
+
(0, import_typeorm27.OneToMany)(
|
|
2541
|
+
() => FreelancerAssessment,
|
|
2542
|
+
(freelancerAssessment) => freelancerAssessment.user
|
|
2543
|
+
)
|
|
2450
2544
|
], User.prototype, "assessments", 2);
|
|
2451
2545
|
__decorateClass([
|
|
2452
|
-
(0,
|
|
2546
|
+
(0, import_typeorm27.OneToMany)(() => Job, (job) => job.user)
|
|
2453
2547
|
], User.prototype, "jobs", 2);
|
|
2454
2548
|
__decorateClass([
|
|
2455
|
-
(0,
|
|
2549
|
+
(0, import_typeorm27.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2456
2550
|
], User.prototype, "interviews", 2);
|
|
2457
2551
|
__decorateClass([
|
|
2458
|
-
(0,
|
|
2552
|
+
(0, import_typeorm27.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2459
2553
|
], User.prototype, "bankDetail", 2);
|
|
2460
2554
|
__decorateClass([
|
|
2461
|
-
(0,
|
|
2555
|
+
(0, import_typeorm27.OneToMany)(
|
|
2462
2556
|
() => SystemPreference,
|
|
2463
2557
|
(systemPreference) => systemPreference.user
|
|
2464
2558
|
)
|
|
2465
2559
|
], User.prototype, "systemPreference", 2);
|
|
2466
2560
|
__decorateClass([
|
|
2467
|
-
(0,
|
|
2561
|
+
(0, import_typeorm27.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2468
2562
|
], User.prototype, "givenRatings", 2);
|
|
2469
2563
|
__decorateClass([
|
|
2470
|
-
(0,
|
|
2564
|
+
(0, import_typeorm27.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2471
2565
|
], User.prototype, "receivedRatings", 2);
|
|
2472
2566
|
__decorateClass([
|
|
2473
|
-
(0,
|
|
2567
|
+
(0, import_typeorm27.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2474
2568
|
], User.prototype, "jobApplications", 2);
|
|
2475
2569
|
__decorateClass([
|
|
2476
|
-
(0,
|
|
2570
|
+
(0, import_typeorm27.OneToOne)(
|
|
2571
|
+
() => FreelancerExperience,
|
|
2572
|
+
(freelancerExperience) => freelancerExperience.user
|
|
2573
|
+
)
|
|
2477
2574
|
], User.prototype, "freelancerExperience", 2);
|
|
2478
2575
|
__decorateClass([
|
|
2479
|
-
(0,
|
|
2576
|
+
(0, import_typeorm27.OneToOne)(
|
|
2577
|
+
() => FreelancerEducation,
|
|
2578
|
+
(freelancerEducation) => freelancerEducation.user
|
|
2579
|
+
)
|
|
2480
2580
|
], User.prototype, "freelancerEducation", 2);
|
|
2481
2581
|
__decorateClass([
|
|
2482
|
-
(0,
|
|
2582
|
+
(0, import_typeorm27.OneToOne)(
|
|
2583
|
+
() => FreelancerProject,
|
|
2584
|
+
(freelancerProject) => freelancerProject.user
|
|
2585
|
+
)
|
|
2483
2586
|
], User.prototype, "freelancerProject", 2);
|
|
2484
2587
|
__decorateClass([
|
|
2485
|
-
(0,
|
|
2588
|
+
(0, import_typeorm27.OneToOne)(
|
|
2589
|
+
() => FreelancerCaseStudy,
|
|
2590
|
+
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
2591
|
+
)
|
|
2486
2592
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
2487
2593
|
__decorateClass([
|
|
2488
|
-
(0,
|
|
2594
|
+
(0, import_typeorm27.OneToOne)(
|
|
2595
|
+
() => FreelancerCoreSkill,
|
|
2596
|
+
(freelancerCoreSkill) => freelancerCoreSkill.user
|
|
2597
|
+
)
|
|
2489
2598
|
], User.prototype, "freelancerCoreSkill", 2);
|
|
2490
2599
|
__decorateClass([
|
|
2491
|
-
(0,
|
|
2600
|
+
(0, import_typeorm27.OneToOne)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
2492
2601
|
], User.prototype, "freelancerTool", 2);
|
|
2493
2602
|
__decorateClass([
|
|
2494
|
-
(0,
|
|
2603
|
+
(0, import_typeorm27.OneToOne)(
|
|
2604
|
+
() => FreelancerFramework,
|
|
2605
|
+
(freelancerFramework) => freelancerFramework.user
|
|
2606
|
+
)
|
|
2495
2607
|
], User.prototype, "freelancerFramework", 2);
|
|
2496
2608
|
__decorateClass([
|
|
2497
|
-
(0,
|
|
2609
|
+
(0, import_typeorm27.OneToOne)(
|
|
2610
|
+
() => FreelancerDeclaration,
|
|
2611
|
+
(freelancerDeclaration) => freelancerDeclaration.user
|
|
2612
|
+
)
|
|
2498
2613
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2499
2614
|
User = __decorateClass([
|
|
2500
|
-
(0,
|
|
2615
|
+
(0, import_typeorm27.Entity)("users")
|
|
2501
2616
|
], User);
|
|
2502
2617
|
|
|
2503
2618
|
// src/entities/rating.entity.ts
|
|
@@ -2509,36 +2624,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2509
2624
|
var Rating = class extends BaseEntity {
|
|
2510
2625
|
};
|
|
2511
2626
|
__decorateClass([
|
|
2512
|
-
(0,
|
|
2513
|
-
(0,
|
|
2627
|
+
(0, import_typeorm28.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2628
|
+
(0, import_typeorm28.Index)()
|
|
2514
2629
|
], Rating.prototype, "reviewer_id", 2);
|
|
2515
2630
|
__decorateClass([
|
|
2516
|
-
(0,
|
|
2517
|
-
(0,
|
|
2631
|
+
(0, import_typeorm28.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2632
|
+
(0, import_typeorm28.JoinColumn)({ name: "reviewer_id" })
|
|
2518
2633
|
], Rating.prototype, "reviewer", 2);
|
|
2519
2634
|
__decorateClass([
|
|
2520
|
-
(0,
|
|
2521
|
-
(0,
|
|
2635
|
+
(0, import_typeorm28.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2636
|
+
(0, import_typeorm28.Index)()
|
|
2522
2637
|
], Rating.prototype, "reviewee_id", 2);
|
|
2523
2638
|
__decorateClass([
|
|
2524
|
-
(0,
|
|
2525
|
-
(0,
|
|
2639
|
+
(0, import_typeorm28.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2640
|
+
(0, import_typeorm28.JoinColumn)({ name: "reviewee_id" })
|
|
2526
2641
|
], Rating.prototype, "reviewee", 2);
|
|
2527
2642
|
__decorateClass([
|
|
2528
|
-
(0,
|
|
2643
|
+
(0, import_typeorm28.Column)({
|
|
2529
2644
|
type: "enum",
|
|
2530
2645
|
enum: RatingTypeEnum,
|
|
2531
2646
|
nullable: true
|
|
2532
2647
|
})
|
|
2533
2648
|
], Rating.prototype, "ratingType", 2);
|
|
2534
2649
|
__decorateClass([
|
|
2535
|
-
(0,
|
|
2650
|
+
(0, import_typeorm28.Column)({ type: "integer", nullable: true })
|
|
2536
2651
|
], Rating.prototype, "rating", 2);
|
|
2537
2652
|
__decorateClass([
|
|
2538
|
-
(0,
|
|
2653
|
+
(0, import_typeorm28.Column)({ type: "text", nullable: true })
|
|
2539
2654
|
], Rating.prototype, "review", 2);
|
|
2540
2655
|
Rating = __decorateClass([
|
|
2541
|
-
(0,
|
|
2656
|
+
(0, import_typeorm28.Entity)("ratings")
|
|
2542
2657
|
], Rating);
|
|
2543
2658
|
|
|
2544
2659
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2858,13 +2973,15 @@ __decorateClass([
|
|
|
2858
2973
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
2859
2974
|
var FREELANCER_ADMIN_PATTERNS = {
|
|
2860
2975
|
fetchAdminFreelancers: "fetch.admin.freelancers",
|
|
2861
|
-
exportAdminFreelancers: "export.admin.freelancers"
|
|
2976
|
+
exportAdminFreelancers: "export.admin.freelancers",
|
|
2977
|
+
fetchFreelancerCount: "fetch.freelancer.count"
|
|
2862
2978
|
};
|
|
2863
2979
|
|
|
2864
2980
|
// src/modules/client-admin/pattern/pattern.ts
|
|
2865
2981
|
var CLIENT_ADMIN_PATTERNS = {
|
|
2866
2982
|
fetchAdminClients: "fetch.admin.clients",
|
|
2867
|
-
exportAdminClients: "export.admin.clients"
|
|
2983
|
+
exportAdminClients: "export.admin.clients",
|
|
2984
|
+
fetchClientCount: "fetch.client.count"
|
|
2868
2985
|
};
|
|
2869
2986
|
|
|
2870
2987
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -3158,7 +3275,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3158
3275
|
};
|
|
3159
3276
|
|
|
3160
3277
|
// src/entities/question.entity.ts
|
|
3161
|
-
var
|
|
3278
|
+
var import_typeorm29 = require("typeorm");
|
|
3162
3279
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3163
3280
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3164
3281
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3167,16 +3284,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3167
3284
|
var Question = class extends BaseEntity {
|
|
3168
3285
|
};
|
|
3169
3286
|
__decorateClass([
|
|
3170
|
-
(0,
|
|
3287
|
+
(0, import_typeorm29.Column)({ name: "question", type: "varchar" })
|
|
3171
3288
|
], Question.prototype, "question", 2);
|
|
3172
3289
|
__decorateClass([
|
|
3173
|
-
(0,
|
|
3290
|
+
(0, import_typeorm29.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
3174
3291
|
], Question.prototype, "hint", 2);
|
|
3175
3292
|
__decorateClass([
|
|
3176
|
-
(0,
|
|
3293
|
+
(0, import_typeorm29.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3177
3294
|
], Question.prototype, "slug", 2);
|
|
3178
3295
|
__decorateClass([
|
|
3179
|
-
(0,
|
|
3296
|
+
(0, import_typeorm29.Column)({
|
|
3180
3297
|
name: "question_for",
|
|
3181
3298
|
type: "enum",
|
|
3182
3299
|
enum: QuestionFor,
|
|
@@ -3184,96 +3301,18 @@ __decorateClass([
|
|
|
3184
3301
|
})
|
|
3185
3302
|
], Question.prototype, "questionFor", 2);
|
|
3186
3303
|
__decorateClass([
|
|
3187
|
-
(0,
|
|
3304
|
+
(0, import_typeorm29.Column)({ name: "type", type: "varchar", nullable: true })
|
|
3188
3305
|
], Question.prototype, "type", 2);
|
|
3189
3306
|
__decorateClass([
|
|
3190
|
-
(0,
|
|
3307
|
+
(0, import_typeorm29.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
3191
3308
|
], Question.prototype, "options", 2);
|
|
3192
3309
|
__decorateClass([
|
|
3193
|
-
(0,
|
|
3310
|
+
(0, import_typeorm29.Column)({ name: "is_active", type: "boolean", default: false })
|
|
3194
3311
|
], Question.prototype, "isActive", 2);
|
|
3195
3312
|
Question = __decorateClass([
|
|
3196
|
-
(0,
|
|
3313
|
+
(0, import_typeorm29.Entity)("questions")
|
|
3197
3314
|
], Question);
|
|
3198
3315
|
|
|
3199
|
-
// src/entities/company-role.entity.ts
|
|
3200
|
-
var import_typeorm29 = require("typeorm");
|
|
3201
|
-
|
|
3202
|
-
// src/entities/company-role-permission.entity.ts
|
|
3203
|
-
var import_typeorm28 = require("typeorm");
|
|
3204
|
-
|
|
3205
|
-
// src/entities/permission.entity.ts
|
|
3206
|
-
var import_typeorm27 = require("typeorm");
|
|
3207
|
-
var Permission = class extends BaseEntity {
|
|
3208
|
-
};
|
|
3209
|
-
__decorateClass([
|
|
3210
|
-
(0, import_typeorm27.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3211
|
-
], Permission.prototype, "name", 2);
|
|
3212
|
-
__decorateClass([
|
|
3213
|
-
(0, import_typeorm27.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3214
|
-
(0, import_typeorm27.Index)()
|
|
3215
|
-
], Permission.prototype, "slug", 2);
|
|
3216
|
-
__decorateClass([
|
|
3217
|
-
(0, import_typeorm27.Column)({ name: "description", type: "text", nullable: true })
|
|
3218
|
-
], Permission.prototype, "description", 2);
|
|
3219
|
-
__decorateClass([
|
|
3220
|
-
(0, import_typeorm27.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3221
|
-
], Permission.prototype, "isActive", 2);
|
|
3222
|
-
Permission = __decorateClass([
|
|
3223
|
-
(0, import_typeorm27.Entity)("permissions")
|
|
3224
|
-
], Permission);
|
|
3225
|
-
|
|
3226
|
-
// src/entities/company-role-permission.entity.ts
|
|
3227
|
-
var CompanyRolePermission = class extends BaseEntity {
|
|
3228
|
-
};
|
|
3229
|
-
__decorateClass([
|
|
3230
|
-
(0, import_typeorm28.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3231
|
-
(0, import_typeorm28.Index)()
|
|
3232
|
-
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3233
|
-
__decorateClass([
|
|
3234
|
-
(0, import_typeorm28.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3235
|
-
onDelete: "CASCADE"
|
|
3236
|
-
}),
|
|
3237
|
-
(0, import_typeorm28.JoinColumn)({ name: "company_role_id" })
|
|
3238
|
-
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3239
|
-
__decorateClass([
|
|
3240
|
-
(0, import_typeorm28.Column)({ name: "permission_id", type: "integer" }),
|
|
3241
|
-
(0, import_typeorm28.Index)()
|
|
3242
|
-
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3243
|
-
__decorateClass([
|
|
3244
|
-
(0, import_typeorm28.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
3245
|
-
(0, import_typeorm28.JoinColumn)({ name: "permission_id" })
|
|
3246
|
-
], CompanyRolePermission.prototype, "permission", 2);
|
|
3247
|
-
__decorateClass([
|
|
3248
|
-
(0, import_typeorm28.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3249
|
-
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3250
|
-
CompanyRolePermission = __decorateClass([
|
|
3251
|
-
(0, import_typeorm28.Entity)("company_role_permissions")
|
|
3252
|
-
], CompanyRolePermission);
|
|
3253
|
-
|
|
3254
|
-
// src/entities/company-role.entity.ts
|
|
3255
|
-
var CompanyRole = class extends BaseEntity {
|
|
3256
|
-
};
|
|
3257
|
-
__decorateClass([
|
|
3258
|
-
(0, import_typeorm29.Column)({ name: "name", type: "varchar" })
|
|
3259
|
-
], CompanyRole.prototype, "name", 2);
|
|
3260
|
-
__decorateClass([
|
|
3261
|
-
(0, import_typeorm29.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3262
|
-
(0, import_typeorm29.Index)()
|
|
3263
|
-
], CompanyRole.prototype, "slug", 2);
|
|
3264
|
-
__decorateClass([
|
|
3265
|
-
(0, import_typeorm29.Column)({ name: "description", type: "text", nullable: true })
|
|
3266
|
-
], CompanyRole.prototype, "description", 2);
|
|
3267
|
-
__decorateClass([
|
|
3268
|
-
(0, import_typeorm29.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3269
|
-
], CompanyRole.prototype, "isActive", 2);
|
|
3270
|
-
__decorateClass([
|
|
3271
|
-
(0, import_typeorm29.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3272
|
-
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3273
|
-
CompanyRole = __decorateClass([
|
|
3274
|
-
(0, import_typeorm29.Entity)("company_roles")
|
|
3275
|
-
], CompanyRole);
|
|
3276
|
-
|
|
3277
3316
|
// src/entities/job-role.entity.ts
|
|
3278
3317
|
var import_typeorm30 = require("typeorm");
|
|
3279
3318
|
var JobRoles = class extends BaseEntity {
|