@experts_hub/shared 1.0.494 → 1.0.496
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/city.entity.d.ts +2 -0
- package/dist/entities/company-profile.entity.d.ts +11 -0
- package/dist/entities/country.entity.d.ts +2 -0
- package/dist/entities/freelancer-profile.entity.d.ts +2 -0
- package/dist/entities/interview-question.entity.d.ts +6 -0
- package/dist/entities/state.entity.d.ts +2 -0
- package/dist/index.d.mts +76 -50
- package/dist/index.d.ts +76 -50
- package/dist/index.js +311 -216
- package/dist/index.mjs +357 -262
- package/dist/modules/user/client-profile/dto/update-client-profile.dto.d.ts +5 -0
- package/dist/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -842,7 +842,8 @@ import {
|
|
|
842
842
|
Length as Length2,
|
|
843
843
|
IsUrl as IsUrl2,
|
|
844
844
|
IsOptional as IsOptional10,
|
|
845
|
-
ValidateIf as ValidateIf2
|
|
845
|
+
ValidateIf as ValidateIf2,
|
|
846
|
+
IsNumber
|
|
846
847
|
} from "class-validator";
|
|
847
848
|
var UpdateCompanyProfileDto = class {
|
|
848
849
|
};
|
|
@@ -858,11 +859,31 @@ __decorateClass([
|
|
|
858
859
|
ValidateIf2((o) => o.webSite !== ""),
|
|
859
860
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
860
861
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
862
|
+
__decorateClass([
|
|
863
|
+
IsOptional10(),
|
|
864
|
+
IsNumber()
|
|
865
|
+
], UpdateCompanyProfileDto.prototype, "countryId", 2);
|
|
866
|
+
__decorateClass([
|
|
867
|
+
IsOptional10(),
|
|
868
|
+
IsNumber()
|
|
869
|
+
], UpdateCompanyProfileDto.prototype, "stateId", 2);
|
|
870
|
+
__decorateClass([
|
|
871
|
+
IsOptional10(),
|
|
872
|
+
IsNumber()
|
|
873
|
+
], UpdateCompanyProfileDto.prototype, "cityId", 2);
|
|
861
874
|
__decorateClass([
|
|
862
875
|
IsNotEmpty26({ message: "Please enter company address." }),
|
|
863
876
|
IsString10({ message: "Company address must be a string" }),
|
|
864
877
|
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
865
878
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
879
|
+
__decorateClass([
|
|
880
|
+
IsOptional10(),
|
|
881
|
+
IsString10({ message: "Address line must be a string" })
|
|
882
|
+
], UpdateCompanyProfileDto.prototype, "addressLine", 2);
|
|
883
|
+
__decorateClass([
|
|
884
|
+
IsNotEmpty26({ message: "Please enter postal code." }),
|
|
885
|
+
IsString10({ message: "Postal Code must be a string" })
|
|
886
|
+
], UpdateCompanyProfileDto.prototype, "postalCode", 2);
|
|
866
887
|
__decorateClass([
|
|
867
888
|
IsNotEmpty26({ message: "Please enter mobile code." }),
|
|
868
889
|
IsString10({ message: "Mobile Code must be a string" })
|
|
@@ -968,7 +989,7 @@ import {
|
|
|
968
989
|
IsNotEmpty as IsNotEmpty29,
|
|
969
990
|
IsArray,
|
|
970
991
|
ArrayNotEmpty,
|
|
971
|
-
IsNumber,
|
|
992
|
+
IsNumber as IsNumber2,
|
|
972
993
|
IsOptional as IsOptional12,
|
|
973
994
|
IsEnum as IsEnum10,
|
|
974
995
|
Min,
|
|
@@ -1033,7 +1054,7 @@ __decorateClass([
|
|
|
1033
1054
|
], JobBasicInformationDto.prototype, "goodToHaveSkills", 2);
|
|
1034
1055
|
__decorateClass([
|
|
1035
1056
|
ValidateIf3((o) => !o.isDraft),
|
|
1036
|
-
|
|
1057
|
+
IsNumber2({}, { message: "Openings must be a number" }),
|
|
1037
1058
|
Min(1, { message: "There must be at least 1 opening" }),
|
|
1038
1059
|
Type(() => Number)
|
|
1039
1060
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
@@ -1047,17 +1068,17 @@ __decorateClass([
|
|
|
1047
1068
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
1048
1069
|
__decorateClass([
|
|
1049
1070
|
ValidateIf3((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
|
|
1050
|
-
|
|
1071
|
+
IsNumber2({}, { message: "Country id must be a number" }),
|
|
1051
1072
|
Type(() => Number)
|
|
1052
1073
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
1053
1074
|
__decorateClass([
|
|
1054
1075
|
ValidateIf3((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
|
|
1055
|
-
|
|
1076
|
+
IsNumber2({}, { message: "State id must be a number" }),
|
|
1056
1077
|
Type(() => Number)
|
|
1057
1078
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
1058
1079
|
__decorateClass([
|
|
1059
1080
|
ValidateIf3((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
|
|
1060
|
-
|
|
1081
|
+
IsNumber2({}, { message: "City id must be a number" }),
|
|
1061
1082
|
Type(() => Number)
|
|
1062
1083
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
1063
1084
|
__decorateClass([
|
|
@@ -1074,7 +1095,7 @@ __decorateClass([
|
|
|
1074
1095
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
1075
1096
|
__decorateClass([
|
|
1076
1097
|
ValidateIf3((o) => !o.isDraft),
|
|
1077
|
-
|
|
1098
|
+
IsNumber2({}, { message: "Expected salary (from) must be a number" }),
|
|
1078
1099
|
Min(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1079
1100
|
Type(() => Number)
|
|
1080
1101
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
@@ -1083,7 +1104,7 @@ __decorateClass([
|
|
|
1083
1104
|
], JobBasicInformationDto.prototype, "hideExpectedSalaryFrom", 2);
|
|
1084
1105
|
__decorateClass([
|
|
1085
1106
|
ValidateIf3((o) => !o.isDraft),
|
|
1086
|
-
|
|
1107
|
+
IsNumber2({}, { message: "Expected salary (to) must be a number" }),
|
|
1087
1108
|
Min(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1088
1109
|
Type(() => Number)
|
|
1089
1110
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
@@ -1104,7 +1125,7 @@ __decorateClass([
|
|
|
1104
1125
|
], JobBasicInformationDto.prototype, "days", 2);
|
|
1105
1126
|
__decorateClass([
|
|
1106
1127
|
IsOptional12(),
|
|
1107
|
-
|
|
1128
|
+
IsNumber2({}, { message: "Number of hours must be a number" }),
|
|
1108
1129
|
Min(0, { message: "Number of hours cannot be negative" }),
|
|
1109
1130
|
Max(40, { message: "Number of hours cannot exceed 40" }),
|
|
1110
1131
|
Type(() => Number)
|
|
@@ -1232,7 +1253,7 @@ import {
|
|
|
1232
1253
|
IsOptional as IsOptional15,
|
|
1233
1254
|
IsString as IsString16,
|
|
1234
1255
|
IsEmail as IsEmail5,
|
|
1235
|
-
IsNumber as
|
|
1256
|
+
IsNumber as IsNumber3,
|
|
1236
1257
|
IsEnum as IsEnum12,
|
|
1237
1258
|
IsNotEmpty as IsNotEmpty33,
|
|
1238
1259
|
ValidateIf as ValidateIf4,
|
|
@@ -1282,15 +1303,15 @@ __decorateClass([
|
|
|
1282
1303
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1283
1304
|
__decorateClass([
|
|
1284
1305
|
IsOptional15(),
|
|
1285
|
-
|
|
1306
|
+
IsNumber3()
|
|
1286
1307
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1287
1308
|
__decorateClass([
|
|
1288
1309
|
IsOptional15(),
|
|
1289
|
-
|
|
1310
|
+
IsNumber3()
|
|
1290
1311
|
], UpdateFreelancerProfileDto.prototype, "stateId", 2);
|
|
1291
1312
|
__decorateClass([
|
|
1292
1313
|
IsOptional15(),
|
|
1293
|
-
|
|
1314
|
+
IsNumber3()
|
|
1294
1315
|
], UpdateFreelancerProfileDto.prototype, "cityId", 2);
|
|
1295
1316
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
1296
1317
|
__decorateClass([
|
|
@@ -1322,9 +1343,17 @@ __decorateClass([
|
|
|
1322
1343
|
IsString16()
|
|
1323
1344
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1324
1345
|
__decorateClass([
|
|
1325
|
-
|
|
1346
|
+
IsNotEmpty33({ message: "Please enter address." }),
|
|
1326
1347
|
IsString16()
|
|
1327
1348
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1349
|
+
__decorateClass([
|
|
1350
|
+
IsOptional15(),
|
|
1351
|
+
IsString16()
|
|
1352
|
+
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
1353
|
+
__decorateClass([
|
|
1354
|
+
IsNotEmpty33({ message: "Please enter postalCode." }),
|
|
1355
|
+
IsString16()
|
|
1356
|
+
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
1328
1357
|
__decorateClass([
|
|
1329
1358
|
IsOptional15(),
|
|
1330
1359
|
IsString16()
|
|
@@ -1698,35 +1727,197 @@ Otp = __decorateClass([
|
|
|
1698
1727
|
|
|
1699
1728
|
// src/entities/freelancer-profile.entity.ts
|
|
1700
1729
|
import {
|
|
1701
|
-
Entity as
|
|
1702
|
-
Column as
|
|
1703
|
-
Index as
|
|
1704
|
-
ManyToOne as
|
|
1705
|
-
JoinColumn as
|
|
1730
|
+
Entity as Entity8,
|
|
1731
|
+
Column as Column9,
|
|
1732
|
+
Index as Index4,
|
|
1733
|
+
ManyToOne as ManyToOne7,
|
|
1734
|
+
JoinColumn as JoinColumn7
|
|
1706
1735
|
} from "typeorm";
|
|
1707
1736
|
|
|
1708
1737
|
// src/entities/country.entity.ts
|
|
1709
1738
|
import {
|
|
1710
|
-
Entity as
|
|
1711
|
-
Column as
|
|
1739
|
+
Entity as Entity7,
|
|
1740
|
+
Column as Column8,
|
|
1712
1741
|
OneToMany as OneToMany3
|
|
1713
1742
|
} from "typeorm";
|
|
1714
1743
|
|
|
1715
1744
|
// src/entities/state.entity.ts
|
|
1716
1745
|
import {
|
|
1717
|
-
Entity as
|
|
1718
|
-
Column as
|
|
1719
|
-
ManyToOne as
|
|
1720
|
-
JoinColumn as
|
|
1746
|
+
Entity as Entity6,
|
|
1747
|
+
Column as Column7,
|
|
1748
|
+
ManyToOne as ManyToOne6,
|
|
1749
|
+
JoinColumn as JoinColumn6,
|
|
1721
1750
|
OneToMany as OneToMany2
|
|
1722
1751
|
} from "typeorm";
|
|
1723
1752
|
|
|
1724
1753
|
// src/entities/city.entity.ts
|
|
1725
|
-
import { Entity as
|
|
1726
|
-
|
|
1754
|
+
import { Entity as Entity5, Column as Column6, ManyToOne as ManyToOne5, JoinColumn as JoinColumn5, Index as Index3, OneToMany } from "typeorm";
|
|
1755
|
+
|
|
1756
|
+
// src/entities/company-profile.entity.ts
|
|
1757
|
+
import { Entity as Entity4, Column as Column5, ManyToOne as ManyToOne4, JoinColumn as JoinColumn4, Index as Index2 } from "typeorm";
|
|
1758
|
+
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
1759
|
+
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
1760
|
+
KindOfHire2["PARTTIME"] = "PARTTIME";
|
|
1761
|
+
KindOfHire2["BOTH"] = "BOTH";
|
|
1762
|
+
KindOfHire2["HOURLY"] = "HOURLY";
|
|
1763
|
+
KindOfHire2["FREELANCE"] = "FREELANCE";
|
|
1764
|
+
KindOfHire2["FTE"] = "FTE";
|
|
1765
|
+
return KindOfHire2;
|
|
1766
|
+
})(KindOfHire || {});
|
|
1767
|
+
var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
|
|
1768
|
+
ModeOfHire2["ONSITE"] = "ONSITE";
|
|
1769
|
+
ModeOfHire2["REMOTE"] = "REMOTE";
|
|
1770
|
+
ModeOfHire2["HYBRID"] = "HYBRID";
|
|
1771
|
+
ModeOfHire2["BOTH"] = "BOTH";
|
|
1772
|
+
return ModeOfHire2;
|
|
1773
|
+
})(ModeOfHire || {});
|
|
1774
|
+
var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
|
|
1775
|
+
FromUsOn2["LINKEDIN"] = "LINKEDIN";
|
|
1776
|
+
FromUsOn2["GOOGLE"] = "GOOGLE";
|
|
1777
|
+
FromUsOn2["REFERRAL"] = "REFERRAL";
|
|
1778
|
+
FromUsOn2["OTHER"] = "OTHER";
|
|
1779
|
+
return FromUsOn2;
|
|
1780
|
+
})(FromUsOn || {});
|
|
1781
|
+
var CompanyOnboardingStepEnum = /* @__PURE__ */ ((CompanyOnboardingStepEnum2) => {
|
|
1782
|
+
CompanyOnboardingStepEnum2["SIGN_UP"] = "SIGN_UP";
|
|
1783
|
+
CompanyOnboardingStepEnum2["PROFILE_COMPLETION"] = "PROFILE_COMPLETION";
|
|
1784
|
+
return CompanyOnboardingStepEnum2;
|
|
1785
|
+
})(CompanyOnboardingStepEnum || {});
|
|
1786
|
+
var CompanyProfile = class extends BaseEntity {
|
|
1787
|
+
// stores the positions JSON
|
|
1727
1788
|
};
|
|
1789
|
+
// individual index to find company profile by user
|
|
1790
|
+
__decorateClass([
|
|
1791
|
+
Column5({ name: "user_id", type: "integer", nullable: true }),
|
|
1792
|
+
Index2()
|
|
1793
|
+
], CompanyProfile.prototype, "userId", 2);
|
|
1794
|
+
__decorateClass([
|
|
1795
|
+
ManyToOne4(() => User, (user) => user.companyProfile),
|
|
1796
|
+
JoinColumn4({ name: "user_id" })
|
|
1797
|
+
], CompanyProfile.prototype, "user", 2);
|
|
1798
|
+
__decorateClass([
|
|
1799
|
+
Column5({ name: "company_name", type: "varchar", nullable: true })
|
|
1800
|
+
], CompanyProfile.prototype, "companyName", 2);
|
|
1801
|
+
__decorateClass([
|
|
1802
|
+
Column5({ name: "bio", type: "varchar", nullable: true })
|
|
1803
|
+
], CompanyProfile.prototype, "bio", 2);
|
|
1804
|
+
__decorateClass([
|
|
1805
|
+
Column5({ name: "website", type: "varchar", nullable: true })
|
|
1806
|
+
], CompanyProfile.prototype, "webSite", 2);
|
|
1807
|
+
__decorateClass([
|
|
1808
|
+
Column5({ name: "about_company", type: "varchar", nullable: true })
|
|
1809
|
+
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1810
|
+
__decorateClass([
|
|
1811
|
+
Column5({
|
|
1812
|
+
name: "is_service_aggrement_signed",
|
|
1813
|
+
type: "boolean",
|
|
1814
|
+
default: false
|
|
1815
|
+
})
|
|
1816
|
+
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1817
|
+
__decorateClass([
|
|
1818
|
+
Column5({ name: "original_document_url", type: "varchar", nullable: true })
|
|
1819
|
+
], CompanyProfile.prototype, "originalDocumentUrl", 2);
|
|
1820
|
+
__decorateClass([
|
|
1821
|
+
Column5({ name: "service_agreement_url", type: "varchar", nullable: true })
|
|
1822
|
+
], CompanyProfile.prototype, "serviceAgreementUrl", 2);
|
|
1823
|
+
__decorateClass([
|
|
1824
|
+
Column5({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
|
|
1825
|
+
], CompanyProfile.prototype, "serviceAggrementSignedOn", 2);
|
|
1826
|
+
__decorateClass([
|
|
1827
|
+
Column5({ name: "country_id", type: "integer", nullable: true })
|
|
1828
|
+
], CompanyProfile.prototype, "countryId", 2);
|
|
1829
|
+
__decorateClass([
|
|
1830
|
+
ManyToOne4(() => Country, (country) => country.freelancerProfile),
|
|
1831
|
+
JoinColumn4({ name: "country_id" })
|
|
1832
|
+
], CompanyProfile.prototype, "country", 2);
|
|
1833
|
+
__decorateClass([
|
|
1834
|
+
Column5({ name: "state_id", type: "integer", nullable: true })
|
|
1835
|
+
], CompanyProfile.prototype, "stateId", 2);
|
|
1836
|
+
__decorateClass([
|
|
1837
|
+
ManyToOne4(() => State, (state) => state.freelancerProfile),
|
|
1838
|
+
JoinColumn4({ name: "state_id" })
|
|
1839
|
+
], CompanyProfile.prototype, "state", 2);
|
|
1840
|
+
__decorateClass([
|
|
1841
|
+
Column5({ name: "city_id", type: "integer", nullable: true })
|
|
1842
|
+
], CompanyProfile.prototype, "cityId", 2);
|
|
1843
|
+
__decorateClass([
|
|
1844
|
+
ManyToOne4(() => City, (city) => city.freelancerProfile),
|
|
1845
|
+
JoinColumn4({ name: "city_id" })
|
|
1846
|
+
], CompanyProfile.prototype, "city", 2);
|
|
1847
|
+
__decorateClass([
|
|
1848
|
+
Column5({ name: "company_address", type: "varchar", nullable: true })
|
|
1849
|
+
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1850
|
+
__decorateClass([
|
|
1851
|
+
Column5({ name: "address_line", type: "varchar", nullable: true })
|
|
1852
|
+
], CompanyProfile.prototype, "addressLine", 2);
|
|
1853
|
+
__decorateClass([
|
|
1854
|
+
Column5({ name: "postal_code", type: "varchar", nullable: true })
|
|
1855
|
+
], CompanyProfile.prototype, "postalCode", 2);
|
|
1856
|
+
__decorateClass([
|
|
1857
|
+
Column5({ name: "phone_number", type: "varchar", nullable: true })
|
|
1858
|
+
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1859
|
+
__decorateClass([
|
|
1860
|
+
Column5("text", { name: "skills", array: true, nullable: true })
|
|
1861
|
+
], CompanyProfile.prototype, "skills", 2);
|
|
1862
|
+
__decorateClass([
|
|
1863
|
+
Column5({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1864
|
+
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1865
|
+
__decorateClass([
|
|
1866
|
+
Column5({
|
|
1867
|
+
name: "kind_of_hiring",
|
|
1868
|
+
type: "enum",
|
|
1869
|
+
enum: KindOfHire,
|
|
1870
|
+
nullable: true
|
|
1871
|
+
})
|
|
1872
|
+
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1873
|
+
__decorateClass([
|
|
1874
|
+
Column5({
|
|
1875
|
+
name: "number_of_hours",
|
|
1876
|
+
type: "decimal",
|
|
1877
|
+
precision: 4,
|
|
1878
|
+
scale: 2,
|
|
1879
|
+
nullable: true
|
|
1880
|
+
})
|
|
1881
|
+
], CompanyProfile.prototype, "numberOfHours", 2);
|
|
1882
|
+
__decorateClass([
|
|
1883
|
+
Column5({
|
|
1884
|
+
name: "mode_of_hire",
|
|
1885
|
+
type: "enum",
|
|
1886
|
+
enum: ModeOfHire,
|
|
1887
|
+
nullable: true
|
|
1888
|
+
})
|
|
1889
|
+
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1728
1890
|
__decorateClass([
|
|
1729
1891
|
Column5({
|
|
1892
|
+
name: "found_us_on",
|
|
1893
|
+
type: "enum",
|
|
1894
|
+
enum: FromUsOn,
|
|
1895
|
+
nullable: true
|
|
1896
|
+
})
|
|
1897
|
+
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1898
|
+
__decorateClass([
|
|
1899
|
+
Column5({ name: "found_us_on_detail", type: "varchar", nullable: true })
|
|
1900
|
+
], CompanyProfile.prototype, "foundUsOnDetail", 2);
|
|
1901
|
+
__decorateClass([
|
|
1902
|
+
Column5({
|
|
1903
|
+
name: "onboarding_step_completed",
|
|
1904
|
+
type: "enum",
|
|
1905
|
+
enum: CompanyOnboardingStepEnum,
|
|
1906
|
+
nullable: true
|
|
1907
|
+
})
|
|
1908
|
+
], CompanyProfile.prototype, "onboardingStepCompleted", 2);
|
|
1909
|
+
__decorateClass([
|
|
1910
|
+
Column5({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
1911
|
+
], CompanyProfile.prototype, "signaturePositions", 2);
|
|
1912
|
+
CompanyProfile = __decorateClass([
|
|
1913
|
+
Entity4("company_profiles")
|
|
1914
|
+
], CompanyProfile);
|
|
1915
|
+
|
|
1916
|
+
// src/entities/city.entity.ts
|
|
1917
|
+
var City = class extends BaseEntity {
|
|
1918
|
+
};
|
|
1919
|
+
__decorateClass([
|
|
1920
|
+
Column6({
|
|
1730
1921
|
name: "country_id",
|
|
1731
1922
|
type: "int",
|
|
1732
1923
|
nullable: true,
|
|
@@ -1734,11 +1925,11 @@ __decorateClass([
|
|
|
1734
1925
|
})
|
|
1735
1926
|
], City.prototype, "countryId", 2);
|
|
1736
1927
|
__decorateClass([
|
|
1737
|
-
|
|
1738
|
-
|
|
1928
|
+
ManyToOne5(() => Country),
|
|
1929
|
+
JoinColumn5({ name: "country_id" })
|
|
1739
1930
|
], City.prototype, "country", 2);
|
|
1740
1931
|
__decorateClass([
|
|
1741
|
-
|
|
1932
|
+
Column6({
|
|
1742
1933
|
name: "state_id",
|
|
1743
1934
|
type: "int",
|
|
1744
1935
|
nullable: false,
|
|
@@ -1746,11 +1937,11 @@ __decorateClass([
|
|
|
1746
1937
|
})
|
|
1747
1938
|
], City.prototype, "stateId", 2);
|
|
1748
1939
|
__decorateClass([
|
|
1749
|
-
|
|
1750
|
-
|
|
1940
|
+
ManyToOne5(() => State, (state) => state.cities),
|
|
1941
|
+
JoinColumn5({ name: "state_id" })
|
|
1751
1942
|
], City.prototype, "state", 2);
|
|
1752
1943
|
__decorateClass([
|
|
1753
|
-
|
|
1944
|
+
Column6({
|
|
1754
1945
|
name: "city_code",
|
|
1755
1946
|
type: "varchar",
|
|
1756
1947
|
length: 100,
|
|
@@ -1760,17 +1951,17 @@ __decorateClass([
|
|
|
1760
1951
|
})
|
|
1761
1952
|
], City.prototype, "cityCode", 2);
|
|
1762
1953
|
__decorateClass([
|
|
1763
|
-
|
|
1954
|
+
Column6({
|
|
1764
1955
|
name: "city_name",
|
|
1765
1956
|
type: "varchar",
|
|
1766
1957
|
length: 100,
|
|
1767
1958
|
nullable: false,
|
|
1768
1959
|
comment: "Name of the city"
|
|
1769
1960
|
}),
|
|
1770
|
-
|
|
1961
|
+
Index3()
|
|
1771
1962
|
], City.prototype, "cityName", 2);
|
|
1772
1963
|
__decorateClass([
|
|
1773
|
-
|
|
1964
|
+
Column6({
|
|
1774
1965
|
name: "is_active",
|
|
1775
1966
|
type: "boolean",
|
|
1776
1967
|
default: true,
|
|
@@ -1780,15 +1971,18 @@ __decorateClass([
|
|
|
1780
1971
|
__decorateClass([
|
|
1781
1972
|
OneToMany(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.city)
|
|
1782
1973
|
], City.prototype, "freelancerProfile", 2);
|
|
1974
|
+
__decorateClass([
|
|
1975
|
+
OneToMany(() => CompanyProfile, (companyProfile) => companyProfile.city)
|
|
1976
|
+
], City.prototype, "companyProfile", 2);
|
|
1783
1977
|
City = __decorateClass([
|
|
1784
|
-
|
|
1978
|
+
Entity5("cities")
|
|
1785
1979
|
], City);
|
|
1786
1980
|
|
|
1787
1981
|
// src/entities/state.entity.ts
|
|
1788
1982
|
var State = class extends BaseEntity {
|
|
1789
1983
|
};
|
|
1790
1984
|
__decorateClass([
|
|
1791
|
-
|
|
1985
|
+
Column7({
|
|
1792
1986
|
name: "country_id",
|
|
1793
1987
|
type: "int",
|
|
1794
1988
|
nullable: false,
|
|
@@ -1796,14 +1990,14 @@ __decorateClass([
|
|
|
1796
1990
|
})
|
|
1797
1991
|
], State.prototype, "countryId", 2);
|
|
1798
1992
|
__decorateClass([
|
|
1799
|
-
|
|
1800
|
-
|
|
1993
|
+
ManyToOne6(() => Country, (country) => country.states),
|
|
1994
|
+
JoinColumn6({ name: "country_id" })
|
|
1801
1995
|
], State.prototype, "country", 2);
|
|
1802
1996
|
__decorateClass([
|
|
1803
1997
|
OneToMany2(() => City, (city) => city.state)
|
|
1804
1998
|
], State.prototype, "cities", 2);
|
|
1805
1999
|
__decorateClass([
|
|
1806
|
-
|
|
2000
|
+
Column7({
|
|
1807
2001
|
name: "state_name",
|
|
1808
2002
|
type: "varchar",
|
|
1809
2003
|
length: 100,
|
|
@@ -1812,7 +2006,7 @@ __decorateClass([
|
|
|
1812
2006
|
})
|
|
1813
2007
|
], State.prototype, "stateName", 2);
|
|
1814
2008
|
__decorateClass([
|
|
1815
|
-
|
|
2009
|
+
Column7({
|
|
1816
2010
|
name: "state_code",
|
|
1817
2011
|
type: "varchar",
|
|
1818
2012
|
nullable: true,
|
|
@@ -1820,7 +2014,7 @@ __decorateClass([
|
|
|
1820
2014
|
})
|
|
1821
2015
|
], State.prototype, "stateCode", 2);
|
|
1822
2016
|
__decorateClass([
|
|
1823
|
-
|
|
2017
|
+
Column7({
|
|
1824
2018
|
name: "is_active",
|
|
1825
2019
|
type: "boolean",
|
|
1826
2020
|
default: true,
|
|
@@ -1830,15 +2024,18 @@ __decorateClass([
|
|
|
1830
2024
|
__decorateClass([
|
|
1831
2025
|
OneToMany2(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.state)
|
|
1832
2026
|
], State.prototype, "freelancerProfile", 2);
|
|
2027
|
+
__decorateClass([
|
|
2028
|
+
OneToMany2(() => CompanyProfile, (companyProfile) => companyProfile.state)
|
|
2029
|
+
], State.prototype, "companyProfile", 2);
|
|
1833
2030
|
State = __decorateClass([
|
|
1834
|
-
|
|
2031
|
+
Entity6("states")
|
|
1835
2032
|
], State);
|
|
1836
2033
|
|
|
1837
2034
|
// src/entities/country.entity.ts
|
|
1838
2035
|
var Country = class extends BaseEntity {
|
|
1839
2036
|
};
|
|
1840
2037
|
__decorateClass([
|
|
1841
|
-
|
|
2038
|
+
Column8({
|
|
1842
2039
|
name: "country_name",
|
|
1843
2040
|
type: "varchar",
|
|
1844
2041
|
length: 100,
|
|
@@ -1848,7 +2045,7 @@ __decorateClass([
|
|
|
1848
2045
|
})
|
|
1849
2046
|
], Country.prototype, "countryName", 2);
|
|
1850
2047
|
__decorateClass([
|
|
1851
|
-
|
|
2048
|
+
Column8({
|
|
1852
2049
|
name: "country_iso_code",
|
|
1853
2050
|
type: "varchar",
|
|
1854
2051
|
length: 2,
|
|
@@ -1859,7 +2056,7 @@ __decorateClass([
|
|
|
1859
2056
|
})
|
|
1860
2057
|
], Country.prototype, "countryIsoCode", 2);
|
|
1861
2058
|
__decorateClass([
|
|
1862
|
-
|
|
2059
|
+
Column8({
|
|
1863
2060
|
name: "country_phone_code",
|
|
1864
2061
|
type: "varchar",
|
|
1865
2062
|
length: 10,
|
|
@@ -1868,7 +2065,7 @@ __decorateClass([
|
|
|
1868
2065
|
})
|
|
1869
2066
|
], Country.prototype, "countryPhoneCode", 2);
|
|
1870
2067
|
__decorateClass([
|
|
1871
|
-
|
|
2068
|
+
Column8({
|
|
1872
2069
|
name: "currency",
|
|
1873
2070
|
type: "varchar",
|
|
1874
2071
|
length: 3,
|
|
@@ -1877,7 +2074,7 @@ __decorateClass([
|
|
|
1877
2074
|
})
|
|
1878
2075
|
], Country.prototype, "currency", 2);
|
|
1879
2076
|
__decorateClass([
|
|
1880
|
-
|
|
2077
|
+
Column8({
|
|
1881
2078
|
name: "is_active",
|
|
1882
2079
|
type: "boolean",
|
|
1883
2080
|
default: true,
|
|
@@ -1890,8 +2087,11 @@ __decorateClass([
|
|
|
1890
2087
|
__decorateClass([
|
|
1891
2088
|
OneToMany3(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.country)
|
|
1892
2089
|
], Country.prototype, "freelancerProfile", 2);
|
|
2090
|
+
__decorateClass([
|
|
2091
|
+
OneToMany3(() => CompanyProfile, (companyProfile) => companyProfile.country)
|
|
2092
|
+
], Country.prototype, "companyProfile", 2);
|
|
1893
2093
|
Country = __decorateClass([
|
|
1894
|
-
|
|
2094
|
+
Entity7("countries")
|
|
1895
2095
|
], Country);
|
|
1896
2096
|
|
|
1897
2097
|
// src/entities/freelancer-profile.entity.ts
|
|
@@ -1943,51 +2143,51 @@ var FreelancerProfile = class extends BaseEntity {
|
|
|
1943
2143
|
};
|
|
1944
2144
|
// individual index to find profile by user
|
|
1945
2145
|
__decorateClass([
|
|
1946
|
-
|
|
1947
|
-
|
|
2146
|
+
Column9({ name: "user_id", type: "integer", nullable: true }),
|
|
2147
|
+
Index4()
|
|
1948
2148
|
], FreelancerProfile.prototype, "userId", 2);
|
|
1949
2149
|
__decorateClass([
|
|
1950
|
-
|
|
1951
|
-
|
|
2150
|
+
ManyToOne7(() => User, (user) => user.freelancerProfile),
|
|
2151
|
+
JoinColumn7({ name: "user_id" })
|
|
1952
2152
|
], FreelancerProfile.prototype, "user", 2);
|
|
1953
2153
|
__decorateClass([
|
|
1954
|
-
|
|
2154
|
+
Column9({ name: "country_id", type: "integer", nullable: true })
|
|
1955
2155
|
], FreelancerProfile.prototype, "countryId", 2);
|
|
1956
2156
|
__decorateClass([
|
|
1957
|
-
|
|
1958
|
-
|
|
2157
|
+
ManyToOne7(() => Country, (country) => country.freelancerProfile),
|
|
2158
|
+
JoinColumn7({ name: "country_id" })
|
|
1959
2159
|
], FreelancerProfile.prototype, "country", 2);
|
|
1960
2160
|
__decorateClass([
|
|
1961
|
-
|
|
2161
|
+
Column9({ name: "state_id", type: "integer", nullable: true })
|
|
1962
2162
|
], FreelancerProfile.prototype, "stateId", 2);
|
|
1963
2163
|
__decorateClass([
|
|
1964
|
-
|
|
1965
|
-
|
|
2164
|
+
ManyToOne7(() => State, (state) => state.freelancerProfile),
|
|
2165
|
+
JoinColumn7({ name: "state_id" })
|
|
1966
2166
|
], FreelancerProfile.prototype, "state", 2);
|
|
1967
2167
|
__decorateClass([
|
|
1968
|
-
|
|
2168
|
+
Column9({ name: "city_id", type: "integer", nullable: true })
|
|
1969
2169
|
], FreelancerProfile.prototype, "cityId", 2);
|
|
1970
2170
|
__decorateClass([
|
|
1971
|
-
|
|
1972
|
-
|
|
2171
|
+
ManyToOne7(() => City, (city) => city.freelancerProfile),
|
|
2172
|
+
JoinColumn7({ name: "city_id" })
|
|
1973
2173
|
], FreelancerProfile.prototype, "city", 2);
|
|
1974
2174
|
__decorateClass([
|
|
1975
|
-
|
|
2175
|
+
Column9({ name: "talent_id", type: "varchar", nullable: true })
|
|
1976
2176
|
], FreelancerProfile.prototype, "talentId", 2);
|
|
1977
2177
|
__decorateClass([
|
|
1978
|
-
|
|
2178
|
+
Column9({ name: "resume_url", type: "text", nullable: true })
|
|
1979
2179
|
], FreelancerProfile.prototype, "resumeUrl", 2);
|
|
1980
2180
|
__decorateClass([
|
|
1981
|
-
|
|
2181
|
+
Column9({ name: "resume_uploaded_on", type: "timestamp with time zone", nullable: true })
|
|
1982
2182
|
], FreelancerProfile.prototype, "resumeUploadedOn", 2);
|
|
1983
2183
|
__decorateClass([
|
|
1984
|
-
|
|
2184
|
+
Column9({ name: "resume_eligibility", type: "varchar", nullable: true })
|
|
1985
2185
|
], FreelancerProfile.prototype, "resumeEligibility", 2);
|
|
1986
2186
|
__decorateClass([
|
|
1987
|
-
|
|
2187
|
+
Column9({ name: "resume_score", type: "jsonb", nullable: true })
|
|
1988
2188
|
], FreelancerProfile.prototype, "resumeScore", 2);
|
|
1989
2189
|
__decorateClass([
|
|
1990
|
-
|
|
2190
|
+
Column9({
|
|
1991
2191
|
name: "mcq_status",
|
|
1992
2192
|
type: "enum",
|
|
1993
2193
|
enum: McqStatusEnum,
|
|
@@ -1995,13 +2195,13 @@ __decorateClass([
|
|
|
1995
2195
|
})
|
|
1996
2196
|
], FreelancerProfile.prototype, "mcqStatus", 2);
|
|
1997
2197
|
__decorateClass([
|
|
1998
|
-
|
|
2198
|
+
Column9({ name: "mcq_score", type: "float", nullable: true })
|
|
1999
2199
|
], FreelancerProfile.prototype, "mcqScore", 2);
|
|
2000
2200
|
__decorateClass([
|
|
2001
|
-
|
|
2201
|
+
Column9({ name: "is_eligible_for_ai_assessment", type: "boolean", nullable: true })
|
|
2002
2202
|
], FreelancerProfile.prototype, "isEligibleForAiAssessment", 2);
|
|
2003
2203
|
__decorateClass([
|
|
2004
|
-
|
|
2204
|
+
Column9({
|
|
2005
2205
|
name: "ai_assessment_status",
|
|
2006
2206
|
type: "enum",
|
|
2007
2207
|
enum: AiAssessmentStatusEnum,
|
|
@@ -2009,10 +2209,10 @@ __decorateClass([
|
|
|
2009
2209
|
})
|
|
2010
2210
|
], FreelancerProfile.prototype, "aiAssessmentStatus", 2);
|
|
2011
2211
|
__decorateClass([
|
|
2012
|
-
|
|
2212
|
+
Column9({ name: "is_developer", type: "boolean", default: false })
|
|
2013
2213
|
], FreelancerProfile.prototype, "isDeveloper", 2);
|
|
2014
2214
|
__decorateClass([
|
|
2015
|
-
|
|
2215
|
+
Column9({
|
|
2016
2216
|
name: "nature_of_work",
|
|
2017
2217
|
type: "enum",
|
|
2018
2218
|
enum: NatureOfWork,
|
|
@@ -2020,7 +2220,7 @@ __decorateClass([
|
|
|
2020
2220
|
})
|
|
2021
2221
|
], FreelancerProfile.prototype, "natureOfWork", 2);
|
|
2022
2222
|
__decorateClass([
|
|
2023
|
-
|
|
2223
|
+
Column9({
|
|
2024
2224
|
name: "number_of_hours",
|
|
2025
2225
|
type: "decimal",
|
|
2026
2226
|
precision: 4,
|
|
@@ -2029,10 +2229,10 @@ __decorateClass([
|
|
|
2029
2229
|
})
|
|
2030
2230
|
], FreelancerProfile.prototype, "numberOfHours", 2);
|
|
2031
2231
|
__decorateClass([
|
|
2032
|
-
|
|
2232
|
+
Column9({ name: "currency", type: "varchar", default: "USD" })
|
|
2033
2233
|
], FreelancerProfile.prototype, "currency", 2);
|
|
2034
2234
|
__decorateClass([
|
|
2035
|
-
|
|
2235
|
+
Column9({
|
|
2036
2236
|
name: "expected_hourly_compensation",
|
|
2037
2237
|
type: "numeric",
|
|
2038
2238
|
precision: 10,
|
|
@@ -2041,7 +2241,7 @@ __decorateClass([
|
|
|
2041
2241
|
})
|
|
2042
2242
|
], FreelancerProfile.prototype, "expectedHourlyCompensation", 2);
|
|
2043
2243
|
__decorateClass([
|
|
2044
|
-
|
|
2244
|
+
Column9({
|
|
2045
2245
|
name: "mode_of_work",
|
|
2046
2246
|
type: "enum",
|
|
2047
2247
|
enum: ModeOfWork,
|
|
@@ -2049,32 +2249,32 @@ __decorateClass([
|
|
|
2049
2249
|
})
|
|
2050
2250
|
], FreelancerProfile.prototype, "modeOfWork", 2);
|
|
2051
2251
|
__decorateClass([
|
|
2052
|
-
|
|
2252
|
+
Column9({ name: "availability_to_join", type: "varchar", nullable: true })
|
|
2053
2253
|
], FreelancerProfile.prototype, "availabilityToJoin", 2);
|
|
2054
2254
|
__decorateClass([
|
|
2055
|
-
|
|
2255
|
+
Column9({ name: "is_immediate_joiner", type: "boolean", nullable: true })
|
|
2056
2256
|
], FreelancerProfile.prototype, "isImmediateJoiner", 2);
|
|
2057
2257
|
__decorateClass([
|
|
2058
|
-
|
|
2258
|
+
Column9({ name: "linkedin_profile_link", type: "varchar", nullable: true })
|
|
2059
2259
|
], FreelancerProfile.prototype, "linkedinProfileLink", 2);
|
|
2060
2260
|
__decorateClass([
|
|
2061
|
-
|
|
2261
|
+
Column9({ name: "kaggle_profile_link", type: "varchar", nullable: true })
|
|
2062
2262
|
], FreelancerProfile.prototype, "kaggleProfileLink", 2);
|
|
2063
2263
|
__decorateClass([
|
|
2064
|
-
|
|
2264
|
+
Column9({ name: "github_profile_link", type: "varchar", nullable: true })
|
|
2065
2265
|
], FreelancerProfile.prototype, "githubProfileLink", 2);
|
|
2066
2266
|
__decorateClass([
|
|
2067
|
-
|
|
2267
|
+
Column9({
|
|
2068
2268
|
name: "stack_overflow_profile_link",
|
|
2069
2269
|
type: "varchar",
|
|
2070
2270
|
nullable: true
|
|
2071
2271
|
})
|
|
2072
2272
|
], FreelancerProfile.prototype, "stackOverflowProfileLink", 2);
|
|
2073
2273
|
__decorateClass([
|
|
2074
|
-
|
|
2274
|
+
Column9({ name: "portfolio_link", type: "varchar", nullable: true })
|
|
2075
2275
|
], FreelancerProfile.prototype, "portfolioLink", 2);
|
|
2076
2276
|
__decorateClass([
|
|
2077
|
-
|
|
2277
|
+
Column9({
|
|
2078
2278
|
name: "onboarding_step_completed",
|
|
2079
2279
|
type: "enum",
|
|
2080
2280
|
enum: OnboardingStepEnum,
|
|
@@ -2082,19 +2282,25 @@ __decorateClass([
|
|
|
2082
2282
|
})
|
|
2083
2283
|
], FreelancerProfile.prototype, "onboardingStepCompleted", 2);
|
|
2084
2284
|
__decorateClass([
|
|
2085
|
-
|
|
2285
|
+
Column9({ name: "designation", type: "varchar", nullable: true })
|
|
2086
2286
|
], FreelancerProfile.prototype, "designation", 2);
|
|
2087
2287
|
__decorateClass([
|
|
2088
|
-
|
|
2288
|
+
Column9({ name: "experience", type: "varchar", nullable: true })
|
|
2089
2289
|
], FreelancerProfile.prototype, "experience", 2);
|
|
2090
2290
|
__decorateClass([
|
|
2091
|
-
|
|
2291
|
+
Column9({ name: "address", type: "varchar", nullable: true })
|
|
2092
2292
|
], FreelancerProfile.prototype, "address", 2);
|
|
2093
2293
|
__decorateClass([
|
|
2094
|
-
|
|
2294
|
+
Column9({ name: "address_line", type: "varchar", nullable: true })
|
|
2295
|
+
], FreelancerProfile.prototype, "addressLine", 2);
|
|
2296
|
+
__decorateClass([
|
|
2297
|
+
Column9({ name: "postal_code", type: "varchar", nullable: true })
|
|
2298
|
+
], FreelancerProfile.prototype, "postalCode", 2);
|
|
2299
|
+
__decorateClass([
|
|
2300
|
+
Column9({ name: "about", type: "varchar", nullable: true })
|
|
2095
2301
|
], FreelancerProfile.prototype, "about", 2);
|
|
2096
2302
|
__decorateClass([
|
|
2097
|
-
|
|
2303
|
+
Column9({
|
|
2098
2304
|
name: "profile_completed_percentage",
|
|
2099
2305
|
type: "json",
|
|
2100
2306
|
default: {
|
|
@@ -2108,167 +2314,34 @@ __decorateClass([
|
|
|
2108
2314
|
})
|
|
2109
2315
|
], FreelancerProfile.prototype, "profileCompletedPercentage", 2);
|
|
2110
2316
|
__decorateClass([
|
|
2111
|
-
|
|
2317
|
+
Column9({ name: "original_document_url", type: "varchar", nullable: true })
|
|
2112
2318
|
], FreelancerProfile.prototype, "originalDocumentUrl", 2);
|
|
2113
2319
|
__decorateClass([
|
|
2114
|
-
|
|
2320
|
+
Column9({
|
|
2115
2321
|
name: "is_service_aggrement_signed",
|
|
2116
2322
|
type: "boolean",
|
|
2117
2323
|
default: false
|
|
2118
2324
|
})
|
|
2119
2325
|
], FreelancerProfile.prototype, "isServiceAgreementSigned", 2);
|
|
2120
2326
|
__decorateClass([
|
|
2121
|
-
|
|
2327
|
+
Column9({ name: "service_agreement_url", type: "varchar", nullable: true })
|
|
2122
2328
|
], FreelancerProfile.prototype, "serviceAgreementUrl", 2);
|
|
2123
2329
|
__decorateClass([
|
|
2124
|
-
|
|
2330
|
+
Column9({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
|
|
2125
2331
|
], FreelancerProfile.prototype, "serviceAggrementSignedOn", 2);
|
|
2126
2332
|
__decorateClass([
|
|
2127
|
-
|
|
2333
|
+
Column9({ name: "is_expertshub_verified", type: "boolean", default: false })
|
|
2128
2334
|
], FreelancerProfile.prototype, "isExpertshubVerified", 2);
|
|
2129
2335
|
__decorateClass([
|
|
2130
|
-
|
|
2336
|
+
Column9({ name: "is_followed_on_linkedin", type: "boolean", default: false })
|
|
2131
2337
|
], FreelancerProfile.prototype, "isFollowedOnLinkedIn", 2);
|
|
2132
2338
|
__decorateClass([
|
|
2133
|
-
|
|
2339
|
+
Column9({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
2134
2340
|
], FreelancerProfile.prototype, "signaturePositions", 2);
|
|
2135
2341
|
FreelancerProfile = __decorateClass([
|
|
2136
|
-
|
|
2342
|
+
Entity8("freelancer_profiles")
|
|
2137
2343
|
], FreelancerProfile);
|
|
2138
2344
|
|
|
2139
|
-
// src/entities/company-profile.entity.ts
|
|
2140
|
-
import { Entity as Entity8, Column as Column9, ManyToOne as ManyToOne7, JoinColumn as JoinColumn7, Index as Index4 } from "typeorm";
|
|
2141
|
-
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
2142
|
-
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
2143
|
-
KindOfHire2["PARTTIME"] = "PARTTIME";
|
|
2144
|
-
KindOfHire2["BOTH"] = "BOTH";
|
|
2145
|
-
KindOfHire2["HOURLY"] = "HOURLY";
|
|
2146
|
-
KindOfHire2["FREELANCE"] = "FREELANCE";
|
|
2147
|
-
KindOfHire2["FTE"] = "FTE";
|
|
2148
|
-
return KindOfHire2;
|
|
2149
|
-
})(KindOfHire || {});
|
|
2150
|
-
var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
|
|
2151
|
-
ModeOfHire2["ONSITE"] = "ONSITE";
|
|
2152
|
-
ModeOfHire2["REMOTE"] = "REMOTE";
|
|
2153
|
-
ModeOfHire2["HYBRID"] = "HYBRID";
|
|
2154
|
-
ModeOfHire2["BOTH"] = "BOTH";
|
|
2155
|
-
return ModeOfHire2;
|
|
2156
|
-
})(ModeOfHire || {});
|
|
2157
|
-
var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
|
|
2158
|
-
FromUsOn2["LINKEDIN"] = "LINKEDIN";
|
|
2159
|
-
FromUsOn2["GOOGLE"] = "GOOGLE";
|
|
2160
|
-
FromUsOn2["REFERRAL"] = "REFERRAL";
|
|
2161
|
-
FromUsOn2["OTHER"] = "OTHER";
|
|
2162
|
-
return FromUsOn2;
|
|
2163
|
-
})(FromUsOn || {});
|
|
2164
|
-
var CompanyOnboardingStepEnum = /* @__PURE__ */ ((CompanyOnboardingStepEnum2) => {
|
|
2165
|
-
CompanyOnboardingStepEnum2["SIGN_UP"] = "SIGN_UP";
|
|
2166
|
-
CompanyOnboardingStepEnum2["PROFILE_COMPLETION"] = "PROFILE_COMPLETION";
|
|
2167
|
-
return CompanyOnboardingStepEnum2;
|
|
2168
|
-
})(CompanyOnboardingStepEnum || {});
|
|
2169
|
-
var CompanyProfile = class extends BaseEntity {
|
|
2170
|
-
// stores the positions JSON
|
|
2171
|
-
};
|
|
2172
|
-
// individual index to find company profile by user
|
|
2173
|
-
__decorateClass([
|
|
2174
|
-
Column9({ name: "user_id", type: "integer", nullable: true }),
|
|
2175
|
-
Index4()
|
|
2176
|
-
], CompanyProfile.prototype, "userId", 2);
|
|
2177
|
-
__decorateClass([
|
|
2178
|
-
ManyToOne7(() => User, (user) => user.companyProfile),
|
|
2179
|
-
JoinColumn7({ name: "user_id" })
|
|
2180
|
-
], CompanyProfile.prototype, "user", 2);
|
|
2181
|
-
__decorateClass([
|
|
2182
|
-
Column9({ name: "company_name", type: "varchar", nullable: true })
|
|
2183
|
-
], CompanyProfile.prototype, "companyName", 2);
|
|
2184
|
-
__decorateClass([
|
|
2185
|
-
Column9({ name: "bio", type: "varchar", nullable: true })
|
|
2186
|
-
], CompanyProfile.prototype, "bio", 2);
|
|
2187
|
-
__decorateClass([
|
|
2188
|
-
Column9({ name: "website", type: "varchar", nullable: true })
|
|
2189
|
-
], CompanyProfile.prototype, "webSite", 2);
|
|
2190
|
-
__decorateClass([
|
|
2191
|
-
Column9({ name: "about_company", type: "varchar", nullable: true })
|
|
2192
|
-
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
2193
|
-
__decorateClass([
|
|
2194
|
-
Column9({
|
|
2195
|
-
name: "is_service_aggrement_signed",
|
|
2196
|
-
type: "boolean",
|
|
2197
|
-
default: false
|
|
2198
|
-
})
|
|
2199
|
-
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
2200
|
-
__decorateClass([
|
|
2201
|
-
Column9({ name: "original_document_url", type: "varchar", nullable: true })
|
|
2202
|
-
], CompanyProfile.prototype, "originalDocumentUrl", 2);
|
|
2203
|
-
__decorateClass([
|
|
2204
|
-
Column9({ name: "service_agreement_url", type: "varchar", nullable: true })
|
|
2205
|
-
], CompanyProfile.prototype, "serviceAgreementUrl", 2);
|
|
2206
|
-
__decorateClass([
|
|
2207
|
-
Column9({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
|
|
2208
|
-
], CompanyProfile.prototype, "serviceAggrementSignedOn", 2);
|
|
2209
|
-
__decorateClass([
|
|
2210
|
-
Column9({ name: "company_address", type: "varchar", nullable: true })
|
|
2211
|
-
], CompanyProfile.prototype, "companyAddress", 2);
|
|
2212
|
-
__decorateClass([
|
|
2213
|
-
Column9({ name: "phone_number", type: "varchar", nullable: true })
|
|
2214
|
-
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
2215
|
-
__decorateClass([
|
|
2216
|
-
Column9("text", { name: "skills", array: true, nullable: true })
|
|
2217
|
-
], CompanyProfile.prototype, "skills", 2);
|
|
2218
|
-
__decorateClass([
|
|
2219
|
-
Column9({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
2220
|
-
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
2221
|
-
__decorateClass([
|
|
2222
|
-
Column9({
|
|
2223
|
-
name: "kind_of_hiring",
|
|
2224
|
-
type: "enum",
|
|
2225
|
-
enum: KindOfHire,
|
|
2226
|
-
nullable: true
|
|
2227
|
-
})
|
|
2228
|
-
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
2229
|
-
__decorateClass([
|
|
2230
|
-
Column9({
|
|
2231
|
-
name: "number_of_hours",
|
|
2232
|
-
type: "decimal",
|
|
2233
|
-
precision: 4,
|
|
2234
|
-
scale: 2,
|
|
2235
|
-
nullable: true
|
|
2236
|
-
})
|
|
2237
|
-
], CompanyProfile.prototype, "numberOfHours", 2);
|
|
2238
|
-
__decorateClass([
|
|
2239
|
-
Column9({
|
|
2240
|
-
name: "mode_of_hire",
|
|
2241
|
-
type: "enum",
|
|
2242
|
-
enum: ModeOfHire,
|
|
2243
|
-
nullable: true
|
|
2244
|
-
})
|
|
2245
|
-
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
2246
|
-
__decorateClass([
|
|
2247
|
-
Column9({
|
|
2248
|
-
name: "found_us_on",
|
|
2249
|
-
type: "enum",
|
|
2250
|
-
enum: FromUsOn,
|
|
2251
|
-
nullable: true
|
|
2252
|
-
})
|
|
2253
|
-
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
2254
|
-
__decorateClass([
|
|
2255
|
-
Column9({ name: "found_us_on_detail", type: "varchar", nullable: true })
|
|
2256
|
-
], CompanyProfile.prototype, "foundUsOnDetail", 2);
|
|
2257
|
-
__decorateClass([
|
|
2258
|
-
Column9({
|
|
2259
|
-
name: "onboarding_step_completed",
|
|
2260
|
-
type: "enum",
|
|
2261
|
-
enum: CompanyOnboardingStepEnum,
|
|
2262
|
-
nullable: true
|
|
2263
|
-
})
|
|
2264
|
-
], CompanyProfile.prototype, "onboardingStepCompleted", 2);
|
|
2265
|
-
__decorateClass([
|
|
2266
|
-
Column9({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
2267
|
-
], CompanyProfile.prototype, "signaturePositions", 2);
|
|
2268
|
-
CompanyProfile = __decorateClass([
|
|
2269
|
-
Entity8("company_profiles")
|
|
2270
|
-
], CompanyProfile);
|
|
2271
|
-
|
|
2272
2345
|
// src/entities/job.entity.ts
|
|
2273
2346
|
import {
|
|
2274
2347
|
Entity as Entity27,
|
|
@@ -2472,6 +2545,11 @@ InterviewSkill = __decorateClass([
|
|
|
2472
2545
|
|
|
2473
2546
|
// src/entities/interview-question.entity.ts
|
|
2474
2547
|
import { Entity as Entity12, Column as Column13, Index as Index8, ManyToOne as ManyToOne11, JoinColumn as JoinColumn11 } from "typeorm";
|
|
2548
|
+
var InterviewQuestionType = /* @__PURE__ */ ((InterviewQuestionType2) => {
|
|
2549
|
+
InterviewQuestionType2["AI"] = "AI";
|
|
2550
|
+
InterviewQuestionType2["CUSTOM"] = "CUSTOM";
|
|
2551
|
+
return InterviewQuestionType2;
|
|
2552
|
+
})(InterviewQuestionType || {});
|
|
2475
2553
|
var InterviewQuestion = class extends BaseEntity {
|
|
2476
2554
|
};
|
|
2477
2555
|
__decorateClass([
|
|
@@ -2479,7 +2557,7 @@ __decorateClass([
|
|
|
2479
2557
|
Index8()
|
|
2480
2558
|
], InterviewQuestion.prototype, "interviewId", 2);
|
|
2481
2559
|
__decorateClass([
|
|
2482
|
-
ManyToOne11(() => Interview, (interview) => interview.
|
|
2560
|
+
ManyToOne11(() => Interview, (interview) => interview.interviewQuestions, {
|
|
2483
2561
|
onDelete: "CASCADE"
|
|
2484
2562
|
}),
|
|
2485
2563
|
JoinColumn11({ name: "interview_id" })
|
|
@@ -2487,6 +2565,22 @@ __decorateClass([
|
|
|
2487
2565
|
__decorateClass([
|
|
2488
2566
|
Column13({ name: "question", type: "varchar", nullable: true })
|
|
2489
2567
|
], InterviewQuestion.prototype, "question", 2);
|
|
2568
|
+
__decorateClass([
|
|
2569
|
+
Column13({
|
|
2570
|
+
name: "concepts",
|
|
2571
|
+
type: "text",
|
|
2572
|
+
array: true,
|
|
2573
|
+
nullable: true
|
|
2574
|
+
})
|
|
2575
|
+
], InterviewQuestion.prototype, "concepts", 2);
|
|
2576
|
+
__decorateClass([
|
|
2577
|
+
Column13({
|
|
2578
|
+
name: "question_type",
|
|
2579
|
+
type: "enum",
|
|
2580
|
+
enum: InterviewQuestionType,
|
|
2581
|
+
nullable: true
|
|
2582
|
+
})
|
|
2583
|
+
], InterviewQuestion.prototype, "questionType", 2);
|
|
2490
2584
|
__decorateClass([
|
|
2491
2585
|
Column13({ name: "is_active", type: "boolean", default: true })
|
|
2492
2586
|
], InterviewQuestion.prototype, "isActive", 2);
|
|
@@ -5983,7 +6077,7 @@ import {
|
|
|
5983
6077
|
IsBoolean as IsBoolean10,
|
|
5984
6078
|
IsOptional as IsOptional26,
|
|
5985
6079
|
IsEnum as IsEnum16,
|
|
5986
|
-
IsNumber as
|
|
6080
|
+
IsNumber as IsNumber4,
|
|
5987
6081
|
IsUrl as IsUrl3,
|
|
5988
6082
|
Min as Min3,
|
|
5989
6083
|
MaxLength as MaxLength15,
|
|
@@ -6044,7 +6138,7 @@ __decorateClass([
|
|
|
6044
6138
|
})
|
|
6045
6139
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
6046
6140
|
__decorateClass([
|
|
6047
|
-
|
|
6141
|
+
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
6048
6142
|
Min3(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
6049
6143
|
Type7(() => Number)
|
|
6050
6144
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
@@ -6091,7 +6185,7 @@ import {
|
|
|
6091
6185
|
IsBoolean as IsBoolean11,
|
|
6092
6186
|
IsOptional as IsOptional27,
|
|
6093
6187
|
IsEnum as IsEnum17,
|
|
6094
|
-
IsNumber as
|
|
6188
|
+
IsNumber as IsNumber5,
|
|
6095
6189
|
IsUrl as IsUrl4,
|
|
6096
6190
|
Min as Min4,
|
|
6097
6191
|
MaxLength as MaxLength16,
|
|
@@ -6156,7 +6250,7 @@ __decorateClass([
|
|
|
6156
6250
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
6157
6251
|
__decorateClass([
|
|
6158
6252
|
IsOptional27(),
|
|
6159
|
-
|
|
6253
|
+
IsNumber5({}, { message: "Expected hourly compensation must be a number" }),
|
|
6160
6254
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
6161
6255
|
Type8(() => Number)
|
|
6162
6256
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
@@ -6485,7 +6579,7 @@ import {
|
|
|
6485
6579
|
IsNotEmpty as IsNotEmpty52,
|
|
6486
6580
|
ArrayNotEmpty as ArrayNotEmpty6,
|
|
6487
6581
|
Min as Min5,
|
|
6488
|
-
IsNumber as
|
|
6582
|
+
IsNumber as IsNumber6
|
|
6489
6583
|
} from "class-validator";
|
|
6490
6584
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
6491
6585
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -6546,11 +6640,11 @@ __decorateClass([
|
|
|
6546
6640
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
6547
6641
|
__decorateClass([
|
|
6548
6642
|
Type9(() => Number),
|
|
6549
|
-
|
|
6643
|
+
IsNumber6({}, { message: "Expected salary from must be a number." })
|
|
6550
6644
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6551
6645
|
__decorateClass([
|
|
6552
6646
|
Type9(() => Number),
|
|
6553
|
-
|
|
6647
|
+
IsNumber6({}, { message: "Expected salary to must be a number." })
|
|
6554
6648
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6555
6649
|
__decorateClass([
|
|
6556
6650
|
IsDateString4(
|
|
@@ -6593,7 +6687,7 @@ import {
|
|
|
6593
6687
|
IsNotEmpty as IsNotEmpty53,
|
|
6594
6688
|
ArrayNotEmpty as ArrayNotEmpty7,
|
|
6595
6689
|
Min as Min6,
|
|
6596
|
-
IsNumber as
|
|
6690
|
+
IsNumber as IsNumber7
|
|
6597
6691
|
} from "class-validator";
|
|
6598
6692
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
6599
6693
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
@@ -6654,11 +6748,11 @@ __decorateClass([
|
|
|
6654
6748
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
6655
6749
|
__decorateClass([
|
|
6656
6750
|
Type10(() => Number),
|
|
6657
|
-
|
|
6751
|
+
IsNumber7({}, { message: "Expected salary from must be a number." })
|
|
6658
6752
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6659
6753
|
__decorateClass([
|
|
6660
6754
|
Type10(() => Number),
|
|
6661
|
-
|
|
6755
|
+
IsNumber7({}, { message: "Expected salary to must be a number." })
|
|
6662
6756
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6663
6757
|
__decorateClass([
|
|
6664
6758
|
IsDateString5(
|
|
@@ -6880,7 +6974,7 @@ import {
|
|
|
6880
6974
|
IsString as IsString40,
|
|
6881
6975
|
IsNotEmpty as IsNotEmpty58,
|
|
6882
6976
|
IsEmail as IsEmail16,
|
|
6883
|
-
IsNumber as
|
|
6977
|
+
IsNumber as IsNumber8
|
|
6884
6978
|
} from "class-validator";
|
|
6885
6979
|
var CreateF2FInterviewDto = class {
|
|
6886
6980
|
};
|
|
@@ -6893,10 +6987,10 @@ __decorateClass([
|
|
|
6893
6987
|
IsNotEmpty58({ message: "Invitee name is required." })
|
|
6894
6988
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
6895
6989
|
__decorateClass([
|
|
6896
|
-
|
|
6990
|
+
IsNumber8({}, { message: "Interview ID must be a number." })
|
|
6897
6991
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
6898
6992
|
__decorateClass([
|
|
6899
|
-
|
|
6993
|
+
IsNumber8({}, { message: "Candidate ID must be a number." })
|
|
6900
6994
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
6901
6995
|
|
|
6902
6996
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
@@ -6904,7 +6998,7 @@ import {
|
|
|
6904
6998
|
IsString as IsString41,
|
|
6905
6999
|
IsNotEmpty as IsNotEmpty59,
|
|
6906
7000
|
IsEmail as IsEmail17,
|
|
6907
|
-
IsNumber as
|
|
7001
|
+
IsNumber as IsNumber9
|
|
6908
7002
|
} from "class-validator";
|
|
6909
7003
|
var CreateF2FInterviewDirectDto = class {
|
|
6910
7004
|
};
|
|
@@ -6917,10 +7011,10 @@ __decorateClass([
|
|
|
6917
7011
|
IsNotEmpty59({ message: "Invitee name is required." })
|
|
6918
7012
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
6919
7013
|
__decorateClass([
|
|
6920
|
-
|
|
7014
|
+
IsNumber9({}, { message: "Job ID must be a number." })
|
|
6921
7015
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
6922
7016
|
__decorateClass([
|
|
6923
|
-
|
|
7017
|
+
IsNumber9({}, { message: "Candidate ID must be a number." })
|
|
6924
7018
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
6925
7019
|
|
|
6926
7020
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
@@ -6964,19 +7058,19 @@ var CONTRACT_PATTERN = {
|
|
|
6964
7058
|
};
|
|
6965
7059
|
|
|
6966
7060
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
6967
|
-
import { IsEnum as IsEnum25, IsNotEmpty as IsNotEmpty61, IsNumber as
|
|
7061
|
+
import { IsEnum as IsEnum25, IsNotEmpty as IsNotEmpty61, IsNumber as IsNumber10 } from "class-validator";
|
|
6968
7062
|
import { Type as Type12 } from "class-transformer";
|
|
6969
7063
|
var SignContractForClientDto = class {
|
|
6970
7064
|
};
|
|
6971
7065
|
__decorateClass([
|
|
6972
7066
|
IsNotEmpty61({ message: "Job Id is required." }),
|
|
6973
7067
|
Type12(() => Number),
|
|
6974
|
-
|
|
7068
|
+
IsNumber10({}, { message: "Job ID must be a number." })
|
|
6975
7069
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
6976
7070
|
__decorateClass([
|
|
6977
7071
|
IsNotEmpty61({ message: "Freelancer ID is required." }),
|
|
6978
7072
|
Type12(() => Number),
|
|
6979
|
-
|
|
7073
|
+
IsNumber10({}, { message: "Freelancer ID must be a number." })
|
|
6980
7074
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
6981
7075
|
__decorateClass([
|
|
6982
7076
|
IsNotEmpty61({ message: "Contract type is required." }),
|
|
@@ -6984,19 +7078,19 @@ __decorateClass([
|
|
|
6984
7078
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
6985
7079
|
|
|
6986
7080
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
6987
|
-
import { IsEnum as IsEnum26, IsNotEmpty as IsNotEmpty62, IsNumber as
|
|
7081
|
+
import { IsEnum as IsEnum26, IsNotEmpty as IsNotEmpty62, IsNumber as IsNumber11 } from "class-validator";
|
|
6988
7082
|
import { Type as Type13 } from "class-transformer";
|
|
6989
7083
|
var SignContractForFreelancerDto = class {
|
|
6990
7084
|
};
|
|
6991
7085
|
__decorateClass([
|
|
6992
7086
|
IsNotEmpty62({ message: "Job Id is required." }),
|
|
6993
7087
|
Type13(() => Number),
|
|
6994
|
-
|
|
7088
|
+
IsNumber11({}, { message: "Job ID must be a number." })
|
|
6995
7089
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
6996
7090
|
__decorateClass([
|
|
6997
7091
|
IsNotEmpty62({ message: "Client ID is required." }),
|
|
6998
7092
|
Type13(() => Number),
|
|
6999
|
-
|
|
7093
|
+
IsNumber11({}, { message: "Client ID must be a number." })
|
|
7000
7094
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
7001
7095
|
__decorateClass([
|
|
7002
7096
|
IsNotEmpty62({ message: "Contract type is required." }),
|
|
@@ -7052,13 +7146,13 @@ import {
|
|
|
7052
7146
|
IsOptional as IsOptional40,
|
|
7053
7147
|
IsString as IsString43,
|
|
7054
7148
|
Matches as Matches13,
|
|
7055
|
-
IsNumber as
|
|
7149
|
+
IsNumber as IsNumber12
|
|
7056
7150
|
} from "class-validator";
|
|
7057
7151
|
var CreateFreelancerTimesheetDto = class {
|
|
7058
7152
|
};
|
|
7059
7153
|
__decorateClass([
|
|
7060
7154
|
IsNotEmpty64({ message: "Job id is required" }),
|
|
7061
|
-
|
|
7155
|
+
IsNumber12({}, { message: "Job id must be a number" })
|
|
7062
7156
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7063
7157
|
__decorateClass([
|
|
7064
7158
|
IsNotEmpty64({ message: "start date is required" }),
|
|
@@ -7108,13 +7202,13 @@ import {
|
|
|
7108
7202
|
IsOptional as IsOptional41,
|
|
7109
7203
|
IsString as IsString44,
|
|
7110
7204
|
Matches as Matches14,
|
|
7111
|
-
IsNumber as
|
|
7205
|
+
IsNumber as IsNumber13
|
|
7112
7206
|
} from "class-validator";
|
|
7113
7207
|
var UpdateFreelancerTimesheetDto = class {
|
|
7114
7208
|
};
|
|
7115
7209
|
__decorateClass([
|
|
7116
7210
|
IsNotEmpty65({ message: "Job id is required" }),
|
|
7117
|
-
|
|
7211
|
+
IsNumber13({}, { message: "Job id must be a number" })
|
|
7118
7212
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7119
7213
|
__decorateClass([
|
|
7120
7214
|
IsNotEmpty65({ message: "start date is required" }),
|
|
@@ -7186,7 +7280,7 @@ import {
|
|
|
7186
7280
|
IsOptional as IsOptional42,
|
|
7187
7281
|
MaxLength as MaxLength19,
|
|
7188
7282
|
IsObject,
|
|
7189
|
-
IsNumber as
|
|
7283
|
+
IsNumber as IsNumber14,
|
|
7190
7284
|
ValidateIf as ValidateIf9
|
|
7191
7285
|
} from "class-validator";
|
|
7192
7286
|
import { Transform as Transform4, Type as Type14 } from "class-transformer";
|
|
@@ -7194,12 +7288,12 @@ var CreateDisputeDto = class {
|
|
|
7194
7288
|
};
|
|
7195
7289
|
__decorateClass([
|
|
7196
7290
|
ValidateIf9((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
7197
|
-
|
|
7291
|
+
IsNumber14({}, { message: "Client id must be a number" }),
|
|
7198
7292
|
Type14(() => Number)
|
|
7199
7293
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
7200
7294
|
__decorateClass([
|
|
7201
7295
|
ValidateIf9((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
7202
|
-
|
|
7296
|
+
IsNumber14({}, { message: "Freelancer id must be a number" }),
|
|
7203
7297
|
Type14(() => Number)
|
|
7204
7298
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
7205
7299
|
__decorateClass([
|
|
@@ -8405,6 +8499,7 @@ export {
|
|
|
8405
8499
|
InterviewInviteDto,
|
|
8406
8500
|
InterviewInviteStatusEnum,
|
|
8407
8501
|
InterviewQuestion,
|
|
8502
|
+
InterviewQuestionType,
|
|
8408
8503
|
InterviewSkill,
|
|
8409
8504
|
InterviewStatusEnum,
|
|
8410
8505
|
Invoice,
|