@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.mjs
CHANGED
|
@@ -1060,10 +1060,10 @@ import {
|
|
|
1060
1060
|
} from "class-validator";
|
|
1061
1061
|
|
|
1062
1062
|
// src/entities/rating.entity.ts
|
|
1063
|
-
import { Entity as
|
|
1063
|
+
import { Entity as Entity24, Column as Column25, ManyToOne as ManyToOne23, JoinColumn as JoinColumn23, Index as Index21 } from "typeorm";
|
|
1064
1064
|
|
|
1065
1065
|
// src/entities/user.entity.ts
|
|
1066
|
-
import { Entity as
|
|
1066
|
+
import { Entity as Entity23, Column as Column24, OneToMany as OneToMany7, OneToOne, Index as Index20, ManyToOne as ManyToOne22, JoinColumn as JoinColumn22 } from "typeorm";
|
|
1067
1067
|
|
|
1068
1068
|
// src/entities/base.entity.ts
|
|
1069
1069
|
import {
|
|
@@ -2039,261 +2039,231 @@ SystemPreference = __decorateClass([
|
|
|
2039
2039
|
Entity13("system_preferences")
|
|
2040
2040
|
], SystemPreference);
|
|
2041
2041
|
|
|
2042
|
-
// src/entities/company-role.entity.ts
|
|
2043
|
-
import { Column as Column15, Entity as Entity14, Index as Index11, JoinColumn as JoinColumn13, ManyToOne as ManyToOne13 } from "typeorm";
|
|
2044
|
-
var CompanyRole = class extends BaseEntity {
|
|
2045
|
-
};
|
|
2046
|
-
// individual index to find company roles by user
|
|
2047
|
-
__decorateClass([
|
|
2048
|
-
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
2049
|
-
Index11()
|
|
2050
|
-
], CompanyRole.prototype, "userId", 2);
|
|
2051
|
-
__decorateClass([
|
|
2052
|
-
ManyToOne13(() => User, (user) => user.companyRole),
|
|
2053
|
-
JoinColumn13({ name: "user_id" })
|
|
2054
|
-
], CompanyRole.prototype, "user", 2);
|
|
2055
|
-
__decorateClass([
|
|
2056
|
-
Column15({ name: "name", type: "varchar" })
|
|
2057
|
-
], CompanyRole.prototype, "name", 2);
|
|
2058
|
-
__decorateClass([
|
|
2059
|
-
Column15({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2060
|
-
Index11()
|
|
2061
|
-
], CompanyRole.prototype, "slug", 2);
|
|
2062
|
-
__decorateClass([
|
|
2063
|
-
Column15({ name: "description", type: "text", nullable: true })
|
|
2064
|
-
], CompanyRole.prototype, "description", 2);
|
|
2065
|
-
__decorateClass([
|
|
2066
|
-
Column15({ name: "is_active", type: "boolean", default: true })
|
|
2067
|
-
], CompanyRole.prototype, "isActive", 2);
|
|
2068
|
-
CompanyRole = __decorateClass([
|
|
2069
|
-
Entity14("company_roles")
|
|
2070
|
-
], CompanyRole);
|
|
2071
|
-
|
|
2072
2042
|
// src/entities/freelancer-experience.entity.ts
|
|
2073
2043
|
import {
|
|
2074
|
-
Entity as
|
|
2075
|
-
Column as
|
|
2076
|
-
Index as
|
|
2077
|
-
ManyToOne as
|
|
2078
|
-
JoinColumn as
|
|
2044
|
+
Entity as Entity14,
|
|
2045
|
+
Column as Column15,
|
|
2046
|
+
Index as Index11,
|
|
2047
|
+
ManyToOne as ManyToOne13,
|
|
2048
|
+
JoinColumn as JoinColumn13
|
|
2079
2049
|
} from "typeorm";
|
|
2080
2050
|
var FreelancerExperience = class extends BaseEntity {
|
|
2081
2051
|
};
|
|
2082
2052
|
// individual index to find experence by user
|
|
2083
2053
|
__decorateClass([
|
|
2084
|
-
|
|
2085
|
-
|
|
2054
|
+
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
2055
|
+
Index11()
|
|
2086
2056
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2087
2057
|
__decorateClass([
|
|
2088
|
-
|
|
2089
|
-
|
|
2058
|
+
ManyToOne13(() => User, (user) => user.freelancerExperience),
|
|
2059
|
+
JoinColumn13({ name: "user_id" })
|
|
2090
2060
|
], FreelancerExperience.prototype, "user", 2);
|
|
2091
2061
|
__decorateClass([
|
|
2092
|
-
|
|
2062
|
+
Column15({ name: "company_name", type: "varchar", nullable: true })
|
|
2093
2063
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2094
2064
|
__decorateClass([
|
|
2095
|
-
|
|
2065
|
+
Column15({ name: "designation", type: "varchar", nullable: true })
|
|
2096
2066
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2097
2067
|
__decorateClass([
|
|
2098
|
-
|
|
2068
|
+
Column15({ name: "job_duration", type: "varchar", nullable: true })
|
|
2099
2069
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2100
2070
|
__decorateClass([
|
|
2101
|
-
|
|
2071
|
+
Column15({ name: "description", type: "varchar", nullable: true })
|
|
2102
2072
|
], FreelancerExperience.prototype, "description", 2);
|
|
2103
2073
|
FreelancerExperience = __decorateClass([
|
|
2104
|
-
|
|
2074
|
+
Entity14("freelancer_experiences")
|
|
2105
2075
|
], FreelancerExperience);
|
|
2106
2076
|
|
|
2107
2077
|
// src/entities/freelancer-education.entity.ts
|
|
2108
2078
|
import {
|
|
2109
|
-
Entity as
|
|
2110
|
-
Column as
|
|
2111
|
-
Index as
|
|
2112
|
-
ManyToOne as
|
|
2113
|
-
JoinColumn as
|
|
2079
|
+
Entity as Entity15,
|
|
2080
|
+
Column as Column16,
|
|
2081
|
+
Index as Index12,
|
|
2082
|
+
ManyToOne as ManyToOne14,
|
|
2083
|
+
JoinColumn as JoinColumn14
|
|
2114
2084
|
} from "typeorm";
|
|
2115
2085
|
var FreelancerEducation = class extends BaseEntity {
|
|
2116
2086
|
};
|
|
2117
2087
|
// individual index to find education by user
|
|
2118
2088
|
__decorateClass([
|
|
2119
|
-
|
|
2120
|
-
|
|
2089
|
+
Column16({ name: "user_id", type: "integer", nullable: true }),
|
|
2090
|
+
Index12()
|
|
2121
2091
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2122
2092
|
__decorateClass([
|
|
2123
|
-
|
|
2124
|
-
|
|
2093
|
+
ManyToOne14(() => User, (user) => user.freelancerEducation),
|
|
2094
|
+
JoinColumn14({ name: "user_id" })
|
|
2125
2095
|
], FreelancerEducation.prototype, "user", 2);
|
|
2126
2096
|
__decorateClass([
|
|
2127
|
-
|
|
2097
|
+
Column16({ name: "degree", type: "varchar", nullable: true })
|
|
2128
2098
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2129
2099
|
__decorateClass([
|
|
2130
|
-
|
|
2100
|
+
Column16({ name: "university", type: "varchar", nullable: true })
|
|
2131
2101
|
], FreelancerEducation.prototype, "university", 2);
|
|
2132
2102
|
__decorateClass([
|
|
2133
|
-
|
|
2103
|
+
Column16({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2134
2104
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2135
2105
|
FreelancerEducation = __decorateClass([
|
|
2136
|
-
|
|
2106
|
+
Entity15("freelancer_educations")
|
|
2137
2107
|
], FreelancerEducation);
|
|
2138
2108
|
|
|
2139
2109
|
// src/entities/freelancer-project.entity.ts
|
|
2140
2110
|
import {
|
|
2141
|
-
Entity as
|
|
2142
|
-
Column as
|
|
2143
|
-
Index as
|
|
2144
|
-
ManyToOne as
|
|
2145
|
-
JoinColumn as
|
|
2111
|
+
Entity as Entity16,
|
|
2112
|
+
Column as Column17,
|
|
2113
|
+
Index as Index13,
|
|
2114
|
+
ManyToOne as ManyToOne15,
|
|
2115
|
+
JoinColumn as JoinColumn15
|
|
2146
2116
|
} from "typeorm";
|
|
2147
2117
|
var FreelancerProject = class extends BaseEntity {
|
|
2148
2118
|
};
|
|
2149
2119
|
// individual index to find project by user
|
|
2150
2120
|
__decorateClass([
|
|
2151
|
-
|
|
2152
|
-
|
|
2121
|
+
Column17({ name: "user_id", type: "integer", nullable: true }),
|
|
2122
|
+
Index13()
|
|
2153
2123
|
], FreelancerProject.prototype, "userId", 2);
|
|
2154
2124
|
__decorateClass([
|
|
2155
|
-
|
|
2156
|
-
|
|
2125
|
+
ManyToOne15(() => User, (user) => user.freelancerProject),
|
|
2126
|
+
JoinColumn15({ name: "user_id" })
|
|
2157
2127
|
], FreelancerProject.prototype, "user", 2);
|
|
2158
2128
|
__decorateClass([
|
|
2159
|
-
|
|
2129
|
+
Column17({ name: "project_name", type: "varchar", nullable: true })
|
|
2160
2130
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2161
2131
|
__decorateClass([
|
|
2162
|
-
|
|
2132
|
+
Column17({ name: "start_date", type: "date", nullable: true })
|
|
2163
2133
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2164
2134
|
__decorateClass([
|
|
2165
|
-
|
|
2135
|
+
Column17({ name: "end_date", type: "date", nullable: true })
|
|
2166
2136
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2167
2137
|
__decorateClass([
|
|
2168
|
-
|
|
2138
|
+
Column17({ name: "client_name", type: "varchar", nullable: true })
|
|
2169
2139
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2170
2140
|
__decorateClass([
|
|
2171
|
-
|
|
2141
|
+
Column17({ name: "git_link", type: "varchar", nullable: true })
|
|
2172
2142
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2173
2143
|
__decorateClass([
|
|
2174
|
-
|
|
2144
|
+
Column17({ name: "description", type: "varchar", nullable: true })
|
|
2175
2145
|
], FreelancerProject.prototype, "description", 2);
|
|
2176
2146
|
FreelancerProject = __decorateClass([
|
|
2177
|
-
|
|
2147
|
+
Entity16("freelancer_projects")
|
|
2178
2148
|
], FreelancerProject);
|
|
2179
2149
|
|
|
2180
2150
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2181
2151
|
import {
|
|
2182
|
-
Entity as
|
|
2183
|
-
Column as
|
|
2184
|
-
Index as
|
|
2185
|
-
ManyToOne as
|
|
2186
|
-
JoinColumn as
|
|
2152
|
+
Entity as Entity17,
|
|
2153
|
+
Column as Column18,
|
|
2154
|
+
Index as Index14,
|
|
2155
|
+
ManyToOne as ManyToOne16,
|
|
2156
|
+
JoinColumn as JoinColumn16
|
|
2187
2157
|
} from "typeorm";
|
|
2188
2158
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2189
2159
|
};
|
|
2190
2160
|
// individual index to find case study by user
|
|
2191
2161
|
__decorateClass([
|
|
2192
|
-
|
|
2193
|
-
|
|
2162
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2163
|
+
Index14()
|
|
2194
2164
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2195
2165
|
__decorateClass([
|
|
2196
|
-
|
|
2197
|
-
|
|
2166
|
+
ManyToOne16(() => User, (user) => user.freelancerCaseStudy),
|
|
2167
|
+
JoinColumn16({ name: "user_id" })
|
|
2198
2168
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2199
2169
|
__decorateClass([
|
|
2200
|
-
|
|
2170
|
+
Column18({ name: "project_name", type: "varchar", nullable: true })
|
|
2201
2171
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2202
2172
|
__decorateClass([
|
|
2203
|
-
|
|
2173
|
+
Column18({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2204
2174
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2205
2175
|
__decorateClass([
|
|
2206
|
-
|
|
2176
|
+
Column18({ name: "description", type: "varchar", nullable: true })
|
|
2207
2177
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2208
2178
|
FreelancerCaseStudy = __decorateClass([
|
|
2209
|
-
|
|
2179
|
+
Entity17("freelancer_case_studies")
|
|
2210
2180
|
], FreelancerCaseStudy);
|
|
2211
2181
|
|
|
2212
2182
|
// src/entities/freelancer-coreskill.entity.ts
|
|
2213
2183
|
import {
|
|
2214
|
-
Entity as
|
|
2215
|
-
Column as
|
|
2216
|
-
Index as
|
|
2217
|
-
ManyToOne as
|
|
2218
|
-
JoinColumn as
|
|
2184
|
+
Entity as Entity18,
|
|
2185
|
+
Column as Column19,
|
|
2186
|
+
Index as Index15,
|
|
2187
|
+
ManyToOne as ManyToOne17,
|
|
2188
|
+
JoinColumn as JoinColumn17
|
|
2219
2189
|
} from "typeorm";
|
|
2220
2190
|
var FreelancerCoreSkill = class extends BaseEntity {
|
|
2221
2191
|
};
|
|
2222
2192
|
// individual index to find core skills by user
|
|
2223
2193
|
__decorateClass([
|
|
2224
|
-
|
|
2225
|
-
|
|
2194
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2195
|
+
Index15()
|
|
2226
2196
|
], FreelancerCoreSkill.prototype, "userId", 2);
|
|
2227
2197
|
__decorateClass([
|
|
2228
|
-
|
|
2229
|
-
|
|
2198
|
+
ManyToOne17(() => User, (user) => user.freelancerCoreSkill),
|
|
2199
|
+
JoinColumn17({ name: "user_id" })
|
|
2230
2200
|
], FreelancerCoreSkill.prototype, "user", 2);
|
|
2231
2201
|
__decorateClass([
|
|
2232
|
-
|
|
2202
|
+
Column19({ name: "skill_name", type: "varchar", nullable: true })
|
|
2233
2203
|
], FreelancerCoreSkill.prototype, "skillName", 2);
|
|
2234
2204
|
FreelancerCoreSkill = __decorateClass([
|
|
2235
|
-
|
|
2205
|
+
Entity18("freelancer_coreskills")
|
|
2236
2206
|
], FreelancerCoreSkill);
|
|
2237
2207
|
|
|
2238
2208
|
// src/entities/freelancer-tool.entity.ts
|
|
2239
2209
|
import {
|
|
2240
|
-
Entity as
|
|
2241
|
-
Column as
|
|
2242
|
-
Index as
|
|
2243
|
-
ManyToOne as
|
|
2244
|
-
JoinColumn as
|
|
2210
|
+
Entity as Entity19,
|
|
2211
|
+
Column as Column20,
|
|
2212
|
+
Index as Index16,
|
|
2213
|
+
ManyToOne as ManyToOne18,
|
|
2214
|
+
JoinColumn as JoinColumn18
|
|
2245
2215
|
} from "typeorm";
|
|
2246
2216
|
var FreelancerTool = class extends BaseEntity {
|
|
2247
2217
|
};
|
|
2248
2218
|
// individual index to find tool by user
|
|
2249
2219
|
__decorateClass([
|
|
2250
|
-
|
|
2251
|
-
|
|
2220
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2221
|
+
Index16()
|
|
2252
2222
|
], FreelancerTool.prototype, "userId", 2);
|
|
2253
2223
|
__decorateClass([
|
|
2254
|
-
|
|
2255
|
-
|
|
2224
|
+
ManyToOne18(() => User, (user) => user.freelancerTool),
|
|
2225
|
+
JoinColumn18({ name: "user_id" })
|
|
2256
2226
|
], FreelancerTool.prototype, "user", 2);
|
|
2257
2227
|
__decorateClass([
|
|
2258
|
-
|
|
2228
|
+
Column20({ name: "tool_name", type: "varchar", nullable: true })
|
|
2259
2229
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2260
2230
|
FreelancerTool = __decorateClass([
|
|
2261
|
-
|
|
2231
|
+
Entity19("freelancer_tools")
|
|
2262
2232
|
], FreelancerTool);
|
|
2263
2233
|
|
|
2264
2234
|
// src/entities/freelancer-framework.entity.ts
|
|
2265
2235
|
import {
|
|
2266
|
-
Entity as
|
|
2267
|
-
Column as
|
|
2268
|
-
Index as
|
|
2269
|
-
ManyToOne as
|
|
2270
|
-
JoinColumn as
|
|
2236
|
+
Entity as Entity20,
|
|
2237
|
+
Column as Column21,
|
|
2238
|
+
Index as Index17,
|
|
2239
|
+
ManyToOne as ManyToOne19,
|
|
2240
|
+
JoinColumn as JoinColumn19
|
|
2271
2241
|
} from "typeorm";
|
|
2272
2242
|
var FreelancerFramework = class extends BaseEntity {
|
|
2273
2243
|
};
|
|
2274
2244
|
// individual index to find framework by user
|
|
2275
2245
|
__decorateClass([
|
|
2276
|
-
|
|
2277
|
-
|
|
2246
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2247
|
+
Index17()
|
|
2278
2248
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2279
2249
|
__decorateClass([
|
|
2280
|
-
|
|
2281
|
-
|
|
2250
|
+
ManyToOne19(() => User, (user) => user.freelancerFramework),
|
|
2251
|
+
JoinColumn19({ name: "user_id" })
|
|
2282
2252
|
], FreelancerFramework.prototype, "user", 2);
|
|
2283
2253
|
__decorateClass([
|
|
2284
|
-
|
|
2254
|
+
Column21({ name: "framework_name", type: "varchar", nullable: true })
|
|
2285
2255
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2286
2256
|
FreelancerFramework = __decorateClass([
|
|
2287
|
-
|
|
2257
|
+
Entity20("freelancer_frameworks")
|
|
2288
2258
|
], FreelancerFramework);
|
|
2289
2259
|
|
|
2290
2260
|
// src/entities/freelancer-assessment.entity.ts
|
|
2291
2261
|
import {
|
|
2292
|
-
Entity as
|
|
2293
|
-
Column as
|
|
2294
|
-
Index as
|
|
2295
|
-
ManyToOne as
|
|
2296
|
-
JoinColumn as
|
|
2262
|
+
Entity as Entity21,
|
|
2263
|
+
Column as Column22,
|
|
2264
|
+
Index as Index18,
|
|
2265
|
+
ManyToOne as ManyToOne20,
|
|
2266
|
+
JoinColumn as JoinColumn20
|
|
2297
2267
|
} from "typeorm";
|
|
2298
2268
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2299
2269
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -2308,21 +2278,21 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2308
2278
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2309
2279
|
};
|
|
2310
2280
|
__decorateClass([
|
|
2311
|
-
|
|
2312
|
-
|
|
2281
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2282
|
+
Index18()
|
|
2313
2283
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2314
2284
|
__decorateClass([
|
|
2315
|
-
|
|
2316
|
-
|
|
2285
|
+
ManyToOne20(() => User, (user) => user.assessments),
|
|
2286
|
+
JoinColumn20({ name: "user_id" })
|
|
2317
2287
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2318
2288
|
__decorateClass([
|
|
2319
|
-
|
|
2289
|
+
Column22({ name: "interview_id", type: "varchar", nullable: true })
|
|
2320
2290
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2321
2291
|
__decorateClass([
|
|
2322
|
-
|
|
2292
|
+
Column22({ name: "interview_link", type: "text", nullable: true })
|
|
2323
2293
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2324
2294
|
__decorateClass([
|
|
2325
|
-
|
|
2295
|
+
Column22({
|
|
2326
2296
|
name: "status",
|
|
2327
2297
|
type: "enum",
|
|
2328
2298
|
enum: AssessmentStatusEnum,
|
|
@@ -2330,16 +2300,16 @@ __decorateClass([
|
|
|
2330
2300
|
})
|
|
2331
2301
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2332
2302
|
FreelancerAssessment = __decorateClass([
|
|
2333
|
-
|
|
2303
|
+
Entity21("freelancer_assessments")
|
|
2334
2304
|
], FreelancerAssessment);
|
|
2335
2305
|
|
|
2336
2306
|
// src/entities/freelancer-declaration.entity.ts
|
|
2337
2307
|
import {
|
|
2338
|
-
Entity as
|
|
2339
|
-
Column as
|
|
2340
|
-
Index as
|
|
2341
|
-
ManyToOne as
|
|
2342
|
-
JoinColumn as
|
|
2308
|
+
Entity as Entity22,
|
|
2309
|
+
Column as Column23,
|
|
2310
|
+
Index as Index19,
|
|
2311
|
+
ManyToOne as ManyToOne21,
|
|
2312
|
+
JoinColumn as JoinColumn21
|
|
2343
2313
|
} from "typeorm";
|
|
2344
2314
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2345
2315
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -2352,15 +2322,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2352
2322
|
};
|
|
2353
2323
|
// individual index to find declaration by user
|
|
2354
2324
|
__decorateClass([
|
|
2355
|
-
|
|
2356
|
-
|
|
2325
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2326
|
+
Index19()
|
|
2357
2327
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2358
2328
|
__decorateClass([
|
|
2359
|
-
|
|
2360
|
-
|
|
2329
|
+
ManyToOne21(() => User, (user) => user.freelancerDeclaration),
|
|
2330
|
+
JoinColumn21({ name: "user_id" })
|
|
2361
2331
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2362
2332
|
__decorateClass([
|
|
2363
|
-
|
|
2333
|
+
Column23({
|
|
2364
2334
|
name: "document_type",
|
|
2365
2335
|
type: "enum",
|
|
2366
2336
|
enum: DocumentType,
|
|
@@ -2368,19 +2338,19 @@ __decorateClass([
|
|
|
2368
2338
|
})
|
|
2369
2339
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2370
2340
|
__decorateClass([
|
|
2371
|
-
|
|
2341
|
+
Column23({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2372
2342
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2373
2343
|
__decorateClass([
|
|
2374
|
-
|
|
2344
|
+
Column23({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2375
2345
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2376
2346
|
__decorateClass([
|
|
2377
|
-
|
|
2347
|
+
Column23({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2378
2348
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2379
2349
|
__decorateClass([
|
|
2380
|
-
|
|
2350
|
+
Column23({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2381
2351
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2382
2352
|
FreelancerDeclaration = __decorateClass([
|
|
2383
|
-
|
|
2353
|
+
Entity22("freelancer_declaration")
|
|
2384
2354
|
], FreelancerDeclaration);
|
|
2385
2355
|
|
|
2386
2356
|
// src/entities/user.entity.ts
|
|
@@ -2408,55 +2378,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2408
2378
|
var User = class extends BaseEntity {
|
|
2409
2379
|
};
|
|
2410
2380
|
__decorateClass([
|
|
2411
|
-
|
|
2381
|
+
Column24({ name: "unique_id", type: "varchar", unique: true })
|
|
2412
2382
|
], User.prototype, "uniqueId", 2);
|
|
2413
2383
|
__decorateClass([
|
|
2414
|
-
|
|
2415
|
-
|
|
2384
|
+
Column24({ name: "parent_id", type: "integer", nullable: true }),
|
|
2385
|
+
Index20()
|
|
2416
2386
|
], User.prototype, "parentId", 2);
|
|
2417
2387
|
__decorateClass([
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
], User.prototype, "companyRoleId", 2);
|
|
2421
|
-
__decorateClass([
|
|
2422
|
-
ManyToOne23(() => User, (user) => user.children, { nullable: true }),
|
|
2423
|
-
JoinColumn23({ name: "parent_id" })
|
|
2388
|
+
ManyToOne22(() => User, (user) => user.children, { nullable: true }),
|
|
2389
|
+
JoinColumn22({ name: "parent_id" })
|
|
2424
2390
|
], User.prototype, "parent", 2);
|
|
2425
2391
|
__decorateClass([
|
|
2426
2392
|
OneToMany7(() => User, (user) => user.parent)
|
|
2427
2393
|
], User.prototype, "children", 2);
|
|
2428
2394
|
__decorateClass([
|
|
2429
|
-
|
|
2395
|
+
Column24({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2430
2396
|
], User.prototype, "username", 2);
|
|
2431
2397
|
__decorateClass([
|
|
2432
|
-
|
|
2398
|
+
Column24({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2433
2399
|
], User.prototype, "firstName", 2);
|
|
2434
2400
|
__decorateClass([
|
|
2435
|
-
|
|
2401
|
+
Column24({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2436
2402
|
], User.prototype, "lastName", 2);
|
|
2437
2403
|
__decorateClass([
|
|
2438
|
-
|
|
2404
|
+
Column24({ name: "date_of_birth", type: "date", nullable: true })
|
|
2439
2405
|
], User.prototype, "dateOfBirth", 2);
|
|
2440
2406
|
__decorateClass([
|
|
2441
|
-
|
|
2407
|
+
Column24({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2442
2408
|
], User.prototype, "gender", 2);
|
|
2443
2409
|
__decorateClass([
|
|
2444
|
-
|
|
2410
|
+
Column24({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2445
2411
|
], User.prototype, "profilePictureUrl", 2);
|
|
2446
2412
|
__decorateClass([
|
|
2447
|
-
|
|
2413
|
+
Column24({ name: "email", type: "varchar", unique: true })
|
|
2448
2414
|
], User.prototype, "email", 2);
|
|
2449
2415
|
__decorateClass([
|
|
2450
|
-
|
|
2416
|
+
Column24({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2451
2417
|
], User.prototype, "mobileCode", 2);
|
|
2452
2418
|
__decorateClass([
|
|
2453
|
-
|
|
2419
|
+
Column24({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2454
2420
|
], User.prototype, "mobile", 2);
|
|
2455
2421
|
__decorateClass([
|
|
2456
|
-
|
|
2422
|
+
Column24({ name: "password", type: "varchar", nullable: true })
|
|
2457
2423
|
], User.prototype, "password", 2);
|
|
2458
2424
|
__decorateClass([
|
|
2459
|
-
|
|
2425
|
+
Column24({
|
|
2460
2426
|
name: "account_type",
|
|
2461
2427
|
type: "enum",
|
|
2462
2428
|
enum: AccountType,
|
|
@@ -2464,7 +2430,7 @@ __decorateClass([
|
|
|
2464
2430
|
})
|
|
2465
2431
|
], User.prototype, "accountType", 2);
|
|
2466
2432
|
__decorateClass([
|
|
2467
|
-
|
|
2433
|
+
Column24({
|
|
2468
2434
|
name: "account_status",
|
|
2469
2435
|
type: "enum",
|
|
2470
2436
|
enum: AccountStatus,
|
|
@@ -2472,26 +2438,26 @@ __decorateClass([
|
|
|
2472
2438
|
})
|
|
2473
2439
|
], User.prototype, "accountStatus", 2);
|
|
2474
2440
|
__decorateClass([
|
|
2475
|
-
|
|
2441
|
+
Column24({ name: "is_email_verified", type: "boolean", default: false })
|
|
2476
2442
|
], User.prototype, "isEmailVerified", 2);
|
|
2477
2443
|
__decorateClass([
|
|
2478
|
-
|
|
2444
|
+
Column24({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2479
2445
|
], User.prototype, "isMobileVerified", 2);
|
|
2480
2446
|
__decorateClass([
|
|
2481
|
-
|
|
2447
|
+
Column24({
|
|
2482
2448
|
name: "last_login_at",
|
|
2483
2449
|
type: "timestamp with time zone",
|
|
2484
2450
|
nullable: true
|
|
2485
2451
|
})
|
|
2486
2452
|
], User.prototype, "lastLoginAt", 2);
|
|
2487
2453
|
__decorateClass([
|
|
2488
|
-
|
|
2454
|
+
Column24({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2489
2455
|
], User.prototype, "lastLoginIp", 2);
|
|
2490
2456
|
__decorateClass([
|
|
2491
|
-
|
|
2457
|
+
Column24({ name: "reset_token", type: "varchar", nullable: true })
|
|
2492
2458
|
], User.prototype, "resetToken", 2);
|
|
2493
2459
|
__decorateClass([
|
|
2494
|
-
|
|
2460
|
+
Column24({
|
|
2495
2461
|
name: "reset_token_expire_at",
|
|
2496
2462
|
type: "timestamp with time zone",
|
|
2497
2463
|
nullable: true
|
|
@@ -2501,7 +2467,7 @@ __decorateClass([
|
|
|
2501
2467
|
OneToMany7(() => RefreshToken, (token) => token.user)
|
|
2502
2468
|
], User.prototype, "refreshTokens", 2);
|
|
2503
2469
|
__decorateClass([
|
|
2504
|
-
|
|
2470
|
+
Column24({
|
|
2505
2471
|
name: "provider",
|
|
2506
2472
|
type: "enum",
|
|
2507
2473
|
enum: Provider,
|
|
@@ -2510,16 +2476,16 @@ __decorateClass([
|
|
|
2510
2476
|
})
|
|
2511
2477
|
], User.prototype, "provider", 2);
|
|
2512
2478
|
__decorateClass([
|
|
2513
|
-
|
|
2479
|
+
Column24({ name: "provider_token", type: "varchar", nullable: true })
|
|
2514
2480
|
], User.prototype, "providerToken", 2);
|
|
2515
2481
|
__decorateClass([
|
|
2516
|
-
|
|
2482
|
+
Column24({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2517
2483
|
], User.prototype, "linkedInId", 2);
|
|
2518
2484
|
__decorateClass([
|
|
2519
|
-
|
|
2485
|
+
Column24({ name: "google_id", type: "varchar", nullable: true })
|
|
2520
2486
|
], User.prototype, "googleId", 2);
|
|
2521
2487
|
__decorateClass([
|
|
2522
|
-
|
|
2488
|
+
Column24({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2523
2489
|
], User.prototype, "gitLabsId", 2);
|
|
2524
2490
|
__decorateClass([
|
|
2525
2491
|
OneToMany7(() => Otp, (otp) => otp.user)
|
|
@@ -2563,9 +2529,6 @@ __decorateClass([
|
|
|
2563
2529
|
__decorateClass([
|
|
2564
2530
|
OneToMany7(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2565
2531
|
], User.prototype, "jobApplications", 2);
|
|
2566
|
-
__decorateClass([
|
|
2567
|
-
OneToMany7(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2568
|
-
], User.prototype, "companyRole", 2);
|
|
2569
2532
|
__decorateClass([
|
|
2570
2533
|
OneToOne(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2571
2534
|
], User.prototype, "freelancerExperience", 2);
|
|
@@ -2591,7 +2554,7 @@ __decorateClass([
|
|
|
2591
2554
|
OneToOne(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
2592
2555
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2593
2556
|
User = __decorateClass([
|
|
2594
|
-
|
|
2557
|
+
Entity23("users")
|
|
2595
2558
|
], User);
|
|
2596
2559
|
|
|
2597
2560
|
// src/entities/rating.entity.ts
|
|
@@ -2603,36 +2566,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2603
2566
|
var Rating = class extends BaseEntity {
|
|
2604
2567
|
};
|
|
2605
2568
|
__decorateClass([
|
|
2606
|
-
|
|
2607
|
-
|
|
2569
|
+
Column25({ name: "reviewer_id", type: "integer" }),
|
|
2570
|
+
Index21()
|
|
2608
2571
|
], Rating.prototype, "reviewer_id", 2);
|
|
2609
2572
|
__decorateClass([
|
|
2610
|
-
|
|
2611
|
-
|
|
2573
|
+
ManyToOne23(() => User, { onDelete: "CASCADE" }),
|
|
2574
|
+
JoinColumn23({ name: "reviewer_id" })
|
|
2612
2575
|
], Rating.prototype, "reviewer", 2);
|
|
2613
2576
|
__decorateClass([
|
|
2614
|
-
|
|
2615
|
-
|
|
2577
|
+
Column25({ name: "reviewee_id", type: "integer" }),
|
|
2578
|
+
Index21()
|
|
2616
2579
|
], Rating.prototype, "reviewee_id", 2);
|
|
2617
2580
|
__decorateClass([
|
|
2618
|
-
|
|
2619
|
-
|
|
2581
|
+
ManyToOne23(() => User, { onDelete: "CASCADE" }),
|
|
2582
|
+
JoinColumn23({ name: "reviewee_id" })
|
|
2620
2583
|
], Rating.prototype, "reviewee", 2);
|
|
2621
2584
|
__decorateClass([
|
|
2622
|
-
|
|
2585
|
+
Column25({
|
|
2623
2586
|
type: "enum",
|
|
2624
2587
|
enum: RatingTypeEnum,
|
|
2625
2588
|
nullable: true
|
|
2626
2589
|
})
|
|
2627
2590
|
], Rating.prototype, "ratingType", 2);
|
|
2628
2591
|
__decorateClass([
|
|
2629
|
-
|
|
2592
|
+
Column25({ type: "integer", nullable: true })
|
|
2630
2593
|
], Rating.prototype, "rating", 2);
|
|
2631
2594
|
__decorateClass([
|
|
2632
|
-
|
|
2595
|
+
Column25({ type: "text", nullable: true })
|
|
2633
2596
|
], Rating.prototype, "review", 2);
|
|
2634
2597
|
Rating = __decorateClass([
|
|
2635
|
-
|
|
2598
|
+
Entity24("ratings")
|
|
2636
2599
|
], Rating);
|
|
2637
2600
|
|
|
2638
2601
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2989,6 +2952,48 @@ __decorateClass([
|
|
|
2989
2952
|
])
|
|
2990
2953
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
2991
2954
|
|
|
2955
|
+
// src/modules/cms/pattern/pattern.ts
|
|
2956
|
+
var CMS_PATTERNS = {
|
|
2957
|
+
fetchCms: "cms.fetch",
|
|
2958
|
+
createCms: "cms.create",
|
|
2959
|
+
updateCms: "cms.update",
|
|
2960
|
+
deleteCms: "cms.delete",
|
|
2961
|
+
findCmsById: "cms.fetchById"
|
|
2962
|
+
};
|
|
2963
|
+
|
|
2964
|
+
// src/modules/cms/dto/create-cms.dto.ts
|
|
2965
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional19 } from "class-validator";
|
|
2966
|
+
var CreateCmsDto = class {
|
|
2967
|
+
};
|
|
2968
|
+
__decorateClass([
|
|
2969
|
+
IsNotEmpty39({ message: "Please enter name." })
|
|
2970
|
+
], CreateCmsDto.prototype, "title", 2);
|
|
2971
|
+
__decorateClass([
|
|
2972
|
+
IsOptional19()
|
|
2973
|
+
], CreateCmsDto.prototype, "content", 2);
|
|
2974
|
+
__decorateClass([
|
|
2975
|
+
IsOptional19(),
|
|
2976
|
+
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
2977
|
+
], CreateCmsDto.prototype, "isActive", 2);
|
|
2978
|
+
|
|
2979
|
+
// src/modules/cms/dto/update-cms.dto.ts
|
|
2980
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional20 } from "class-validator";
|
|
2981
|
+
var UpdateCmsDto = class {
|
|
2982
|
+
};
|
|
2983
|
+
__decorateClass([
|
|
2984
|
+
IsOptional20()
|
|
2985
|
+
], UpdateCmsDto.prototype, "uuid", 2);
|
|
2986
|
+
__decorateClass([
|
|
2987
|
+
IsNotEmpty40({ message: "Please enter name." })
|
|
2988
|
+
], UpdateCmsDto.prototype, "title", 2);
|
|
2989
|
+
__decorateClass([
|
|
2990
|
+
IsOptional20()
|
|
2991
|
+
], UpdateCmsDto.prototype, "content", 2);
|
|
2992
|
+
__decorateClass([
|
|
2993
|
+
IsOptional20(),
|
|
2994
|
+
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
2995
|
+
], UpdateCmsDto.prototype, "isActive", 2);
|
|
2996
|
+
|
|
2992
2997
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2993
2998
|
import { config } from "dotenv";
|
|
2994
2999
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -3206,7 +3211,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3206
3211
|
};
|
|
3207
3212
|
|
|
3208
3213
|
// src/entities/question.entity.ts
|
|
3209
|
-
import { Entity as
|
|
3214
|
+
import { Entity as Entity25, Column as Column26 } from "typeorm";
|
|
3210
3215
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3211
3216
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3212
3217
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3215,16 +3220,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3215
3220
|
var Question = class extends BaseEntity {
|
|
3216
3221
|
};
|
|
3217
3222
|
__decorateClass([
|
|
3218
|
-
|
|
3223
|
+
Column26({ name: "question", type: "varchar" })
|
|
3219
3224
|
], Question.prototype, "question", 2);
|
|
3220
3225
|
__decorateClass([
|
|
3221
|
-
|
|
3226
|
+
Column26({ name: "hint", type: "varchar", nullable: true })
|
|
3222
3227
|
], Question.prototype, "hint", 2);
|
|
3223
3228
|
__decorateClass([
|
|
3224
|
-
|
|
3229
|
+
Column26({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3225
3230
|
], Question.prototype, "slug", 2);
|
|
3226
3231
|
__decorateClass([
|
|
3227
|
-
|
|
3232
|
+
Column26({
|
|
3228
3233
|
name: "question_for",
|
|
3229
3234
|
type: "enum",
|
|
3230
3235
|
enum: QuestionFor,
|
|
@@ -3232,98 +3237,187 @@ __decorateClass([
|
|
|
3232
3237
|
})
|
|
3233
3238
|
], Question.prototype, "questionFor", 2);
|
|
3234
3239
|
__decorateClass([
|
|
3235
|
-
|
|
3240
|
+
Column26({ name: "type", type: "varchar", nullable: true })
|
|
3236
3241
|
], Question.prototype, "type", 2);
|
|
3237
3242
|
__decorateClass([
|
|
3238
|
-
|
|
3243
|
+
Column26({ name: "options", type: "jsonb", nullable: true })
|
|
3239
3244
|
], Question.prototype, "options", 2);
|
|
3240
3245
|
__decorateClass([
|
|
3241
|
-
|
|
3246
|
+
Column26({ name: "is_active", type: "boolean", default: false })
|
|
3242
3247
|
], Question.prototype, "isActive", 2);
|
|
3243
3248
|
Question = __decorateClass([
|
|
3244
|
-
|
|
3249
|
+
Entity25("questions")
|
|
3245
3250
|
], Question);
|
|
3246
3251
|
|
|
3252
|
+
// src/entities/company-role.entity.ts
|
|
3253
|
+
import {
|
|
3254
|
+
Column as Column29,
|
|
3255
|
+
Entity as Entity28,
|
|
3256
|
+
Index as Index24,
|
|
3257
|
+
OneToMany as OneToMany9
|
|
3258
|
+
} from "typeorm";
|
|
3259
|
+
|
|
3260
|
+
// src/entities/company-role-permission.entity.ts
|
|
3261
|
+
import {
|
|
3262
|
+
Column as Column28,
|
|
3263
|
+
Entity as Entity27,
|
|
3264
|
+
ManyToOne as ManyToOne24,
|
|
3265
|
+
JoinColumn as JoinColumn24,
|
|
3266
|
+
BaseEntity as BaseEntity2,
|
|
3267
|
+
Index as Index23
|
|
3268
|
+
} from "typeorm";
|
|
3269
|
+
|
|
3270
|
+
// src/entities/permission.entity.ts
|
|
3271
|
+
import { Column as Column27, Entity as Entity26, Index as Index22 } from "typeorm";
|
|
3272
|
+
var Permission = class extends BaseEntity {
|
|
3273
|
+
};
|
|
3274
|
+
__decorateClass([
|
|
3275
|
+
Column27({ name: "name", type: "varchar", nullable: true })
|
|
3276
|
+
], Permission.prototype, "name", 2);
|
|
3277
|
+
__decorateClass([
|
|
3278
|
+
Column27({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3279
|
+
Index22()
|
|
3280
|
+
], Permission.prototype, "slug", 2);
|
|
3281
|
+
__decorateClass([
|
|
3282
|
+
Column27({ name: "description", type: "text", nullable: true })
|
|
3283
|
+
], Permission.prototype, "description", 2);
|
|
3284
|
+
__decorateClass([
|
|
3285
|
+
Column27({ name: "is_active", type: "boolean", default: true })
|
|
3286
|
+
], Permission.prototype, "isActive", 2);
|
|
3287
|
+
Permission = __decorateClass([
|
|
3288
|
+
Entity26("permissions")
|
|
3289
|
+
], Permission);
|
|
3290
|
+
|
|
3291
|
+
// src/entities/company-role-permission.entity.ts
|
|
3292
|
+
var CompanyRolePermission = class extends BaseEntity2 {
|
|
3293
|
+
};
|
|
3294
|
+
__decorateClass([
|
|
3295
|
+
Column28({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3296
|
+
Index23()
|
|
3297
|
+
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3298
|
+
__decorateClass([
|
|
3299
|
+
ManyToOne24(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3300
|
+
onDelete: "CASCADE"
|
|
3301
|
+
}),
|
|
3302
|
+
JoinColumn24({ name: "company_role_id" })
|
|
3303
|
+
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3304
|
+
__decorateClass([
|
|
3305
|
+
Column28({ name: "permission_id", type: "integer" }),
|
|
3306
|
+
Index23()
|
|
3307
|
+
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3308
|
+
__decorateClass([
|
|
3309
|
+
ManyToOne24(() => Permission, { onDelete: "CASCADE" }),
|
|
3310
|
+
JoinColumn24({ name: "permission_id" })
|
|
3311
|
+
], CompanyRolePermission.prototype, "permission", 2);
|
|
3312
|
+
__decorateClass([
|
|
3313
|
+
Column28({ name: "assigned_by", nullable: true })
|
|
3314
|
+
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3315
|
+
CompanyRolePermission = __decorateClass([
|
|
3316
|
+
Entity27("company_role_permissions")
|
|
3317
|
+
], CompanyRolePermission);
|
|
3318
|
+
|
|
3319
|
+
// src/entities/company-role.entity.ts
|
|
3320
|
+
var CompanyRole = class extends BaseEntity {
|
|
3321
|
+
};
|
|
3322
|
+
__decorateClass([
|
|
3323
|
+
Column29({ name: "name", type: "varchar" })
|
|
3324
|
+
], CompanyRole.prototype, "name", 2);
|
|
3325
|
+
__decorateClass([
|
|
3326
|
+
Column29({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3327
|
+
Index24()
|
|
3328
|
+
], CompanyRole.prototype, "slug", 2);
|
|
3329
|
+
__decorateClass([
|
|
3330
|
+
Column29({ name: "description", type: "text", nullable: true })
|
|
3331
|
+
], CompanyRole.prototype, "description", 2);
|
|
3332
|
+
__decorateClass([
|
|
3333
|
+
Column29({ name: "is_active", type: "boolean", default: true })
|
|
3334
|
+
], CompanyRole.prototype, "isActive", 2);
|
|
3335
|
+
__decorateClass([
|
|
3336
|
+
OneToMany9(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3337
|
+
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3338
|
+
CompanyRole = __decorateClass([
|
|
3339
|
+
Entity28("company_roles")
|
|
3340
|
+
], CompanyRole);
|
|
3341
|
+
|
|
3247
3342
|
// src/entities/job-role.entity.ts
|
|
3248
|
-
import { Entity as
|
|
3343
|
+
import { Entity as Entity29, Column as Column30 } from "typeorm";
|
|
3249
3344
|
var JobRoles = class extends BaseEntity {
|
|
3250
3345
|
};
|
|
3251
3346
|
__decorateClass([
|
|
3252
|
-
|
|
3347
|
+
Column30({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3253
3348
|
], JobRoles.prototype, "slug", 2);
|
|
3254
3349
|
__decorateClass([
|
|
3255
|
-
|
|
3350
|
+
Column30({ name: "name", type: "varchar", nullable: true })
|
|
3256
3351
|
], JobRoles.prototype, "name", 2);
|
|
3257
3352
|
__decorateClass([
|
|
3258
|
-
|
|
3353
|
+
Column30({ name: "is_active", type: "boolean", default: true })
|
|
3259
3354
|
], JobRoles.prototype, "isActive", 2);
|
|
3260
3355
|
JobRoles = __decorateClass([
|
|
3261
|
-
|
|
3356
|
+
Entity29("job_roles")
|
|
3262
3357
|
], JobRoles);
|
|
3263
3358
|
|
|
3264
3359
|
// src/entities/plan.entity.ts
|
|
3265
|
-
import { Entity as
|
|
3360
|
+
import { Entity as Entity31, Column as Column32, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
3266
3361
|
|
|
3267
3362
|
// src/entities/feature.entity.ts
|
|
3268
|
-
import { Entity as
|
|
3363
|
+
import { Entity as Entity30, Column as Column31, ManyToMany } from "typeorm";
|
|
3269
3364
|
var Feature = class extends BaseEntity {
|
|
3270
3365
|
};
|
|
3271
3366
|
__decorateClass([
|
|
3272
|
-
|
|
3367
|
+
Column31({ name: "name", type: "varchar", unique: true })
|
|
3273
3368
|
], Feature.prototype, "name", 2);
|
|
3274
3369
|
__decorateClass([
|
|
3275
3370
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
3276
3371
|
], Feature.prototype, "plans", 2);
|
|
3277
3372
|
Feature = __decorateClass([
|
|
3278
|
-
|
|
3373
|
+
Entity30("features")
|
|
3279
3374
|
], Feature);
|
|
3280
3375
|
|
|
3281
3376
|
// src/entities/plan.entity.ts
|
|
3282
3377
|
var Plan = class extends BaseEntity {
|
|
3283
3378
|
};
|
|
3284
3379
|
__decorateClass([
|
|
3285
|
-
|
|
3380
|
+
Column32({ name: "name", type: "varchar", unique: true })
|
|
3286
3381
|
], Plan.prototype, "name", 2);
|
|
3287
3382
|
__decorateClass([
|
|
3288
|
-
|
|
3383
|
+
Column32({ name: "description", type: "varchar", nullable: true })
|
|
3289
3384
|
], Plan.prototype, "description", 2);
|
|
3290
3385
|
__decorateClass([
|
|
3291
|
-
|
|
3386
|
+
Column32({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3292
3387
|
], Plan.prototype, "price", 2);
|
|
3293
3388
|
__decorateClass([
|
|
3294
|
-
|
|
3389
|
+
Column32({ name: "billing_period", type: "varchar" })
|
|
3295
3390
|
], Plan.prototype, "billingPeriod", 2);
|
|
3296
3391
|
__decorateClass([
|
|
3297
|
-
|
|
3392
|
+
Column32({ name: "is_current", type: "boolean", default: false })
|
|
3298
3393
|
], Plan.prototype, "isCurrent", 2);
|
|
3299
3394
|
__decorateClass([
|
|
3300
3395
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3301
3396
|
JoinTable()
|
|
3302
3397
|
], Plan.prototype, "features", 2);
|
|
3303
3398
|
Plan = __decorateClass([
|
|
3304
|
-
|
|
3399
|
+
Entity31("plans")
|
|
3305
3400
|
], Plan);
|
|
3306
3401
|
|
|
3307
|
-
// src/entities/
|
|
3308
|
-
import {
|
|
3309
|
-
var
|
|
3402
|
+
// src/entities/cms.entity.ts
|
|
3403
|
+
import { Entity as Entity32, Column as Column33 } from "typeorm";
|
|
3404
|
+
var Cms = class extends BaseEntity {
|
|
3310
3405
|
};
|
|
3311
3406
|
__decorateClass([
|
|
3312
|
-
|
|
3313
|
-
],
|
|
3407
|
+
Column33({ name: "title", type: "varchar", nullable: true })
|
|
3408
|
+
], Cms.prototype, "title", 2);
|
|
3314
3409
|
__decorateClass([
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
], Permission.prototype, "slug", 2);
|
|
3410
|
+
Column33({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3411
|
+
], Cms.prototype, "slug", 2);
|
|
3318
3412
|
__decorateClass([
|
|
3319
|
-
|
|
3320
|
-
],
|
|
3413
|
+
Column33({ name: "content", type: "varchar", nullable: true })
|
|
3414
|
+
], Cms.prototype, "content", 2);
|
|
3321
3415
|
__decorateClass([
|
|
3322
|
-
|
|
3323
|
-
],
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
],
|
|
3416
|
+
Column33({ name: "is_active", type: "boolean", default: true })
|
|
3417
|
+
], Cms.prototype, "isActive", 2);
|
|
3418
|
+
Cms = __decorateClass([
|
|
3419
|
+
Entity32("cms")
|
|
3420
|
+
], Cms);
|
|
3327
3421
|
export {
|
|
3328
3422
|
AUTHENTICATION_PATTERN,
|
|
3329
3423
|
AccountStatus,
|
|
@@ -3338,14 +3432,17 @@ export {
|
|
|
3338
3432
|
BaseEntity,
|
|
3339
3433
|
CLIENT_ADMIN_PATTERNS,
|
|
3340
3434
|
CLIENT_PROFILE_PATTERN,
|
|
3435
|
+
CMS_PATTERNS,
|
|
3341
3436
|
COMPANY_MEMBERS_PATTERNS,
|
|
3342
3437
|
COMPANY_ROLES_PATTERNS,
|
|
3343
3438
|
CaseStudyDto,
|
|
3344
3439
|
ClientChangePasswordDto,
|
|
3345
3440
|
ClientCreateAccountDto,
|
|
3346
3441
|
ClientProfileQuestionDto,
|
|
3442
|
+
Cms,
|
|
3347
3443
|
CompanyProfile,
|
|
3348
3444
|
CompanyRole,
|
|
3445
|
+
CreateCmsDto,
|
|
3349
3446
|
CreateCompanyMemberDto,
|
|
3350
3447
|
CreateCompanyRoleDto,
|
|
3351
3448
|
CreateQuestionDto,
|
|
@@ -3457,6 +3554,7 @@ export {
|
|
|
3457
3554
|
ToggleCompanyMemberVisibilityDto,
|
|
3458
3555
|
ToggleCompanyRoleVisibilityDto,
|
|
3459
3556
|
TypeOfEmploymentEnum,
|
|
3557
|
+
UpdateCmsDto,
|
|
3460
3558
|
UpdateCompanyMemberDto,
|
|
3461
3559
|
UpdateCompanyProfileDto,
|
|
3462
3560
|
UpdateCompanyRoleDto,
|