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