@experts_hub/shared 1.0.182 → 1.0.184
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-members-roles.entity.d.ts +10 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -2
- package/dist/index.d.mts +47 -28
- package/dist/index.d.ts +47 -28
- package/dist/index.js +308 -269
- package/dist/index.mjs +354 -310
- package/dist/modules/cms/cms.interface.d.ts +7 -0
- package/dist/modules/cms/index.d.ts +1 -0
- package/dist/modules/company-member/company-member.interface.d.ts +2 -1
- package/dist/modules/company-member/dto/create-company-member.dto.d.ts +1 -0
- package/dist/modules/company-member/dto/update-company-member.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1060,17 +1060,17 @@ import {
|
|
|
1060
1060
|
} from "class-validator";
|
|
1061
1061
|
|
|
1062
1062
|
// src/entities/rating.entity.ts
|
|
1063
|
-
import { Entity as
|
|
1063
|
+
import { Entity as Entity28, Column as Column29, ManyToOne as ManyToOne26, JoinColumn as JoinColumn26, Index as Index25 } from "typeorm";
|
|
1064
1064
|
|
|
1065
1065
|
// src/entities/user.entity.ts
|
|
1066
1066
|
import {
|
|
1067
|
-
Entity as
|
|
1068
|
-
Column as
|
|
1067
|
+
Entity as Entity27,
|
|
1068
|
+
Column as Column28,
|
|
1069
1069
|
OneToMany as OneToMany8,
|
|
1070
1070
|
OneToOne,
|
|
1071
|
-
Index as
|
|
1072
|
-
ManyToOne as
|
|
1073
|
-
JoinColumn as
|
|
1071
|
+
Index as Index24,
|
|
1072
|
+
ManyToOne as ManyToOne25,
|
|
1073
|
+
JoinColumn as JoinColumn25
|
|
1074
1074
|
} from "typeorm";
|
|
1075
1075
|
|
|
1076
1076
|
// src/entities/base.entity.ts
|
|
@@ -2047,330 +2047,231 @@ SystemPreference = __decorateClass([
|
|
|
2047
2047
|
Entity13("system_preferences")
|
|
2048
2048
|
], SystemPreference);
|
|
2049
2049
|
|
|
2050
|
-
// src/entities/company-role.entity.ts
|
|
2051
|
-
import {
|
|
2052
|
-
Column as Column17,
|
|
2053
|
-
Entity as Entity16,
|
|
2054
|
-
Index as Index13,
|
|
2055
|
-
JoinColumn as JoinColumn14,
|
|
2056
|
-
ManyToOne as ManyToOne14,
|
|
2057
|
-
OneToMany as OneToMany7
|
|
2058
|
-
} from "typeorm";
|
|
2059
|
-
|
|
2060
|
-
// src/entities/company-role-permission.entity.ts
|
|
2061
|
-
import {
|
|
2062
|
-
Column as Column16,
|
|
2063
|
-
Entity as Entity15,
|
|
2064
|
-
ManyToOne as ManyToOne13,
|
|
2065
|
-
JoinColumn as JoinColumn13,
|
|
2066
|
-
Index as Index12
|
|
2067
|
-
} from "typeorm";
|
|
2068
|
-
|
|
2069
|
-
// src/entities/permission.entity.ts
|
|
2070
|
-
import { Column as Column15, Entity as Entity14, Index as Index11 } from "typeorm";
|
|
2071
|
-
var Permission = class extends BaseEntity {
|
|
2072
|
-
};
|
|
2073
|
-
__decorateClass([
|
|
2074
|
-
Column15({ name: "name", type: "varchar", nullable: true })
|
|
2075
|
-
], Permission.prototype, "name", 2);
|
|
2076
|
-
__decorateClass([
|
|
2077
|
-
Column15({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2078
|
-
Index11()
|
|
2079
|
-
], Permission.prototype, "slug", 2);
|
|
2080
|
-
__decorateClass([
|
|
2081
|
-
Column15({ name: "description", type: "text", nullable: true })
|
|
2082
|
-
], Permission.prototype, "description", 2);
|
|
2083
|
-
__decorateClass([
|
|
2084
|
-
Column15({ name: "is_active", type: "boolean", default: true })
|
|
2085
|
-
], Permission.prototype, "isActive", 2);
|
|
2086
|
-
Permission = __decorateClass([
|
|
2087
|
-
Entity14("permissions")
|
|
2088
|
-
], Permission);
|
|
2089
|
-
|
|
2090
|
-
// src/entities/company-role-permission.entity.ts
|
|
2091
|
-
var CompanyRolePermission = class extends BaseEntity {
|
|
2092
|
-
};
|
|
2093
|
-
__decorateClass([
|
|
2094
|
-
Column16({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2095
|
-
Index12()
|
|
2096
|
-
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2097
|
-
__decorateClass([
|
|
2098
|
-
ManyToOne13(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2099
|
-
onDelete: "CASCADE"
|
|
2100
|
-
}),
|
|
2101
|
-
JoinColumn13({ name: "company_role_id" })
|
|
2102
|
-
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2103
|
-
__decorateClass([
|
|
2104
|
-
Column16({ name: "permission_id", type: "integer" }),
|
|
2105
|
-
Index12()
|
|
2106
|
-
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2107
|
-
__decorateClass([
|
|
2108
|
-
ManyToOne13(() => Permission, { onDelete: "CASCADE" }),
|
|
2109
|
-
JoinColumn13({ name: "permission_id" })
|
|
2110
|
-
], CompanyRolePermission.prototype, "permission", 2);
|
|
2111
|
-
__decorateClass([
|
|
2112
|
-
Column16({ name: "assigned_by", type: "integer", nullable: true })
|
|
2113
|
-
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2114
|
-
CompanyRolePermission = __decorateClass([
|
|
2115
|
-
Entity15("company_role_permissions")
|
|
2116
|
-
], CompanyRolePermission);
|
|
2117
|
-
|
|
2118
|
-
// src/entities/company-role.entity.ts
|
|
2119
|
-
var CompanyRole = class extends BaseEntity {
|
|
2120
|
-
};
|
|
2121
|
-
__decorateClass([
|
|
2122
|
-
Column17({ name: "user_id", type: "integer", nullable: true }),
|
|
2123
|
-
Index13()
|
|
2124
|
-
], CompanyRole.prototype, "userId", 2);
|
|
2125
|
-
__decorateClass([
|
|
2126
|
-
ManyToOne14(() => User, (user) => user.otps),
|
|
2127
|
-
JoinColumn14({ name: "user_id" })
|
|
2128
|
-
], CompanyRole.prototype, "user", 2);
|
|
2129
|
-
__decorateClass([
|
|
2130
|
-
Column17({ name: "name", type: "varchar" })
|
|
2131
|
-
], CompanyRole.prototype, "name", 2);
|
|
2132
|
-
__decorateClass([
|
|
2133
|
-
Column17({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2134
|
-
Index13()
|
|
2135
|
-
], CompanyRole.prototype, "slug", 2);
|
|
2136
|
-
__decorateClass([
|
|
2137
|
-
Column17({ name: "description", type: "text", nullable: true })
|
|
2138
|
-
], CompanyRole.prototype, "description", 2);
|
|
2139
|
-
__decorateClass([
|
|
2140
|
-
Column17({ name: "is_active", type: "boolean", default: true })
|
|
2141
|
-
], CompanyRole.prototype, "isActive", 2);
|
|
2142
|
-
__decorateClass([
|
|
2143
|
-
OneToMany7(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2144
|
-
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2145
|
-
CompanyRole = __decorateClass([
|
|
2146
|
-
Entity16("company_roles")
|
|
2147
|
-
], CompanyRole);
|
|
2148
|
-
|
|
2149
2050
|
// src/entities/freelancer-experience.entity.ts
|
|
2150
2051
|
import {
|
|
2151
|
-
Entity as
|
|
2152
|
-
Column as
|
|
2153
|
-
Index as
|
|
2154
|
-
ManyToOne as
|
|
2155
|
-
JoinColumn as
|
|
2052
|
+
Entity as Entity14,
|
|
2053
|
+
Column as Column15,
|
|
2054
|
+
Index as Index11,
|
|
2055
|
+
ManyToOne as ManyToOne13,
|
|
2056
|
+
JoinColumn as JoinColumn13
|
|
2156
2057
|
} from "typeorm";
|
|
2157
2058
|
var FreelancerExperience = class extends BaseEntity {
|
|
2158
2059
|
};
|
|
2159
2060
|
// individual index to find experence by user
|
|
2160
2061
|
__decorateClass([
|
|
2161
|
-
|
|
2162
|
-
|
|
2062
|
+
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
2063
|
+
Index11()
|
|
2163
2064
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2164
2065
|
__decorateClass([
|
|
2165
|
-
|
|
2166
|
-
|
|
2066
|
+
ManyToOne13(() => User, (user) => user.freelancerExperience),
|
|
2067
|
+
JoinColumn13({ name: "user_id" })
|
|
2167
2068
|
], FreelancerExperience.prototype, "user", 2);
|
|
2168
2069
|
__decorateClass([
|
|
2169
|
-
|
|
2070
|
+
Column15({ name: "company_name", type: "varchar", nullable: true })
|
|
2170
2071
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2171
2072
|
__decorateClass([
|
|
2172
|
-
|
|
2073
|
+
Column15({ name: "designation", type: "varchar", nullable: true })
|
|
2173
2074
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2174
2075
|
__decorateClass([
|
|
2175
|
-
|
|
2076
|
+
Column15({ name: "job_duration", type: "varchar", nullable: true })
|
|
2176
2077
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2177
2078
|
__decorateClass([
|
|
2178
|
-
|
|
2079
|
+
Column15({ name: "description", type: "varchar", nullable: true })
|
|
2179
2080
|
], FreelancerExperience.prototype, "description", 2);
|
|
2180
2081
|
FreelancerExperience = __decorateClass([
|
|
2181
|
-
|
|
2082
|
+
Entity14("freelancer_experiences")
|
|
2182
2083
|
], FreelancerExperience);
|
|
2183
2084
|
|
|
2184
2085
|
// src/entities/freelancer-education.entity.ts
|
|
2185
2086
|
import {
|
|
2186
|
-
Entity as
|
|
2187
|
-
Column as
|
|
2188
|
-
Index as
|
|
2189
|
-
ManyToOne as
|
|
2190
|
-
JoinColumn as
|
|
2087
|
+
Entity as Entity15,
|
|
2088
|
+
Column as Column16,
|
|
2089
|
+
Index as Index12,
|
|
2090
|
+
ManyToOne as ManyToOne14,
|
|
2091
|
+
JoinColumn as JoinColumn14
|
|
2191
2092
|
} from "typeorm";
|
|
2192
2093
|
var FreelancerEducation = class extends BaseEntity {
|
|
2193
2094
|
};
|
|
2194
2095
|
// individual index to find education by user
|
|
2195
2096
|
__decorateClass([
|
|
2196
|
-
|
|
2197
|
-
|
|
2097
|
+
Column16({ name: "user_id", type: "integer", nullable: true }),
|
|
2098
|
+
Index12()
|
|
2198
2099
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2199
2100
|
__decorateClass([
|
|
2200
|
-
|
|
2201
|
-
|
|
2101
|
+
ManyToOne14(() => User, (user) => user.freelancerEducation),
|
|
2102
|
+
JoinColumn14({ name: "user_id" })
|
|
2202
2103
|
], FreelancerEducation.prototype, "user", 2);
|
|
2203
2104
|
__decorateClass([
|
|
2204
|
-
|
|
2105
|
+
Column16({ name: "degree", type: "varchar", nullable: true })
|
|
2205
2106
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2206
2107
|
__decorateClass([
|
|
2207
|
-
|
|
2108
|
+
Column16({ name: "university", type: "varchar", nullable: true })
|
|
2208
2109
|
], FreelancerEducation.prototype, "university", 2);
|
|
2209
2110
|
__decorateClass([
|
|
2210
|
-
|
|
2111
|
+
Column16({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2211
2112
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2212
2113
|
FreelancerEducation = __decorateClass([
|
|
2213
|
-
|
|
2114
|
+
Entity15("freelancer_educations")
|
|
2214
2115
|
], FreelancerEducation);
|
|
2215
2116
|
|
|
2216
2117
|
// src/entities/freelancer-project.entity.ts
|
|
2217
2118
|
import {
|
|
2218
|
-
Entity as
|
|
2219
|
-
Column as
|
|
2220
|
-
Index as
|
|
2221
|
-
ManyToOne as
|
|
2222
|
-
JoinColumn as
|
|
2119
|
+
Entity as Entity16,
|
|
2120
|
+
Column as Column17,
|
|
2121
|
+
Index as Index13,
|
|
2122
|
+
ManyToOne as ManyToOne15,
|
|
2123
|
+
JoinColumn as JoinColumn15
|
|
2223
2124
|
} from "typeorm";
|
|
2224
2125
|
var FreelancerProject = class extends BaseEntity {
|
|
2225
2126
|
};
|
|
2226
2127
|
// individual index to find project by user
|
|
2227
2128
|
__decorateClass([
|
|
2228
|
-
|
|
2229
|
-
|
|
2129
|
+
Column17({ name: "user_id", type: "integer", nullable: true }),
|
|
2130
|
+
Index13()
|
|
2230
2131
|
], FreelancerProject.prototype, "userId", 2);
|
|
2231
2132
|
__decorateClass([
|
|
2232
|
-
|
|
2233
|
-
|
|
2133
|
+
ManyToOne15(() => User, (user) => user.freelancerProject),
|
|
2134
|
+
JoinColumn15({ name: "user_id" })
|
|
2234
2135
|
], FreelancerProject.prototype, "user", 2);
|
|
2235
2136
|
__decorateClass([
|
|
2236
|
-
|
|
2137
|
+
Column17({ name: "project_name", type: "varchar", nullable: true })
|
|
2237
2138
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2238
2139
|
__decorateClass([
|
|
2239
|
-
|
|
2140
|
+
Column17({ name: "start_date", type: "date", nullable: true })
|
|
2240
2141
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2241
2142
|
__decorateClass([
|
|
2242
|
-
|
|
2143
|
+
Column17({ name: "end_date", type: "date", nullable: true })
|
|
2243
2144
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2244
2145
|
__decorateClass([
|
|
2245
|
-
|
|
2146
|
+
Column17({ name: "client_name", type: "varchar", nullable: true })
|
|
2246
2147
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2247
2148
|
__decorateClass([
|
|
2248
|
-
|
|
2149
|
+
Column17({ name: "git_link", type: "varchar", nullable: true })
|
|
2249
2150
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2250
2151
|
__decorateClass([
|
|
2251
|
-
|
|
2152
|
+
Column17({ name: "description", type: "varchar", nullable: true })
|
|
2252
2153
|
], FreelancerProject.prototype, "description", 2);
|
|
2253
2154
|
FreelancerProject = __decorateClass([
|
|
2254
|
-
|
|
2155
|
+
Entity16("freelancer_projects")
|
|
2255
2156
|
], FreelancerProject);
|
|
2256
2157
|
|
|
2257
2158
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2258
2159
|
import {
|
|
2259
|
-
Entity as
|
|
2260
|
-
Column as
|
|
2261
|
-
Index as
|
|
2262
|
-
ManyToOne as
|
|
2263
|
-
JoinColumn as
|
|
2160
|
+
Entity as Entity17,
|
|
2161
|
+
Column as Column18,
|
|
2162
|
+
Index as Index14,
|
|
2163
|
+
ManyToOne as ManyToOne16,
|
|
2164
|
+
JoinColumn as JoinColumn16
|
|
2264
2165
|
} from "typeorm";
|
|
2265
2166
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2266
2167
|
};
|
|
2267
2168
|
// individual index to find case study by user
|
|
2268
2169
|
__decorateClass([
|
|
2269
|
-
|
|
2270
|
-
|
|
2170
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2171
|
+
Index14()
|
|
2271
2172
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2272
2173
|
__decorateClass([
|
|
2273
|
-
|
|
2274
|
-
|
|
2174
|
+
ManyToOne16(() => User, (user) => user.freelancerCaseStudy),
|
|
2175
|
+
JoinColumn16({ name: "user_id" })
|
|
2275
2176
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2276
2177
|
__decorateClass([
|
|
2277
|
-
|
|
2178
|
+
Column18({ name: "project_name", type: "varchar", nullable: true })
|
|
2278
2179
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2279
2180
|
__decorateClass([
|
|
2280
|
-
|
|
2181
|
+
Column18({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2281
2182
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2282
2183
|
__decorateClass([
|
|
2283
|
-
|
|
2184
|
+
Column18({ name: "description", type: "varchar", nullable: true })
|
|
2284
2185
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2285
2186
|
FreelancerCaseStudy = __decorateClass([
|
|
2286
|
-
|
|
2187
|
+
Entity17("freelancer_case_studies")
|
|
2287
2188
|
], FreelancerCaseStudy);
|
|
2288
2189
|
|
|
2289
2190
|
// src/entities/freelancer-coreskill.entity.ts
|
|
2290
2191
|
import {
|
|
2291
|
-
Entity as
|
|
2292
|
-
Column as
|
|
2293
|
-
Index as
|
|
2294
|
-
ManyToOne as
|
|
2295
|
-
JoinColumn as
|
|
2192
|
+
Entity as Entity18,
|
|
2193
|
+
Column as Column19,
|
|
2194
|
+
Index as Index15,
|
|
2195
|
+
ManyToOne as ManyToOne17,
|
|
2196
|
+
JoinColumn as JoinColumn17
|
|
2296
2197
|
} from "typeorm";
|
|
2297
2198
|
var FreelancerCoreSkill = class extends BaseEntity {
|
|
2298
2199
|
};
|
|
2299
2200
|
// individual index to find core skills by user
|
|
2300
2201
|
__decorateClass([
|
|
2301
|
-
|
|
2302
|
-
|
|
2202
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2203
|
+
Index15()
|
|
2303
2204
|
], FreelancerCoreSkill.prototype, "userId", 2);
|
|
2304
2205
|
__decorateClass([
|
|
2305
|
-
|
|
2306
|
-
|
|
2206
|
+
ManyToOne17(() => User, (user) => user.freelancerCoreSkill),
|
|
2207
|
+
JoinColumn17({ name: "user_id" })
|
|
2307
2208
|
], FreelancerCoreSkill.prototype, "user", 2);
|
|
2308
2209
|
__decorateClass([
|
|
2309
|
-
|
|
2210
|
+
Column19({ name: "skill_name", type: "varchar", nullable: true })
|
|
2310
2211
|
], FreelancerCoreSkill.prototype, "skillName", 2);
|
|
2311
2212
|
FreelancerCoreSkill = __decorateClass([
|
|
2312
|
-
|
|
2213
|
+
Entity18("freelancer_coreskills")
|
|
2313
2214
|
], FreelancerCoreSkill);
|
|
2314
2215
|
|
|
2315
2216
|
// src/entities/freelancer-tool.entity.ts
|
|
2316
2217
|
import {
|
|
2317
|
-
Entity as
|
|
2318
|
-
Column as
|
|
2319
|
-
Index as
|
|
2320
|
-
ManyToOne as
|
|
2321
|
-
JoinColumn as
|
|
2218
|
+
Entity as Entity19,
|
|
2219
|
+
Column as Column20,
|
|
2220
|
+
Index as Index16,
|
|
2221
|
+
ManyToOne as ManyToOne18,
|
|
2222
|
+
JoinColumn as JoinColumn18
|
|
2322
2223
|
} from "typeorm";
|
|
2323
2224
|
var FreelancerTool = class extends BaseEntity {
|
|
2324
2225
|
};
|
|
2325
2226
|
// individual index to find tool by user
|
|
2326
2227
|
__decorateClass([
|
|
2327
|
-
|
|
2328
|
-
|
|
2228
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2229
|
+
Index16()
|
|
2329
2230
|
], FreelancerTool.prototype, "userId", 2);
|
|
2330
2231
|
__decorateClass([
|
|
2331
|
-
|
|
2332
|
-
|
|
2232
|
+
ManyToOne18(() => User, (user) => user.freelancerTool),
|
|
2233
|
+
JoinColumn18({ name: "user_id" })
|
|
2333
2234
|
], FreelancerTool.prototype, "user", 2);
|
|
2334
2235
|
__decorateClass([
|
|
2335
|
-
|
|
2236
|
+
Column20({ name: "tool_name", type: "varchar", nullable: true })
|
|
2336
2237
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2337
2238
|
FreelancerTool = __decorateClass([
|
|
2338
|
-
|
|
2239
|
+
Entity19("freelancer_tools")
|
|
2339
2240
|
], FreelancerTool);
|
|
2340
2241
|
|
|
2341
2242
|
// src/entities/freelancer-framework.entity.ts
|
|
2342
2243
|
import {
|
|
2343
|
-
Entity as
|
|
2344
|
-
Column as
|
|
2345
|
-
Index as
|
|
2346
|
-
ManyToOne as
|
|
2347
|
-
JoinColumn as
|
|
2244
|
+
Entity as Entity20,
|
|
2245
|
+
Column as Column21,
|
|
2246
|
+
Index as Index17,
|
|
2247
|
+
ManyToOne as ManyToOne19,
|
|
2248
|
+
JoinColumn as JoinColumn19
|
|
2348
2249
|
} from "typeorm";
|
|
2349
2250
|
var FreelancerFramework = class extends BaseEntity {
|
|
2350
2251
|
};
|
|
2351
2252
|
// individual index to find framework by user
|
|
2352
2253
|
__decorateClass([
|
|
2353
|
-
|
|
2354
|
-
|
|
2254
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2255
|
+
Index17()
|
|
2355
2256
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2356
2257
|
__decorateClass([
|
|
2357
|
-
|
|
2358
|
-
|
|
2258
|
+
ManyToOne19(() => User, (user) => user.freelancerFramework),
|
|
2259
|
+
JoinColumn19({ name: "user_id" })
|
|
2359
2260
|
], FreelancerFramework.prototype, "user", 2);
|
|
2360
2261
|
__decorateClass([
|
|
2361
|
-
|
|
2262
|
+
Column21({ name: "framework_name", type: "varchar", nullable: true })
|
|
2362
2263
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2363
2264
|
FreelancerFramework = __decorateClass([
|
|
2364
|
-
|
|
2265
|
+
Entity20("freelancer_frameworks")
|
|
2365
2266
|
], FreelancerFramework);
|
|
2366
2267
|
|
|
2367
2268
|
// src/entities/freelancer-assessment.entity.ts
|
|
2368
2269
|
import {
|
|
2369
|
-
Entity as
|
|
2370
|
-
Column as
|
|
2371
|
-
Index as
|
|
2372
|
-
ManyToOne as
|
|
2373
|
-
JoinColumn as
|
|
2270
|
+
Entity as Entity21,
|
|
2271
|
+
Column as Column22,
|
|
2272
|
+
Index as Index18,
|
|
2273
|
+
ManyToOne as ManyToOne20,
|
|
2274
|
+
JoinColumn as JoinColumn20
|
|
2374
2275
|
} from "typeorm";
|
|
2375
2276
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2376
2277
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -2385,21 +2286,21 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2385
2286
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2386
2287
|
};
|
|
2387
2288
|
__decorateClass([
|
|
2388
|
-
|
|
2389
|
-
|
|
2289
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2290
|
+
Index18()
|
|
2390
2291
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2391
2292
|
__decorateClass([
|
|
2392
|
-
|
|
2393
|
-
|
|
2293
|
+
ManyToOne20(() => User, (user) => user.assessments),
|
|
2294
|
+
JoinColumn20({ name: "user_id" })
|
|
2394
2295
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2395
2296
|
__decorateClass([
|
|
2396
|
-
|
|
2297
|
+
Column22({ name: "interview_id", type: "varchar", nullable: true })
|
|
2397
2298
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2398
2299
|
__decorateClass([
|
|
2399
|
-
|
|
2300
|
+
Column22({ name: "interview_link", type: "text", nullable: true })
|
|
2400
2301
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2401
2302
|
__decorateClass([
|
|
2402
|
-
|
|
2303
|
+
Column22({
|
|
2403
2304
|
name: "status",
|
|
2404
2305
|
type: "enum",
|
|
2405
2306
|
enum: AssessmentStatusEnum,
|
|
@@ -2407,16 +2308,16 @@ __decorateClass([
|
|
|
2407
2308
|
})
|
|
2408
2309
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2409
2310
|
FreelancerAssessment = __decorateClass([
|
|
2410
|
-
|
|
2311
|
+
Entity21("freelancer_assessments")
|
|
2411
2312
|
], FreelancerAssessment);
|
|
2412
2313
|
|
|
2413
2314
|
// src/entities/freelancer-declaration.entity.ts
|
|
2414
2315
|
import {
|
|
2415
|
-
Entity as
|
|
2416
|
-
Column as
|
|
2417
|
-
Index as
|
|
2418
|
-
ManyToOne as
|
|
2419
|
-
JoinColumn as
|
|
2316
|
+
Entity as Entity22,
|
|
2317
|
+
Column as Column23,
|
|
2318
|
+
Index as Index19,
|
|
2319
|
+
ManyToOne as ManyToOne21,
|
|
2320
|
+
JoinColumn as JoinColumn21
|
|
2420
2321
|
} from "typeorm";
|
|
2421
2322
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2422
2323
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -2429,15 +2330,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2429
2330
|
};
|
|
2430
2331
|
// individual index to find declaration by user
|
|
2431
2332
|
__decorateClass([
|
|
2432
|
-
|
|
2433
|
-
|
|
2333
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2334
|
+
Index19()
|
|
2434
2335
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2435
2336
|
__decorateClass([
|
|
2436
|
-
|
|
2437
|
-
|
|
2337
|
+
ManyToOne21(() => User, (user) => user.freelancerDeclaration),
|
|
2338
|
+
JoinColumn21({ name: "user_id" })
|
|
2438
2339
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2439
2340
|
__decorateClass([
|
|
2440
|
-
|
|
2341
|
+
Column23({
|
|
2441
2342
|
name: "document_type",
|
|
2442
2343
|
type: "enum",
|
|
2443
2344
|
enum: DocumentType,
|
|
@@ -2445,21 +2346,155 @@ __decorateClass([
|
|
|
2445
2346
|
})
|
|
2446
2347
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2447
2348
|
__decorateClass([
|
|
2448
|
-
|
|
2349
|
+
Column23({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2449
2350
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2450
2351
|
__decorateClass([
|
|
2451
|
-
|
|
2352
|
+
Column23({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2452
2353
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2453
2354
|
__decorateClass([
|
|
2454
|
-
|
|
2355
|
+
Column23({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2455
2356
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2456
2357
|
__decorateClass([
|
|
2457
|
-
|
|
2358
|
+
Column23({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2458
2359
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2459
2360
|
FreelancerDeclaration = __decorateClass([
|
|
2460
|
-
|
|
2361
|
+
Entity22("freelancer_declaration")
|
|
2461
2362
|
], FreelancerDeclaration);
|
|
2462
2363
|
|
|
2364
|
+
// src/entities/company-members-roles.entity.ts
|
|
2365
|
+
import {
|
|
2366
|
+
Column as Column27,
|
|
2367
|
+
Entity as Entity26,
|
|
2368
|
+
ManyToOne as ManyToOne24,
|
|
2369
|
+
JoinColumn as JoinColumn24,
|
|
2370
|
+
Index as Index23
|
|
2371
|
+
} from "typeorm";
|
|
2372
|
+
|
|
2373
|
+
// src/entities/company-role.entity.ts
|
|
2374
|
+
import {
|
|
2375
|
+
Column as Column26,
|
|
2376
|
+
Entity as Entity25,
|
|
2377
|
+
Index as Index22,
|
|
2378
|
+
JoinColumn as JoinColumn23,
|
|
2379
|
+
ManyToOne as ManyToOne23,
|
|
2380
|
+
OneToMany as OneToMany7
|
|
2381
|
+
} from "typeorm";
|
|
2382
|
+
|
|
2383
|
+
// src/entities/company-role-permission.entity.ts
|
|
2384
|
+
import {
|
|
2385
|
+
Column as Column25,
|
|
2386
|
+
Entity as Entity24,
|
|
2387
|
+
ManyToOne as ManyToOne22,
|
|
2388
|
+
JoinColumn as JoinColumn22,
|
|
2389
|
+
Index as Index21
|
|
2390
|
+
} from "typeorm";
|
|
2391
|
+
|
|
2392
|
+
// src/entities/permission.entity.ts
|
|
2393
|
+
import { Column as Column24, Entity as Entity23, Index as Index20 } from "typeorm";
|
|
2394
|
+
var Permission = class extends BaseEntity {
|
|
2395
|
+
};
|
|
2396
|
+
__decorateClass([
|
|
2397
|
+
Column24({ name: "name", type: "varchar", nullable: true })
|
|
2398
|
+
], Permission.prototype, "name", 2);
|
|
2399
|
+
__decorateClass([
|
|
2400
|
+
Column24({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2401
|
+
Index20()
|
|
2402
|
+
], Permission.prototype, "slug", 2);
|
|
2403
|
+
__decorateClass([
|
|
2404
|
+
Column24({ name: "description", type: "text", nullable: true })
|
|
2405
|
+
], Permission.prototype, "description", 2);
|
|
2406
|
+
__decorateClass([
|
|
2407
|
+
Column24({ name: "is_active", type: "boolean", default: true })
|
|
2408
|
+
], Permission.prototype, "isActive", 2);
|
|
2409
|
+
Permission = __decorateClass([
|
|
2410
|
+
Entity23("permissions")
|
|
2411
|
+
], Permission);
|
|
2412
|
+
|
|
2413
|
+
// src/entities/company-role-permission.entity.ts
|
|
2414
|
+
var CompanyRolePermission = class extends BaseEntity {
|
|
2415
|
+
};
|
|
2416
|
+
__decorateClass([
|
|
2417
|
+
Column25({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2418
|
+
Index21()
|
|
2419
|
+
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2420
|
+
__decorateClass([
|
|
2421
|
+
ManyToOne22(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2422
|
+
onDelete: "CASCADE"
|
|
2423
|
+
}),
|
|
2424
|
+
JoinColumn22({ name: "company_role_id" })
|
|
2425
|
+
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2426
|
+
__decorateClass([
|
|
2427
|
+
Column25({ name: "permission_id", type: "integer" }),
|
|
2428
|
+
Index21()
|
|
2429
|
+
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2430
|
+
__decorateClass([
|
|
2431
|
+
ManyToOne22(() => Permission, { onDelete: "CASCADE" }),
|
|
2432
|
+
JoinColumn22({ name: "permission_id" })
|
|
2433
|
+
], CompanyRolePermission.prototype, "permission", 2);
|
|
2434
|
+
__decorateClass([
|
|
2435
|
+
Column25({ name: "assigned_by", type: "integer", nullable: true })
|
|
2436
|
+
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2437
|
+
CompanyRolePermission = __decorateClass([
|
|
2438
|
+
Entity24("company_role_permissions")
|
|
2439
|
+
], CompanyRolePermission);
|
|
2440
|
+
|
|
2441
|
+
// src/entities/company-role.entity.ts
|
|
2442
|
+
var CompanyRole = class extends BaseEntity {
|
|
2443
|
+
};
|
|
2444
|
+
__decorateClass([
|
|
2445
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
2446
|
+
Index22()
|
|
2447
|
+
], CompanyRole.prototype, "userId", 2);
|
|
2448
|
+
__decorateClass([
|
|
2449
|
+
ManyToOne23(() => User, (user) => user.otps),
|
|
2450
|
+
JoinColumn23({ name: "user_id" })
|
|
2451
|
+
], CompanyRole.prototype, "user", 2);
|
|
2452
|
+
__decorateClass([
|
|
2453
|
+
Column26({ name: "name", type: "varchar" })
|
|
2454
|
+
], CompanyRole.prototype, "name", 2);
|
|
2455
|
+
__decorateClass([
|
|
2456
|
+
Column26({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2457
|
+
Index22()
|
|
2458
|
+
], CompanyRole.prototype, "slug", 2);
|
|
2459
|
+
__decorateClass([
|
|
2460
|
+
Column26({ name: "description", type: "text", nullable: true })
|
|
2461
|
+
], CompanyRole.prototype, "description", 2);
|
|
2462
|
+
__decorateClass([
|
|
2463
|
+
Column26({ name: "is_active", type: "boolean", default: true })
|
|
2464
|
+
], CompanyRole.prototype, "isActive", 2);
|
|
2465
|
+
__decorateClass([
|
|
2466
|
+
OneToMany7(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2467
|
+
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2468
|
+
CompanyRole = __decorateClass([
|
|
2469
|
+
Entity25("company_roles")
|
|
2470
|
+
], CompanyRole);
|
|
2471
|
+
|
|
2472
|
+
// src/entities/company-members-roles.entity.ts
|
|
2473
|
+
var CompanyMemberRole = class extends BaseEntity {
|
|
2474
|
+
};
|
|
2475
|
+
__decorateClass([
|
|
2476
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
2477
|
+
Index23()
|
|
2478
|
+
], CompanyMemberRole.prototype, "userId", 2);
|
|
2479
|
+
__decorateClass([
|
|
2480
|
+
ManyToOne24(() => User),
|
|
2481
|
+
JoinColumn24({ name: "user_id" })
|
|
2482
|
+
], CompanyMemberRole.prototype, "user", 2);
|
|
2483
|
+
__decorateClass([
|
|
2484
|
+
ManyToOne24(() => CompanyRole),
|
|
2485
|
+
JoinColumn24({ name: "company_role_id" })
|
|
2486
|
+
], CompanyMemberRole.prototype, "role", 2);
|
|
2487
|
+
__decorateClass([
|
|
2488
|
+
Column27({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2489
|
+
Index23()
|
|
2490
|
+
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
2491
|
+
__decorateClass([
|
|
2492
|
+
Column27({ name: "assigned_by", type: "integer", nullable: true })
|
|
2493
|
+
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
2494
|
+
CompanyMemberRole = __decorateClass([
|
|
2495
|
+
Entity26("company_member_roles")
|
|
2496
|
+
], CompanyMemberRole);
|
|
2497
|
+
|
|
2463
2498
|
// src/entities/user.entity.ts
|
|
2464
2499
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2465
2500
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2485,51 +2520,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2485
2520
|
var User = class extends BaseEntity {
|
|
2486
2521
|
};
|
|
2487
2522
|
__decorateClass([
|
|
2488
|
-
|
|
2523
|
+
Column28({ name: "unique_id", type: "varchar", unique: true })
|
|
2489
2524
|
], User.prototype, "uniqueId", 2);
|
|
2490
2525
|
__decorateClass([
|
|
2491
|
-
|
|
2492
|
-
|
|
2526
|
+
Column28({ name: "parent_id", type: "integer", nullable: true }),
|
|
2527
|
+
Index24()
|
|
2493
2528
|
], User.prototype, "parentId", 2);
|
|
2494
2529
|
__decorateClass([
|
|
2495
|
-
|
|
2496
|
-
|
|
2530
|
+
ManyToOne25(() => User, (user) => user.children, { nullable: true }),
|
|
2531
|
+
JoinColumn25({ name: "parent_id" })
|
|
2497
2532
|
], User.prototype, "parent", 2);
|
|
2498
2533
|
__decorateClass([
|
|
2499
2534
|
OneToMany8(() => User, (user) => user.parent)
|
|
2500
2535
|
], User.prototype, "children", 2);
|
|
2501
2536
|
__decorateClass([
|
|
2502
|
-
|
|
2537
|
+
Column28({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2503
2538
|
], User.prototype, "username", 2);
|
|
2504
2539
|
__decorateClass([
|
|
2505
|
-
|
|
2540
|
+
Column28({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2506
2541
|
], User.prototype, "firstName", 2);
|
|
2507
2542
|
__decorateClass([
|
|
2508
|
-
|
|
2543
|
+
Column28({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2509
2544
|
], User.prototype, "lastName", 2);
|
|
2510
2545
|
__decorateClass([
|
|
2511
|
-
|
|
2546
|
+
Column28({ name: "date_of_birth", type: "date", nullable: true })
|
|
2512
2547
|
], User.prototype, "dateOfBirth", 2);
|
|
2513
2548
|
__decorateClass([
|
|
2514
|
-
|
|
2549
|
+
Column28({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2515
2550
|
], User.prototype, "gender", 2);
|
|
2516
2551
|
__decorateClass([
|
|
2517
|
-
|
|
2552
|
+
Column28({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2518
2553
|
], User.prototype, "profilePictureUrl", 2);
|
|
2519
2554
|
__decorateClass([
|
|
2520
|
-
|
|
2555
|
+
Column28({ name: "email", type: "varchar", unique: true })
|
|
2521
2556
|
], User.prototype, "email", 2);
|
|
2522
2557
|
__decorateClass([
|
|
2523
|
-
|
|
2558
|
+
Column28({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2524
2559
|
], User.prototype, "mobileCode", 2);
|
|
2525
2560
|
__decorateClass([
|
|
2526
|
-
|
|
2561
|
+
Column28({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2527
2562
|
], User.prototype, "mobile", 2);
|
|
2528
2563
|
__decorateClass([
|
|
2529
|
-
|
|
2564
|
+
Column28({ name: "password", type: "varchar", nullable: true })
|
|
2530
2565
|
], User.prototype, "password", 2);
|
|
2531
2566
|
__decorateClass([
|
|
2532
|
-
|
|
2567
|
+
Column28({
|
|
2533
2568
|
name: "account_type",
|
|
2534
2569
|
type: "enum",
|
|
2535
2570
|
enum: AccountType,
|
|
@@ -2537,7 +2572,7 @@ __decorateClass([
|
|
|
2537
2572
|
})
|
|
2538
2573
|
], User.prototype, "accountType", 2);
|
|
2539
2574
|
__decorateClass([
|
|
2540
|
-
|
|
2575
|
+
Column28({
|
|
2541
2576
|
name: "account_status",
|
|
2542
2577
|
type: "enum",
|
|
2543
2578
|
enum: AccountStatus,
|
|
@@ -2545,26 +2580,26 @@ __decorateClass([
|
|
|
2545
2580
|
})
|
|
2546
2581
|
], User.prototype, "accountStatus", 2);
|
|
2547
2582
|
__decorateClass([
|
|
2548
|
-
|
|
2583
|
+
Column28({ name: "is_email_verified", type: "boolean", default: false })
|
|
2549
2584
|
], User.prototype, "isEmailVerified", 2);
|
|
2550
2585
|
__decorateClass([
|
|
2551
|
-
|
|
2586
|
+
Column28({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2552
2587
|
], User.prototype, "isMobileVerified", 2);
|
|
2553
2588
|
__decorateClass([
|
|
2554
|
-
|
|
2589
|
+
Column28({
|
|
2555
2590
|
name: "last_login_at",
|
|
2556
2591
|
type: "timestamp with time zone",
|
|
2557
2592
|
nullable: true
|
|
2558
2593
|
})
|
|
2559
2594
|
], User.prototype, "lastLoginAt", 2);
|
|
2560
2595
|
__decorateClass([
|
|
2561
|
-
|
|
2596
|
+
Column28({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2562
2597
|
], User.prototype, "lastLoginIp", 2);
|
|
2563
2598
|
__decorateClass([
|
|
2564
|
-
|
|
2599
|
+
Column28({ name: "reset_token", type: "varchar", nullable: true })
|
|
2565
2600
|
], User.prototype, "resetToken", 2);
|
|
2566
2601
|
__decorateClass([
|
|
2567
|
-
|
|
2602
|
+
Column28({
|
|
2568
2603
|
name: "reset_token_expire_at",
|
|
2569
2604
|
type: "timestamp with time zone",
|
|
2570
2605
|
nullable: true
|
|
@@ -2574,7 +2609,7 @@ __decorateClass([
|
|
|
2574
2609
|
OneToMany8(() => RefreshToken, (token) => token.user)
|
|
2575
2610
|
], User.prototype, "refreshTokens", 2);
|
|
2576
2611
|
__decorateClass([
|
|
2577
|
-
|
|
2612
|
+
Column28({
|
|
2578
2613
|
name: "provider",
|
|
2579
2614
|
type: "enum",
|
|
2580
2615
|
enum: Provider,
|
|
@@ -2583,16 +2618,16 @@ __decorateClass([
|
|
|
2583
2618
|
})
|
|
2584
2619
|
], User.prototype, "provider", 2);
|
|
2585
2620
|
__decorateClass([
|
|
2586
|
-
|
|
2621
|
+
Column28({ name: "provider_token", type: "varchar", nullable: true })
|
|
2587
2622
|
], User.prototype, "providerToken", 2);
|
|
2588
2623
|
__decorateClass([
|
|
2589
|
-
|
|
2624
|
+
Column28({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2590
2625
|
], User.prototype, "linkedInId", 2);
|
|
2591
2626
|
__decorateClass([
|
|
2592
|
-
|
|
2627
|
+
Column28({ name: "google_id", type: "varchar", nullable: true })
|
|
2593
2628
|
], User.prototype, "googleId", 2);
|
|
2594
2629
|
__decorateClass([
|
|
2595
|
-
|
|
2630
|
+
Column28({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2596
2631
|
], User.prototype, "gitLabsId", 2);
|
|
2597
2632
|
__decorateClass([
|
|
2598
2633
|
OneToMany8(() => Otp, (otp) => otp.user)
|
|
@@ -2612,8 +2647,8 @@ __decorateClass([
|
|
|
2612
2647
|
})
|
|
2613
2648
|
], User.prototype, "companyProfile", 2);
|
|
2614
2649
|
__decorateClass([
|
|
2615
|
-
OneToMany8(() =>
|
|
2616
|
-
], User.prototype, "
|
|
2650
|
+
OneToMany8(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
2651
|
+
], User.prototype, "companyMemberRoles", 2);
|
|
2617
2652
|
__decorateClass([
|
|
2618
2653
|
OneToMany8(
|
|
2619
2654
|
() => FreelancerAssessment,
|
|
@@ -2690,7 +2725,7 @@ __decorateClass([
|
|
|
2690
2725
|
)
|
|
2691
2726
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2692
2727
|
User = __decorateClass([
|
|
2693
|
-
|
|
2728
|
+
Entity27("users")
|
|
2694
2729
|
], User);
|
|
2695
2730
|
|
|
2696
2731
|
// src/entities/rating.entity.ts
|
|
@@ -2702,36 +2737,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2702
2737
|
var Rating = class extends BaseEntity {
|
|
2703
2738
|
};
|
|
2704
2739
|
__decorateClass([
|
|
2705
|
-
|
|
2706
|
-
|
|
2740
|
+
Column29({ name: "reviewer_id", type: "integer" }),
|
|
2741
|
+
Index25()
|
|
2707
2742
|
], Rating.prototype, "reviewer_id", 2);
|
|
2708
2743
|
__decorateClass([
|
|
2709
|
-
|
|
2710
|
-
|
|
2744
|
+
ManyToOne26(() => User, { onDelete: "CASCADE" }),
|
|
2745
|
+
JoinColumn26({ name: "reviewer_id" })
|
|
2711
2746
|
], Rating.prototype, "reviewer", 2);
|
|
2712
2747
|
__decorateClass([
|
|
2713
|
-
|
|
2714
|
-
|
|
2748
|
+
Column29({ name: "reviewee_id", type: "integer" }),
|
|
2749
|
+
Index25()
|
|
2715
2750
|
], Rating.prototype, "reviewee_id", 2);
|
|
2716
2751
|
__decorateClass([
|
|
2717
|
-
|
|
2718
|
-
|
|
2752
|
+
ManyToOne26(() => User, { onDelete: "CASCADE" }),
|
|
2753
|
+
JoinColumn26({ name: "reviewee_id" })
|
|
2719
2754
|
], Rating.prototype, "reviewee", 2);
|
|
2720
2755
|
__decorateClass([
|
|
2721
|
-
|
|
2756
|
+
Column29({
|
|
2722
2757
|
type: "enum",
|
|
2723
2758
|
enum: RatingTypeEnum,
|
|
2724
2759
|
nullable: true
|
|
2725
2760
|
})
|
|
2726
2761
|
], Rating.prototype, "ratingType", 2);
|
|
2727
2762
|
__decorateClass([
|
|
2728
|
-
|
|
2763
|
+
Column29({ type: "integer", nullable: true })
|
|
2729
2764
|
], Rating.prototype, "rating", 2);
|
|
2730
2765
|
__decorateClass([
|
|
2731
|
-
|
|
2766
|
+
Column29({ type: "text", nullable: true })
|
|
2732
2767
|
], Rating.prototype, "review", 2);
|
|
2733
2768
|
Rating = __decorateClass([
|
|
2734
|
-
|
|
2769
|
+
Entity28("ratings")
|
|
2735
2770
|
], Rating);
|
|
2736
2771
|
|
|
2737
2772
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2879,10 +2914,8 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
2879
2914
|
};
|
|
2880
2915
|
|
|
2881
2916
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
2882
|
-
import { IsNotEmpty as IsNotEmpty33 } from "class-validator";
|
|
2917
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as IsNotEmpty33 } from "class-validator";
|
|
2883
2918
|
var CreateCompanyMemberDto = class {
|
|
2884
|
-
// @IsNotEmpty({ message: 'Please enter company role id' })
|
|
2885
|
-
// companyRoleId: number;
|
|
2886
2919
|
};
|
|
2887
2920
|
__decorateClass([
|
|
2888
2921
|
IsNotEmpty33({ message: "Please enter name." })
|
|
@@ -2890,9 +2923,14 @@ __decorateClass([
|
|
|
2890
2923
|
__decorateClass([
|
|
2891
2924
|
IsNotEmpty33({ message: "Please enter email" })
|
|
2892
2925
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
2926
|
+
__decorateClass([
|
|
2927
|
+
IsArray4({ message: "Role IDs must be an array." }),
|
|
2928
|
+
ArrayNotEmpty4({ message: "Please select at least one role." }),
|
|
2929
|
+
IsInt4({ each: true, message: "Each role ID must be an integer." })
|
|
2930
|
+
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
2893
2931
|
|
|
2894
2932
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
2895
|
-
import { IsNotEmpty as IsNotEmpty34 } from "class-validator";
|
|
2933
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as IsNotEmpty34 } from "class-validator";
|
|
2896
2934
|
var UpdateCompanyMemberDto = class {
|
|
2897
2935
|
};
|
|
2898
2936
|
__decorateClass([
|
|
@@ -2901,6 +2939,11 @@ __decorateClass([
|
|
|
2901
2939
|
__decorateClass([
|
|
2902
2940
|
IsNotEmpty34({ message: "Please enter email" })
|
|
2903
2941
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
2942
|
+
__decorateClass([
|
|
2943
|
+
IsArray5({ message: "Role IDs must be an array." }),
|
|
2944
|
+
ArrayNotEmpty5({ message: "Please select at least one role." }),
|
|
2945
|
+
IsInt5({ each: true, message: "Each role ID must be an integer." })
|
|
2946
|
+
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
2904
2947
|
|
|
2905
2948
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
2906
2949
|
import { IsBoolean as IsBoolean11 } from "class-validator";
|
|
@@ -2917,7 +2960,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
2917
2960
|
};
|
|
2918
2961
|
|
|
2919
2962
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
2920
|
-
import { IsArray as
|
|
2963
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional15 } from "class-validator";
|
|
2921
2964
|
import { Type as Type3 } from "class-transformer";
|
|
2922
2965
|
var EducationDto = class {
|
|
2923
2966
|
};
|
|
@@ -2939,7 +2982,7 @@ __decorateClass([
|
|
|
2939
2982
|
var FreelancerEducationDto = class {
|
|
2940
2983
|
};
|
|
2941
2984
|
__decorateClass([
|
|
2942
|
-
|
|
2985
|
+
IsArray6(),
|
|
2943
2986
|
ValidateNested2({ each: true }),
|
|
2944
2987
|
Type3(() => EducationDto)
|
|
2945
2988
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
@@ -2951,7 +2994,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
2951
2994
|
};
|
|
2952
2995
|
|
|
2953
2996
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
2954
|
-
import { IsArray as
|
|
2997
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength12 } from "class-validator";
|
|
2955
2998
|
import { Type as Type4 } from "class-transformer";
|
|
2956
2999
|
var ProjectDto = class {
|
|
2957
3000
|
};
|
|
@@ -3004,12 +3047,12 @@ __decorateClass([
|
|
|
3004
3047
|
var FreelancerProjectDto = class {
|
|
3005
3048
|
};
|
|
3006
3049
|
__decorateClass([
|
|
3007
|
-
|
|
3050
|
+
IsArray7(),
|
|
3008
3051
|
ValidateNested3({ each: true }),
|
|
3009
3052
|
Type4(() => ProjectDto)
|
|
3010
3053
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
3011
3054
|
__decorateClass([
|
|
3012
|
-
|
|
3055
|
+
IsArray7(),
|
|
3013
3056
|
ValidateNested3({ each: true }),
|
|
3014
3057
|
Type4(() => CaseStudyDto)
|
|
3015
3058
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
@@ -3026,7 +3069,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3026
3069
|
};
|
|
3027
3070
|
|
|
3028
3071
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3029
|
-
import { IsArray as
|
|
3072
|
+
import { IsArray as IsArray8, IsString as IsString25, IsOptional as IsOptional17 } from "class-validator";
|
|
3030
3073
|
import { Type as Type5 } from "class-transformer";
|
|
3031
3074
|
var FreelancerSkillDto = class {
|
|
3032
3075
|
constructor() {
|
|
@@ -3037,19 +3080,19 @@ var FreelancerSkillDto = class {
|
|
|
3037
3080
|
};
|
|
3038
3081
|
__decorateClass([
|
|
3039
3082
|
IsOptional17(),
|
|
3040
|
-
|
|
3083
|
+
IsArray8(),
|
|
3041
3084
|
Type5(() => String),
|
|
3042
3085
|
IsString25({ each: true })
|
|
3043
3086
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3044
3087
|
__decorateClass([
|
|
3045
3088
|
IsOptional17(),
|
|
3046
|
-
|
|
3089
|
+
IsArray8(),
|
|
3047
3090
|
Type5(() => String),
|
|
3048
3091
|
IsString25({ each: true })
|
|
3049
3092
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3050
3093
|
__decorateClass([
|
|
3051
3094
|
IsOptional17(),
|
|
3052
|
-
|
|
3095
|
+
IsArray8(),
|
|
3053
3096
|
Type5(() => String),
|
|
3054
3097
|
IsString25({ each: true })
|
|
3055
3098
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
@@ -3359,7 +3402,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3359
3402
|
};
|
|
3360
3403
|
|
|
3361
3404
|
// src/entities/question.entity.ts
|
|
3362
|
-
import { Entity as
|
|
3405
|
+
import { Entity as Entity29, Column as Column30 } from "typeorm";
|
|
3363
3406
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3364
3407
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3365
3408
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3368,16 +3411,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3368
3411
|
var Question = class extends BaseEntity {
|
|
3369
3412
|
};
|
|
3370
3413
|
__decorateClass([
|
|
3371
|
-
|
|
3414
|
+
Column30({ name: "question", type: "varchar" })
|
|
3372
3415
|
], Question.prototype, "question", 2);
|
|
3373
3416
|
__decorateClass([
|
|
3374
|
-
|
|
3417
|
+
Column30({ name: "hint", type: "varchar", nullable: true })
|
|
3375
3418
|
], Question.prototype, "hint", 2);
|
|
3376
3419
|
__decorateClass([
|
|
3377
|
-
|
|
3420
|
+
Column30({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3378
3421
|
], Question.prototype, "slug", 2);
|
|
3379
3422
|
__decorateClass([
|
|
3380
|
-
|
|
3423
|
+
Column30({
|
|
3381
3424
|
name: "question_for",
|
|
3382
3425
|
type: "enum",
|
|
3383
3426
|
enum: QuestionFor,
|
|
@@ -3385,96 +3428,96 @@ __decorateClass([
|
|
|
3385
3428
|
})
|
|
3386
3429
|
], Question.prototype, "questionFor", 2);
|
|
3387
3430
|
__decorateClass([
|
|
3388
|
-
|
|
3431
|
+
Column30({ name: "type", type: "varchar", nullable: true })
|
|
3389
3432
|
], Question.prototype, "type", 2);
|
|
3390
3433
|
__decorateClass([
|
|
3391
|
-
|
|
3434
|
+
Column30({ name: "options", type: "jsonb", nullable: true })
|
|
3392
3435
|
], Question.prototype, "options", 2);
|
|
3393
3436
|
__decorateClass([
|
|
3394
|
-
|
|
3437
|
+
Column30({ name: "is_active", type: "boolean", default: false })
|
|
3395
3438
|
], Question.prototype, "isActive", 2);
|
|
3396
3439
|
Question = __decorateClass([
|
|
3397
|
-
|
|
3440
|
+
Entity29("questions")
|
|
3398
3441
|
], Question);
|
|
3399
3442
|
|
|
3400
3443
|
// src/entities/job-role.entity.ts
|
|
3401
|
-
import { Entity as
|
|
3444
|
+
import { Entity as Entity30, Column as Column31 } from "typeorm";
|
|
3402
3445
|
var JobRoles = class extends BaseEntity {
|
|
3403
3446
|
};
|
|
3404
3447
|
__decorateClass([
|
|
3405
|
-
|
|
3448
|
+
Column31({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3406
3449
|
], JobRoles.prototype, "slug", 2);
|
|
3407
3450
|
__decorateClass([
|
|
3408
|
-
|
|
3451
|
+
Column31({ name: "name", type: "varchar", nullable: true })
|
|
3409
3452
|
], JobRoles.prototype, "name", 2);
|
|
3410
3453
|
__decorateClass([
|
|
3411
|
-
|
|
3454
|
+
Column31({ name: "is_active", type: "boolean", default: true })
|
|
3412
3455
|
], JobRoles.prototype, "isActive", 2);
|
|
3413
3456
|
JobRoles = __decorateClass([
|
|
3414
|
-
|
|
3457
|
+
Entity30("job_roles")
|
|
3415
3458
|
], JobRoles);
|
|
3416
3459
|
|
|
3417
3460
|
// src/entities/plan.entity.ts
|
|
3418
|
-
import { Entity as
|
|
3461
|
+
import { Entity as Entity32, Column as Column33, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
3419
3462
|
|
|
3420
3463
|
// src/entities/feature.entity.ts
|
|
3421
|
-
import { Entity as
|
|
3464
|
+
import { Entity as Entity31, Column as Column32, ManyToMany as ManyToMany2 } from "typeorm";
|
|
3422
3465
|
var Feature = class extends BaseEntity {
|
|
3423
3466
|
};
|
|
3424
3467
|
__decorateClass([
|
|
3425
|
-
|
|
3468
|
+
Column32({ name: "name", type: "varchar", unique: true })
|
|
3426
3469
|
], Feature.prototype, "name", 2);
|
|
3427
3470
|
__decorateClass([
|
|
3428
|
-
|
|
3471
|
+
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
3429
3472
|
], Feature.prototype, "plans", 2);
|
|
3430
3473
|
Feature = __decorateClass([
|
|
3431
|
-
|
|
3474
|
+
Entity31("features")
|
|
3432
3475
|
], Feature);
|
|
3433
3476
|
|
|
3434
3477
|
// src/entities/plan.entity.ts
|
|
3435
3478
|
var Plan = class extends BaseEntity {
|
|
3436
3479
|
};
|
|
3437
3480
|
__decorateClass([
|
|
3438
|
-
|
|
3481
|
+
Column33({ name: "name", type: "varchar", unique: true })
|
|
3439
3482
|
], Plan.prototype, "name", 2);
|
|
3440
3483
|
__decorateClass([
|
|
3441
|
-
|
|
3484
|
+
Column33({ name: "description", type: "varchar", nullable: true })
|
|
3442
3485
|
], Plan.prototype, "description", 2);
|
|
3443
3486
|
__decorateClass([
|
|
3444
|
-
|
|
3487
|
+
Column33({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3445
3488
|
], Plan.prototype, "price", 2);
|
|
3446
3489
|
__decorateClass([
|
|
3447
|
-
|
|
3490
|
+
Column33({ name: "billing_period", type: "varchar" })
|
|
3448
3491
|
], Plan.prototype, "billingPeriod", 2);
|
|
3449
3492
|
__decorateClass([
|
|
3450
|
-
|
|
3493
|
+
Column33({ name: "is_current", type: "boolean", default: false })
|
|
3451
3494
|
], Plan.prototype, "isCurrent", 2);
|
|
3452
3495
|
__decorateClass([
|
|
3453
|
-
|
|
3496
|
+
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3454
3497
|
JoinTable()
|
|
3455
3498
|
], Plan.prototype, "features", 2);
|
|
3456
3499
|
Plan = __decorateClass([
|
|
3457
|
-
|
|
3500
|
+
Entity32("plans")
|
|
3458
3501
|
], Plan);
|
|
3459
3502
|
|
|
3460
3503
|
// src/entities/cms.entity.ts
|
|
3461
|
-
import { Entity as
|
|
3504
|
+
import { Entity as Entity33, Column as Column34 } from "typeorm";
|
|
3462
3505
|
var Cms = class extends BaseEntity {
|
|
3463
3506
|
};
|
|
3464
3507
|
__decorateClass([
|
|
3465
|
-
|
|
3508
|
+
Column34({ name: "title", type: "varchar", nullable: true })
|
|
3466
3509
|
], Cms.prototype, "title", 2);
|
|
3467
3510
|
__decorateClass([
|
|
3468
|
-
|
|
3511
|
+
Column34({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3469
3512
|
], Cms.prototype, "slug", 2);
|
|
3470
3513
|
__decorateClass([
|
|
3471
|
-
|
|
3514
|
+
Column34({ name: "content", type: "varchar", nullable: true })
|
|
3472
3515
|
], Cms.prototype, "content", 2);
|
|
3473
3516
|
__decorateClass([
|
|
3474
|
-
|
|
3517
|
+
Column34({ name: "is_active", type: "boolean", default: true })
|
|
3475
3518
|
], Cms.prototype, "isActive", 2);
|
|
3476
3519
|
Cms = __decorateClass([
|
|
3477
|
-
|
|
3520
|
+
Entity33("cms")
|
|
3478
3521
|
], Cms);
|
|
3479
3522
|
export {
|
|
3480
3523
|
AUTHENTICATION_PATTERN,
|
|
@@ -3498,6 +3541,7 @@ export {
|
|
|
3498
3541
|
ClientCreateAccountDto,
|
|
3499
3542
|
ClientProfileQuestionDto,
|
|
3500
3543
|
Cms,
|
|
3544
|
+
CompanyMemberRole,
|
|
3501
3545
|
CompanyProfile,
|
|
3502
3546
|
CompanyRole,
|
|
3503
3547
|
CompanyRolePermission,
|