@experts_hub/shared 1.0.116 → 1.0.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/company-role.entity.d.ts +10 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +115 -82
- package/dist/index.mjs +105 -72
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { BankDetail } from "./bank-details.entity";
|
|
|
9
9
|
import { SystemPreference } from "./system-preference.entity";
|
|
10
10
|
import { Rating } from "./rating.entity";
|
|
11
11
|
import { JobApplication } from "./job-application.entity";
|
|
12
|
+
import { CompanyRole } from "./company-role.entity";
|
|
12
13
|
export declare enum AccountType {
|
|
13
14
|
ADMIN = "ADMIN",
|
|
14
15
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -62,4 +63,5 @@ export declare class User extends BaseEntity {
|
|
|
62
63
|
givenRatings: Rating[];
|
|
63
64
|
receivedRatings: Rating[];
|
|
64
65
|
jobApplications: JobApplication[];
|
|
66
|
+
companyRole: CompanyRole[];
|
|
65
67
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BaseEntity as BaseEntity$1 } from 'typeorm';
|
|
1
2
|
import { MicroserviceOptions } from '@nestjs/microservices';
|
|
2
3
|
|
|
3
4
|
declare const AUTHENTICATION_PATTERN: {
|
|
@@ -465,6 +466,15 @@ declare class Rating extends BaseEntity {
|
|
|
465
466
|
review: string;
|
|
466
467
|
}
|
|
467
468
|
|
|
469
|
+
declare class CompanyRole extends BaseEntity$1 {
|
|
470
|
+
userId: number;
|
|
471
|
+
user: User;
|
|
472
|
+
name: string;
|
|
473
|
+
slug: string;
|
|
474
|
+
description: string;
|
|
475
|
+
isActive: boolean;
|
|
476
|
+
}
|
|
477
|
+
|
|
468
478
|
declare enum AccountType {
|
|
469
479
|
ADMIN = "ADMIN",
|
|
470
480
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -518,6 +528,7 @@ declare class User extends BaseEntity {
|
|
|
518
528
|
givenRatings: Rating[];
|
|
519
529
|
receivedRatings: Rating[];
|
|
520
530
|
jobApplications: JobApplication[];
|
|
531
|
+
companyRole: CompanyRole[];
|
|
521
532
|
}
|
|
522
533
|
|
|
523
534
|
declare enum KindOfHire {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BaseEntity as BaseEntity$1 } from 'typeorm';
|
|
1
2
|
import { MicroserviceOptions } from '@nestjs/microservices';
|
|
2
3
|
|
|
3
4
|
declare const AUTHENTICATION_PATTERN: {
|
|
@@ -465,6 +466,15 @@ declare class Rating extends BaseEntity {
|
|
|
465
466
|
review: string;
|
|
466
467
|
}
|
|
467
468
|
|
|
469
|
+
declare class CompanyRole extends BaseEntity$1 {
|
|
470
|
+
userId: number;
|
|
471
|
+
user: User;
|
|
472
|
+
name: string;
|
|
473
|
+
slug: string;
|
|
474
|
+
description: string;
|
|
475
|
+
isActive: boolean;
|
|
476
|
+
}
|
|
477
|
+
|
|
468
478
|
declare enum AccountType {
|
|
469
479
|
ADMIN = "ADMIN",
|
|
470
480
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -518,6 +528,7 @@ declare class User extends BaseEntity {
|
|
|
518
528
|
givenRatings: Rating[];
|
|
519
529
|
receivedRatings: Rating[];
|
|
520
530
|
jobApplications: JobApplication[];
|
|
531
|
+
companyRole: CompanyRole[];
|
|
521
532
|
}
|
|
522
533
|
|
|
523
534
|
declare enum KindOfHire {
|
package/dist/index.js
CHANGED
|
@@ -548,7 +548,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
548
548
|
var import_class_validator17 = require("class-validator");
|
|
549
549
|
|
|
550
550
|
// src/entities/company-profile.entity.ts
|
|
551
|
-
var
|
|
551
|
+
var import_typeorm15 = require("typeorm");
|
|
552
552
|
|
|
553
553
|
// src/entities/base.entity.ts
|
|
554
554
|
var import_typeorm = require("typeorm");
|
|
@@ -588,7 +588,7 @@ __decorateClass([
|
|
|
588
588
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
589
589
|
|
|
590
590
|
// src/entities/user.entity.ts
|
|
591
|
-
var
|
|
591
|
+
var import_typeorm14 = require("typeorm");
|
|
592
592
|
|
|
593
593
|
// src/entities/refresh-token.entity.ts
|
|
594
594
|
var import_typeorm2 = require("typeorm");
|
|
@@ -1236,6 +1236,36 @@ Rating = __decorateClass([
|
|
|
1236
1236
|
(0, import_typeorm12.Entity)("ratings")
|
|
1237
1237
|
], Rating);
|
|
1238
1238
|
|
|
1239
|
+
// src/entities/company-role.entity.ts
|
|
1240
|
+
var import_typeorm13 = require("typeorm");
|
|
1241
|
+
var CompanyRole = class extends import_typeorm13.BaseEntity {
|
|
1242
|
+
};
|
|
1243
|
+
// individual index to find company roles by user
|
|
1244
|
+
__decorateClass([
|
|
1245
|
+
(0, import_typeorm13.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1246
|
+
(0, import_typeorm13.Index)()
|
|
1247
|
+
], CompanyRole.prototype, "userId", 2);
|
|
1248
|
+
__decorateClass([
|
|
1249
|
+
(0, import_typeorm13.ManyToOne)(() => User, (user) => user.companyRole),
|
|
1250
|
+
(0, import_typeorm13.JoinColumn)({ name: "user_id" })
|
|
1251
|
+
], CompanyRole.prototype, "user", 2);
|
|
1252
|
+
__decorateClass([
|
|
1253
|
+
(0, import_typeorm13.Column)({ name: "name", type: "varchar" })
|
|
1254
|
+
], CompanyRole.prototype, "name", 2);
|
|
1255
|
+
__decorateClass([
|
|
1256
|
+
(0, import_typeorm13.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
1257
|
+
(0, import_typeorm13.Index)()
|
|
1258
|
+
], CompanyRole.prototype, "slug", 2);
|
|
1259
|
+
__decorateClass([
|
|
1260
|
+
(0, import_typeorm13.Column)({ name: "description", type: "text", nullable: true })
|
|
1261
|
+
], CompanyRole.prototype, "description", 2);
|
|
1262
|
+
__decorateClass([
|
|
1263
|
+
(0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1264
|
+
], CompanyRole.prototype, "isActive", 2);
|
|
1265
|
+
CompanyRole = __decorateClass([
|
|
1266
|
+
(0, import_typeorm13.Entity)("company_roles")
|
|
1267
|
+
], CompanyRole);
|
|
1268
|
+
|
|
1239
1269
|
// src/entities/user.entity.ts
|
|
1240
1270
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1241
1271
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1260,40 +1290,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1260
1290
|
var User = class extends BaseEntity {
|
|
1261
1291
|
};
|
|
1262
1292
|
__decorateClass([
|
|
1263
|
-
(0,
|
|
1293
|
+
(0, import_typeorm14.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
1264
1294
|
], User.prototype, "uniqueId", 2);
|
|
1265
1295
|
__decorateClass([
|
|
1266
|
-
(0,
|
|
1296
|
+
(0, import_typeorm14.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1267
1297
|
], User.prototype, "username", 2);
|
|
1268
1298
|
__decorateClass([
|
|
1269
|
-
(0,
|
|
1299
|
+
(0, import_typeorm14.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1270
1300
|
], User.prototype, "firstName", 2);
|
|
1271
1301
|
__decorateClass([
|
|
1272
|
-
(0,
|
|
1302
|
+
(0, import_typeorm14.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1273
1303
|
], User.prototype, "lastName", 2);
|
|
1274
1304
|
__decorateClass([
|
|
1275
|
-
(0,
|
|
1305
|
+
(0, import_typeorm14.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
1276
1306
|
], User.prototype, "dateOfBirth", 2);
|
|
1277
1307
|
__decorateClass([
|
|
1278
|
-
(0,
|
|
1308
|
+
(0, import_typeorm14.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1279
1309
|
], User.prototype, "gender", 2);
|
|
1280
1310
|
__decorateClass([
|
|
1281
|
-
(0,
|
|
1311
|
+
(0, import_typeorm14.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1282
1312
|
], User.prototype, "profilePictureUrl", 2);
|
|
1283
1313
|
__decorateClass([
|
|
1284
|
-
(0,
|
|
1314
|
+
(0, import_typeorm14.Column)({ name: "email", type: "varchar", unique: true })
|
|
1285
1315
|
], User.prototype, "email", 2);
|
|
1286
1316
|
__decorateClass([
|
|
1287
|
-
(0,
|
|
1317
|
+
(0, import_typeorm14.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1288
1318
|
], User.prototype, "mobileCode", 2);
|
|
1289
1319
|
__decorateClass([
|
|
1290
|
-
(0,
|
|
1320
|
+
(0, import_typeorm14.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1291
1321
|
], User.prototype, "mobile", 2);
|
|
1292
1322
|
__decorateClass([
|
|
1293
|
-
(0,
|
|
1323
|
+
(0, import_typeorm14.Column)({ name: "password", type: "varchar" })
|
|
1294
1324
|
], User.prototype, "password", 2);
|
|
1295
1325
|
__decorateClass([
|
|
1296
|
-
(0,
|
|
1326
|
+
(0, import_typeorm14.Column)({
|
|
1297
1327
|
name: "account_type",
|
|
1298
1328
|
type: "enum",
|
|
1299
1329
|
enum: AccountType,
|
|
@@ -1301,7 +1331,7 @@ __decorateClass([
|
|
|
1301
1331
|
})
|
|
1302
1332
|
], User.prototype, "accountType", 2);
|
|
1303
1333
|
__decorateClass([
|
|
1304
|
-
(0,
|
|
1334
|
+
(0, import_typeorm14.Column)({
|
|
1305
1335
|
name: "account_status",
|
|
1306
1336
|
type: "enum",
|
|
1307
1337
|
enum: AccountStatus,
|
|
@@ -1309,36 +1339,36 @@ __decorateClass([
|
|
|
1309
1339
|
})
|
|
1310
1340
|
], User.prototype, "accountStatus", 2);
|
|
1311
1341
|
__decorateClass([
|
|
1312
|
-
(0,
|
|
1342
|
+
(0, import_typeorm14.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
1313
1343
|
], User.prototype, "isEmailVerified", 2);
|
|
1314
1344
|
__decorateClass([
|
|
1315
|
-
(0,
|
|
1345
|
+
(0, import_typeorm14.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1316
1346
|
], User.prototype, "isMobileVerified", 2);
|
|
1317
1347
|
__decorateClass([
|
|
1318
|
-
(0,
|
|
1348
|
+
(0, import_typeorm14.Column)({
|
|
1319
1349
|
name: "last_login_at",
|
|
1320
1350
|
type: "timestamp with time zone",
|
|
1321
1351
|
nullable: true
|
|
1322
1352
|
})
|
|
1323
1353
|
], User.prototype, "lastLoginAt", 2);
|
|
1324
1354
|
__decorateClass([
|
|
1325
|
-
(0,
|
|
1355
|
+
(0, import_typeorm14.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1326
1356
|
], User.prototype, "lastLoginIp", 2);
|
|
1327
1357
|
__decorateClass([
|
|
1328
|
-
(0,
|
|
1358
|
+
(0, import_typeorm14.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
1329
1359
|
], User.prototype, "resetToken", 2);
|
|
1330
1360
|
__decorateClass([
|
|
1331
|
-
(0,
|
|
1361
|
+
(0, import_typeorm14.Column)({
|
|
1332
1362
|
name: "reset_token_expire_at",
|
|
1333
1363
|
type: "timestamp with time zone",
|
|
1334
1364
|
nullable: true
|
|
1335
1365
|
})
|
|
1336
1366
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
1337
1367
|
__decorateClass([
|
|
1338
|
-
(0,
|
|
1368
|
+
(0, import_typeorm14.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
1339
1369
|
], User.prototype, "refreshTokens", 2);
|
|
1340
1370
|
__decorateClass([
|
|
1341
|
-
(0,
|
|
1371
|
+
(0, import_typeorm14.Column)({
|
|
1342
1372
|
name: "provider",
|
|
1343
1373
|
type: "enum",
|
|
1344
1374
|
enum: Provider,
|
|
@@ -1347,55 +1377,58 @@ __decorateClass([
|
|
|
1347
1377
|
})
|
|
1348
1378
|
], User.prototype, "provider", 2);
|
|
1349
1379
|
__decorateClass([
|
|
1350
|
-
(0,
|
|
1380
|
+
(0, import_typeorm14.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
1351
1381
|
], User.prototype, "providerToken", 2);
|
|
1352
1382
|
__decorateClass([
|
|
1353
|
-
(0,
|
|
1383
|
+
(0, import_typeorm14.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1354
1384
|
], User.prototype, "linkedInId", 2);
|
|
1355
1385
|
__decorateClass([
|
|
1356
|
-
(0,
|
|
1386
|
+
(0, import_typeorm14.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
1357
1387
|
], User.prototype, "googleId", 2);
|
|
1358
1388
|
__decorateClass([
|
|
1359
|
-
(0,
|
|
1389
|
+
(0, import_typeorm14.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1360
1390
|
], User.prototype, "gitLabsId", 2);
|
|
1361
1391
|
__decorateClass([
|
|
1362
|
-
(0,
|
|
1392
|
+
(0, import_typeorm14.OneToMany)(() => Otp, (otp) => otp.user)
|
|
1363
1393
|
], User.prototype, "otps", 2);
|
|
1364
1394
|
__decorateClass([
|
|
1365
|
-
(0,
|
|
1395
|
+
(0, import_typeorm14.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
1366
1396
|
], User.prototype, "resumeParserLogs", 2);
|
|
1367
1397
|
__decorateClass([
|
|
1368
|
-
(0,
|
|
1398
|
+
(0, import_typeorm14.OneToOne)(
|
|
1369
1399
|
() => FreelancerProfile,
|
|
1370
1400
|
(freelancerProfile) => freelancerProfile.user
|
|
1371
1401
|
)
|
|
1372
1402
|
], User.prototype, "freelancerProfile", 2);
|
|
1373
1403
|
__decorateClass([
|
|
1374
|
-
(0,
|
|
1404
|
+
(0, import_typeorm14.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
1375
1405
|
], User.prototype, "companyProfile", 2);
|
|
1376
1406
|
__decorateClass([
|
|
1377
|
-
(0,
|
|
1407
|
+
(0, import_typeorm14.OneToMany)(() => Job, (job) => job.user)
|
|
1378
1408
|
], User.prototype, "jobs", 2);
|
|
1379
1409
|
__decorateClass([
|
|
1380
|
-
(0,
|
|
1410
|
+
(0, import_typeorm14.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1381
1411
|
], User.prototype, "bankDetail", 2);
|
|
1382
1412
|
__decorateClass([
|
|
1383
|
-
(0,
|
|
1413
|
+
(0, import_typeorm14.OneToMany)(
|
|
1384
1414
|
() => SystemPreference,
|
|
1385
1415
|
(systemPreference) => systemPreference.user
|
|
1386
1416
|
)
|
|
1387
1417
|
], User.prototype, "systemPreference", 2);
|
|
1388
1418
|
__decorateClass([
|
|
1389
|
-
(0,
|
|
1419
|
+
(0, import_typeorm14.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
1390
1420
|
], User.prototype, "givenRatings", 2);
|
|
1391
1421
|
__decorateClass([
|
|
1392
|
-
(0,
|
|
1422
|
+
(0, import_typeorm14.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
1393
1423
|
], User.prototype, "receivedRatings", 2);
|
|
1394
1424
|
__decorateClass([
|
|
1395
|
-
(0,
|
|
1425
|
+
(0, import_typeorm14.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
1396
1426
|
], User.prototype, "jobApplications", 2);
|
|
1427
|
+
__decorateClass([
|
|
1428
|
+
(0, import_typeorm14.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
1429
|
+
], User.prototype, "companyRole", 2);
|
|
1397
1430
|
User = __decorateClass([
|
|
1398
|
-
(0,
|
|
1431
|
+
(0, import_typeorm14.Entity)("users")
|
|
1399
1432
|
], User);
|
|
1400
1433
|
|
|
1401
1434
|
// src/entities/company-profile.entity.ts
|
|
@@ -1422,42 +1455,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1422
1455
|
};
|
|
1423
1456
|
// individual index to find company profile by user
|
|
1424
1457
|
__decorateClass([
|
|
1425
|
-
(0,
|
|
1426
|
-
(0,
|
|
1458
|
+
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1459
|
+
(0, import_typeorm15.Index)()
|
|
1427
1460
|
], CompanyProfile.prototype, "userId", 2);
|
|
1428
1461
|
__decorateClass([
|
|
1429
|
-
(0,
|
|
1430
|
-
(0,
|
|
1462
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.otps),
|
|
1463
|
+
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
1431
1464
|
], CompanyProfile.prototype, "user", 2);
|
|
1432
1465
|
__decorateClass([
|
|
1433
|
-
(0,
|
|
1466
|
+
(0, import_typeorm15.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
1434
1467
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1435
1468
|
__decorateClass([
|
|
1436
|
-
(0,
|
|
1469
|
+
(0, import_typeorm15.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
1437
1470
|
], CompanyProfile.prototype, "bio", 2);
|
|
1438
1471
|
__decorateClass([
|
|
1439
|
-
(0,
|
|
1472
|
+
(0, import_typeorm15.Column)({ name: "website", type: "varchar", nullable: true })
|
|
1440
1473
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1441
1474
|
__decorateClass([
|
|
1442
|
-
(0,
|
|
1475
|
+
(0, import_typeorm15.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
1443
1476
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1444
1477
|
__decorateClass([
|
|
1445
|
-
(0,
|
|
1478
|
+
(0, import_typeorm15.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1446
1479
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1447
1480
|
__decorateClass([
|
|
1448
|
-
(0,
|
|
1481
|
+
(0, import_typeorm15.Column)({ name: "company_address", type: "varchar", nullable: true })
|
|
1449
1482
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1450
1483
|
__decorateClass([
|
|
1451
|
-
(0,
|
|
1484
|
+
(0, import_typeorm15.Column)({ name: "phone_number", type: "varchar", nullable: true })
|
|
1452
1485
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1453
1486
|
__decorateClass([
|
|
1454
|
-
(0,
|
|
1487
|
+
(0, import_typeorm15.Column)({ name: "skills", type: "text", nullable: true })
|
|
1455
1488
|
], CompanyProfile.prototype, "skills", 2);
|
|
1456
1489
|
__decorateClass([
|
|
1457
|
-
(0,
|
|
1490
|
+
(0, import_typeorm15.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1458
1491
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1459
1492
|
__decorateClass([
|
|
1460
|
-
(0,
|
|
1493
|
+
(0, import_typeorm15.Column)({
|
|
1461
1494
|
name: "kind_of_hiring",
|
|
1462
1495
|
type: "enum",
|
|
1463
1496
|
enum: KindOfHire,
|
|
@@ -1465,7 +1498,7 @@ __decorateClass([
|
|
|
1465
1498
|
})
|
|
1466
1499
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1467
1500
|
__decorateClass([
|
|
1468
|
-
(0,
|
|
1501
|
+
(0, import_typeorm15.Column)({
|
|
1469
1502
|
name: "mode_of_hire",
|
|
1470
1503
|
type: "enum",
|
|
1471
1504
|
enum: ModeOfHire,
|
|
@@ -1473,7 +1506,7 @@ __decorateClass([
|
|
|
1473
1506
|
})
|
|
1474
1507
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1475
1508
|
__decorateClass([
|
|
1476
|
-
(0,
|
|
1509
|
+
(0, import_typeorm15.Column)({
|
|
1477
1510
|
name: "found_us_on",
|
|
1478
1511
|
type: "enum",
|
|
1479
1512
|
enum: FromUsOn,
|
|
@@ -1481,7 +1514,7 @@ __decorateClass([
|
|
|
1481
1514
|
})
|
|
1482
1515
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1483
1516
|
CompanyProfile = __decorateClass([
|
|
1484
|
-
(0,
|
|
1517
|
+
(0, import_typeorm15.Entity)("company_profiles")
|
|
1485
1518
|
], CompanyProfile);
|
|
1486
1519
|
|
|
1487
1520
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -2096,7 +2129,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2096
2129
|
};
|
|
2097
2130
|
|
|
2098
2131
|
// src/entities/question.entity.ts
|
|
2099
|
-
var
|
|
2132
|
+
var import_typeorm16 = require("typeorm");
|
|
2100
2133
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2101
2134
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2102
2135
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2105,16 +2138,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2105
2138
|
var Question = class extends BaseEntity {
|
|
2106
2139
|
};
|
|
2107
2140
|
__decorateClass([
|
|
2108
|
-
(0,
|
|
2141
|
+
(0, import_typeorm16.Column)({ name: "question", type: "varchar" })
|
|
2109
2142
|
], Question.prototype, "question", 2);
|
|
2110
2143
|
__decorateClass([
|
|
2111
|
-
(0,
|
|
2144
|
+
(0, import_typeorm16.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
2112
2145
|
], Question.prototype, "hint", 2);
|
|
2113
2146
|
__decorateClass([
|
|
2114
|
-
(0,
|
|
2147
|
+
(0, import_typeorm16.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2115
2148
|
], Question.prototype, "slug", 2);
|
|
2116
2149
|
__decorateClass([
|
|
2117
|
-
(0,
|
|
2150
|
+
(0, import_typeorm16.Column)({
|
|
2118
2151
|
name: "question_for",
|
|
2119
2152
|
type: "enum",
|
|
2120
2153
|
enum: QuestionFor,
|
|
@@ -2122,76 +2155,76 @@ __decorateClass([
|
|
|
2122
2155
|
})
|
|
2123
2156
|
], Question.prototype, "questionFor", 2);
|
|
2124
2157
|
__decorateClass([
|
|
2125
|
-
(0,
|
|
2158
|
+
(0, import_typeorm16.Column)({ name: "type", type: "varchar", nullable: true })
|
|
2126
2159
|
], Question.prototype, "type", 2);
|
|
2127
2160
|
__decorateClass([
|
|
2128
|
-
(0,
|
|
2161
|
+
(0, import_typeorm16.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
2129
2162
|
], Question.prototype, "options", 2);
|
|
2130
2163
|
__decorateClass([
|
|
2131
|
-
(0,
|
|
2164
|
+
(0, import_typeorm16.Column)({ name: "is_active", type: "boolean", default: false })
|
|
2132
2165
|
], Question.prototype, "isActive", 2);
|
|
2133
2166
|
Question = __decorateClass([
|
|
2134
|
-
(0,
|
|
2167
|
+
(0, import_typeorm16.Entity)("questions")
|
|
2135
2168
|
], Question);
|
|
2136
2169
|
|
|
2137
2170
|
// src/entities/job-role.entity.ts
|
|
2138
|
-
var
|
|
2171
|
+
var import_typeorm17 = require("typeorm");
|
|
2139
2172
|
var JobRoles = class extends BaseEntity {
|
|
2140
2173
|
};
|
|
2141
2174
|
__decorateClass([
|
|
2142
|
-
(0,
|
|
2175
|
+
(0, import_typeorm17.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2143
2176
|
], JobRoles.prototype, "slug", 2);
|
|
2144
2177
|
__decorateClass([
|
|
2145
|
-
(0,
|
|
2178
|
+
(0, import_typeorm17.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2146
2179
|
], JobRoles.prototype, "name", 2);
|
|
2147
2180
|
__decorateClass([
|
|
2148
|
-
(0,
|
|
2181
|
+
(0, import_typeorm17.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2149
2182
|
], JobRoles.prototype, "isActive", 2);
|
|
2150
2183
|
JobRoles = __decorateClass([
|
|
2151
|
-
(0,
|
|
2184
|
+
(0, import_typeorm17.Entity)("job_roles")
|
|
2152
2185
|
], JobRoles);
|
|
2153
2186
|
|
|
2154
2187
|
// src/entities/plan.entity.ts
|
|
2155
|
-
var
|
|
2188
|
+
var import_typeorm19 = require("typeorm");
|
|
2156
2189
|
|
|
2157
2190
|
// src/entities/feature.entity.ts
|
|
2158
|
-
var
|
|
2191
|
+
var import_typeorm18 = require("typeorm");
|
|
2159
2192
|
var Feature = class extends BaseEntity {
|
|
2160
2193
|
};
|
|
2161
2194
|
__decorateClass([
|
|
2162
|
-
(0,
|
|
2195
|
+
(0, import_typeorm18.Column)({ name: "name", type: "varchar", unique: true })
|
|
2163
2196
|
], Feature.prototype, "name", 2);
|
|
2164
2197
|
__decorateClass([
|
|
2165
|
-
(0,
|
|
2198
|
+
(0, import_typeorm18.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
2166
2199
|
], Feature.prototype, "plans", 2);
|
|
2167
2200
|
Feature = __decorateClass([
|
|
2168
|
-
(0,
|
|
2201
|
+
(0, import_typeorm18.Entity)("features")
|
|
2169
2202
|
], Feature);
|
|
2170
2203
|
|
|
2171
2204
|
// src/entities/plan.entity.ts
|
|
2172
2205
|
var Plan = class extends BaseEntity {
|
|
2173
2206
|
};
|
|
2174
2207
|
__decorateClass([
|
|
2175
|
-
(0,
|
|
2208
|
+
(0, import_typeorm19.Column)({ name: "name", type: "varchar", unique: true })
|
|
2176
2209
|
], Plan.prototype, "name", 2);
|
|
2177
2210
|
__decorateClass([
|
|
2178
|
-
(0,
|
|
2211
|
+
(0, import_typeorm19.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2179
2212
|
], Plan.prototype, "description", 2);
|
|
2180
2213
|
__decorateClass([
|
|
2181
|
-
(0,
|
|
2214
|
+
(0, import_typeorm19.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2182
2215
|
], Plan.prototype, "price", 2);
|
|
2183
2216
|
__decorateClass([
|
|
2184
|
-
(0,
|
|
2217
|
+
(0, import_typeorm19.Column)({ name: "billing_period", type: "varchar" })
|
|
2185
2218
|
], Plan.prototype, "billingPeriod", 2);
|
|
2186
2219
|
__decorateClass([
|
|
2187
|
-
(0,
|
|
2220
|
+
(0, import_typeorm19.Column)({ name: "is_current", type: "boolean", default: false })
|
|
2188
2221
|
], Plan.prototype, "isCurrent", 2);
|
|
2189
2222
|
__decorateClass([
|
|
2190
|
-
(0,
|
|
2191
|
-
(0,
|
|
2223
|
+
(0, import_typeorm19.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2224
|
+
(0, import_typeorm19.JoinTable)()
|
|
2192
2225
|
], Plan.prototype, "features", 2);
|
|
2193
2226
|
Plan = __decorateClass([
|
|
2194
|
-
(0,
|
|
2227
|
+
(0, import_typeorm19.Entity)("plans")
|
|
2195
2228
|
], Plan);
|
|
2196
2229
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2197
2230
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -489,11 +489,11 @@ import {
|
|
|
489
489
|
|
|
490
490
|
// src/entities/company-profile.entity.ts
|
|
491
491
|
import {
|
|
492
|
-
Entity as
|
|
493
|
-
Column as
|
|
494
|
-
ManyToOne as
|
|
495
|
-
JoinColumn as
|
|
496
|
-
Index as
|
|
492
|
+
Entity as Entity14,
|
|
493
|
+
Column as Column15,
|
|
494
|
+
ManyToOne as ManyToOne12,
|
|
495
|
+
JoinColumn as JoinColumn12,
|
|
496
|
+
Index as Index10
|
|
497
497
|
} from "typeorm";
|
|
498
498
|
|
|
499
499
|
// src/entities/base.entity.ts
|
|
@@ -541,7 +541,7 @@ __decorateClass([
|
|
|
541
541
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
542
542
|
|
|
543
543
|
// src/entities/user.entity.ts
|
|
544
|
-
import { Entity as
|
|
544
|
+
import { Entity as Entity13, Column as Column14, OneToMany as OneToMany6, OneToOne } from "typeorm";
|
|
545
545
|
|
|
546
546
|
// src/entities/refresh-token.entity.ts
|
|
547
547
|
import {
|
|
@@ -1243,6 +1243,36 @@ Rating = __decorateClass([
|
|
|
1243
1243
|
Entity11("ratings")
|
|
1244
1244
|
], Rating);
|
|
1245
1245
|
|
|
1246
|
+
// src/entities/company-role.entity.ts
|
|
1247
|
+
import { BaseEntity as BaseEntity2, Column as Column13, Entity as Entity12, Index as Index9, JoinColumn as JoinColumn11, ManyToOne as ManyToOne11 } from "typeorm";
|
|
1248
|
+
var CompanyRole = class extends BaseEntity2 {
|
|
1249
|
+
};
|
|
1250
|
+
// individual index to find company roles by user
|
|
1251
|
+
__decorateClass([
|
|
1252
|
+
Column13({ name: "user_id", type: "integer", nullable: true }),
|
|
1253
|
+
Index9()
|
|
1254
|
+
], CompanyRole.prototype, "userId", 2);
|
|
1255
|
+
__decorateClass([
|
|
1256
|
+
ManyToOne11(() => User, (user) => user.companyRole),
|
|
1257
|
+
JoinColumn11({ name: "user_id" })
|
|
1258
|
+
], CompanyRole.prototype, "user", 2);
|
|
1259
|
+
__decorateClass([
|
|
1260
|
+
Column13({ name: "name", type: "varchar" })
|
|
1261
|
+
], CompanyRole.prototype, "name", 2);
|
|
1262
|
+
__decorateClass([
|
|
1263
|
+
Column13({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
1264
|
+
Index9()
|
|
1265
|
+
], CompanyRole.prototype, "slug", 2);
|
|
1266
|
+
__decorateClass([
|
|
1267
|
+
Column13({ name: "description", type: "text", nullable: true })
|
|
1268
|
+
], CompanyRole.prototype, "description", 2);
|
|
1269
|
+
__decorateClass([
|
|
1270
|
+
Column13({ name: "is_active", type: "boolean", default: true })
|
|
1271
|
+
], CompanyRole.prototype, "isActive", 2);
|
|
1272
|
+
CompanyRole = __decorateClass([
|
|
1273
|
+
Entity12("company_roles")
|
|
1274
|
+
], CompanyRole);
|
|
1275
|
+
|
|
1246
1276
|
// src/entities/user.entity.ts
|
|
1247
1277
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1248
1278
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1267,40 +1297,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1267
1297
|
var User = class extends BaseEntity {
|
|
1268
1298
|
};
|
|
1269
1299
|
__decorateClass([
|
|
1270
|
-
|
|
1300
|
+
Column14({ name: "unique_id", type: "varchar", unique: true })
|
|
1271
1301
|
], User.prototype, "uniqueId", 2);
|
|
1272
1302
|
__decorateClass([
|
|
1273
|
-
|
|
1303
|
+
Column14({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1274
1304
|
], User.prototype, "username", 2);
|
|
1275
1305
|
__decorateClass([
|
|
1276
|
-
|
|
1306
|
+
Column14({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1277
1307
|
], User.prototype, "firstName", 2);
|
|
1278
1308
|
__decorateClass([
|
|
1279
|
-
|
|
1309
|
+
Column14({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1280
1310
|
], User.prototype, "lastName", 2);
|
|
1281
1311
|
__decorateClass([
|
|
1282
|
-
|
|
1312
|
+
Column14({ name: "date_of_birth", type: "date", nullable: true })
|
|
1283
1313
|
], User.prototype, "dateOfBirth", 2);
|
|
1284
1314
|
__decorateClass([
|
|
1285
|
-
|
|
1315
|
+
Column14({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1286
1316
|
], User.prototype, "gender", 2);
|
|
1287
1317
|
__decorateClass([
|
|
1288
|
-
|
|
1318
|
+
Column14({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1289
1319
|
], User.prototype, "profilePictureUrl", 2);
|
|
1290
1320
|
__decorateClass([
|
|
1291
|
-
|
|
1321
|
+
Column14({ name: "email", type: "varchar", unique: true })
|
|
1292
1322
|
], User.prototype, "email", 2);
|
|
1293
1323
|
__decorateClass([
|
|
1294
|
-
|
|
1324
|
+
Column14({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1295
1325
|
], User.prototype, "mobileCode", 2);
|
|
1296
1326
|
__decorateClass([
|
|
1297
|
-
|
|
1327
|
+
Column14({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1298
1328
|
], User.prototype, "mobile", 2);
|
|
1299
1329
|
__decorateClass([
|
|
1300
|
-
|
|
1330
|
+
Column14({ name: "password", type: "varchar" })
|
|
1301
1331
|
], User.prototype, "password", 2);
|
|
1302
1332
|
__decorateClass([
|
|
1303
|
-
|
|
1333
|
+
Column14({
|
|
1304
1334
|
name: "account_type",
|
|
1305
1335
|
type: "enum",
|
|
1306
1336
|
enum: AccountType,
|
|
@@ -1308,7 +1338,7 @@ __decorateClass([
|
|
|
1308
1338
|
})
|
|
1309
1339
|
], User.prototype, "accountType", 2);
|
|
1310
1340
|
__decorateClass([
|
|
1311
|
-
|
|
1341
|
+
Column14({
|
|
1312
1342
|
name: "account_status",
|
|
1313
1343
|
type: "enum",
|
|
1314
1344
|
enum: AccountStatus,
|
|
@@ -1316,26 +1346,26 @@ __decorateClass([
|
|
|
1316
1346
|
})
|
|
1317
1347
|
], User.prototype, "accountStatus", 2);
|
|
1318
1348
|
__decorateClass([
|
|
1319
|
-
|
|
1349
|
+
Column14({ name: "is_email_verified", type: "boolean", default: false })
|
|
1320
1350
|
], User.prototype, "isEmailVerified", 2);
|
|
1321
1351
|
__decorateClass([
|
|
1322
|
-
|
|
1352
|
+
Column14({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1323
1353
|
], User.prototype, "isMobileVerified", 2);
|
|
1324
1354
|
__decorateClass([
|
|
1325
|
-
|
|
1355
|
+
Column14({
|
|
1326
1356
|
name: "last_login_at",
|
|
1327
1357
|
type: "timestamp with time zone",
|
|
1328
1358
|
nullable: true
|
|
1329
1359
|
})
|
|
1330
1360
|
], User.prototype, "lastLoginAt", 2);
|
|
1331
1361
|
__decorateClass([
|
|
1332
|
-
|
|
1362
|
+
Column14({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1333
1363
|
], User.prototype, "lastLoginIp", 2);
|
|
1334
1364
|
__decorateClass([
|
|
1335
|
-
|
|
1365
|
+
Column14({ name: "reset_token", type: "varchar", nullable: true })
|
|
1336
1366
|
], User.prototype, "resetToken", 2);
|
|
1337
1367
|
__decorateClass([
|
|
1338
|
-
|
|
1368
|
+
Column14({
|
|
1339
1369
|
name: "reset_token_expire_at",
|
|
1340
1370
|
type: "timestamp with time zone",
|
|
1341
1371
|
nullable: true
|
|
@@ -1345,7 +1375,7 @@ __decorateClass([
|
|
|
1345
1375
|
OneToMany6(() => RefreshToken, (token) => token.user)
|
|
1346
1376
|
], User.prototype, "refreshTokens", 2);
|
|
1347
1377
|
__decorateClass([
|
|
1348
|
-
|
|
1378
|
+
Column14({
|
|
1349
1379
|
name: "provider",
|
|
1350
1380
|
type: "enum",
|
|
1351
1381
|
enum: Provider,
|
|
@@ -1354,16 +1384,16 @@ __decorateClass([
|
|
|
1354
1384
|
})
|
|
1355
1385
|
], User.prototype, "provider", 2);
|
|
1356
1386
|
__decorateClass([
|
|
1357
|
-
|
|
1387
|
+
Column14({ name: "provider_token", type: "varchar", nullable: true })
|
|
1358
1388
|
], User.prototype, "providerToken", 2);
|
|
1359
1389
|
__decorateClass([
|
|
1360
|
-
|
|
1390
|
+
Column14({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1361
1391
|
], User.prototype, "linkedInId", 2);
|
|
1362
1392
|
__decorateClass([
|
|
1363
|
-
|
|
1393
|
+
Column14({ name: "google_id", type: "varchar", nullable: true })
|
|
1364
1394
|
], User.prototype, "googleId", 2);
|
|
1365
1395
|
__decorateClass([
|
|
1366
|
-
|
|
1396
|
+
Column14({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1367
1397
|
], User.prototype, "gitLabsId", 2);
|
|
1368
1398
|
__decorateClass([
|
|
1369
1399
|
OneToMany6(() => Otp, (otp) => otp.user)
|
|
@@ -1401,8 +1431,11 @@ __decorateClass([
|
|
|
1401
1431
|
__decorateClass([
|
|
1402
1432
|
OneToMany6(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
1403
1433
|
], User.prototype, "jobApplications", 2);
|
|
1434
|
+
__decorateClass([
|
|
1435
|
+
OneToMany6(() => CompanyRole, (companyRole) => companyRole.user)
|
|
1436
|
+
], User.prototype, "companyRole", 2);
|
|
1404
1437
|
User = __decorateClass([
|
|
1405
|
-
|
|
1438
|
+
Entity13("users")
|
|
1406
1439
|
], User);
|
|
1407
1440
|
|
|
1408
1441
|
// src/entities/company-profile.entity.ts
|
|
@@ -1429,42 +1462,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1429
1462
|
};
|
|
1430
1463
|
// individual index to find company profile by user
|
|
1431
1464
|
__decorateClass([
|
|
1432
|
-
|
|
1433
|
-
|
|
1465
|
+
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
1466
|
+
Index10()
|
|
1434
1467
|
], CompanyProfile.prototype, "userId", 2);
|
|
1435
1468
|
__decorateClass([
|
|
1436
|
-
|
|
1437
|
-
|
|
1469
|
+
ManyToOne12(() => User, (user) => user.otps),
|
|
1470
|
+
JoinColumn12({ name: "user_id" })
|
|
1438
1471
|
], CompanyProfile.prototype, "user", 2);
|
|
1439
1472
|
__decorateClass([
|
|
1440
|
-
|
|
1473
|
+
Column15({ name: "company_name", type: "varchar", nullable: true })
|
|
1441
1474
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1442
1475
|
__decorateClass([
|
|
1443
|
-
|
|
1476
|
+
Column15({ name: "bio", type: "varchar", nullable: true })
|
|
1444
1477
|
], CompanyProfile.prototype, "bio", 2);
|
|
1445
1478
|
__decorateClass([
|
|
1446
|
-
|
|
1479
|
+
Column15({ name: "website", type: "varchar", nullable: true })
|
|
1447
1480
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1448
1481
|
__decorateClass([
|
|
1449
|
-
|
|
1482
|
+
Column15({ name: "about_company", type: "varchar", nullable: true })
|
|
1450
1483
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1451
1484
|
__decorateClass([
|
|
1452
|
-
|
|
1485
|
+
Column15({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1453
1486
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1454
1487
|
__decorateClass([
|
|
1455
|
-
|
|
1488
|
+
Column15({ name: "company_address", type: "varchar", nullable: true })
|
|
1456
1489
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1457
1490
|
__decorateClass([
|
|
1458
|
-
|
|
1491
|
+
Column15({ name: "phone_number", type: "varchar", nullable: true })
|
|
1459
1492
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1460
1493
|
__decorateClass([
|
|
1461
|
-
|
|
1494
|
+
Column15({ name: "skills", type: "text", nullable: true })
|
|
1462
1495
|
], CompanyProfile.prototype, "skills", 2);
|
|
1463
1496
|
__decorateClass([
|
|
1464
|
-
|
|
1497
|
+
Column15({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1465
1498
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1466
1499
|
__decorateClass([
|
|
1467
|
-
|
|
1500
|
+
Column15({
|
|
1468
1501
|
name: "kind_of_hiring",
|
|
1469
1502
|
type: "enum",
|
|
1470
1503
|
enum: KindOfHire,
|
|
@@ -1472,7 +1505,7 @@ __decorateClass([
|
|
|
1472
1505
|
})
|
|
1473
1506
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1474
1507
|
__decorateClass([
|
|
1475
|
-
|
|
1508
|
+
Column15({
|
|
1476
1509
|
name: "mode_of_hire",
|
|
1477
1510
|
type: "enum",
|
|
1478
1511
|
enum: ModeOfHire,
|
|
@@ -1480,7 +1513,7 @@ __decorateClass([
|
|
|
1480
1513
|
})
|
|
1481
1514
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1482
1515
|
__decorateClass([
|
|
1483
|
-
|
|
1516
|
+
Column15({
|
|
1484
1517
|
name: "found_us_on",
|
|
1485
1518
|
type: "enum",
|
|
1486
1519
|
enum: FromUsOn,
|
|
@@ -1488,7 +1521,7 @@ __decorateClass([
|
|
|
1488
1521
|
})
|
|
1489
1522
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1490
1523
|
CompanyProfile = __decorateClass([
|
|
1491
|
-
|
|
1524
|
+
Entity14("company_profiles")
|
|
1492
1525
|
], CompanyProfile);
|
|
1493
1526
|
|
|
1494
1527
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -2144,7 +2177,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2144
2177
|
};
|
|
2145
2178
|
|
|
2146
2179
|
// src/entities/question.entity.ts
|
|
2147
|
-
import { Entity as
|
|
2180
|
+
import { Entity as Entity15, Column as Column16 } from "typeorm";
|
|
2148
2181
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2149
2182
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2150
2183
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2153,16 +2186,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2153
2186
|
var Question = class extends BaseEntity {
|
|
2154
2187
|
};
|
|
2155
2188
|
__decorateClass([
|
|
2156
|
-
|
|
2189
|
+
Column16({ name: "question", type: "varchar" })
|
|
2157
2190
|
], Question.prototype, "question", 2);
|
|
2158
2191
|
__decorateClass([
|
|
2159
|
-
|
|
2192
|
+
Column16({ name: "hint", type: "varchar", nullable: true })
|
|
2160
2193
|
], Question.prototype, "hint", 2);
|
|
2161
2194
|
__decorateClass([
|
|
2162
|
-
|
|
2195
|
+
Column16({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2163
2196
|
], Question.prototype, "slug", 2);
|
|
2164
2197
|
__decorateClass([
|
|
2165
|
-
|
|
2198
|
+
Column16({
|
|
2166
2199
|
name: "question_for",
|
|
2167
2200
|
type: "enum",
|
|
2168
2201
|
enum: QuestionFor,
|
|
@@ -2170,76 +2203,76 @@ __decorateClass([
|
|
|
2170
2203
|
})
|
|
2171
2204
|
], Question.prototype, "questionFor", 2);
|
|
2172
2205
|
__decorateClass([
|
|
2173
|
-
|
|
2206
|
+
Column16({ name: "type", type: "varchar", nullable: true })
|
|
2174
2207
|
], Question.prototype, "type", 2);
|
|
2175
2208
|
__decorateClass([
|
|
2176
|
-
|
|
2209
|
+
Column16({ name: "options", type: "jsonb", nullable: true })
|
|
2177
2210
|
], Question.prototype, "options", 2);
|
|
2178
2211
|
__decorateClass([
|
|
2179
|
-
|
|
2212
|
+
Column16({ name: "is_active", type: "boolean", default: false })
|
|
2180
2213
|
], Question.prototype, "isActive", 2);
|
|
2181
2214
|
Question = __decorateClass([
|
|
2182
|
-
|
|
2215
|
+
Entity15("questions")
|
|
2183
2216
|
], Question);
|
|
2184
2217
|
|
|
2185
2218
|
// src/entities/job-role.entity.ts
|
|
2186
|
-
import { Entity as
|
|
2219
|
+
import { Entity as Entity16, Column as Column17 } from "typeorm";
|
|
2187
2220
|
var JobRoles = class extends BaseEntity {
|
|
2188
2221
|
};
|
|
2189
2222
|
__decorateClass([
|
|
2190
|
-
|
|
2223
|
+
Column17({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2191
2224
|
], JobRoles.prototype, "slug", 2);
|
|
2192
2225
|
__decorateClass([
|
|
2193
|
-
|
|
2226
|
+
Column17({ name: "name", type: "varchar", nullable: true })
|
|
2194
2227
|
], JobRoles.prototype, "name", 2);
|
|
2195
2228
|
__decorateClass([
|
|
2196
|
-
|
|
2229
|
+
Column17({ name: "is_active", type: "boolean", default: true })
|
|
2197
2230
|
], JobRoles.prototype, "isActive", 2);
|
|
2198
2231
|
JobRoles = __decorateClass([
|
|
2199
|
-
|
|
2232
|
+
Entity16("job_roles")
|
|
2200
2233
|
], JobRoles);
|
|
2201
2234
|
|
|
2202
2235
|
// src/entities/plan.entity.ts
|
|
2203
|
-
import { Entity as
|
|
2236
|
+
import { Entity as Entity18, Column as Column19, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
2204
2237
|
|
|
2205
2238
|
// src/entities/feature.entity.ts
|
|
2206
|
-
import { Entity as
|
|
2239
|
+
import { Entity as Entity17, Column as Column18, ManyToMany } from "typeorm";
|
|
2207
2240
|
var Feature = class extends BaseEntity {
|
|
2208
2241
|
};
|
|
2209
2242
|
__decorateClass([
|
|
2210
|
-
|
|
2243
|
+
Column18({ name: "name", type: "varchar", unique: true })
|
|
2211
2244
|
], Feature.prototype, "name", 2);
|
|
2212
2245
|
__decorateClass([
|
|
2213
2246
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
2214
2247
|
], Feature.prototype, "plans", 2);
|
|
2215
2248
|
Feature = __decorateClass([
|
|
2216
|
-
|
|
2249
|
+
Entity17("features")
|
|
2217
2250
|
], Feature);
|
|
2218
2251
|
|
|
2219
2252
|
// src/entities/plan.entity.ts
|
|
2220
2253
|
var Plan = class extends BaseEntity {
|
|
2221
2254
|
};
|
|
2222
2255
|
__decorateClass([
|
|
2223
|
-
|
|
2256
|
+
Column19({ name: "name", type: "varchar", unique: true })
|
|
2224
2257
|
], Plan.prototype, "name", 2);
|
|
2225
2258
|
__decorateClass([
|
|
2226
|
-
|
|
2259
|
+
Column19({ name: "description", type: "varchar", nullable: true })
|
|
2227
2260
|
], Plan.prototype, "description", 2);
|
|
2228
2261
|
__decorateClass([
|
|
2229
|
-
|
|
2262
|
+
Column19({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2230
2263
|
], Plan.prototype, "price", 2);
|
|
2231
2264
|
__decorateClass([
|
|
2232
|
-
|
|
2265
|
+
Column19({ name: "billing_period", type: "varchar" })
|
|
2233
2266
|
], Plan.prototype, "billingPeriod", 2);
|
|
2234
2267
|
__decorateClass([
|
|
2235
|
-
|
|
2268
|
+
Column19({ name: "is_current", type: "boolean", default: false })
|
|
2236
2269
|
], Plan.prototype, "isCurrent", 2);
|
|
2237
2270
|
__decorateClass([
|
|
2238
2271
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2239
2272
|
JoinTable()
|
|
2240
2273
|
], Plan.prototype, "features", 2);
|
|
2241
2274
|
Plan = __decorateClass([
|
|
2242
|
-
|
|
2275
|
+
Entity18("plans")
|
|
2243
2276
|
], Plan);
|
|
2244
2277
|
export {
|
|
2245
2278
|
AUTHENTICATION_PATTERN,
|