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