@experts_hub/shared 1.0.175 → 1.0.177
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-permission.entity.d.ts +10 -0
- package/dist/entities/company-role.entity.d.ts +2 -3
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +0 -3
- package/dist/index.d.mts +26 -19
- package/dist/index.d.ts +26 -19
- package/dist/index.js +261 -238
- package/dist/index.mjs +283 -249
- package/dist/modules/cms/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50,6 +50,7 @@ __export(index_exports, {
|
|
|
50
50
|
Cms: () => Cms,
|
|
51
51
|
CompanyProfile: () => CompanyProfile,
|
|
52
52
|
CompanyRole: () => CompanyRole,
|
|
53
|
+
CompanyRolePermission: () => CompanyRolePermission,
|
|
53
54
|
CreateCmsDto: () => CreateCmsDto,
|
|
54
55
|
CreateCompanyMemberDto: () => CreateCompanyMemberDto,
|
|
55
56
|
CreateCompanyRoleDto: () => CreateCompanyRoleDto,
|
|
@@ -1130,10 +1131,10 @@ var RATING_PATTERN = {
|
|
|
1130
1131
|
var import_class_validator35 = require("class-validator");
|
|
1131
1132
|
|
|
1132
1133
|
// src/entities/rating.entity.ts
|
|
1133
|
-
var
|
|
1134
|
+
var import_typeorm25 = require("typeorm");
|
|
1134
1135
|
|
|
1135
1136
|
// src/entities/user.entity.ts
|
|
1136
|
-
var
|
|
1137
|
+
var import_typeorm24 = require("typeorm");
|
|
1137
1138
|
|
|
1138
1139
|
// src/entities/base.entity.ts
|
|
1139
1140
|
var import_typeorm = require("typeorm");
|
|
@@ -2035,214 +2036,184 @@ SystemPreference = __decorateClass([
|
|
|
2035
2036
|
(0, import_typeorm14.Entity)("system_preferences")
|
|
2036
2037
|
], SystemPreference);
|
|
2037
2038
|
|
|
2038
|
-
// src/entities/company-role.entity.ts
|
|
2039
|
-
var import_typeorm15 = require("typeorm");
|
|
2040
|
-
var CompanyRole = class extends BaseEntity {
|
|
2041
|
-
};
|
|
2042
|
-
// individual index to find company roles by user
|
|
2043
|
-
__decorateClass([
|
|
2044
|
-
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2045
|
-
(0, import_typeorm15.Index)()
|
|
2046
|
-
], CompanyRole.prototype, "userId", 2);
|
|
2047
|
-
__decorateClass([
|
|
2048
|
-
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.companyRole),
|
|
2049
|
-
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
2050
|
-
], CompanyRole.prototype, "user", 2);
|
|
2051
|
-
__decorateClass([
|
|
2052
|
-
(0, import_typeorm15.Column)({ name: "name", type: "varchar" })
|
|
2053
|
-
], CompanyRole.prototype, "name", 2);
|
|
2054
|
-
__decorateClass([
|
|
2055
|
-
(0, import_typeorm15.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2056
|
-
(0, import_typeorm15.Index)()
|
|
2057
|
-
], CompanyRole.prototype, "slug", 2);
|
|
2058
|
-
__decorateClass([
|
|
2059
|
-
(0, import_typeorm15.Column)({ name: "description", type: "text", nullable: true })
|
|
2060
|
-
], CompanyRole.prototype, "description", 2);
|
|
2061
|
-
__decorateClass([
|
|
2062
|
-
(0, import_typeorm15.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2063
|
-
], CompanyRole.prototype, "isActive", 2);
|
|
2064
|
-
CompanyRole = __decorateClass([
|
|
2065
|
-
(0, import_typeorm15.Entity)("company_roles")
|
|
2066
|
-
], CompanyRole);
|
|
2067
|
-
|
|
2068
2039
|
// src/entities/freelancer-experience.entity.ts
|
|
2069
|
-
var
|
|
2040
|
+
var import_typeorm15 = require("typeorm");
|
|
2070
2041
|
var FreelancerExperience = class extends BaseEntity {
|
|
2071
2042
|
};
|
|
2072
2043
|
// individual index to find experence by user
|
|
2073
2044
|
__decorateClass([
|
|
2074
|
-
(0,
|
|
2075
|
-
(0,
|
|
2045
|
+
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2046
|
+
(0, import_typeorm15.Index)()
|
|
2076
2047
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2077
2048
|
__decorateClass([
|
|
2078
|
-
(0,
|
|
2079
|
-
(0,
|
|
2049
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
2050
|
+
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
2080
2051
|
], FreelancerExperience.prototype, "user", 2);
|
|
2081
2052
|
__decorateClass([
|
|
2082
|
-
(0,
|
|
2053
|
+
(0, import_typeorm15.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
2083
2054
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2084
2055
|
__decorateClass([
|
|
2085
|
-
(0,
|
|
2056
|
+
(0, import_typeorm15.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
2086
2057
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2087
2058
|
__decorateClass([
|
|
2088
|
-
(0,
|
|
2059
|
+
(0, import_typeorm15.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
2089
2060
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2090
2061
|
__decorateClass([
|
|
2091
|
-
(0,
|
|
2062
|
+
(0, import_typeorm15.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2092
2063
|
], FreelancerExperience.prototype, "description", 2);
|
|
2093
2064
|
FreelancerExperience = __decorateClass([
|
|
2094
|
-
(0,
|
|
2065
|
+
(0, import_typeorm15.Entity)("freelancer_experiences")
|
|
2095
2066
|
], FreelancerExperience);
|
|
2096
2067
|
|
|
2097
2068
|
// src/entities/freelancer-education.entity.ts
|
|
2098
|
-
var
|
|
2069
|
+
var import_typeorm16 = require("typeorm");
|
|
2099
2070
|
var FreelancerEducation = class extends BaseEntity {
|
|
2100
2071
|
};
|
|
2101
2072
|
// individual index to find education by user
|
|
2102
2073
|
__decorateClass([
|
|
2103
|
-
(0,
|
|
2104
|
-
(0,
|
|
2074
|
+
(0, import_typeorm16.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2075
|
+
(0, import_typeorm16.Index)()
|
|
2105
2076
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2106
2077
|
__decorateClass([
|
|
2107
|
-
(0,
|
|
2108
|
-
(0,
|
|
2078
|
+
(0, import_typeorm16.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
2079
|
+
(0, import_typeorm16.JoinColumn)({ name: "user_id" })
|
|
2109
2080
|
], FreelancerEducation.prototype, "user", 2);
|
|
2110
2081
|
__decorateClass([
|
|
2111
|
-
(0,
|
|
2082
|
+
(0, import_typeorm16.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
2112
2083
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2113
2084
|
__decorateClass([
|
|
2114
|
-
(0,
|
|
2085
|
+
(0, import_typeorm16.Column)({ name: "university", type: "varchar", nullable: true })
|
|
2115
2086
|
], FreelancerEducation.prototype, "university", 2);
|
|
2116
2087
|
__decorateClass([
|
|
2117
|
-
(0,
|
|
2088
|
+
(0, import_typeorm16.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2118
2089
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2119
2090
|
FreelancerEducation = __decorateClass([
|
|
2120
|
-
(0,
|
|
2091
|
+
(0, import_typeorm16.Entity)("freelancer_educations")
|
|
2121
2092
|
], FreelancerEducation);
|
|
2122
2093
|
|
|
2123
2094
|
// src/entities/freelancer-project.entity.ts
|
|
2124
|
-
var
|
|
2095
|
+
var import_typeorm17 = require("typeorm");
|
|
2125
2096
|
var FreelancerProject = class extends BaseEntity {
|
|
2126
2097
|
};
|
|
2127
2098
|
// individual index to find project by user
|
|
2128
2099
|
__decorateClass([
|
|
2129
|
-
(0,
|
|
2130
|
-
(0,
|
|
2100
|
+
(0, import_typeorm17.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2101
|
+
(0, import_typeorm17.Index)()
|
|
2131
2102
|
], FreelancerProject.prototype, "userId", 2);
|
|
2132
2103
|
__decorateClass([
|
|
2133
|
-
(0,
|
|
2134
|
-
(0,
|
|
2104
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
2105
|
+
(0, import_typeorm17.JoinColumn)({ name: "user_id" })
|
|
2135
2106
|
], FreelancerProject.prototype, "user", 2);
|
|
2136
2107
|
__decorateClass([
|
|
2137
|
-
(0,
|
|
2108
|
+
(0, import_typeorm17.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2138
2109
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2139
2110
|
__decorateClass([
|
|
2140
|
-
(0,
|
|
2111
|
+
(0, import_typeorm17.Column)({ name: "start_date", type: "date", nullable: true })
|
|
2141
2112
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2142
2113
|
__decorateClass([
|
|
2143
|
-
(0,
|
|
2114
|
+
(0, import_typeorm17.Column)({ name: "end_date", type: "date", nullable: true })
|
|
2144
2115
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2145
2116
|
__decorateClass([
|
|
2146
|
-
(0,
|
|
2117
|
+
(0, import_typeorm17.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
2147
2118
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2148
2119
|
__decorateClass([
|
|
2149
|
-
(0,
|
|
2120
|
+
(0, import_typeorm17.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
2150
2121
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2151
2122
|
__decorateClass([
|
|
2152
|
-
(0,
|
|
2123
|
+
(0, import_typeorm17.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2153
2124
|
], FreelancerProject.prototype, "description", 2);
|
|
2154
2125
|
FreelancerProject = __decorateClass([
|
|
2155
|
-
(0,
|
|
2126
|
+
(0, import_typeorm17.Entity)("freelancer_projects")
|
|
2156
2127
|
], FreelancerProject);
|
|
2157
2128
|
|
|
2158
2129
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2159
|
-
var
|
|
2130
|
+
var import_typeorm18 = require("typeorm");
|
|
2160
2131
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2161
2132
|
};
|
|
2162
2133
|
// individual index to find case study by user
|
|
2163
2134
|
__decorateClass([
|
|
2164
|
-
(0,
|
|
2165
|
-
(0,
|
|
2135
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2136
|
+
(0, import_typeorm18.Index)()
|
|
2166
2137
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2167
2138
|
__decorateClass([
|
|
2168
|
-
(0,
|
|
2169
|
-
(0,
|
|
2139
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
2140
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2170
2141
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2171
2142
|
__decorateClass([
|
|
2172
|
-
(0,
|
|
2143
|
+
(0, import_typeorm18.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2173
2144
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2174
2145
|
__decorateClass([
|
|
2175
|
-
(0,
|
|
2146
|
+
(0, import_typeorm18.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2176
2147
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2177
2148
|
__decorateClass([
|
|
2178
|
-
(0,
|
|
2149
|
+
(0, import_typeorm18.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2179
2150
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2180
2151
|
FreelancerCaseStudy = __decorateClass([
|
|
2181
|
-
(0,
|
|
2152
|
+
(0, import_typeorm18.Entity)("freelancer_case_studies")
|
|
2182
2153
|
], FreelancerCaseStudy);
|
|
2183
2154
|
|
|
2184
2155
|
// src/entities/freelancer-coreskill.entity.ts
|
|
2185
|
-
var
|
|
2156
|
+
var import_typeorm19 = require("typeorm");
|
|
2186
2157
|
var FreelancerCoreSkill = class extends BaseEntity {
|
|
2187
2158
|
};
|
|
2188
2159
|
// individual index to find core skills by user
|
|
2189
2160
|
__decorateClass([
|
|
2190
|
-
(0,
|
|
2191
|
-
(0,
|
|
2161
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2162
|
+
(0, import_typeorm19.Index)()
|
|
2192
2163
|
], FreelancerCoreSkill.prototype, "userId", 2);
|
|
2193
2164
|
__decorateClass([
|
|
2194
|
-
(0,
|
|
2195
|
-
(0,
|
|
2165
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.freelancerCoreSkill),
|
|
2166
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2196
2167
|
], FreelancerCoreSkill.prototype, "user", 2);
|
|
2197
2168
|
__decorateClass([
|
|
2198
|
-
(0,
|
|
2169
|
+
(0, import_typeorm19.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2199
2170
|
], FreelancerCoreSkill.prototype, "skillName", 2);
|
|
2200
2171
|
FreelancerCoreSkill = __decorateClass([
|
|
2201
|
-
(0,
|
|
2172
|
+
(0, import_typeorm19.Entity)("freelancer_coreskills")
|
|
2202
2173
|
], FreelancerCoreSkill);
|
|
2203
2174
|
|
|
2204
2175
|
// src/entities/freelancer-tool.entity.ts
|
|
2205
|
-
var
|
|
2176
|
+
var import_typeorm20 = require("typeorm");
|
|
2206
2177
|
var FreelancerTool = class extends BaseEntity {
|
|
2207
2178
|
};
|
|
2208
2179
|
// individual index to find tool by user
|
|
2209
2180
|
__decorateClass([
|
|
2210
|
-
(0,
|
|
2211
|
-
(0,
|
|
2181
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2182
|
+
(0, import_typeorm20.Index)()
|
|
2212
2183
|
], FreelancerTool.prototype, "userId", 2);
|
|
2213
2184
|
__decorateClass([
|
|
2214
|
-
(0,
|
|
2215
|
-
(0,
|
|
2185
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
2186
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2216
2187
|
], FreelancerTool.prototype, "user", 2);
|
|
2217
2188
|
__decorateClass([
|
|
2218
|
-
(0,
|
|
2189
|
+
(0, import_typeorm20.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
2219
2190
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2220
2191
|
FreelancerTool = __decorateClass([
|
|
2221
|
-
(0,
|
|
2192
|
+
(0, import_typeorm20.Entity)("freelancer_tools")
|
|
2222
2193
|
], FreelancerTool);
|
|
2223
2194
|
|
|
2224
2195
|
// src/entities/freelancer-framework.entity.ts
|
|
2225
|
-
var
|
|
2196
|
+
var import_typeorm21 = require("typeorm");
|
|
2226
2197
|
var FreelancerFramework = class extends BaseEntity {
|
|
2227
2198
|
};
|
|
2228
2199
|
// individual index to find framework by user
|
|
2229
2200
|
__decorateClass([
|
|
2230
|
-
(0,
|
|
2231
|
-
(0,
|
|
2201
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2202
|
+
(0, import_typeorm21.Index)()
|
|
2232
2203
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2233
2204
|
__decorateClass([
|
|
2234
|
-
(0,
|
|
2235
|
-
(0,
|
|
2205
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
2206
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2236
2207
|
], FreelancerFramework.prototype, "user", 2);
|
|
2237
2208
|
__decorateClass([
|
|
2238
|
-
(0,
|
|
2209
|
+
(0, import_typeorm21.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
2239
2210
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2240
2211
|
FreelancerFramework = __decorateClass([
|
|
2241
|
-
(0,
|
|
2212
|
+
(0, import_typeorm21.Entity)("freelancer_frameworks")
|
|
2242
2213
|
], FreelancerFramework);
|
|
2243
2214
|
|
|
2244
2215
|
// src/entities/freelancer-assessment.entity.ts
|
|
2245
|
-
var
|
|
2216
|
+
var import_typeorm22 = require("typeorm");
|
|
2246
2217
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2247
2218
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2248
2219
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -2256,21 +2227,21 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2256
2227
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2257
2228
|
};
|
|
2258
2229
|
__decorateClass([
|
|
2259
|
-
(0,
|
|
2260
|
-
(0,
|
|
2230
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2231
|
+
(0, import_typeorm22.Index)()
|
|
2261
2232
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2262
2233
|
__decorateClass([
|
|
2263
|
-
(0,
|
|
2264
|
-
(0,
|
|
2234
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.assessments),
|
|
2235
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2265
2236
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2266
2237
|
__decorateClass([
|
|
2267
|
-
(0,
|
|
2238
|
+
(0, import_typeorm22.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
2268
2239
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2269
2240
|
__decorateClass([
|
|
2270
|
-
(0,
|
|
2241
|
+
(0, import_typeorm22.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
2271
2242
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2272
2243
|
__decorateClass([
|
|
2273
|
-
(0,
|
|
2244
|
+
(0, import_typeorm22.Column)({
|
|
2274
2245
|
name: "status",
|
|
2275
2246
|
type: "enum",
|
|
2276
2247
|
enum: AssessmentStatusEnum,
|
|
@@ -2278,11 +2249,11 @@ __decorateClass([
|
|
|
2278
2249
|
})
|
|
2279
2250
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2280
2251
|
FreelancerAssessment = __decorateClass([
|
|
2281
|
-
(0,
|
|
2252
|
+
(0, import_typeorm22.Entity)("freelancer_assessments")
|
|
2282
2253
|
], FreelancerAssessment);
|
|
2283
2254
|
|
|
2284
2255
|
// src/entities/freelancer-declaration.entity.ts
|
|
2285
|
-
var
|
|
2256
|
+
var import_typeorm23 = require("typeorm");
|
|
2286
2257
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2287
2258
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
2288
2259
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -2294,15 +2265,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2294
2265
|
};
|
|
2295
2266
|
// individual index to find declaration by user
|
|
2296
2267
|
__decorateClass([
|
|
2297
|
-
(0,
|
|
2298
|
-
(0,
|
|
2268
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2269
|
+
(0, import_typeorm23.Index)()
|
|
2299
2270
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2300
2271
|
__decorateClass([
|
|
2301
|
-
(0,
|
|
2302
|
-
(0,
|
|
2272
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
2273
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2303
2274
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2304
2275
|
__decorateClass([
|
|
2305
|
-
(0,
|
|
2276
|
+
(0, import_typeorm23.Column)({
|
|
2306
2277
|
name: "document_type",
|
|
2307
2278
|
type: "enum",
|
|
2308
2279
|
enum: DocumentType,
|
|
@@ -2310,19 +2281,19 @@ __decorateClass([
|
|
|
2310
2281
|
})
|
|
2311
2282
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2312
2283
|
__decorateClass([
|
|
2313
|
-
(0,
|
|
2284
|
+
(0, import_typeorm23.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2314
2285
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2315
2286
|
__decorateClass([
|
|
2316
|
-
(0,
|
|
2287
|
+
(0, import_typeorm23.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2317
2288
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2318
2289
|
__decorateClass([
|
|
2319
|
-
(0,
|
|
2290
|
+
(0, import_typeorm23.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2320
2291
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2321
2292
|
__decorateClass([
|
|
2322
|
-
(0,
|
|
2293
|
+
(0, import_typeorm23.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2323
2294
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2324
2295
|
FreelancerDeclaration = __decorateClass([
|
|
2325
|
-
(0,
|
|
2296
|
+
(0, import_typeorm23.Entity)("freelancer_declaration")
|
|
2326
2297
|
], FreelancerDeclaration);
|
|
2327
2298
|
|
|
2328
2299
|
// src/entities/user.entity.ts
|
|
@@ -2350,55 +2321,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2350
2321
|
var User = class extends BaseEntity {
|
|
2351
2322
|
};
|
|
2352
2323
|
__decorateClass([
|
|
2353
|
-
(0,
|
|
2324
|
+
(0, import_typeorm24.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
2354
2325
|
], User.prototype, "uniqueId", 2);
|
|
2355
2326
|
__decorateClass([
|
|
2356
|
-
(0,
|
|
2357
|
-
(0,
|
|
2327
|
+
(0, import_typeorm24.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2328
|
+
(0, import_typeorm24.Index)()
|
|
2358
2329
|
], User.prototype, "parentId", 2);
|
|
2359
2330
|
__decorateClass([
|
|
2360
|
-
(0,
|
|
2361
|
-
(0,
|
|
2362
|
-
], User.prototype, "companyRoleId", 2);
|
|
2363
|
-
__decorateClass([
|
|
2364
|
-
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2365
|
-
(0, import_typeorm25.JoinColumn)({ name: "parent_id" })
|
|
2331
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2332
|
+
(0, import_typeorm24.JoinColumn)({ name: "parent_id" })
|
|
2366
2333
|
], User.prototype, "parent", 2);
|
|
2367
2334
|
__decorateClass([
|
|
2368
|
-
(0,
|
|
2335
|
+
(0, import_typeorm24.OneToMany)(() => User, (user) => user.parent)
|
|
2369
2336
|
], User.prototype, "children", 2);
|
|
2370
2337
|
__decorateClass([
|
|
2371
|
-
(0,
|
|
2338
|
+
(0, import_typeorm24.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2372
2339
|
], User.prototype, "username", 2);
|
|
2373
2340
|
__decorateClass([
|
|
2374
|
-
(0,
|
|
2341
|
+
(0, import_typeorm24.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2375
2342
|
], User.prototype, "firstName", 2);
|
|
2376
2343
|
__decorateClass([
|
|
2377
|
-
(0,
|
|
2344
|
+
(0, import_typeorm24.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2378
2345
|
], User.prototype, "lastName", 2);
|
|
2379
2346
|
__decorateClass([
|
|
2380
|
-
(0,
|
|
2347
|
+
(0, import_typeorm24.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
2381
2348
|
], User.prototype, "dateOfBirth", 2);
|
|
2382
2349
|
__decorateClass([
|
|
2383
|
-
(0,
|
|
2350
|
+
(0, import_typeorm24.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2384
2351
|
], User.prototype, "gender", 2);
|
|
2385
2352
|
__decorateClass([
|
|
2386
|
-
(0,
|
|
2353
|
+
(0, import_typeorm24.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2387
2354
|
], User.prototype, "profilePictureUrl", 2);
|
|
2388
2355
|
__decorateClass([
|
|
2389
|
-
(0,
|
|
2356
|
+
(0, import_typeorm24.Column)({ name: "email", type: "varchar", unique: true })
|
|
2390
2357
|
], User.prototype, "email", 2);
|
|
2391
2358
|
__decorateClass([
|
|
2392
|
-
(0,
|
|
2359
|
+
(0, import_typeorm24.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2393
2360
|
], User.prototype, "mobileCode", 2);
|
|
2394
2361
|
__decorateClass([
|
|
2395
|
-
(0,
|
|
2362
|
+
(0, import_typeorm24.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2396
2363
|
], User.prototype, "mobile", 2);
|
|
2397
2364
|
__decorateClass([
|
|
2398
|
-
(0,
|
|
2365
|
+
(0, import_typeorm24.Column)({ name: "password", type: "varchar", nullable: true })
|
|
2399
2366
|
], User.prototype, "password", 2);
|
|
2400
2367
|
__decorateClass([
|
|
2401
|
-
(0,
|
|
2368
|
+
(0, import_typeorm24.Column)({
|
|
2402
2369
|
name: "account_type",
|
|
2403
2370
|
type: "enum",
|
|
2404
2371
|
enum: AccountType,
|
|
@@ -2406,7 +2373,7 @@ __decorateClass([
|
|
|
2406
2373
|
})
|
|
2407
2374
|
], User.prototype, "accountType", 2);
|
|
2408
2375
|
__decorateClass([
|
|
2409
|
-
(0,
|
|
2376
|
+
(0, import_typeorm24.Column)({
|
|
2410
2377
|
name: "account_status",
|
|
2411
2378
|
type: "enum",
|
|
2412
2379
|
enum: AccountStatus,
|
|
@@ -2414,36 +2381,36 @@ __decorateClass([
|
|
|
2414
2381
|
})
|
|
2415
2382
|
], User.prototype, "accountStatus", 2);
|
|
2416
2383
|
__decorateClass([
|
|
2417
|
-
(0,
|
|
2384
|
+
(0, import_typeorm24.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2418
2385
|
], User.prototype, "isEmailVerified", 2);
|
|
2419
2386
|
__decorateClass([
|
|
2420
|
-
(0,
|
|
2387
|
+
(0, import_typeorm24.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2421
2388
|
], User.prototype, "isMobileVerified", 2);
|
|
2422
2389
|
__decorateClass([
|
|
2423
|
-
(0,
|
|
2390
|
+
(0, import_typeorm24.Column)({
|
|
2424
2391
|
name: "last_login_at",
|
|
2425
2392
|
type: "timestamp with time zone",
|
|
2426
2393
|
nullable: true
|
|
2427
2394
|
})
|
|
2428
2395
|
], User.prototype, "lastLoginAt", 2);
|
|
2429
2396
|
__decorateClass([
|
|
2430
|
-
(0,
|
|
2397
|
+
(0, import_typeorm24.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2431
2398
|
], User.prototype, "lastLoginIp", 2);
|
|
2432
2399
|
__decorateClass([
|
|
2433
|
-
(0,
|
|
2400
|
+
(0, import_typeorm24.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2434
2401
|
], User.prototype, "resetToken", 2);
|
|
2435
2402
|
__decorateClass([
|
|
2436
|
-
(0,
|
|
2403
|
+
(0, import_typeorm24.Column)({
|
|
2437
2404
|
name: "reset_token_expire_at",
|
|
2438
2405
|
type: "timestamp with time zone",
|
|
2439
2406
|
nullable: true
|
|
2440
2407
|
})
|
|
2441
2408
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2442
2409
|
__decorateClass([
|
|
2443
|
-
(0,
|
|
2410
|
+
(0, import_typeorm24.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2444
2411
|
], User.prototype, "refreshTokens", 2);
|
|
2445
2412
|
__decorateClass([
|
|
2446
|
-
(0,
|
|
2413
|
+
(0, import_typeorm24.Column)({
|
|
2447
2414
|
name: "provider",
|
|
2448
2415
|
type: "enum",
|
|
2449
2416
|
enum: Provider,
|
|
@@ -2452,88 +2419,85 @@ __decorateClass([
|
|
|
2452
2419
|
})
|
|
2453
2420
|
], User.prototype, "provider", 2);
|
|
2454
2421
|
__decorateClass([
|
|
2455
|
-
(0,
|
|
2422
|
+
(0, import_typeorm24.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2456
2423
|
], User.prototype, "providerToken", 2);
|
|
2457
2424
|
__decorateClass([
|
|
2458
|
-
(0,
|
|
2425
|
+
(0, import_typeorm24.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2459
2426
|
], User.prototype, "linkedInId", 2);
|
|
2460
2427
|
__decorateClass([
|
|
2461
|
-
(0,
|
|
2428
|
+
(0, import_typeorm24.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2462
2429
|
], User.prototype, "googleId", 2);
|
|
2463
2430
|
__decorateClass([
|
|
2464
|
-
(0,
|
|
2431
|
+
(0, import_typeorm24.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2465
2432
|
], User.prototype, "gitLabsId", 2);
|
|
2466
2433
|
__decorateClass([
|
|
2467
|
-
(0,
|
|
2434
|
+
(0, import_typeorm24.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2468
2435
|
], User.prototype, "otps", 2);
|
|
2469
2436
|
__decorateClass([
|
|
2470
|
-
(0,
|
|
2437
|
+
(0, import_typeorm24.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2471
2438
|
], User.prototype, "senseloafLogs", 2);
|
|
2472
2439
|
__decorateClass([
|
|
2473
|
-
(0,
|
|
2440
|
+
(0, import_typeorm24.OneToOne)(
|
|
2474
2441
|
() => FreelancerProfile,
|
|
2475
2442
|
(freelancerProfile) => freelancerProfile.user
|
|
2476
2443
|
)
|
|
2477
2444
|
], User.prototype, "freelancerProfile", 2);
|
|
2478
2445
|
__decorateClass([
|
|
2479
|
-
(0,
|
|
2446
|
+
(0, import_typeorm24.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2480
2447
|
], User.prototype, "companyProfile", 2);
|
|
2481
2448
|
__decorateClass([
|
|
2482
|
-
(0,
|
|
2449
|
+
(0, import_typeorm24.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
2483
2450
|
], User.prototype, "assessments", 2);
|
|
2484
2451
|
__decorateClass([
|
|
2485
|
-
(0,
|
|
2452
|
+
(0, import_typeorm24.OneToMany)(() => Job, (job) => job.user)
|
|
2486
2453
|
], User.prototype, "jobs", 2);
|
|
2487
2454
|
__decorateClass([
|
|
2488
|
-
(0,
|
|
2455
|
+
(0, import_typeorm24.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2489
2456
|
], User.prototype, "interviews", 2);
|
|
2490
2457
|
__decorateClass([
|
|
2491
|
-
(0,
|
|
2458
|
+
(0, import_typeorm24.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2492
2459
|
], User.prototype, "bankDetail", 2);
|
|
2493
2460
|
__decorateClass([
|
|
2494
|
-
(0,
|
|
2461
|
+
(0, import_typeorm24.OneToMany)(
|
|
2495
2462
|
() => SystemPreference,
|
|
2496
2463
|
(systemPreference) => systemPreference.user
|
|
2497
2464
|
)
|
|
2498
2465
|
], User.prototype, "systemPreference", 2);
|
|
2499
2466
|
__decorateClass([
|
|
2500
|
-
(0,
|
|
2467
|
+
(0, import_typeorm24.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2501
2468
|
], User.prototype, "givenRatings", 2);
|
|
2502
2469
|
__decorateClass([
|
|
2503
|
-
(0,
|
|
2470
|
+
(0, import_typeorm24.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2504
2471
|
], User.prototype, "receivedRatings", 2);
|
|
2505
2472
|
__decorateClass([
|
|
2506
|
-
(0,
|
|
2473
|
+
(0, import_typeorm24.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2507
2474
|
], User.prototype, "jobApplications", 2);
|
|
2508
2475
|
__decorateClass([
|
|
2509
|
-
(0,
|
|
2510
|
-
], User.prototype, "companyRole", 2);
|
|
2511
|
-
__decorateClass([
|
|
2512
|
-
(0, import_typeorm25.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2476
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2513
2477
|
], User.prototype, "freelancerExperience", 2);
|
|
2514
2478
|
__decorateClass([
|
|
2515
|
-
(0,
|
|
2479
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2516
2480
|
], User.prototype, "freelancerEducation", 2);
|
|
2517
2481
|
__decorateClass([
|
|
2518
|
-
(0,
|
|
2482
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
2519
2483
|
], User.prototype, "freelancerProject", 2);
|
|
2520
2484
|
__decorateClass([
|
|
2521
|
-
(0,
|
|
2485
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
2522
2486
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
2523
2487
|
__decorateClass([
|
|
2524
|
-
(0,
|
|
2488
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerCoreSkill, (freelancerCoreSkill) => freelancerCoreSkill.user)
|
|
2525
2489
|
], User.prototype, "freelancerCoreSkill", 2);
|
|
2526
2490
|
__decorateClass([
|
|
2527
|
-
(0,
|
|
2491
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
2528
2492
|
], User.prototype, "freelancerTool", 2);
|
|
2529
2493
|
__decorateClass([
|
|
2530
|
-
(0,
|
|
2494
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
2531
2495
|
], User.prototype, "freelancerFramework", 2);
|
|
2532
2496
|
__decorateClass([
|
|
2533
|
-
(0,
|
|
2497
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
2534
2498
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2535
2499
|
User = __decorateClass([
|
|
2536
|
-
(0,
|
|
2500
|
+
(0, import_typeorm24.Entity)("users")
|
|
2537
2501
|
], User);
|
|
2538
2502
|
|
|
2539
2503
|
// src/entities/rating.entity.ts
|
|
@@ -2545,36 +2509,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2545
2509
|
var Rating = class extends BaseEntity {
|
|
2546
2510
|
};
|
|
2547
2511
|
__decorateClass([
|
|
2548
|
-
(0,
|
|
2549
|
-
(0,
|
|
2512
|
+
(0, import_typeorm25.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2513
|
+
(0, import_typeorm25.Index)()
|
|
2550
2514
|
], Rating.prototype, "reviewer_id", 2);
|
|
2551
2515
|
__decorateClass([
|
|
2552
|
-
(0,
|
|
2553
|
-
(0,
|
|
2516
|
+
(0, import_typeorm25.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2517
|
+
(0, import_typeorm25.JoinColumn)({ name: "reviewer_id" })
|
|
2554
2518
|
], Rating.prototype, "reviewer", 2);
|
|
2555
2519
|
__decorateClass([
|
|
2556
|
-
(0,
|
|
2557
|
-
(0,
|
|
2520
|
+
(0, import_typeorm25.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2521
|
+
(0, import_typeorm25.Index)()
|
|
2558
2522
|
], Rating.prototype, "reviewee_id", 2);
|
|
2559
2523
|
__decorateClass([
|
|
2560
|
-
(0,
|
|
2561
|
-
(0,
|
|
2524
|
+
(0, import_typeorm25.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2525
|
+
(0, import_typeorm25.JoinColumn)({ name: "reviewee_id" })
|
|
2562
2526
|
], Rating.prototype, "reviewee", 2);
|
|
2563
2527
|
__decorateClass([
|
|
2564
|
-
(0,
|
|
2528
|
+
(0, import_typeorm25.Column)({
|
|
2565
2529
|
type: "enum",
|
|
2566
2530
|
enum: RatingTypeEnum,
|
|
2567
2531
|
nullable: true
|
|
2568
2532
|
})
|
|
2569
2533
|
], Rating.prototype, "ratingType", 2);
|
|
2570
2534
|
__decorateClass([
|
|
2571
|
-
(0,
|
|
2535
|
+
(0, import_typeorm25.Column)({ type: "integer", nullable: true })
|
|
2572
2536
|
], Rating.prototype, "rating", 2);
|
|
2573
2537
|
__decorateClass([
|
|
2574
|
-
(0,
|
|
2538
|
+
(0, import_typeorm25.Column)({ type: "text", nullable: true })
|
|
2575
2539
|
], Rating.prototype, "review", 2);
|
|
2576
2540
|
Rating = __decorateClass([
|
|
2577
|
-
(0,
|
|
2541
|
+
(0, import_typeorm25.Entity)("ratings")
|
|
2578
2542
|
], Rating);
|
|
2579
2543
|
|
|
2580
2544
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2930,7 +2894,8 @@ var CMS_PATTERNS = {
|
|
|
2930
2894
|
fetchCms: "cms.fetch",
|
|
2931
2895
|
createCms: "cms.create",
|
|
2932
2896
|
updateCms: "cms.update",
|
|
2933
|
-
deleteCms: "cms.delete"
|
|
2897
|
+
deleteCms: "cms.delete",
|
|
2898
|
+
findCmsById: "cms.fetchById"
|
|
2934
2899
|
};
|
|
2935
2900
|
|
|
2936
2901
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
@@ -3183,7 +3148,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3183
3148
|
};
|
|
3184
3149
|
|
|
3185
3150
|
// src/entities/question.entity.ts
|
|
3186
|
-
var
|
|
3151
|
+
var import_typeorm26 = require("typeorm");
|
|
3187
3152
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3188
3153
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3189
3154
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3192,16 +3157,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3192
3157
|
var Question = class extends BaseEntity {
|
|
3193
3158
|
};
|
|
3194
3159
|
__decorateClass([
|
|
3195
|
-
(0,
|
|
3160
|
+
(0, import_typeorm26.Column)({ name: "question", type: "varchar" })
|
|
3196
3161
|
], Question.prototype, "question", 2);
|
|
3197
3162
|
__decorateClass([
|
|
3198
|
-
(0,
|
|
3163
|
+
(0, import_typeorm26.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
3199
3164
|
], Question.prototype, "hint", 2);
|
|
3200
3165
|
__decorateClass([
|
|
3201
|
-
(0,
|
|
3166
|
+
(0, import_typeorm26.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3202
3167
|
], Question.prototype, "slug", 2);
|
|
3203
3168
|
__decorateClass([
|
|
3204
|
-
(0,
|
|
3169
|
+
(0, import_typeorm26.Column)({
|
|
3205
3170
|
name: "question_for",
|
|
3206
3171
|
type: "enum",
|
|
3207
3172
|
enum: QuestionFor,
|
|
@@ -3209,117 +3174,174 @@ __decorateClass([
|
|
|
3209
3174
|
})
|
|
3210
3175
|
], Question.prototype, "questionFor", 2);
|
|
3211
3176
|
__decorateClass([
|
|
3212
|
-
(0,
|
|
3177
|
+
(0, import_typeorm26.Column)({ name: "type", type: "varchar", nullable: true })
|
|
3213
3178
|
], Question.prototype, "type", 2);
|
|
3214
3179
|
__decorateClass([
|
|
3215
|
-
(0,
|
|
3180
|
+
(0, import_typeorm26.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
3216
3181
|
], Question.prototype, "options", 2);
|
|
3217
3182
|
__decorateClass([
|
|
3218
|
-
(0,
|
|
3183
|
+
(0, import_typeorm26.Column)({ name: "is_active", type: "boolean", default: false })
|
|
3219
3184
|
], Question.prototype, "isActive", 2);
|
|
3220
3185
|
Question = __decorateClass([
|
|
3221
|
-
(0,
|
|
3186
|
+
(0, import_typeorm26.Entity)("questions")
|
|
3222
3187
|
], Question);
|
|
3223
3188
|
|
|
3224
|
-
// src/entities/
|
|
3189
|
+
// src/entities/company-role.entity.ts
|
|
3190
|
+
var import_typeorm29 = require("typeorm");
|
|
3191
|
+
|
|
3192
|
+
// src/entities/company-role-permission.entity.ts
|
|
3225
3193
|
var import_typeorm28 = require("typeorm");
|
|
3194
|
+
|
|
3195
|
+
// src/entities/permission.entity.ts
|
|
3196
|
+
var import_typeorm27 = require("typeorm");
|
|
3197
|
+
var Permission = class extends BaseEntity {
|
|
3198
|
+
};
|
|
3199
|
+
__decorateClass([
|
|
3200
|
+
(0, import_typeorm27.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3201
|
+
], Permission.prototype, "name", 2);
|
|
3202
|
+
__decorateClass([
|
|
3203
|
+
(0, import_typeorm27.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3204
|
+
(0, import_typeorm27.Index)()
|
|
3205
|
+
], Permission.prototype, "slug", 2);
|
|
3206
|
+
__decorateClass([
|
|
3207
|
+
(0, import_typeorm27.Column)({ name: "description", type: "text", nullable: true })
|
|
3208
|
+
], Permission.prototype, "description", 2);
|
|
3209
|
+
__decorateClass([
|
|
3210
|
+
(0, import_typeorm27.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3211
|
+
], Permission.prototype, "isActive", 2);
|
|
3212
|
+
Permission = __decorateClass([
|
|
3213
|
+
(0, import_typeorm27.Entity)("permissions")
|
|
3214
|
+
], Permission);
|
|
3215
|
+
|
|
3216
|
+
// src/entities/company-role-permission.entity.ts
|
|
3217
|
+
var CompanyRolePermission = class extends import_typeorm28.BaseEntity {
|
|
3218
|
+
};
|
|
3219
|
+
__decorateClass([
|
|
3220
|
+
(0, import_typeorm28.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3221
|
+
(0, import_typeorm28.Index)()
|
|
3222
|
+
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3223
|
+
__decorateClass([
|
|
3224
|
+
(0, import_typeorm28.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3225
|
+
onDelete: "CASCADE"
|
|
3226
|
+
}),
|
|
3227
|
+
(0, import_typeorm28.JoinColumn)({ name: "company_role_id" })
|
|
3228
|
+
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3229
|
+
__decorateClass([
|
|
3230
|
+
(0, import_typeorm28.Column)({ name: "permission_id", type: "integer" }),
|
|
3231
|
+
(0, import_typeorm28.Index)()
|
|
3232
|
+
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3233
|
+
__decorateClass([
|
|
3234
|
+
(0, import_typeorm28.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
3235
|
+
(0, import_typeorm28.JoinColumn)({ name: "permission_id" })
|
|
3236
|
+
], CompanyRolePermission.prototype, "permission", 2);
|
|
3237
|
+
__decorateClass([
|
|
3238
|
+
(0, import_typeorm28.Column)({ name: "assigned_by", nullable: true })
|
|
3239
|
+
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3240
|
+
CompanyRolePermission = __decorateClass([
|
|
3241
|
+
(0, import_typeorm28.Entity)("company_role_permissions")
|
|
3242
|
+
], CompanyRolePermission);
|
|
3243
|
+
|
|
3244
|
+
// src/entities/company-role.entity.ts
|
|
3245
|
+
var CompanyRole = class extends BaseEntity {
|
|
3246
|
+
};
|
|
3247
|
+
__decorateClass([
|
|
3248
|
+
(0, import_typeorm29.Column)({ name: "name", type: "varchar" })
|
|
3249
|
+
], CompanyRole.prototype, "name", 2);
|
|
3250
|
+
__decorateClass([
|
|
3251
|
+
(0, import_typeorm29.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3252
|
+
(0, import_typeorm29.Index)()
|
|
3253
|
+
], CompanyRole.prototype, "slug", 2);
|
|
3254
|
+
__decorateClass([
|
|
3255
|
+
(0, import_typeorm29.Column)({ name: "description", type: "text", nullable: true })
|
|
3256
|
+
], CompanyRole.prototype, "description", 2);
|
|
3257
|
+
__decorateClass([
|
|
3258
|
+
(0, import_typeorm29.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3259
|
+
], CompanyRole.prototype, "isActive", 2);
|
|
3260
|
+
__decorateClass([
|
|
3261
|
+
(0, import_typeorm29.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3262
|
+
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3263
|
+
CompanyRole = __decorateClass([
|
|
3264
|
+
(0, import_typeorm29.Entity)("company_roles")
|
|
3265
|
+
], CompanyRole);
|
|
3266
|
+
|
|
3267
|
+
// src/entities/job-role.entity.ts
|
|
3268
|
+
var import_typeorm30 = require("typeorm");
|
|
3226
3269
|
var JobRoles = class extends BaseEntity {
|
|
3227
3270
|
};
|
|
3228
3271
|
__decorateClass([
|
|
3229
|
-
(0,
|
|
3272
|
+
(0, import_typeorm30.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3230
3273
|
], JobRoles.prototype, "slug", 2);
|
|
3231
3274
|
__decorateClass([
|
|
3232
|
-
(0,
|
|
3275
|
+
(0, import_typeorm30.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3233
3276
|
], JobRoles.prototype, "name", 2);
|
|
3234
3277
|
__decorateClass([
|
|
3235
|
-
(0,
|
|
3278
|
+
(0, import_typeorm30.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3236
3279
|
], JobRoles.prototype, "isActive", 2);
|
|
3237
3280
|
JobRoles = __decorateClass([
|
|
3238
|
-
(0,
|
|
3281
|
+
(0, import_typeorm30.Entity)("job_roles")
|
|
3239
3282
|
], JobRoles);
|
|
3240
3283
|
|
|
3241
3284
|
// src/entities/plan.entity.ts
|
|
3242
|
-
var
|
|
3285
|
+
var import_typeorm32 = require("typeorm");
|
|
3243
3286
|
|
|
3244
3287
|
// src/entities/feature.entity.ts
|
|
3245
|
-
var
|
|
3288
|
+
var import_typeorm31 = require("typeorm");
|
|
3246
3289
|
var Feature = class extends BaseEntity {
|
|
3247
3290
|
};
|
|
3248
3291
|
__decorateClass([
|
|
3249
|
-
(0,
|
|
3292
|
+
(0, import_typeorm31.Column)({ name: "name", type: "varchar", unique: true })
|
|
3250
3293
|
], Feature.prototype, "name", 2);
|
|
3251
3294
|
__decorateClass([
|
|
3252
|
-
(0,
|
|
3295
|
+
(0, import_typeorm31.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
3253
3296
|
], Feature.prototype, "plans", 2);
|
|
3254
3297
|
Feature = __decorateClass([
|
|
3255
|
-
(0,
|
|
3298
|
+
(0, import_typeorm31.Entity)("features")
|
|
3256
3299
|
], Feature);
|
|
3257
3300
|
|
|
3258
3301
|
// src/entities/plan.entity.ts
|
|
3259
3302
|
var Plan = class extends BaseEntity {
|
|
3260
3303
|
};
|
|
3261
3304
|
__decorateClass([
|
|
3262
|
-
(0,
|
|
3305
|
+
(0, import_typeorm32.Column)({ name: "name", type: "varchar", unique: true })
|
|
3263
3306
|
], Plan.prototype, "name", 2);
|
|
3264
3307
|
__decorateClass([
|
|
3265
|
-
(0,
|
|
3308
|
+
(0, import_typeorm32.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3266
3309
|
], Plan.prototype, "description", 2);
|
|
3267
3310
|
__decorateClass([
|
|
3268
|
-
(0,
|
|
3311
|
+
(0, import_typeorm32.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3269
3312
|
], Plan.prototype, "price", 2);
|
|
3270
3313
|
__decorateClass([
|
|
3271
|
-
(0,
|
|
3314
|
+
(0, import_typeorm32.Column)({ name: "billing_period", type: "varchar" })
|
|
3272
3315
|
], Plan.prototype, "billingPeriod", 2);
|
|
3273
3316
|
__decorateClass([
|
|
3274
|
-
(0,
|
|
3317
|
+
(0, import_typeorm32.Column)({ name: "is_current", type: "boolean", default: false })
|
|
3275
3318
|
], Plan.prototype, "isCurrent", 2);
|
|
3276
3319
|
__decorateClass([
|
|
3277
|
-
(0,
|
|
3278
|
-
(0,
|
|
3320
|
+
(0, import_typeorm32.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3321
|
+
(0, import_typeorm32.JoinTable)()
|
|
3279
3322
|
], Plan.prototype, "features", 2);
|
|
3280
3323
|
Plan = __decorateClass([
|
|
3281
|
-
(0,
|
|
3324
|
+
(0, import_typeorm32.Entity)("plans")
|
|
3282
3325
|
], Plan);
|
|
3283
3326
|
|
|
3284
|
-
// src/entities/permission.entity.ts
|
|
3285
|
-
var import_typeorm31 = require("typeorm");
|
|
3286
|
-
var Permission = class extends BaseEntity {
|
|
3287
|
-
};
|
|
3288
|
-
__decorateClass([
|
|
3289
|
-
(0, import_typeorm31.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3290
|
-
], Permission.prototype, "name", 2);
|
|
3291
|
-
__decorateClass([
|
|
3292
|
-
(0, import_typeorm31.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3293
|
-
(0, import_typeorm31.Index)()
|
|
3294
|
-
], Permission.prototype, "slug", 2);
|
|
3295
|
-
__decorateClass([
|
|
3296
|
-
(0, import_typeorm31.Column)({ name: "description", type: "text", nullable: true })
|
|
3297
|
-
], Permission.prototype, "description", 2);
|
|
3298
|
-
__decorateClass([
|
|
3299
|
-
(0, import_typeorm31.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3300
|
-
], Permission.prototype, "isActive", 2);
|
|
3301
|
-
Permission = __decorateClass([
|
|
3302
|
-
(0, import_typeorm31.Entity)("permissions")
|
|
3303
|
-
], Permission);
|
|
3304
|
-
|
|
3305
3327
|
// src/entities/cms.entity.ts
|
|
3306
|
-
var
|
|
3328
|
+
var import_typeorm33 = require("typeorm");
|
|
3307
3329
|
var Cms = class extends BaseEntity {
|
|
3308
3330
|
};
|
|
3309
3331
|
__decorateClass([
|
|
3310
|
-
(0,
|
|
3332
|
+
(0, import_typeorm33.Column)({ name: "title", type: "varchar", nullable: true })
|
|
3311
3333
|
], Cms.prototype, "title", 2);
|
|
3312
3334
|
__decorateClass([
|
|
3313
|
-
(0,
|
|
3335
|
+
(0, import_typeorm33.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3314
3336
|
], Cms.prototype, "slug", 2);
|
|
3315
3337
|
__decorateClass([
|
|
3316
|
-
(0,
|
|
3338
|
+
(0, import_typeorm33.Column)({ name: "content", type: "varchar", nullable: true })
|
|
3317
3339
|
], Cms.prototype, "content", 2);
|
|
3318
3340
|
__decorateClass([
|
|
3319
|
-
(0,
|
|
3341
|
+
(0, import_typeorm33.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3320
3342
|
], Cms.prototype, "isActive", 2);
|
|
3321
3343
|
Cms = __decorateClass([
|
|
3322
|
-
(0,
|
|
3344
|
+
(0, import_typeorm33.Entity)("cms")
|
|
3323
3345
|
], Cms);
|
|
3324
3346
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3325
3347
|
0 && (module.exports = {
|
|
@@ -3346,6 +3368,7 @@ Cms = __decorateClass([
|
|
|
3346
3368
|
Cms,
|
|
3347
3369
|
CompanyProfile,
|
|
3348
3370
|
CompanyRole,
|
|
3371
|
+
CompanyRolePermission,
|
|
3349
3372
|
CreateCmsDto,
|
|
3350
3373
|
CreateCompanyMemberDto,
|
|
3351
3374
|
CreateCompanyRoleDto,
|