@experts_hub/shared 1.0.127 → 1.0.129
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/freelancer-experience.entity.d.ts +10 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +38 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +198 -88
- package/dist/index.mjs +186 -76
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/user/freelancer-experience/dto/create-freelancer-experience.dto.d.ts +9 -0
- package/dist/modules/user/freelancer-experience/dto/index.d.ts +2 -0
- package/dist/modules/user/freelancer-experience/dto/update-freelancer-experience.dto.d.ts +10 -0
- package/dist/modules/user/freelancer-experience/index.d.ts +2 -0
- package/dist/modules/user/freelancer-experience/pattern/pattern.d.ts +5 -0
- package/package.json +1 -1
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 Entity15,
|
|
493
|
+
Column as Column16,
|
|
494
|
+
ManyToOne as ManyToOne14,
|
|
495
|
+
JoinColumn as JoinColumn14,
|
|
496
|
+
Index as Index12
|
|
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 Entity14, Column as Column15, OneToMany as OneToMany6, OneToOne, Index as Index11, ManyToOne as ManyToOne13, JoinColumn as JoinColumn13 } from "typeorm";
|
|
545
545
|
|
|
546
546
|
// src/entities/refresh-token.entity.ts
|
|
547
547
|
import {
|
|
@@ -1326,6 +1326,41 @@ CompanyRole = __decorateClass([
|
|
|
1326
1326
|
Entity12("company_roles")
|
|
1327
1327
|
], CompanyRole);
|
|
1328
1328
|
|
|
1329
|
+
// src/entities/freelancer-experience.entity.ts
|
|
1330
|
+
import {
|
|
1331
|
+
Entity as Entity13,
|
|
1332
|
+
Column as Column14,
|
|
1333
|
+
Index as Index10,
|
|
1334
|
+
ManyToOne as ManyToOne12,
|
|
1335
|
+
JoinColumn as JoinColumn12
|
|
1336
|
+
} from "typeorm";
|
|
1337
|
+
var FreelancerExperience = class extends BaseEntity {
|
|
1338
|
+
};
|
|
1339
|
+
// individual index to find experence by user
|
|
1340
|
+
__decorateClass([
|
|
1341
|
+
Column14({ name: "user_id", type: "integer", nullable: true }),
|
|
1342
|
+
Index10()
|
|
1343
|
+
], FreelancerExperience.prototype, "userId", 2);
|
|
1344
|
+
__decorateClass([
|
|
1345
|
+
ManyToOne12(() => User, (user) => user.freelancerExperience),
|
|
1346
|
+
JoinColumn12({ name: "user_id" })
|
|
1347
|
+
], FreelancerExperience.prototype, "user", 2);
|
|
1348
|
+
__decorateClass([
|
|
1349
|
+
Column14({ name: "company_name", type: "varchar", nullable: true })
|
|
1350
|
+
], FreelancerExperience.prototype, "companyName", 2);
|
|
1351
|
+
__decorateClass([
|
|
1352
|
+
Column14({ name: "designation", type: "varchar", nullable: true })
|
|
1353
|
+
], FreelancerExperience.prototype, "designation", 2);
|
|
1354
|
+
__decorateClass([
|
|
1355
|
+
Column14({ name: "job_duration", type: "varchar", nullable: true })
|
|
1356
|
+
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
1357
|
+
__decorateClass([
|
|
1358
|
+
Column14({ name: "description", type: "varchar", nullable: true })
|
|
1359
|
+
], FreelancerExperience.prototype, "description", 2);
|
|
1360
|
+
FreelancerExperience = __decorateClass([
|
|
1361
|
+
Entity13("freelancer_experiences")
|
|
1362
|
+
], FreelancerExperience);
|
|
1363
|
+
|
|
1329
1364
|
// src/entities/user.entity.ts
|
|
1330
1365
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1331
1366
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1350,51 +1385,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1350
1385
|
var User = class extends BaseEntity {
|
|
1351
1386
|
};
|
|
1352
1387
|
__decorateClass([
|
|
1353
|
-
|
|
1388
|
+
Column15({ name: "unique_id", type: "varchar", unique: true })
|
|
1354
1389
|
], User.prototype, "uniqueId", 2);
|
|
1355
1390
|
__decorateClass([
|
|
1356
|
-
|
|
1357
|
-
|
|
1391
|
+
Column15({ name: "parent_id", type: "integer", nullable: true }),
|
|
1392
|
+
Index11()
|
|
1358
1393
|
], User.prototype, "parentId", 2);
|
|
1359
1394
|
__decorateClass([
|
|
1360
|
-
|
|
1361
|
-
|
|
1395
|
+
ManyToOne13(() => User, (user) => user.children, { nullable: true }),
|
|
1396
|
+
JoinColumn13({ name: "parent_id" })
|
|
1362
1397
|
], User.prototype, "parent", 2);
|
|
1363
1398
|
__decorateClass([
|
|
1364
1399
|
OneToMany6(() => User, (user) => user.parent)
|
|
1365
1400
|
], User.prototype, "children", 2);
|
|
1366
1401
|
__decorateClass([
|
|
1367
|
-
|
|
1402
|
+
Column15({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1368
1403
|
], User.prototype, "username", 2);
|
|
1369
1404
|
__decorateClass([
|
|
1370
|
-
|
|
1405
|
+
Column15({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1371
1406
|
], User.prototype, "firstName", 2);
|
|
1372
1407
|
__decorateClass([
|
|
1373
|
-
|
|
1408
|
+
Column15({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1374
1409
|
], User.prototype, "lastName", 2);
|
|
1375
1410
|
__decorateClass([
|
|
1376
|
-
|
|
1411
|
+
Column15({ name: "date_of_birth", type: "date", nullable: true })
|
|
1377
1412
|
], User.prototype, "dateOfBirth", 2);
|
|
1378
1413
|
__decorateClass([
|
|
1379
|
-
|
|
1414
|
+
Column15({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1380
1415
|
], User.prototype, "gender", 2);
|
|
1381
1416
|
__decorateClass([
|
|
1382
|
-
|
|
1417
|
+
Column15({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1383
1418
|
], User.prototype, "profilePictureUrl", 2);
|
|
1384
1419
|
__decorateClass([
|
|
1385
|
-
|
|
1420
|
+
Column15({ name: "email", type: "varchar", unique: true })
|
|
1386
1421
|
], User.prototype, "email", 2);
|
|
1387
1422
|
__decorateClass([
|
|
1388
|
-
|
|
1423
|
+
Column15({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1389
1424
|
], User.prototype, "mobileCode", 2);
|
|
1390
1425
|
__decorateClass([
|
|
1391
|
-
|
|
1426
|
+
Column15({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1392
1427
|
], User.prototype, "mobile", 2);
|
|
1393
1428
|
__decorateClass([
|
|
1394
|
-
|
|
1429
|
+
Column15({ name: "password", type: "varchar" })
|
|
1395
1430
|
], User.prototype, "password", 2);
|
|
1396
1431
|
__decorateClass([
|
|
1397
|
-
|
|
1432
|
+
Column15({
|
|
1398
1433
|
name: "account_type",
|
|
1399
1434
|
type: "enum",
|
|
1400
1435
|
enum: AccountType,
|
|
@@ -1402,7 +1437,7 @@ __decorateClass([
|
|
|
1402
1437
|
})
|
|
1403
1438
|
], User.prototype, "accountType", 2);
|
|
1404
1439
|
__decorateClass([
|
|
1405
|
-
|
|
1440
|
+
Column15({
|
|
1406
1441
|
name: "account_status",
|
|
1407
1442
|
type: "enum",
|
|
1408
1443
|
enum: AccountStatus,
|
|
@@ -1410,26 +1445,26 @@ __decorateClass([
|
|
|
1410
1445
|
})
|
|
1411
1446
|
], User.prototype, "accountStatus", 2);
|
|
1412
1447
|
__decorateClass([
|
|
1413
|
-
|
|
1448
|
+
Column15({ name: "is_email_verified", type: "boolean", default: false })
|
|
1414
1449
|
], User.prototype, "isEmailVerified", 2);
|
|
1415
1450
|
__decorateClass([
|
|
1416
|
-
|
|
1451
|
+
Column15({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1417
1452
|
], User.prototype, "isMobileVerified", 2);
|
|
1418
1453
|
__decorateClass([
|
|
1419
|
-
|
|
1454
|
+
Column15({
|
|
1420
1455
|
name: "last_login_at",
|
|
1421
1456
|
type: "timestamp with time zone",
|
|
1422
1457
|
nullable: true
|
|
1423
1458
|
})
|
|
1424
1459
|
], User.prototype, "lastLoginAt", 2);
|
|
1425
1460
|
__decorateClass([
|
|
1426
|
-
|
|
1461
|
+
Column15({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1427
1462
|
], User.prototype, "lastLoginIp", 2);
|
|
1428
1463
|
__decorateClass([
|
|
1429
|
-
|
|
1464
|
+
Column15({ name: "reset_token", type: "varchar", nullable: true })
|
|
1430
1465
|
], User.prototype, "resetToken", 2);
|
|
1431
1466
|
__decorateClass([
|
|
1432
|
-
|
|
1467
|
+
Column15({
|
|
1433
1468
|
name: "reset_token_expire_at",
|
|
1434
1469
|
type: "timestamp with time zone",
|
|
1435
1470
|
nullable: true
|
|
@@ -1439,7 +1474,7 @@ __decorateClass([
|
|
|
1439
1474
|
OneToMany6(() => RefreshToken, (token) => token.user)
|
|
1440
1475
|
], User.prototype, "refreshTokens", 2);
|
|
1441
1476
|
__decorateClass([
|
|
1442
|
-
|
|
1477
|
+
Column15({
|
|
1443
1478
|
name: "provider",
|
|
1444
1479
|
type: "enum",
|
|
1445
1480
|
enum: Provider,
|
|
@@ -1448,16 +1483,16 @@ __decorateClass([
|
|
|
1448
1483
|
})
|
|
1449
1484
|
], User.prototype, "provider", 2);
|
|
1450
1485
|
__decorateClass([
|
|
1451
|
-
|
|
1486
|
+
Column15({ name: "provider_token", type: "varchar", nullable: true })
|
|
1452
1487
|
], User.prototype, "providerToken", 2);
|
|
1453
1488
|
__decorateClass([
|
|
1454
|
-
|
|
1489
|
+
Column15({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1455
1490
|
], User.prototype, "linkedInId", 2);
|
|
1456
1491
|
__decorateClass([
|
|
1457
|
-
|
|
1492
|
+
Column15({ name: "google_id", type: "varchar", nullable: true })
|
|
1458
1493
|
], User.prototype, "googleId", 2);
|
|
1459
1494
|
__decorateClass([
|
|
1460
|
-
|
|
1495
|
+
Column15({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1461
1496
|
], User.prototype, "gitLabsId", 2);
|
|
1462
1497
|
__decorateClass([
|
|
1463
1498
|
OneToMany6(() => Otp, (otp) => otp.user)
|
|
@@ -1498,8 +1533,11 @@ __decorateClass([
|
|
|
1498
1533
|
__decorateClass([
|
|
1499
1534
|
OneToMany6(() => CompanyRole, (companyRole) => companyRole.user)
|
|
1500
1535
|
], User.prototype, "companyRole", 2);
|
|
1536
|
+
__decorateClass([
|
|
1537
|
+
OneToOne(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
1538
|
+
], User.prototype, "freelancerExperience", 2);
|
|
1501
1539
|
User = __decorateClass([
|
|
1502
|
-
|
|
1540
|
+
Entity14("users")
|
|
1503
1541
|
], User);
|
|
1504
1542
|
|
|
1505
1543
|
// src/entities/company-profile.entity.ts
|
|
@@ -1526,42 +1564,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1526
1564
|
};
|
|
1527
1565
|
// individual index to find company profile by user
|
|
1528
1566
|
__decorateClass([
|
|
1529
|
-
|
|
1530
|
-
|
|
1567
|
+
Column16({ name: "user_id", type: "integer", nullable: true }),
|
|
1568
|
+
Index12()
|
|
1531
1569
|
], CompanyProfile.prototype, "userId", 2);
|
|
1532
1570
|
__decorateClass([
|
|
1533
|
-
|
|
1534
|
-
|
|
1571
|
+
ManyToOne14(() => User, (user) => user.otps),
|
|
1572
|
+
JoinColumn14({ name: "user_id" })
|
|
1535
1573
|
], CompanyProfile.prototype, "user", 2);
|
|
1536
1574
|
__decorateClass([
|
|
1537
|
-
|
|
1575
|
+
Column16({ name: "company_name", type: "varchar", nullable: true })
|
|
1538
1576
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1539
1577
|
__decorateClass([
|
|
1540
|
-
|
|
1578
|
+
Column16({ name: "bio", type: "varchar", nullable: true })
|
|
1541
1579
|
], CompanyProfile.prototype, "bio", 2);
|
|
1542
1580
|
__decorateClass([
|
|
1543
|
-
|
|
1581
|
+
Column16({ name: "website", type: "varchar", nullable: true })
|
|
1544
1582
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1545
1583
|
__decorateClass([
|
|
1546
|
-
|
|
1584
|
+
Column16({ name: "about_company", type: "varchar", nullable: true })
|
|
1547
1585
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1548
1586
|
__decorateClass([
|
|
1549
|
-
|
|
1587
|
+
Column16({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1550
1588
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1551
1589
|
__decorateClass([
|
|
1552
|
-
|
|
1590
|
+
Column16({ name: "company_address", type: "varchar", nullable: true })
|
|
1553
1591
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1554
1592
|
__decorateClass([
|
|
1555
|
-
|
|
1593
|
+
Column16({ name: "phone_number", type: "varchar", nullable: true })
|
|
1556
1594
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1557
1595
|
__decorateClass([
|
|
1558
|
-
|
|
1596
|
+
Column16({ name: "skills", type: "text", nullable: true })
|
|
1559
1597
|
], CompanyProfile.prototype, "skills", 2);
|
|
1560
1598
|
__decorateClass([
|
|
1561
|
-
|
|
1599
|
+
Column16({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1562
1600
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1563
1601
|
__decorateClass([
|
|
1564
|
-
|
|
1602
|
+
Column16({
|
|
1565
1603
|
name: "kind_of_hiring",
|
|
1566
1604
|
type: "enum",
|
|
1567
1605
|
enum: KindOfHire,
|
|
@@ -1569,7 +1607,7 @@ __decorateClass([
|
|
|
1569
1607
|
})
|
|
1570
1608
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1571
1609
|
__decorateClass([
|
|
1572
|
-
|
|
1610
|
+
Column16({
|
|
1573
1611
|
name: "mode_of_hire",
|
|
1574
1612
|
type: "enum",
|
|
1575
1613
|
enum: ModeOfHire,
|
|
@@ -1577,7 +1615,7 @@ __decorateClass([
|
|
|
1577
1615
|
})
|
|
1578
1616
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1579
1617
|
__decorateClass([
|
|
1580
|
-
|
|
1618
|
+
Column16({
|
|
1581
1619
|
name: "found_us_on",
|
|
1582
1620
|
type: "enum",
|
|
1583
1621
|
enum: FromUsOn,
|
|
@@ -1585,7 +1623,7 @@ __decorateClass([
|
|
|
1585
1623
|
})
|
|
1586
1624
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1587
1625
|
CompanyProfile = __decorateClass([
|
|
1588
|
-
|
|
1626
|
+
Entity15("company_profiles")
|
|
1589
1627
|
], CompanyProfile);
|
|
1590
1628
|
|
|
1591
1629
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -2154,6 +2192,72 @@ __decorateClass([
|
|
|
2154
2192
|
IsBoolean9()
|
|
2155
2193
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
2156
2194
|
|
|
2195
|
+
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
2196
|
+
var FREELANCER_EXPERIENCE_PATTERN = {
|
|
2197
|
+
fetchFreelancerExperience: "fetch.freelancer.experience",
|
|
2198
|
+
createFreelancerExperience: "create.freelancer.experience",
|
|
2199
|
+
updateFreelancerExperience: "update.freelancer.experience"
|
|
2200
|
+
};
|
|
2201
|
+
|
|
2202
|
+
// src/modules/user/freelancer-experience/dto/create-freelancer-experience.dto.ts
|
|
2203
|
+
import { IsArray as IsArray3, ValidateNested, IsString as IsString18, IsNotEmpty as IsNotEmpty25 } from "class-validator";
|
|
2204
|
+
import { Type as Type2 } from "class-transformer";
|
|
2205
|
+
var CreateExperienceDto = class {
|
|
2206
|
+
};
|
|
2207
|
+
__decorateClass([
|
|
2208
|
+
IsString18(),
|
|
2209
|
+
IsNotEmpty25()
|
|
2210
|
+
], CreateExperienceDto.prototype, "companyName", 2);
|
|
2211
|
+
__decorateClass([
|
|
2212
|
+
IsString18(),
|
|
2213
|
+
IsNotEmpty25()
|
|
2214
|
+
], CreateExperienceDto.prototype, "designation", 2);
|
|
2215
|
+
__decorateClass([
|
|
2216
|
+
IsString18(),
|
|
2217
|
+
IsNotEmpty25()
|
|
2218
|
+
], CreateExperienceDto.prototype, "jobDuration", 2);
|
|
2219
|
+
__decorateClass([
|
|
2220
|
+
IsString18()
|
|
2221
|
+
], CreateExperienceDto.prototype, "description", 2);
|
|
2222
|
+
var CreateFreelancerExperienceDto = class {
|
|
2223
|
+
};
|
|
2224
|
+
__decorateClass([
|
|
2225
|
+
IsArray3(),
|
|
2226
|
+
ValidateNested({ each: true }),
|
|
2227
|
+
Type2(() => CreateExperienceDto)
|
|
2228
|
+
], CreateFreelancerExperienceDto.prototype, "experience", 2);
|
|
2229
|
+
|
|
2230
|
+
// src/modules/user/freelancer-experience/dto/update-freelancer-experience.dto.ts
|
|
2231
|
+
import { IsArray as IsArray4, ValidateNested as ValidateNested2, IsString as IsString19, IsNotEmpty as IsNotEmpty26, IsOptional as IsOptional13 } from "class-validator";
|
|
2232
|
+
import { Type as Type3 } from "class-transformer";
|
|
2233
|
+
var UpdateExperienceDto = class {
|
|
2234
|
+
};
|
|
2235
|
+
__decorateClass([
|
|
2236
|
+
IsOptional13()
|
|
2237
|
+
], UpdateExperienceDto.prototype, "id", 2);
|
|
2238
|
+
__decorateClass([
|
|
2239
|
+
IsNotEmpty26(),
|
|
2240
|
+
IsString19()
|
|
2241
|
+
], UpdateExperienceDto.prototype, "companyName", 2);
|
|
2242
|
+
__decorateClass([
|
|
2243
|
+
IsNotEmpty26(),
|
|
2244
|
+
IsString19()
|
|
2245
|
+
], UpdateExperienceDto.prototype, "designation", 2);
|
|
2246
|
+
__decorateClass([
|
|
2247
|
+
IsNotEmpty26(),
|
|
2248
|
+
IsString19()
|
|
2249
|
+
], UpdateExperienceDto.prototype, "jobDuration", 2);
|
|
2250
|
+
__decorateClass([
|
|
2251
|
+
IsString19()
|
|
2252
|
+
], UpdateExperienceDto.prototype, "description", 2);
|
|
2253
|
+
var UpdateFreelancerExperienceDto = class {
|
|
2254
|
+
};
|
|
2255
|
+
__decorateClass([
|
|
2256
|
+
IsArray4(),
|
|
2257
|
+
ValidateNested2({ each: true }),
|
|
2258
|
+
Type3(() => UpdateExperienceDto)
|
|
2259
|
+
], UpdateFreelancerExperienceDto.prototype, "experience", 2);
|
|
2260
|
+
|
|
2157
2261
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2158
2262
|
import { config } from "dotenv";
|
|
2159
2263
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -2371,7 +2475,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2371
2475
|
};
|
|
2372
2476
|
|
|
2373
2477
|
// src/entities/question.entity.ts
|
|
2374
|
-
import { Entity as
|
|
2478
|
+
import { Entity as Entity16, Column as Column17 } from "typeorm";
|
|
2375
2479
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2376
2480
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2377
2481
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2380,16 +2484,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2380
2484
|
var Question = class extends BaseEntity {
|
|
2381
2485
|
};
|
|
2382
2486
|
__decorateClass([
|
|
2383
|
-
|
|
2487
|
+
Column17({ name: "question", type: "varchar" })
|
|
2384
2488
|
], Question.prototype, "question", 2);
|
|
2385
2489
|
__decorateClass([
|
|
2386
|
-
|
|
2490
|
+
Column17({ name: "hint", type: "varchar", nullable: true })
|
|
2387
2491
|
], Question.prototype, "hint", 2);
|
|
2388
2492
|
__decorateClass([
|
|
2389
|
-
|
|
2493
|
+
Column17({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2390
2494
|
], Question.prototype, "slug", 2);
|
|
2391
2495
|
__decorateClass([
|
|
2392
|
-
|
|
2496
|
+
Column17({
|
|
2393
2497
|
name: "question_for",
|
|
2394
2498
|
type: "enum",
|
|
2395
2499
|
enum: QuestionFor,
|
|
@@ -2397,76 +2501,76 @@ __decorateClass([
|
|
|
2397
2501
|
})
|
|
2398
2502
|
], Question.prototype, "questionFor", 2);
|
|
2399
2503
|
__decorateClass([
|
|
2400
|
-
|
|
2504
|
+
Column17({ name: "type", type: "varchar", nullable: true })
|
|
2401
2505
|
], Question.prototype, "type", 2);
|
|
2402
2506
|
__decorateClass([
|
|
2403
|
-
|
|
2507
|
+
Column17({ name: "options", type: "jsonb", nullable: true })
|
|
2404
2508
|
], Question.prototype, "options", 2);
|
|
2405
2509
|
__decorateClass([
|
|
2406
|
-
|
|
2510
|
+
Column17({ name: "is_active", type: "boolean", default: false })
|
|
2407
2511
|
], Question.prototype, "isActive", 2);
|
|
2408
2512
|
Question = __decorateClass([
|
|
2409
|
-
|
|
2513
|
+
Entity16("questions")
|
|
2410
2514
|
], Question);
|
|
2411
2515
|
|
|
2412
2516
|
// src/entities/job-role.entity.ts
|
|
2413
|
-
import { Entity as
|
|
2517
|
+
import { Entity as Entity17, Column as Column18 } from "typeorm";
|
|
2414
2518
|
var JobRoles = class extends BaseEntity {
|
|
2415
2519
|
};
|
|
2416
2520
|
__decorateClass([
|
|
2417
|
-
|
|
2521
|
+
Column18({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2418
2522
|
], JobRoles.prototype, "slug", 2);
|
|
2419
2523
|
__decorateClass([
|
|
2420
|
-
|
|
2524
|
+
Column18({ name: "name", type: "varchar", nullable: true })
|
|
2421
2525
|
], JobRoles.prototype, "name", 2);
|
|
2422
2526
|
__decorateClass([
|
|
2423
|
-
|
|
2527
|
+
Column18({ name: "is_active", type: "boolean", default: true })
|
|
2424
2528
|
], JobRoles.prototype, "isActive", 2);
|
|
2425
2529
|
JobRoles = __decorateClass([
|
|
2426
|
-
|
|
2530
|
+
Entity17("job_roles")
|
|
2427
2531
|
], JobRoles);
|
|
2428
2532
|
|
|
2429
2533
|
// src/entities/plan.entity.ts
|
|
2430
|
-
import { Entity as
|
|
2534
|
+
import { Entity as Entity19, Column as Column20, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
2431
2535
|
|
|
2432
2536
|
// src/entities/feature.entity.ts
|
|
2433
|
-
import { Entity as
|
|
2537
|
+
import { Entity as Entity18, Column as Column19, ManyToMany } from "typeorm";
|
|
2434
2538
|
var Feature = class extends BaseEntity {
|
|
2435
2539
|
};
|
|
2436
2540
|
__decorateClass([
|
|
2437
|
-
|
|
2541
|
+
Column19({ name: "name", type: "varchar", unique: true })
|
|
2438
2542
|
], Feature.prototype, "name", 2);
|
|
2439
2543
|
__decorateClass([
|
|
2440
2544
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
2441
2545
|
], Feature.prototype, "plans", 2);
|
|
2442
2546
|
Feature = __decorateClass([
|
|
2443
|
-
|
|
2547
|
+
Entity18("features")
|
|
2444
2548
|
], Feature);
|
|
2445
2549
|
|
|
2446
2550
|
// src/entities/plan.entity.ts
|
|
2447
2551
|
var Plan = class extends BaseEntity {
|
|
2448
2552
|
};
|
|
2449
2553
|
__decorateClass([
|
|
2450
|
-
|
|
2554
|
+
Column20({ name: "name", type: "varchar", unique: true })
|
|
2451
2555
|
], Plan.prototype, "name", 2);
|
|
2452
2556
|
__decorateClass([
|
|
2453
|
-
|
|
2557
|
+
Column20({ name: "description", type: "varchar", nullable: true })
|
|
2454
2558
|
], Plan.prototype, "description", 2);
|
|
2455
2559
|
__decorateClass([
|
|
2456
|
-
|
|
2560
|
+
Column20({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2457
2561
|
], Plan.prototype, "price", 2);
|
|
2458
2562
|
__decorateClass([
|
|
2459
|
-
|
|
2563
|
+
Column20({ name: "billing_period", type: "varchar" })
|
|
2460
2564
|
], Plan.prototype, "billingPeriod", 2);
|
|
2461
2565
|
__decorateClass([
|
|
2462
|
-
|
|
2566
|
+
Column20({ name: "is_current", type: "boolean", default: false })
|
|
2463
2567
|
], Plan.prototype, "isCurrent", 2);
|
|
2464
2568
|
__decorateClass([
|
|
2465
2569
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2466
2570
|
JoinTable()
|
|
2467
2571
|
], Plan.prototype, "features", 2);
|
|
2468
2572
|
Plan = __decorateClass([
|
|
2469
|
-
|
|
2573
|
+
Entity19("plans")
|
|
2470
2574
|
], Plan);
|
|
2471
2575
|
export {
|
|
2472
2576
|
AUTHENTICATION_PATTERN,
|
|
@@ -2487,17 +2591,21 @@ export {
|
|
|
2487
2591
|
CompanyProfile,
|
|
2488
2592
|
CompanyRole,
|
|
2489
2593
|
CreateCompanyRoleDto,
|
|
2594
|
+
CreateExperienceDto,
|
|
2595
|
+
CreateFreelancerExperienceDto,
|
|
2490
2596
|
CreateQuestionDto,
|
|
2491
2597
|
CreateRatingDto,
|
|
2492
2598
|
CreateSubAdminDto,
|
|
2493
2599
|
DurationTypeEnum,
|
|
2494
2600
|
EmploymentType,
|
|
2601
|
+
FREELANCER_EXPERIENCE_PATTERN,
|
|
2495
2602
|
Feature,
|
|
2496
2603
|
ForgotPasswordDto,
|
|
2497
2604
|
FreelancerBankDetailsDto,
|
|
2498
2605
|
FreelancerChangePasswordDto,
|
|
2499
2606
|
FreelancerCreateAccountDto,
|
|
2500
2607
|
FreelancerDevelopmentPreferenceDto,
|
|
2608
|
+
FreelancerExperience,
|
|
2501
2609
|
FreelancerProfile,
|
|
2502
2610
|
FreelancerProfileQuestionDto,
|
|
2503
2611
|
FreelancerUploadResumeDto,
|
|
@@ -2561,6 +2669,8 @@ export {
|
|
|
2561
2669
|
TypeOfEmploymentEnum,
|
|
2562
2670
|
UpdateCompanyProfileDto,
|
|
2563
2671
|
UpdateCompanyRoleDto,
|
|
2672
|
+
UpdateExperienceDto,
|
|
2673
|
+
UpdateFreelancerExperienceDto,
|
|
2564
2674
|
UpdateFreelancerProfileDto,
|
|
2565
2675
|
UpdateSubAdminAccountStatusDto,
|
|
2566
2676
|
UpdateSubAdminDto,
|
package/dist/modules/index.d.ts
CHANGED