@experts_hub/shared 1.0.126 → 1.0.128
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 +5 -0
- package/dist/index.d.mts +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +204 -83
- package/dist/index.mjs +193 -72
- 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,40 +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
|
-
|
|
1391
|
+
Column15({ name: "parent_id", type: "integer", nullable: true }),
|
|
1392
|
+
Index11()
|
|
1393
|
+
], User.prototype, "parentId", 2);
|
|
1394
|
+
__decorateClass([
|
|
1395
|
+
ManyToOne13(() => User, (user) => user.children, { nullable: true }),
|
|
1396
|
+
JoinColumn13({ name: "parent_id" })
|
|
1397
|
+
], User.prototype, "parent", 2);
|
|
1398
|
+
__decorateClass([
|
|
1399
|
+
OneToMany6(() => User, (user) => user.parent)
|
|
1400
|
+
], User.prototype, "children", 2);
|
|
1401
|
+
__decorateClass([
|
|
1402
|
+
Column15({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1357
1403
|
], User.prototype, "username", 2);
|
|
1358
1404
|
__decorateClass([
|
|
1359
|
-
|
|
1405
|
+
Column15({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1360
1406
|
], User.prototype, "firstName", 2);
|
|
1361
1407
|
__decorateClass([
|
|
1362
|
-
|
|
1408
|
+
Column15({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1363
1409
|
], User.prototype, "lastName", 2);
|
|
1364
1410
|
__decorateClass([
|
|
1365
|
-
|
|
1411
|
+
Column15({ name: "date_of_birth", type: "date", nullable: true })
|
|
1366
1412
|
], User.prototype, "dateOfBirth", 2);
|
|
1367
1413
|
__decorateClass([
|
|
1368
|
-
|
|
1414
|
+
Column15({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1369
1415
|
], User.prototype, "gender", 2);
|
|
1370
1416
|
__decorateClass([
|
|
1371
|
-
|
|
1417
|
+
Column15({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1372
1418
|
], User.prototype, "profilePictureUrl", 2);
|
|
1373
1419
|
__decorateClass([
|
|
1374
|
-
|
|
1420
|
+
Column15({ name: "email", type: "varchar", unique: true })
|
|
1375
1421
|
], User.prototype, "email", 2);
|
|
1376
1422
|
__decorateClass([
|
|
1377
|
-
|
|
1423
|
+
Column15({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1378
1424
|
], User.prototype, "mobileCode", 2);
|
|
1379
1425
|
__decorateClass([
|
|
1380
|
-
|
|
1426
|
+
Column15({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1381
1427
|
], User.prototype, "mobile", 2);
|
|
1382
1428
|
__decorateClass([
|
|
1383
|
-
|
|
1429
|
+
Column15({ name: "password", type: "varchar" })
|
|
1384
1430
|
], User.prototype, "password", 2);
|
|
1385
1431
|
__decorateClass([
|
|
1386
|
-
|
|
1432
|
+
Column15({
|
|
1387
1433
|
name: "account_type",
|
|
1388
1434
|
type: "enum",
|
|
1389
1435
|
enum: AccountType,
|
|
@@ -1391,7 +1437,7 @@ __decorateClass([
|
|
|
1391
1437
|
})
|
|
1392
1438
|
], User.prototype, "accountType", 2);
|
|
1393
1439
|
__decorateClass([
|
|
1394
|
-
|
|
1440
|
+
Column15({
|
|
1395
1441
|
name: "account_status",
|
|
1396
1442
|
type: "enum",
|
|
1397
1443
|
enum: AccountStatus,
|
|
@@ -1399,26 +1445,26 @@ __decorateClass([
|
|
|
1399
1445
|
})
|
|
1400
1446
|
], User.prototype, "accountStatus", 2);
|
|
1401
1447
|
__decorateClass([
|
|
1402
|
-
|
|
1448
|
+
Column15({ name: "is_email_verified", type: "boolean", default: false })
|
|
1403
1449
|
], User.prototype, "isEmailVerified", 2);
|
|
1404
1450
|
__decorateClass([
|
|
1405
|
-
|
|
1451
|
+
Column15({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1406
1452
|
], User.prototype, "isMobileVerified", 2);
|
|
1407
1453
|
__decorateClass([
|
|
1408
|
-
|
|
1454
|
+
Column15({
|
|
1409
1455
|
name: "last_login_at",
|
|
1410
1456
|
type: "timestamp with time zone",
|
|
1411
1457
|
nullable: true
|
|
1412
1458
|
})
|
|
1413
1459
|
], User.prototype, "lastLoginAt", 2);
|
|
1414
1460
|
__decorateClass([
|
|
1415
|
-
|
|
1461
|
+
Column15({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1416
1462
|
], User.prototype, "lastLoginIp", 2);
|
|
1417
1463
|
__decorateClass([
|
|
1418
|
-
|
|
1464
|
+
Column15({ name: "reset_token", type: "varchar", nullable: true })
|
|
1419
1465
|
], User.prototype, "resetToken", 2);
|
|
1420
1466
|
__decorateClass([
|
|
1421
|
-
|
|
1467
|
+
Column15({
|
|
1422
1468
|
name: "reset_token_expire_at",
|
|
1423
1469
|
type: "timestamp with time zone",
|
|
1424
1470
|
nullable: true
|
|
@@ -1428,7 +1474,7 @@ __decorateClass([
|
|
|
1428
1474
|
OneToMany6(() => RefreshToken, (token) => token.user)
|
|
1429
1475
|
], User.prototype, "refreshTokens", 2);
|
|
1430
1476
|
__decorateClass([
|
|
1431
|
-
|
|
1477
|
+
Column15({
|
|
1432
1478
|
name: "provider",
|
|
1433
1479
|
type: "enum",
|
|
1434
1480
|
enum: Provider,
|
|
@@ -1437,16 +1483,16 @@ __decorateClass([
|
|
|
1437
1483
|
})
|
|
1438
1484
|
], User.prototype, "provider", 2);
|
|
1439
1485
|
__decorateClass([
|
|
1440
|
-
|
|
1486
|
+
Column15({ name: "provider_token", type: "varchar", nullable: true })
|
|
1441
1487
|
], User.prototype, "providerToken", 2);
|
|
1442
1488
|
__decorateClass([
|
|
1443
|
-
|
|
1489
|
+
Column15({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1444
1490
|
], User.prototype, "linkedInId", 2);
|
|
1445
1491
|
__decorateClass([
|
|
1446
|
-
|
|
1492
|
+
Column15({ name: "google_id", type: "varchar", nullable: true })
|
|
1447
1493
|
], User.prototype, "googleId", 2);
|
|
1448
1494
|
__decorateClass([
|
|
1449
|
-
|
|
1495
|
+
Column15({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1450
1496
|
], User.prototype, "gitLabsId", 2);
|
|
1451
1497
|
__decorateClass([
|
|
1452
1498
|
OneToMany6(() => Otp, (otp) => otp.user)
|
|
@@ -1487,8 +1533,11 @@ __decorateClass([
|
|
|
1487
1533
|
__decorateClass([
|
|
1488
1534
|
OneToMany6(() => CompanyRole, (companyRole) => companyRole.user)
|
|
1489
1535
|
], User.prototype, "companyRole", 2);
|
|
1536
|
+
__decorateClass([
|
|
1537
|
+
OneToOne(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
1538
|
+
], User.prototype, "freelancerExperience", 2);
|
|
1490
1539
|
User = __decorateClass([
|
|
1491
|
-
|
|
1540
|
+
Entity14("users")
|
|
1492
1541
|
], User);
|
|
1493
1542
|
|
|
1494
1543
|
// src/entities/company-profile.entity.ts
|
|
@@ -1515,42 +1564,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1515
1564
|
};
|
|
1516
1565
|
// individual index to find company profile by user
|
|
1517
1566
|
__decorateClass([
|
|
1518
|
-
|
|
1519
|
-
|
|
1567
|
+
Column16({ name: "user_id", type: "integer", nullable: true }),
|
|
1568
|
+
Index12()
|
|
1520
1569
|
], CompanyProfile.prototype, "userId", 2);
|
|
1521
1570
|
__decorateClass([
|
|
1522
|
-
|
|
1523
|
-
|
|
1571
|
+
ManyToOne14(() => User, (user) => user.otps),
|
|
1572
|
+
JoinColumn14({ name: "user_id" })
|
|
1524
1573
|
], CompanyProfile.prototype, "user", 2);
|
|
1525
1574
|
__decorateClass([
|
|
1526
|
-
|
|
1575
|
+
Column16({ name: "company_name", type: "varchar", nullable: true })
|
|
1527
1576
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1528
1577
|
__decorateClass([
|
|
1529
|
-
|
|
1578
|
+
Column16({ name: "bio", type: "varchar", nullable: true })
|
|
1530
1579
|
], CompanyProfile.prototype, "bio", 2);
|
|
1531
1580
|
__decorateClass([
|
|
1532
|
-
|
|
1581
|
+
Column16({ name: "website", type: "varchar", nullable: true })
|
|
1533
1582
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1534
1583
|
__decorateClass([
|
|
1535
|
-
|
|
1584
|
+
Column16({ name: "about_company", type: "varchar", nullable: true })
|
|
1536
1585
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1537
1586
|
__decorateClass([
|
|
1538
|
-
|
|
1587
|
+
Column16({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1539
1588
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1540
1589
|
__decorateClass([
|
|
1541
|
-
|
|
1590
|
+
Column16({ name: "company_address", type: "varchar", nullable: true })
|
|
1542
1591
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1543
1592
|
__decorateClass([
|
|
1544
|
-
|
|
1593
|
+
Column16({ name: "phone_number", type: "varchar", nullable: true })
|
|
1545
1594
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1546
1595
|
__decorateClass([
|
|
1547
|
-
|
|
1596
|
+
Column16({ name: "skills", type: "text", nullable: true })
|
|
1548
1597
|
], CompanyProfile.prototype, "skills", 2);
|
|
1549
1598
|
__decorateClass([
|
|
1550
|
-
|
|
1599
|
+
Column16({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1551
1600
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1552
1601
|
__decorateClass([
|
|
1553
|
-
|
|
1602
|
+
Column16({
|
|
1554
1603
|
name: "kind_of_hiring",
|
|
1555
1604
|
type: "enum",
|
|
1556
1605
|
enum: KindOfHire,
|
|
@@ -1558,7 +1607,7 @@ __decorateClass([
|
|
|
1558
1607
|
})
|
|
1559
1608
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1560
1609
|
__decorateClass([
|
|
1561
|
-
|
|
1610
|
+
Column16({
|
|
1562
1611
|
name: "mode_of_hire",
|
|
1563
1612
|
type: "enum",
|
|
1564
1613
|
enum: ModeOfHire,
|
|
@@ -1566,7 +1615,7 @@ __decorateClass([
|
|
|
1566
1615
|
})
|
|
1567
1616
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1568
1617
|
__decorateClass([
|
|
1569
|
-
|
|
1618
|
+
Column16({
|
|
1570
1619
|
name: "found_us_on",
|
|
1571
1620
|
type: "enum",
|
|
1572
1621
|
enum: FromUsOn,
|
|
@@ -1574,7 +1623,7 @@ __decorateClass([
|
|
|
1574
1623
|
})
|
|
1575
1624
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1576
1625
|
CompanyProfile = __decorateClass([
|
|
1577
|
-
|
|
1626
|
+
Entity15("company_profiles")
|
|
1578
1627
|
], CompanyProfile);
|
|
1579
1628
|
|
|
1580
1629
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -2143,6 +2192,72 @@ __decorateClass([
|
|
|
2143
2192
|
IsBoolean9()
|
|
2144
2193
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
2145
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, "company", 2);
|
|
2211
|
+
__decorateClass([
|
|
2212
|
+
IsString18(),
|
|
2213
|
+
IsNotEmpty25()
|
|
2214
|
+
], CreateExperienceDto.prototype, "designation", 2);
|
|
2215
|
+
__decorateClass([
|
|
2216
|
+
IsString18(),
|
|
2217
|
+
IsNotEmpty25()
|
|
2218
|
+
], CreateExperienceDto.prototype, "duration", 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, "company", 2);
|
|
2242
|
+
__decorateClass([
|
|
2243
|
+
IsNotEmpty26(),
|
|
2244
|
+
IsString19()
|
|
2245
|
+
], UpdateExperienceDto.prototype, "designation", 2);
|
|
2246
|
+
__decorateClass([
|
|
2247
|
+
IsNotEmpty26(),
|
|
2248
|
+
IsString19()
|
|
2249
|
+
], UpdateExperienceDto.prototype, "duration", 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
|
+
|
|
2146
2261
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2147
2262
|
import { config } from "dotenv";
|
|
2148
2263
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -2360,7 +2475,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2360
2475
|
};
|
|
2361
2476
|
|
|
2362
2477
|
// src/entities/question.entity.ts
|
|
2363
|
-
import { Entity as
|
|
2478
|
+
import { Entity as Entity16, Column as Column17 } from "typeorm";
|
|
2364
2479
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2365
2480
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2366
2481
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2369,16 +2484,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2369
2484
|
var Question = class extends BaseEntity {
|
|
2370
2485
|
};
|
|
2371
2486
|
__decorateClass([
|
|
2372
|
-
|
|
2487
|
+
Column17({ name: "question", type: "varchar" })
|
|
2373
2488
|
], Question.prototype, "question", 2);
|
|
2374
2489
|
__decorateClass([
|
|
2375
|
-
|
|
2490
|
+
Column17({ name: "hint", type: "varchar", nullable: true })
|
|
2376
2491
|
], Question.prototype, "hint", 2);
|
|
2377
2492
|
__decorateClass([
|
|
2378
|
-
|
|
2493
|
+
Column17({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2379
2494
|
], Question.prototype, "slug", 2);
|
|
2380
2495
|
__decorateClass([
|
|
2381
|
-
|
|
2496
|
+
Column17({
|
|
2382
2497
|
name: "question_for",
|
|
2383
2498
|
type: "enum",
|
|
2384
2499
|
enum: QuestionFor,
|
|
@@ -2386,76 +2501,76 @@ __decorateClass([
|
|
|
2386
2501
|
})
|
|
2387
2502
|
], Question.prototype, "questionFor", 2);
|
|
2388
2503
|
__decorateClass([
|
|
2389
|
-
|
|
2504
|
+
Column17({ name: "type", type: "varchar", nullable: true })
|
|
2390
2505
|
], Question.prototype, "type", 2);
|
|
2391
2506
|
__decorateClass([
|
|
2392
|
-
|
|
2507
|
+
Column17({ name: "options", type: "jsonb", nullable: true })
|
|
2393
2508
|
], Question.prototype, "options", 2);
|
|
2394
2509
|
__decorateClass([
|
|
2395
|
-
|
|
2510
|
+
Column17({ name: "is_active", type: "boolean", default: false })
|
|
2396
2511
|
], Question.prototype, "isActive", 2);
|
|
2397
2512
|
Question = __decorateClass([
|
|
2398
|
-
|
|
2513
|
+
Entity16("questions")
|
|
2399
2514
|
], Question);
|
|
2400
2515
|
|
|
2401
2516
|
// src/entities/job-role.entity.ts
|
|
2402
|
-
import { Entity as
|
|
2517
|
+
import { Entity as Entity17, Column as Column18 } from "typeorm";
|
|
2403
2518
|
var JobRoles = class extends BaseEntity {
|
|
2404
2519
|
};
|
|
2405
2520
|
__decorateClass([
|
|
2406
|
-
|
|
2521
|
+
Column18({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2407
2522
|
], JobRoles.prototype, "slug", 2);
|
|
2408
2523
|
__decorateClass([
|
|
2409
|
-
|
|
2524
|
+
Column18({ name: "name", type: "varchar", nullable: true })
|
|
2410
2525
|
], JobRoles.prototype, "name", 2);
|
|
2411
2526
|
__decorateClass([
|
|
2412
|
-
|
|
2527
|
+
Column18({ name: "is_active", type: "boolean", default: true })
|
|
2413
2528
|
], JobRoles.prototype, "isActive", 2);
|
|
2414
2529
|
JobRoles = __decorateClass([
|
|
2415
|
-
|
|
2530
|
+
Entity17("job_roles")
|
|
2416
2531
|
], JobRoles);
|
|
2417
2532
|
|
|
2418
2533
|
// src/entities/plan.entity.ts
|
|
2419
|
-
import { Entity as
|
|
2534
|
+
import { Entity as Entity19, Column as Column20, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
2420
2535
|
|
|
2421
2536
|
// src/entities/feature.entity.ts
|
|
2422
|
-
import { Entity as
|
|
2537
|
+
import { Entity as Entity18, Column as Column19, ManyToMany } from "typeorm";
|
|
2423
2538
|
var Feature = class extends BaseEntity {
|
|
2424
2539
|
};
|
|
2425
2540
|
__decorateClass([
|
|
2426
|
-
|
|
2541
|
+
Column19({ name: "name", type: "varchar", unique: true })
|
|
2427
2542
|
], Feature.prototype, "name", 2);
|
|
2428
2543
|
__decorateClass([
|
|
2429
2544
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
2430
2545
|
], Feature.prototype, "plans", 2);
|
|
2431
2546
|
Feature = __decorateClass([
|
|
2432
|
-
|
|
2547
|
+
Entity18("features")
|
|
2433
2548
|
], Feature);
|
|
2434
2549
|
|
|
2435
2550
|
// src/entities/plan.entity.ts
|
|
2436
2551
|
var Plan = class extends BaseEntity {
|
|
2437
2552
|
};
|
|
2438
2553
|
__decorateClass([
|
|
2439
|
-
|
|
2554
|
+
Column20({ name: "name", type: "varchar", unique: true })
|
|
2440
2555
|
], Plan.prototype, "name", 2);
|
|
2441
2556
|
__decorateClass([
|
|
2442
|
-
|
|
2557
|
+
Column20({ name: "description", type: "varchar", nullable: true })
|
|
2443
2558
|
], Plan.prototype, "description", 2);
|
|
2444
2559
|
__decorateClass([
|
|
2445
|
-
|
|
2560
|
+
Column20({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2446
2561
|
], Plan.prototype, "price", 2);
|
|
2447
2562
|
__decorateClass([
|
|
2448
|
-
|
|
2563
|
+
Column20({ name: "billing_period", type: "varchar" })
|
|
2449
2564
|
], Plan.prototype, "billingPeriod", 2);
|
|
2450
2565
|
__decorateClass([
|
|
2451
|
-
|
|
2566
|
+
Column20({ name: "is_current", type: "boolean", default: false })
|
|
2452
2567
|
], Plan.prototype, "isCurrent", 2);
|
|
2453
2568
|
__decorateClass([
|
|
2454
2569
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2455
2570
|
JoinTable()
|
|
2456
2571
|
], Plan.prototype, "features", 2);
|
|
2457
2572
|
Plan = __decorateClass([
|
|
2458
|
-
|
|
2573
|
+
Entity19("plans")
|
|
2459
2574
|
], Plan);
|
|
2460
2575
|
export {
|
|
2461
2576
|
AUTHENTICATION_PATTERN,
|
|
@@ -2476,17 +2591,21 @@ export {
|
|
|
2476
2591
|
CompanyProfile,
|
|
2477
2592
|
CompanyRole,
|
|
2478
2593
|
CreateCompanyRoleDto,
|
|
2594
|
+
CreateExperienceDto,
|
|
2595
|
+
CreateFreelancerExperienceDto,
|
|
2479
2596
|
CreateQuestionDto,
|
|
2480
2597
|
CreateRatingDto,
|
|
2481
2598
|
CreateSubAdminDto,
|
|
2482
2599
|
DurationTypeEnum,
|
|
2483
2600
|
EmploymentType,
|
|
2601
|
+
FREELANCER_EXPERIENCE_PATTERN,
|
|
2484
2602
|
Feature,
|
|
2485
2603
|
ForgotPasswordDto,
|
|
2486
2604
|
FreelancerBankDetailsDto,
|
|
2487
2605
|
FreelancerChangePasswordDto,
|
|
2488
2606
|
FreelancerCreateAccountDto,
|
|
2489
2607
|
FreelancerDevelopmentPreferenceDto,
|
|
2608
|
+
FreelancerExperience,
|
|
2490
2609
|
FreelancerProfile,
|
|
2491
2610
|
FreelancerProfileQuestionDto,
|
|
2492
2611
|
FreelancerUploadResumeDto,
|
|
@@ -2550,6 +2669,8 @@ export {
|
|
|
2550
2669
|
TypeOfEmploymentEnum,
|
|
2551
2670
|
UpdateCompanyProfileDto,
|
|
2552
2671
|
UpdateCompanyRoleDto,
|
|
2672
|
+
UpdateExperienceDto,
|
|
2673
|
+
UpdateFreelancerExperienceDto,
|
|
2553
2674
|
UpdateFreelancerProfileDto,
|
|
2554
2675
|
UpdateSubAdminAccountStatusDto,
|
|
2555
2676
|
UpdateSubAdminDto,
|
package/dist/modules/index.d.ts
CHANGED