@experts_hub/shared 1.0.567 → 1.0.569
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/index.d.mts +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +781 -633
- package/dist/index.mjs +710 -573
- package/dist/modules/freelancer-admin/pattern/pattern.d.ts +5 -0
- package/dist/modules/hiring/dto/create-hiring.dto.d.ts +4 -0
- package/dist/modules/hiring/dto/index.d.ts +1 -0
- package/dist/modules/hiring/index.d.ts +1 -0
- package/dist/modules/invoice/dto/create-invoice.dto.d.ts +3 -0
- package/dist/modules/invoice/dto/index.d.ts +1 -0
- package/dist/modules/job/dto/change-job-application-status-bulk.dto.d.ts +5 -0
- package/dist/modules/job/dto/change-job-application-status.dto.d.ts +10 -0
- package/dist/modules/job/dto/close-job.dto.d.ts +3 -0
- package/dist/modules/job/dto/create-job-application.dto.d.ts +4 -0
- package/dist/modules/job/dto/index.d.ts +4 -0
- package/dist/modules/timesheet/dto/approve-timesheets.dto.d.ts +3 -0
- package/dist/modules/timesheet/dto/index.d.ts +4 -0
- package/dist/modules/timesheet/dto/resubmit-timesheet.dto.d.ts +3 -0
- package/dist/modules/timesheet/dto/send-back-timesheets.dto.d.ts +4 -0
- package/dist/modules/timesheet/dto/submit-timesheet.dto.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51,6 +51,7 @@ __export(index_exports, {
|
|
|
51
51
|
AiInterviewStatusEnum: () => AiInterviewStatusEnum,
|
|
52
52
|
AnswerTypeEnum: () => AnswerTypeEnum,
|
|
53
53
|
ApplicationStatusEnum: () => ApplicationStatusEnum,
|
|
54
|
+
ApproveTimesheetsDto: () => ApproveTimesheetsDto,
|
|
54
55
|
AssessmentAnswer: () => AssessmentAnswer,
|
|
55
56
|
AssessmentRequestStatusEnum: () => AssessmentRequestStatusEnum,
|
|
56
57
|
AssessmentStatusEnum: () => AssessmentStatusEnum,
|
|
@@ -79,6 +80,8 @@ __export(index_exports, {
|
|
|
79
80
|
CaseStudyDto: () => CaseStudyDto,
|
|
80
81
|
CategoryEmum: () => CategoryEmum,
|
|
81
82
|
CategoryEmumDto: () => CategoryEmumDto,
|
|
83
|
+
ChangeJobApplicationStatusBulkDto: () => ChangeJobApplicationStatusBulkDto,
|
|
84
|
+
ChangeJobApplicationStatusDto: () => ChangeJobApplicationStatusDto,
|
|
82
85
|
ChatRMQAdapter: () => ChatRMQAdapter,
|
|
83
86
|
ChatTCPAdapter: () => ChatTCPAdapter,
|
|
84
87
|
City: () => City,
|
|
@@ -88,6 +91,7 @@ __export(index_exports, {
|
|
|
88
91
|
ClientCreateAccountDto: () => ClientCreateAccountDto,
|
|
89
92
|
ClientFreelancerRecommendation: () => ClientFreelancerRecommendation,
|
|
90
93
|
ClientProfileQuestionDto: () => ClientProfileQuestionDto,
|
|
94
|
+
CloseJobDto: () => CloseJobDto,
|
|
91
95
|
Cms: () => Cms,
|
|
92
96
|
Commission: () => Commission,
|
|
93
97
|
CommissionTypeEnum: () => CommissionTypeEnum,
|
|
@@ -118,6 +122,9 @@ __export(index_exports, {
|
|
|
118
122
|
CreateF2FInterviewRescheduleRequestDto: () => CreateF2FInterviewRescheduleRequestDto,
|
|
119
123
|
CreateFreelancerDto: () => CreateFreelancerDto,
|
|
120
124
|
CreateFreelancerTimesheetDto: () => CreateFreelancerTimesheetDto,
|
|
125
|
+
CreateHiringDto: () => CreateHiringDto,
|
|
126
|
+
CreateInvoiceDto: () => CreateInvoiceDto,
|
|
127
|
+
CreateJobApplicationDto: () => CreateJobApplicationDto,
|
|
121
128
|
CreateLeadDto: () => CreateLeadDto,
|
|
122
129
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
123
130
|
CreateRatingDto: () => CreateRatingDto,
|
|
@@ -209,6 +216,7 @@ __export(index_exports, {
|
|
|
209
216
|
Job: () => Job,
|
|
210
217
|
JobAdditionalCommentDto: () => JobAdditionalCommentDto,
|
|
211
218
|
JobApplication: () => JobApplication,
|
|
219
|
+
JobApplicationStatus: () => JobApplicationStatus,
|
|
212
220
|
JobBasicInformationDto: () => JobBasicInformationDto,
|
|
213
221
|
JobBasicInformationV2Dto: () => JobBasicInformationV2Dto,
|
|
214
222
|
JobDescriptionDto: () => JobDescriptionDto,
|
|
@@ -273,6 +281,7 @@ __export(index_exports, {
|
|
|
273
281
|
RejectAIInterviewRescheduleRequestDto: () => RejectAIInterviewRescheduleRequestDto,
|
|
274
282
|
ResetPasswordDto: () => ResetPasswordDto,
|
|
275
283
|
ResetPasswordTokenValidationDto: () => ResetPasswordTokenValidationDto,
|
|
284
|
+
ResubmitTimesheetDto: () => ResubmitTimesheetDto,
|
|
276
285
|
ResultStatusEnum: () => ResultStatusEnum,
|
|
277
286
|
SENSELOAF_PATTERN: () => SENSELOAF_PATTERN,
|
|
278
287
|
SIGNATURE_PATTERN: () => SIGNATURE_PATTERN,
|
|
@@ -284,6 +293,7 @@ __export(index_exports, {
|
|
|
284
293
|
SYSTEM_PREFERENCES_PATTERN: () => SYSTEM_PREFERENCES_PATTERN,
|
|
285
294
|
ScopeEnum: () => ScopeEnum,
|
|
286
295
|
SelectedAnswerTypeEnum: () => SelectedAnswerTypeEnum,
|
|
296
|
+
SendBackTimesheetsDto: () => SendBackTimesheetsDto,
|
|
287
297
|
SendGuestOtpDto: () => SendGuestOtpDto,
|
|
288
298
|
SendGuestOtpPurposeEnum: () => SendGuestOtpPurposeEnum,
|
|
289
299
|
SendGuestOtpScopeEnum: () => SendGuestOtpScopeEnum,
|
|
@@ -305,6 +315,7 @@ __export(index_exports, {
|
|
|
305
315
|
StripeTransaction: () => StripeTransaction,
|
|
306
316
|
StripeTransactionStatusEnum: () => StripeTransactionStatusEnum,
|
|
307
317
|
StripeTransactionTypeEnum: () => StripeTransactionTypeEnum,
|
|
318
|
+
SubmitTimesheetDto: () => SubmitTimesheetDto,
|
|
308
319
|
SystemPreference: () => SystemPreference,
|
|
309
320
|
SystemPreferenceDto: () => SystemPreferenceDto,
|
|
310
321
|
SystemPreferenceKey: () => SystemPreferenceKey,
|
|
@@ -1761,6 +1772,63 @@ __decorateClass([
|
|
|
1761
1772
|
(0, import_class_validator38.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1762
1773
|
], JobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
1763
1774
|
|
|
1775
|
+
// src/modules/job/dto/close-job.dto.ts
|
|
1776
|
+
var import_class_validator39 = require("class-validator");
|
|
1777
|
+
var CloseJobDto = class {
|
|
1778
|
+
};
|
|
1779
|
+
__decorateClass([
|
|
1780
|
+
(0, import_class_validator39.IsOptional)(),
|
|
1781
|
+
(0, import_class_validator39.IsString)()
|
|
1782
|
+
], CloseJobDto.prototype, "reason", 2);
|
|
1783
|
+
|
|
1784
|
+
// src/modules/job/dto/create-job-application.dto.ts
|
|
1785
|
+
var import_class_validator40 = require("class-validator");
|
|
1786
|
+
var CreateJobApplicationDto = class {
|
|
1787
|
+
};
|
|
1788
|
+
__decorateClass([
|
|
1789
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Job ID is required" }),
|
|
1790
|
+
(0, import_class_validator40.IsNumber)({}, { message: "Job ID must be a number" })
|
|
1791
|
+
], CreateJobApplicationDto.prototype, "jobId", 2);
|
|
1792
|
+
__decorateClass([
|
|
1793
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1794
|
+
(0, import_class_validator40.IsBoolean)({ message: "isCta must be a boolean" })
|
|
1795
|
+
], CreateJobApplicationDto.prototype, "isCta", 2);
|
|
1796
|
+
|
|
1797
|
+
// src/modules/job/dto/change-job-application-status.dto.ts
|
|
1798
|
+
var import_class_validator41 = require("class-validator");
|
|
1799
|
+
var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
1800
|
+
JobApplicationStatus2["PENDING"] = "PENDING";
|
|
1801
|
+
JobApplicationStatus2["SHORTLISTED"] = "SHORTLISTED";
|
|
1802
|
+
JobApplicationStatus2["REJECTED"] = "REJECTED";
|
|
1803
|
+
JobApplicationStatus2["HIRED"] = "HIRED";
|
|
1804
|
+
JobApplicationStatus2["WITHDRAWN"] = "WITHDRAWN";
|
|
1805
|
+
return JobApplicationStatus2;
|
|
1806
|
+
})(JobApplicationStatus || {});
|
|
1807
|
+
var ChangeJobApplicationStatusDto = class {
|
|
1808
|
+
};
|
|
1809
|
+
__decorateClass([
|
|
1810
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Status is required" }),
|
|
1811
|
+
(0, import_class_validator41.IsEnum)(JobApplicationStatus, {
|
|
1812
|
+
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
1813
|
+
})
|
|
1814
|
+
], ChangeJobApplicationStatusDto.prototype, "status", 2);
|
|
1815
|
+
|
|
1816
|
+
// src/modules/job/dto/change-job-application-status-bulk.dto.ts
|
|
1817
|
+
var import_class_validator42 = require("class-validator");
|
|
1818
|
+
var ChangeJobApplicationStatusBulkDto = class {
|
|
1819
|
+
};
|
|
1820
|
+
__decorateClass([
|
|
1821
|
+
(0, import_class_validator42.IsArray)({ message: "Job application IDs must be an array" }),
|
|
1822
|
+
(0, import_class_validator42.ArrayNotEmpty)({ message: "At least one job application ID is required" }),
|
|
1823
|
+
(0, import_class_validator42.IsNumber)({}, { each: true, message: "Each job application ID must be a number" })
|
|
1824
|
+
], ChangeJobApplicationStatusBulkDto.prototype, "jobApplicationIds", 2);
|
|
1825
|
+
__decorateClass([
|
|
1826
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Status is required" }),
|
|
1827
|
+
(0, import_class_validator42.IsEnum)(JobApplicationStatus, {
|
|
1828
|
+
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
1829
|
+
})
|
|
1830
|
+
], ChangeJobApplicationStatusBulkDto.prototype, "status", 2);
|
|
1831
|
+
|
|
1764
1832
|
// src/modules/user/freelancer-profile/pattern/pattern.ts
|
|
1765
1833
|
var PROFILE_PATTERN = {
|
|
1766
1834
|
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
@@ -1803,25 +1871,25 @@ var FREELANCER_ASSESSMENT_REQUEST_PATTERN = {
|
|
|
1803
1871
|
};
|
|
1804
1872
|
|
|
1805
1873
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1806
|
-
var
|
|
1874
|
+
var import_class_validator43 = require("class-validator");
|
|
1807
1875
|
var FreelancerChangePasswordDto = class {
|
|
1808
1876
|
};
|
|
1809
1877
|
__decorateClass([
|
|
1810
|
-
(0,
|
|
1811
|
-
(0,
|
|
1878
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1879
|
+
(0, import_class_validator43.IsString)()
|
|
1812
1880
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1813
1881
|
__decorateClass([
|
|
1814
|
-
(0,
|
|
1815
|
-
(0,
|
|
1816
|
-
(0,
|
|
1817
|
-
(0,
|
|
1818
|
-
(0,
|
|
1882
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1883
|
+
(0, import_class_validator43.IsString)(),
|
|
1884
|
+
(0, import_class_validator43.MinLength)(6),
|
|
1885
|
+
(0, import_class_validator43.MaxLength)(32),
|
|
1886
|
+
(0, import_class_validator43.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1819
1887
|
message: "New Password must include letters, numbers and symbols."
|
|
1820
1888
|
})
|
|
1821
1889
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1822
1890
|
|
|
1823
1891
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1824
|
-
var
|
|
1892
|
+
var import_class_validator44 = require("class-validator");
|
|
1825
1893
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto3) => {
|
|
1826
1894
|
NatureOfWorkDto3["FREELANCE"] = "FREELANCE";
|
|
1827
1895
|
NatureOfWorkDto3["FTE"] = "FTE";
|
|
@@ -1837,114 +1905,114 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1837
1905
|
var UpdateFreelancerProfileDto = class {
|
|
1838
1906
|
};
|
|
1839
1907
|
__decorateClass([
|
|
1840
|
-
(0,
|
|
1841
|
-
(0,
|
|
1908
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter first name." }),
|
|
1909
|
+
(0, import_class_validator44.IsString)({ message: "Please enter valid first name." })
|
|
1842
1910
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1843
1911
|
__decorateClass([
|
|
1844
|
-
(0,
|
|
1845
|
-
(0,
|
|
1846
|
-
(0,
|
|
1912
|
+
(0, import_class_validator44.IsOptional)(),
|
|
1913
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter last name." }),
|
|
1914
|
+
(0, import_class_validator44.IsString)({ message: "Please enter valid last name." })
|
|
1847
1915
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1848
1916
|
__decorateClass([
|
|
1849
|
-
(0,
|
|
1850
|
-
(0,
|
|
1917
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter designation." }),
|
|
1918
|
+
(0, import_class_validator44.IsString)({ message: "Please enter valid designation." })
|
|
1851
1919
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1852
1920
|
__decorateClass([
|
|
1853
|
-
(0,
|
|
1854
|
-
(0,
|
|
1921
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter experience." }),
|
|
1922
|
+
(0, import_class_validator44.IsString)({ message: "Please enter valid experience." })
|
|
1855
1923
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1856
1924
|
__decorateClass([
|
|
1857
|
-
(0,
|
|
1858
|
-
(0,
|
|
1925
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter email id." }),
|
|
1926
|
+
(0, import_class_validator44.IsEmail)()
|
|
1859
1927
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1860
1928
|
__decorateClass([
|
|
1861
|
-
(0,
|
|
1862
|
-
(0,
|
|
1929
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
1930
|
+
(0, import_class_validator44.IsString)({ message: "Please enter valid mobile code." })
|
|
1863
1931
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1864
1932
|
__decorateClass([
|
|
1865
|
-
(0,
|
|
1866
|
-
(0,
|
|
1933
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
1934
|
+
(0, import_class_validator44.IsString)({ message: "Please enter valid mobile number." })
|
|
1867
1935
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1868
1936
|
__decorateClass([
|
|
1869
|
-
(0,
|
|
1870
|
-
(0,
|
|
1937
|
+
(0, import_class_validator44.IsOptional)(),
|
|
1938
|
+
(0, import_class_validator44.IsNumber)()
|
|
1871
1939
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1872
1940
|
__decorateClass([
|
|
1873
|
-
(0,
|
|
1874
|
-
(0,
|
|
1941
|
+
(0, import_class_validator44.IsOptional)(),
|
|
1942
|
+
(0, import_class_validator44.IsNumber)()
|
|
1875
1943
|
], UpdateFreelancerProfileDto.prototype, "stateId", 2);
|
|
1876
1944
|
__decorateClass([
|
|
1877
|
-
(0,
|
|
1878
|
-
(0,
|
|
1945
|
+
(0, import_class_validator44.IsOptional)(),
|
|
1946
|
+
(0, import_class_validator44.IsNumber)()
|
|
1879
1947
|
], UpdateFreelancerProfileDto.prototype, "cityId", 2);
|
|
1880
1948
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
1881
1949
|
__decorateClass([
|
|
1882
|
-
(0,
|
|
1950
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter expected hourly compensation." })
|
|
1883
1951
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1884
1952
|
__decorateClass([
|
|
1885
|
-
(0,
|
|
1886
|
-
(0,
|
|
1953
|
+
(0, import_class_validator44.ValidateIf)((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
1954
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter expected annual compensation." })
|
|
1887
1955
|
], UpdateFreelancerProfileDto.prototype, "expectedAnnualCompensation", 2);
|
|
1888
1956
|
__decorateClass([
|
|
1889
|
-
(0,
|
|
1890
|
-
(0,
|
|
1891
|
-
(0,
|
|
1957
|
+
(0, import_class_validator44.ValidateIf)((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
1958
|
+
(0, import_class_validator44.IsInt)({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
1959
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter weekly availability hours" })
|
|
1892
1960
|
], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
|
|
1893
1961
|
__decorateClass([
|
|
1894
|
-
(0,
|
|
1895
|
-
(0,
|
|
1962
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please select engagement type." }),
|
|
1963
|
+
(0, import_class_validator44.IsEnum)(NatureOfWorkDto, {
|
|
1896
1964
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1897
1965
|
NatureOfWorkDto
|
|
1898
1966
|
).join(", ")}`
|
|
1899
1967
|
})
|
|
1900
1968
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1901
1969
|
__decorateClass([
|
|
1902
|
-
(0,
|
|
1903
|
-
(0,
|
|
1970
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please select mode of work." }),
|
|
1971
|
+
(0, import_class_validator44.IsEnum)(ModeOfWorkDto, {
|
|
1904
1972
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1905
1973
|
", "
|
|
1906
1974
|
)}`
|
|
1907
1975
|
})
|
|
1908
1976
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1909
1977
|
__decorateClass([
|
|
1910
|
-
(0,
|
|
1911
|
-
(0,
|
|
1978
|
+
(0, import_class_validator44.IsOptional)(),
|
|
1979
|
+
(0, import_class_validator44.IsString)()
|
|
1912
1980
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1913
1981
|
__decorateClass([
|
|
1914
|
-
(0,
|
|
1915
|
-
(0,
|
|
1982
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter address." }),
|
|
1983
|
+
(0, import_class_validator44.IsString)()
|
|
1916
1984
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1917
1985
|
__decorateClass([
|
|
1918
|
-
(0,
|
|
1919
|
-
(0,
|
|
1986
|
+
(0, import_class_validator44.IsOptional)(),
|
|
1987
|
+
(0, import_class_validator44.IsString)()
|
|
1920
1988
|
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
1921
1989
|
__decorateClass([
|
|
1922
|
-
(0,
|
|
1923
|
-
(0,
|
|
1990
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter postalCode." }),
|
|
1991
|
+
(0, import_class_validator44.IsString)()
|
|
1924
1992
|
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
1925
1993
|
__decorateClass([
|
|
1926
|
-
(0,
|
|
1927
|
-
(0,
|
|
1994
|
+
(0, import_class_validator44.IsOptional)(),
|
|
1995
|
+
(0, import_class_validator44.IsString)()
|
|
1928
1996
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1929
1997
|
__decorateClass([
|
|
1930
|
-
(0,
|
|
1931
|
-
(0,
|
|
1998
|
+
(0, import_class_validator44.IsOptional)(),
|
|
1999
|
+
(0, import_class_validator44.IsString)()
|
|
1932
2000
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1933
2001
|
__decorateClass([
|
|
1934
|
-
(0,
|
|
1935
|
-
(0,
|
|
2002
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2003
|
+
(0, import_class_validator44.IsString)()
|
|
1936
2004
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1937
2005
|
__decorateClass([
|
|
1938
|
-
(0,
|
|
1939
|
-
(0,
|
|
2006
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2007
|
+
(0, import_class_validator44.IsString)()
|
|
1940
2008
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1941
2009
|
__decorateClass([
|
|
1942
|
-
(0,
|
|
1943
|
-
(0,
|
|
2010
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2011
|
+
(0, import_class_validator44.IsString)()
|
|
1944
2012
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1945
2013
|
__decorateClass([
|
|
1946
|
-
(0,
|
|
1947
|
-
(0,
|
|
2014
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2015
|
+
(0, import_class_validator44.IsString)()
|
|
1948
2016
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1949
2017
|
|
|
1950
2018
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1958,7 +2026,7 @@ var BANK_PATTERN = {
|
|
|
1958
2026
|
};
|
|
1959
2027
|
|
|
1960
2028
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1961
|
-
var
|
|
2029
|
+
var import_class_validator45 = require("class-validator");
|
|
1962
2030
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1963
2031
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1964
2032
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -1967,51 +2035,51 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1967
2035
|
var FreelancerBankDetailsDto = class {
|
|
1968
2036
|
};
|
|
1969
2037
|
__decorateClass([
|
|
1970
|
-
(0,
|
|
2038
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1971
2039
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1972
2040
|
__decorateClass([
|
|
1973
|
-
(0,
|
|
2041
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter Mobile Code." })
|
|
1974
2042
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
1975
2043
|
__decorateClass([
|
|
1976
|
-
(0,
|
|
2044
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1977
2045
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1978
2046
|
__decorateClass([
|
|
1979
|
-
(0,
|
|
2047
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter Email." })
|
|
1980
2048
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1981
2049
|
__decorateClass([
|
|
1982
|
-
(0,
|
|
2050
|
+
(0, import_class_validator45.IsOptional)()
|
|
1983
2051
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1984
2052
|
__decorateClass([
|
|
1985
|
-
(0,
|
|
2053
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1986
2054
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1987
2055
|
__decorateClass([
|
|
1988
|
-
(0,
|
|
2056
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1989
2057
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1990
2058
|
__decorateClass([
|
|
1991
|
-
(0,
|
|
1992
|
-
(0,
|
|
2059
|
+
(0, import_class_validator45.IsOptional)(),
|
|
2060
|
+
(0, import_class_validator45.IsString)()
|
|
1993
2061
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1994
2062
|
__decorateClass([
|
|
1995
|
-
(0,
|
|
1996
|
-
(0,
|
|
2063
|
+
(0, import_class_validator45.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
2064
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1997
2065
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1998
2066
|
__decorateClass([
|
|
1999
|
-
(0,
|
|
2000
|
-
(0,
|
|
2067
|
+
(0, import_class_validator45.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
2068
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
2001
2069
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
2002
2070
|
__decorateClass([
|
|
2003
|
-
(0,
|
|
2004
|
-
(0,
|
|
2071
|
+
(0, import_class_validator45.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
2072
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
2005
2073
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
2006
2074
|
__decorateClass([
|
|
2007
|
-
(0,
|
|
2008
|
-
(0,
|
|
2075
|
+
(0, import_class_validator45.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
2076
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
2009
2077
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
2010
2078
|
__decorateClass([
|
|
2011
|
-
(0,
|
|
2079
|
+
(0, import_class_validator45.IsOptional)()
|
|
2012
2080
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
2013
2081
|
__decorateClass([
|
|
2014
|
-
(0,
|
|
2082
|
+
(0, import_class_validator45.IsEnum)(BankAccountScope, {
|
|
2015
2083
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
2016
2084
|
BankAccountScope
|
|
2017
2085
|
).join(", ")}`
|
|
@@ -2031,7 +2099,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
2031
2099
|
};
|
|
2032
2100
|
|
|
2033
2101
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
2034
|
-
var
|
|
2102
|
+
var import_class_validator46 = require("class-validator");
|
|
2035
2103
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
2036
2104
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
2037
2105
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -2040,10 +2108,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
2040
2108
|
var SystemPreferenceDto = class {
|
|
2041
2109
|
};
|
|
2042
2110
|
__decorateClass([
|
|
2043
|
-
(0,
|
|
2111
|
+
(0, import_class_validator46.IsBoolean)()
|
|
2044
2112
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
2045
2113
|
__decorateClass([
|
|
2046
|
-
(0,
|
|
2114
|
+
(0, import_class_validator46.IsEnum)(SystemPreferenceKey, {
|
|
2047
2115
|
message: `key must be one of: ${Object.values(
|
|
2048
2116
|
SystemPreferenceKey
|
|
2049
2117
|
).join(", ")}`
|
|
@@ -2088,7 +2156,7 @@ var RATING_PATTERN = {
|
|
|
2088
2156
|
};
|
|
2089
2157
|
|
|
2090
2158
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
2091
|
-
var
|
|
2159
|
+
var import_class_validator47 = require("class-validator");
|
|
2092
2160
|
|
|
2093
2161
|
// src/entities/rating.entity.ts
|
|
2094
2162
|
var import_typeorm65 = require("typeorm");
|
|
@@ -6658,22 +6726,22 @@ Rating = __decorateClass([
|
|
|
6658
6726
|
var CreateRatingDto = class {
|
|
6659
6727
|
};
|
|
6660
6728
|
__decorateClass([
|
|
6661
|
-
(0,
|
|
6662
|
-
(0,
|
|
6729
|
+
(0, import_class_validator47.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
6730
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
6663
6731
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
6664
6732
|
__decorateClass([
|
|
6665
|
-
(0,
|
|
6733
|
+
(0, import_class_validator47.IsEnum)(RatingTypeEnum, {
|
|
6666
6734
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
6667
6735
|
})
|
|
6668
6736
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
6669
6737
|
__decorateClass([
|
|
6670
|
-
(0,
|
|
6671
|
-
(0,
|
|
6672
|
-
(0,
|
|
6738
|
+
(0, import_class_validator47.IsInt)({ message: "Rating must be an integer value" }),
|
|
6739
|
+
(0, import_class_validator47.Min)(1, { message: "Rating must be at least 1" }),
|
|
6740
|
+
(0, import_class_validator47.Max)(5, { message: "Rating must be at most 5" })
|
|
6673
6741
|
], CreateRatingDto.prototype, "rating", 2);
|
|
6674
6742
|
__decorateClass([
|
|
6675
|
-
(0,
|
|
6676
|
-
(0,
|
|
6743
|
+
(0, import_class_validator47.IsOptional)(),
|
|
6744
|
+
(0, import_class_validator47.IsString)({ message: "Review must be a string" })
|
|
6677
6745
|
], CreateRatingDto.prototype, "review", 2);
|
|
6678
6746
|
|
|
6679
6747
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -6689,57 +6757,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
6689
6757
|
};
|
|
6690
6758
|
|
|
6691
6759
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
6692
|
-
var
|
|
6760
|
+
var import_class_validator48 = require("class-validator");
|
|
6693
6761
|
var CreateCompanyRoleDto = class {
|
|
6694
6762
|
};
|
|
6695
6763
|
__decorateClass([
|
|
6696
|
-
(0,
|
|
6764
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter company role name." })
|
|
6697
6765
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
6698
6766
|
__decorateClass([
|
|
6699
|
-
(0,
|
|
6767
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
6700
6768
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
6701
6769
|
__decorateClass([
|
|
6702
|
-
(0,
|
|
6770
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter description" })
|
|
6703
6771
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
6704
6772
|
__decorateClass([
|
|
6705
|
-
(0,
|
|
6706
|
-
(0,
|
|
6707
|
-
(0,
|
|
6773
|
+
(0, import_class_validator48.IsArray)({ message: "Permission IDs must be an array." }),
|
|
6774
|
+
(0, import_class_validator48.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
6775
|
+
(0, import_class_validator48.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
6708
6776
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6709
6777
|
__decorateClass([
|
|
6710
|
-
(0,
|
|
6711
|
-
(0,
|
|
6778
|
+
(0, import_class_validator48.IsOptional)(),
|
|
6779
|
+
(0, import_class_validator48.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
6712
6780
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
6713
6781
|
|
|
6714
6782
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
6715
|
-
var
|
|
6783
|
+
var import_class_validator49 = require("class-validator");
|
|
6716
6784
|
var UpdateCompanyRoleDto = class {
|
|
6717
6785
|
};
|
|
6718
6786
|
__decorateClass([
|
|
6719
|
-
(0,
|
|
6787
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter company name." })
|
|
6720
6788
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
6721
6789
|
__decorateClass([
|
|
6722
|
-
(0,
|
|
6790
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter slug" })
|
|
6723
6791
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
6724
6792
|
__decorateClass([
|
|
6725
|
-
(0,
|
|
6793
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter description" })
|
|
6726
6794
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
6727
6795
|
__decorateClass([
|
|
6728
|
-
(0,
|
|
6729
|
-
(0,
|
|
6730
|
-
(0,
|
|
6796
|
+
(0, import_class_validator49.IsArray)({ message: "Permission IDs must be an array." }),
|
|
6797
|
+
(0, import_class_validator49.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
6798
|
+
(0, import_class_validator49.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
6731
6799
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6732
6800
|
__decorateClass([
|
|
6733
|
-
(0,
|
|
6734
|
-
(0,
|
|
6801
|
+
(0, import_class_validator49.IsOptional)(),
|
|
6802
|
+
(0, import_class_validator49.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
6735
6803
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
6736
6804
|
|
|
6737
6805
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
6738
|
-
var
|
|
6806
|
+
var import_class_validator50 = require("class-validator");
|
|
6739
6807
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
6740
6808
|
};
|
|
6741
6809
|
__decorateClass([
|
|
6742
|
-
(0,
|
|
6810
|
+
(0, import_class_validator50.IsBoolean)()
|
|
6743
6811
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
6744
6812
|
|
|
6745
6813
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -6749,35 +6817,35 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
6749
6817
|
};
|
|
6750
6818
|
|
|
6751
6819
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
6752
|
-
var
|
|
6820
|
+
var import_class_validator51 = require("class-validator");
|
|
6753
6821
|
var import_class_transformer5 = require("class-transformer");
|
|
6754
6822
|
var ExperienceDto = class {
|
|
6755
6823
|
};
|
|
6756
6824
|
__decorateClass([
|
|
6757
|
-
(0,
|
|
6825
|
+
(0, import_class_validator51.IsOptional)()
|
|
6758
6826
|
], ExperienceDto.prototype, "uuid", 2);
|
|
6759
6827
|
__decorateClass([
|
|
6760
|
-
(0,
|
|
6761
|
-
(0,
|
|
6828
|
+
(0, import_class_validator51.IsNotEmpty)(),
|
|
6829
|
+
(0, import_class_validator51.IsString)()
|
|
6762
6830
|
], ExperienceDto.prototype, "companyName", 2);
|
|
6763
6831
|
__decorateClass([
|
|
6764
|
-
(0,
|
|
6765
|
-
(0,
|
|
6832
|
+
(0, import_class_validator51.IsNotEmpty)(),
|
|
6833
|
+
(0, import_class_validator51.IsString)()
|
|
6766
6834
|
], ExperienceDto.prototype, "designation", 2);
|
|
6767
6835
|
__decorateClass([
|
|
6768
|
-
(0,
|
|
6769
|
-
(0,
|
|
6836
|
+
(0, import_class_validator51.IsNotEmpty)(),
|
|
6837
|
+
(0, import_class_validator51.IsString)()
|
|
6770
6838
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
6771
6839
|
__decorateClass([
|
|
6772
|
-
(0,
|
|
6773
|
-
(0,
|
|
6774
|
-
(0,
|
|
6840
|
+
(0, import_class_validator51.IsOptional)(),
|
|
6841
|
+
(0, import_class_validator51.IsString)(),
|
|
6842
|
+
(0, import_class_validator51.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6775
6843
|
], ExperienceDto.prototype, "description", 2);
|
|
6776
6844
|
var FreelancerExperienceDto = class {
|
|
6777
6845
|
};
|
|
6778
6846
|
__decorateClass([
|
|
6779
|
-
(0,
|
|
6780
|
-
(0,
|
|
6847
|
+
(0, import_class_validator51.ValidateNested)({ each: true }),
|
|
6848
|
+
(0, import_class_validator51.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
6781
6849
|
(0, import_class_transformer5.Type)(() => ExperienceDto)
|
|
6782
6850
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
6783
6851
|
|
|
@@ -6794,43 +6862,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
6794
6862
|
};
|
|
6795
6863
|
|
|
6796
6864
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
6797
|
-
var
|
|
6865
|
+
var import_class_validator52 = require("class-validator");
|
|
6798
6866
|
var CreateCompanyMemberDto = class {
|
|
6799
6867
|
};
|
|
6800
6868
|
__decorateClass([
|
|
6801
|
-
(0,
|
|
6869
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter name." })
|
|
6802
6870
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
6803
6871
|
__decorateClass([
|
|
6804
|
-
(0,
|
|
6872
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter email" })
|
|
6805
6873
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
6806
6874
|
__decorateClass([
|
|
6807
|
-
(0,
|
|
6808
|
-
(0,
|
|
6809
|
-
(0,
|
|
6875
|
+
(0, import_class_validator52.IsArray)({ message: "Role IDs must be an array." }),
|
|
6876
|
+
(0, import_class_validator52.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
6877
|
+
(0, import_class_validator52.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
6810
6878
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
6811
6879
|
|
|
6812
6880
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
6813
|
-
var
|
|
6881
|
+
var import_class_validator53 = require("class-validator");
|
|
6814
6882
|
var UpdateCompanyMemberDto = class {
|
|
6815
6883
|
};
|
|
6816
6884
|
__decorateClass([
|
|
6817
|
-
(0,
|
|
6885
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter name." })
|
|
6818
6886
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
6819
6887
|
__decorateClass([
|
|
6820
|
-
(0,
|
|
6888
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter email" })
|
|
6821
6889
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
6822
6890
|
__decorateClass([
|
|
6823
|
-
(0,
|
|
6824
|
-
(0,
|
|
6825
|
-
(0,
|
|
6891
|
+
(0, import_class_validator53.IsArray)({ message: "Role IDs must be an array." }),
|
|
6892
|
+
(0, import_class_validator53.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
6893
|
+
(0, import_class_validator53.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
6826
6894
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
6827
6895
|
|
|
6828
6896
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
6829
|
-
var
|
|
6897
|
+
var import_class_validator54 = require("class-validator");
|
|
6830
6898
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
6831
6899
|
};
|
|
6832
6900
|
__decorateClass([
|
|
6833
|
-
(0,
|
|
6901
|
+
(0, import_class_validator54.IsBoolean)()
|
|
6834
6902
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
6835
6903
|
|
|
6836
6904
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -6840,31 +6908,31 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
6840
6908
|
};
|
|
6841
6909
|
|
|
6842
6910
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
6843
|
-
var
|
|
6911
|
+
var import_class_validator55 = require("class-validator");
|
|
6844
6912
|
var import_class_transformer6 = require("class-transformer");
|
|
6845
6913
|
var EducationDto = class {
|
|
6846
6914
|
};
|
|
6847
6915
|
__decorateClass([
|
|
6848
|
-
(0,
|
|
6916
|
+
(0, import_class_validator55.IsOptional)()
|
|
6849
6917
|
], EducationDto.prototype, "uuid", 2);
|
|
6850
6918
|
__decorateClass([
|
|
6851
|
-
(0,
|
|
6852
|
-
(0,
|
|
6919
|
+
(0, import_class_validator55.IsString)(),
|
|
6920
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
6853
6921
|
], EducationDto.prototype, "degree", 2);
|
|
6854
6922
|
__decorateClass([
|
|
6855
|
-
(0,
|
|
6856
|
-
(0,
|
|
6923
|
+
(0, import_class_validator55.IsString)(),
|
|
6924
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please Enter University " })
|
|
6857
6925
|
], EducationDto.prototype, "university", 2);
|
|
6858
6926
|
__decorateClass([
|
|
6859
|
-
(0,
|
|
6860
|
-
(0,
|
|
6927
|
+
(0, import_class_validator55.IsString)(),
|
|
6928
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
6861
6929
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
6862
6930
|
var FreelancerEducationDto = class {
|
|
6863
6931
|
};
|
|
6864
6932
|
__decorateClass([
|
|
6865
|
-
(0,
|
|
6866
|
-
(0,
|
|
6867
|
-
(0,
|
|
6933
|
+
(0, import_class_validator55.IsArray)(),
|
|
6934
|
+
(0, import_class_validator55.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
6935
|
+
(0, import_class_validator55.ValidateNested)({ each: true }),
|
|
6868
6936
|
(0, import_class_transformer6.Type)(() => EducationDto)
|
|
6869
6937
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
6870
6938
|
|
|
@@ -6875,67 +6943,67 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
6875
6943
|
};
|
|
6876
6944
|
|
|
6877
6945
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
6878
|
-
var
|
|
6946
|
+
var import_class_validator56 = require("class-validator");
|
|
6879
6947
|
var import_class_transformer7 = require("class-transformer");
|
|
6880
6948
|
var ProjectDto = class {
|
|
6881
6949
|
};
|
|
6882
6950
|
__decorateClass([
|
|
6883
|
-
(0,
|
|
6951
|
+
(0, import_class_validator56.IsOptional)()
|
|
6884
6952
|
], ProjectDto.prototype, "uuid", 2);
|
|
6885
6953
|
__decorateClass([
|
|
6886
|
-
(0,
|
|
6887
|
-
(0,
|
|
6954
|
+
(0, import_class_validator56.IsString)(),
|
|
6955
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
6888
6956
|
], ProjectDto.prototype, "projectName", 2);
|
|
6889
6957
|
__decorateClass([
|
|
6890
|
-
(0,
|
|
6891
|
-
(0,
|
|
6958
|
+
(0, import_class_validator56.IsDateString)(),
|
|
6959
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
6892
6960
|
], ProjectDto.prototype, "startDate", 2);
|
|
6893
6961
|
__decorateClass([
|
|
6894
|
-
(0,
|
|
6895
|
-
(0,
|
|
6962
|
+
(0, import_class_validator56.IsDateString)(),
|
|
6963
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
6896
6964
|
], ProjectDto.prototype, "endDate", 2);
|
|
6897
6965
|
__decorateClass([
|
|
6898
|
-
(0,
|
|
6899
|
-
(0,
|
|
6966
|
+
(0, import_class_validator56.IsOptional)(),
|
|
6967
|
+
(0, import_class_validator56.IsString)()
|
|
6900
6968
|
], ProjectDto.prototype, "clientName", 2);
|
|
6901
6969
|
__decorateClass([
|
|
6902
|
-
(0,
|
|
6903
|
-
(0,
|
|
6970
|
+
(0, import_class_validator56.IsOptional)(),
|
|
6971
|
+
(0, import_class_validator56.IsString)()
|
|
6904
6972
|
], ProjectDto.prototype, "gitLink", 2);
|
|
6905
6973
|
__decorateClass([
|
|
6906
|
-
(0,
|
|
6907
|
-
(0,
|
|
6908
|
-
(0,
|
|
6974
|
+
(0, import_class_validator56.IsOptional)(),
|
|
6975
|
+
(0, import_class_validator56.IsString)(),
|
|
6976
|
+
(0, import_class_validator56.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6909
6977
|
], ProjectDto.prototype, "description", 2);
|
|
6910
6978
|
var CaseStudyDto = class {
|
|
6911
6979
|
};
|
|
6912
6980
|
__decorateClass([
|
|
6913
|
-
(0,
|
|
6981
|
+
(0, import_class_validator56.IsOptional)()
|
|
6914
6982
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
6915
6983
|
__decorateClass([
|
|
6916
|
-
(0,
|
|
6917
|
-
(0,
|
|
6984
|
+
(0, import_class_validator56.IsString)(),
|
|
6985
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
6918
6986
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
6919
6987
|
__decorateClass([
|
|
6920
|
-
(0,
|
|
6921
|
-
(0,
|
|
6988
|
+
(0, import_class_validator56.IsOptional)(),
|
|
6989
|
+
(0, import_class_validator56.IsString)()
|
|
6922
6990
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
6923
6991
|
__decorateClass([
|
|
6924
|
-
(0,
|
|
6925
|
-
(0,
|
|
6926
|
-
(0,
|
|
6992
|
+
(0, import_class_validator56.IsOptional)(),
|
|
6993
|
+
(0, import_class_validator56.IsString)(),
|
|
6994
|
+
(0, import_class_validator56.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6927
6995
|
], CaseStudyDto.prototype, "description", 2);
|
|
6928
6996
|
var FreelancerProjectDto = class {
|
|
6929
6997
|
};
|
|
6930
6998
|
__decorateClass([
|
|
6931
|
-
(0,
|
|
6932
|
-
(0,
|
|
6933
|
-
(0,
|
|
6999
|
+
(0, import_class_validator56.IsArray)(),
|
|
7000
|
+
(0, import_class_validator56.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
7001
|
+
(0, import_class_validator56.ValidateNested)({ each: true }),
|
|
6934
7002
|
(0, import_class_transformer7.Type)(() => ProjectDto)
|
|
6935
7003
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
6936
7004
|
__decorateClass([
|
|
6937
|
-
(0,
|
|
6938
|
-
(0,
|
|
7005
|
+
(0, import_class_validator56.IsArray)(),
|
|
7006
|
+
(0, import_class_validator56.ValidateNested)({ each: true }),
|
|
6939
7007
|
(0, import_class_transformer7.Type)(() => CaseStudyDto)
|
|
6940
7008
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
6941
7009
|
|
|
@@ -6952,7 +7020,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
6952
7020
|
};
|
|
6953
7021
|
|
|
6954
7022
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
6955
|
-
var
|
|
7023
|
+
var import_class_validator57 = require("class-validator");
|
|
6956
7024
|
var import_class_transformer8 = require("class-transformer");
|
|
6957
7025
|
var FreelancerSkillDto = class {
|
|
6958
7026
|
constructor() {
|
|
@@ -6963,28 +7031,28 @@ var FreelancerSkillDto = class {
|
|
|
6963
7031
|
}
|
|
6964
7032
|
};
|
|
6965
7033
|
__decorateClass([
|
|
6966
|
-
(0,
|
|
6967
|
-
(0,
|
|
7034
|
+
(0, import_class_validator57.IsOptional)(),
|
|
7035
|
+
(0, import_class_validator57.IsArray)(),
|
|
6968
7036
|
(0, import_class_transformer8.Type)(() => String),
|
|
6969
|
-
(0,
|
|
7037
|
+
(0, import_class_validator57.IsString)({ each: true })
|
|
6970
7038
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
6971
7039
|
__decorateClass([
|
|
6972
|
-
(0,
|
|
6973
|
-
(0,
|
|
7040
|
+
(0, import_class_validator57.IsOptional)(),
|
|
7041
|
+
(0, import_class_validator57.IsArray)(),
|
|
6974
7042
|
(0, import_class_transformer8.Type)(() => String),
|
|
6975
|
-
(0,
|
|
7043
|
+
(0, import_class_validator57.IsString)({ each: true })
|
|
6976
7044
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
6977
7045
|
__decorateClass([
|
|
6978
|
-
(0,
|
|
6979
|
-
(0,
|
|
7046
|
+
(0, import_class_validator57.IsOptional)(),
|
|
7047
|
+
(0, import_class_validator57.IsArray)(),
|
|
6980
7048
|
(0, import_class_transformer8.Type)(() => String),
|
|
6981
|
-
(0,
|
|
7049
|
+
(0, import_class_validator57.IsString)({ each: true })
|
|
6982
7050
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
6983
7051
|
__decorateClass([
|
|
6984
|
-
(0,
|
|
6985
|
-
(0,
|
|
7052
|
+
(0, import_class_validator57.IsOptional)(),
|
|
7053
|
+
(0, import_class_validator57.IsArray)(),
|
|
6986
7054
|
(0, import_class_transformer8.Type)(() => String),
|
|
6987
|
-
(0,
|
|
7055
|
+
(0, import_class_validator57.IsString)({ each: true })
|
|
6988
7056
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
6989
7057
|
|
|
6990
7058
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -6993,6 +7061,11 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
6993
7061
|
adminFreelancerCount: "admin.freelancer.count",
|
|
6994
7062
|
adminExportFreelancer: "admin.export.freelancer",
|
|
6995
7063
|
adminFetchFreelancerById: "admin.fetch.freelancer.by.id",
|
|
7064
|
+
adminFetchFreelancerSkillsById: "admin.fetch.freelancer.skills.by.id",
|
|
7065
|
+
adminFetchFreelancerProjectsById: "admin.fetch.freelancer.projects.by.id",
|
|
7066
|
+
adminFetchFreelancerExperiencesById: "admin.fetch.freelancer.experiences.by.id",
|
|
7067
|
+
adminFetchFreelancerEducationsById: "admin.fetch.freelancer.educations.by.id",
|
|
7068
|
+
adminFetchFreelancerAgreementById: "admin.fetch.freelancer.agreement.by.id",
|
|
6996
7069
|
adminCreateFreelancer: "admin.create.freelancer",
|
|
6997
7070
|
adminUpdateFreelancer: "admin.update.freelancer",
|
|
6998
7071
|
adminDeleteFreelancer: "admin.delete.freelancer",
|
|
@@ -7005,7 +7078,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
7005
7078
|
};
|
|
7006
7079
|
|
|
7007
7080
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
7008
|
-
var
|
|
7081
|
+
var import_class_validator58 = require("class-validator");
|
|
7009
7082
|
var import_class_transformer9 = require("class-transformer");
|
|
7010
7083
|
var NatureOfWorkDto2 = /* @__PURE__ */ ((NatureOfWorkDto3) => {
|
|
7011
7084
|
NatureOfWorkDto3["FREELANCE"] = "FREELANCE";
|
|
@@ -7028,93 +7101,93 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
7028
7101
|
var CreateFreelancerDto = class {
|
|
7029
7102
|
};
|
|
7030
7103
|
__decorateClass([
|
|
7031
|
-
(0,
|
|
7032
|
-
(0,
|
|
7104
|
+
(0, import_class_validator58.IsString)({ message: "Full name must be a string" }),
|
|
7105
|
+
(0, import_class_validator58.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
7033
7106
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
7034
7107
|
__decorateClass([
|
|
7035
|
-
(0,
|
|
7108
|
+
(0, import_class_validator58.IsEmail)({}, { message: "Invalid email address" })
|
|
7036
7109
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
7037
7110
|
__decorateClass([
|
|
7038
|
-
(0,
|
|
7111
|
+
(0, import_class_validator58.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
7039
7112
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
7040
7113
|
__decorateClass([
|
|
7041
|
-
(0,
|
|
7114
|
+
(0, import_class_validator58.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
7042
7115
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
7043
7116
|
__decorateClass([
|
|
7044
|
-
(0,
|
|
7045
|
-
(0,
|
|
7046
|
-
(0,
|
|
7047
|
-
(0,
|
|
7117
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter password." }),
|
|
7118
|
+
(0, import_class_validator58.MinLength)(6),
|
|
7119
|
+
(0, import_class_validator58.MaxLength)(32),
|
|
7120
|
+
(0, import_class_validator58.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7048
7121
|
message: "Password must include letters, numbers and symbols."
|
|
7049
7122
|
})
|
|
7050
7123
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
7051
7124
|
__decorateClass([
|
|
7052
|
-
(0,
|
|
7125
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
7053
7126
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
7054
7127
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
7055
7128
|
__decorateClass([
|
|
7056
|
-
(0,
|
|
7129
|
+
(0, import_class_validator58.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
7057
7130
|
(0, import_class_transformer9.Type)(() => Boolean)
|
|
7058
7131
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
7059
7132
|
__decorateClass([
|
|
7060
|
-
(0,
|
|
7133
|
+
(0, import_class_validator58.IsEnum)(NatureOfWorkEnum, {
|
|
7061
7134
|
message: `Nature of work must be one of: ${Object.values(
|
|
7062
7135
|
NatureOfWorkEnum
|
|
7063
7136
|
).join(", ")}`
|
|
7064
7137
|
})
|
|
7065
7138
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
7066
7139
|
__decorateClass([
|
|
7067
|
-
(0,
|
|
7068
|
-
(0,
|
|
7140
|
+
(0, import_class_validator58.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
7141
|
+
(0, import_class_validator58.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
7069
7142
|
(0, import_class_transformer9.Type)(() => Number)
|
|
7070
7143
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
7071
7144
|
__decorateClass([
|
|
7072
|
-
(0,
|
|
7073
|
-
(0,
|
|
7145
|
+
(0, import_class_validator58.ValidateIf)((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7146
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter expected annual compensation." })
|
|
7074
7147
|
], CreateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
7075
7148
|
__decorateClass([
|
|
7076
|
-
(0,
|
|
7077
|
-
(0,
|
|
7078
|
-
(0,
|
|
7149
|
+
(0, import_class_validator58.ValidateIf)((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
7150
|
+
(0, import_class_validator58.IsInt)({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
7151
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter weekly availability hours" })
|
|
7079
7152
|
], CreateFreelancerDto.prototype, "numberOfHours", 2);
|
|
7080
7153
|
__decorateClass([
|
|
7081
|
-
(0,
|
|
7154
|
+
(0, import_class_validator58.IsEnum)(ModeOfWorkEnum, {
|
|
7082
7155
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
7083
7156
|
", "
|
|
7084
7157
|
)}`
|
|
7085
7158
|
})
|
|
7086
7159
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
7087
7160
|
__decorateClass([
|
|
7088
|
-
(0,
|
|
7161
|
+
(0, import_class_validator58.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
7089
7162
|
(0, import_class_transformer9.Type)(() => Boolean)
|
|
7090
7163
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
7091
7164
|
__decorateClass([
|
|
7092
|
-
(0,
|
|
7093
|
-
(0,
|
|
7165
|
+
(0, import_class_validator58.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
7166
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
7094
7167
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
7095
7168
|
__decorateClass([
|
|
7096
|
-
(0,
|
|
7097
|
-
(0,
|
|
7169
|
+
(0, import_class_validator58.IsOptional)(),
|
|
7170
|
+
(0, import_class_validator58.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
7098
7171
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
7099
7172
|
__decorateClass([
|
|
7100
|
-
(0,
|
|
7101
|
-
(0,
|
|
7173
|
+
(0, import_class_validator58.IsOptional)(),
|
|
7174
|
+
(0, import_class_validator58.IsString)({ message: "Kaggle profile link must be a string" })
|
|
7102
7175
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
7103
7176
|
__decorateClass([
|
|
7104
|
-
(0,
|
|
7105
|
-
(0,
|
|
7177
|
+
(0, import_class_validator58.IsOptional)(),
|
|
7178
|
+
(0, import_class_validator58.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
7106
7179
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
7107
7180
|
__decorateClass([
|
|
7108
|
-
(0,
|
|
7109
|
-
(0,
|
|
7181
|
+
(0, import_class_validator58.IsOptional)(),
|
|
7182
|
+
(0, import_class_validator58.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
7110
7183
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
7111
7184
|
__decorateClass([
|
|
7112
|
-
(0,
|
|
7113
|
-
(0,
|
|
7185
|
+
(0, import_class_validator58.IsOptional)(),
|
|
7186
|
+
(0, import_class_validator58.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
7114
7187
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
7115
7188
|
|
|
7116
7189
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
7117
|
-
var
|
|
7190
|
+
var import_class_validator59 = require("class-validator");
|
|
7118
7191
|
var import_class_transformer10 = require("class-transformer");
|
|
7119
7192
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
7120
7193
|
NatureOfWorkEnum3["FTE"] = "FTE";
|
|
@@ -7131,97 +7204,97 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
7131
7204
|
var UpdateFreelancerDto = class {
|
|
7132
7205
|
};
|
|
7133
7206
|
__decorateClass([
|
|
7134
|
-
(0,
|
|
7135
|
-
(0,
|
|
7136
|
-
(0,
|
|
7207
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7208
|
+
(0, import_class_validator59.IsString)({ message: "Full name must be a string" }),
|
|
7209
|
+
(0, import_class_validator59.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
7137
7210
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
7138
7211
|
__decorateClass([
|
|
7139
|
-
(0,
|
|
7140
|
-
(0,
|
|
7212
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7213
|
+
(0, import_class_validator59.IsEmail)({}, { message: "Invalid email address" })
|
|
7141
7214
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
7142
7215
|
__decorateClass([
|
|
7143
|
-
(0,
|
|
7144
|
-
(0,
|
|
7216
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7217
|
+
(0, import_class_validator59.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
7145
7218
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
7146
7219
|
__decorateClass([
|
|
7147
|
-
(0,
|
|
7148
|
-
(0,
|
|
7220
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7221
|
+
(0, import_class_validator59.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
7149
7222
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
7150
7223
|
__decorateClass([
|
|
7151
|
-
(0,
|
|
7224
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7152
7225
|
(0, import_class_transformer10.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
7153
|
-
(0,
|
|
7154
|
-
(0,
|
|
7155
|
-
(0,
|
|
7226
|
+
(0, import_class_validator59.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
7227
|
+
(0, import_class_validator59.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
7228
|
+
(0, import_class_validator59.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7156
7229
|
message: "Password must include letters, numbers and symbols."
|
|
7157
7230
|
})
|
|
7158
7231
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
7159
7232
|
__decorateClass([
|
|
7160
|
-
(0,
|
|
7161
|
-
(0,
|
|
7233
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7234
|
+
(0, import_class_validator59.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
7162
7235
|
(0, import_class_transformer10.Type)(() => Boolean)
|
|
7163
7236
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
7164
7237
|
__decorateClass([
|
|
7165
|
-
(0,
|
|
7166
|
-
(0,
|
|
7238
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7239
|
+
(0, import_class_validator59.IsEnum)(NatureOfWorkEnum2, {
|
|
7167
7240
|
message: `Nature of work must be one of: ${Object.values(
|
|
7168
7241
|
NatureOfWorkEnum2
|
|
7169
7242
|
).join(", ")}`
|
|
7170
7243
|
})
|
|
7171
7244
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
7172
7245
|
__decorateClass([
|
|
7173
|
-
(0,
|
|
7174
|
-
(0,
|
|
7175
|
-
(0,
|
|
7246
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7247
|
+
(0, import_class_validator59.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
7248
|
+
(0, import_class_validator59.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
7176
7249
|
(0, import_class_transformer10.Type)(() => Number)
|
|
7177
7250
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
7178
7251
|
__decorateClass([
|
|
7179
|
-
(0,
|
|
7180
|
-
(0,
|
|
7181
|
-
(0,
|
|
7252
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7253
|
+
(0, import_class_validator59.ValidateIf)((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7254
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Please enter expected annual compensation." })
|
|
7182
7255
|
], UpdateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
7183
7256
|
__decorateClass([
|
|
7184
|
-
(0,
|
|
7185
|
-
(0,
|
|
7186
|
-
(0,
|
|
7187
|
-
(0,
|
|
7257
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7258
|
+
(0, import_class_validator59.ValidateIf)((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
7259
|
+
(0, import_class_validator59.IsInt)({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
7260
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Please enter weekly availability hours" })
|
|
7188
7261
|
], UpdateFreelancerDto.prototype, "numberOfHours", 2);
|
|
7189
7262
|
__decorateClass([
|
|
7190
|
-
(0,
|
|
7191
|
-
(0,
|
|
7263
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7264
|
+
(0, import_class_validator59.IsEnum)(ModeOfWorkEnum2, {
|
|
7192
7265
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
7193
7266
|
", "
|
|
7194
7267
|
)}`
|
|
7195
7268
|
})
|
|
7196
7269
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
7197
7270
|
__decorateClass([
|
|
7198
|
-
(0,
|
|
7199
|
-
(0,
|
|
7271
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7272
|
+
(0, import_class_validator59.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
7200
7273
|
(0, import_class_transformer10.Type)(() => Boolean)
|
|
7201
7274
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
7202
7275
|
__decorateClass([
|
|
7203
|
-
(0,
|
|
7204
|
-
(0,
|
|
7276
|
+
(0, import_class_validator59.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
7277
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
7205
7278
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
7206
7279
|
__decorateClass([
|
|
7207
|
-
(0,
|
|
7208
|
-
(0,
|
|
7280
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7281
|
+
(0, import_class_validator59.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
7209
7282
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
7210
7283
|
__decorateClass([
|
|
7211
|
-
(0,
|
|
7212
|
-
(0,
|
|
7284
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7285
|
+
(0, import_class_validator59.IsString)({ message: "Kaggle profile link must be a string" })
|
|
7213
7286
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
7214
7287
|
__decorateClass([
|
|
7215
|
-
(0,
|
|
7216
|
-
(0,
|
|
7288
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7289
|
+
(0, import_class_validator59.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
7217
7290
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
7218
7291
|
__decorateClass([
|
|
7219
|
-
(0,
|
|
7220
|
-
(0,
|
|
7292
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7293
|
+
(0, import_class_validator59.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
7221
7294
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
7222
7295
|
__decorateClass([
|
|
7223
|
-
(0,
|
|
7224
|
-
(0,
|
|
7296
|
+
(0, import_class_validator59.IsOptional)(),
|
|
7297
|
+
(0, import_class_validator59.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
7225
7298
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
7226
7299
|
|
|
7227
7300
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -7238,7 +7311,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
7238
7311
|
};
|
|
7239
7312
|
|
|
7240
7313
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
7241
|
-
var
|
|
7314
|
+
var import_class_validator60 = require("class-validator");
|
|
7242
7315
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
7243
7316
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
7244
7317
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -7254,78 +7327,78 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
7254
7327
|
var CreateClientDto = class {
|
|
7255
7328
|
};
|
|
7256
7329
|
__decorateClass([
|
|
7257
|
-
(0,
|
|
7258
|
-
(0,
|
|
7330
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter first name." }),
|
|
7331
|
+
(0, import_class_validator60.IsString)()
|
|
7259
7332
|
], CreateClientDto.prototype, "firstName", 2);
|
|
7260
7333
|
__decorateClass([
|
|
7261
|
-
(0,
|
|
7262
|
-
(0,
|
|
7334
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter last name." }),
|
|
7335
|
+
(0, import_class_validator60.IsString)()
|
|
7263
7336
|
], CreateClientDto.prototype, "lastName", 2);
|
|
7264
7337
|
__decorateClass([
|
|
7265
|
-
(0,
|
|
7266
|
-
(0,
|
|
7338
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter email." }),
|
|
7339
|
+
(0, import_class_validator60.IsEmail)()
|
|
7267
7340
|
], CreateClientDto.prototype, "email", 2);
|
|
7268
7341
|
__decorateClass([
|
|
7269
|
-
(0,
|
|
7270
|
-
(0,
|
|
7271
|
-
(0,
|
|
7272
|
-
(0,
|
|
7342
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter password." }),
|
|
7343
|
+
(0, import_class_validator60.MinLength)(6),
|
|
7344
|
+
(0, import_class_validator60.MaxLength)(32),
|
|
7345
|
+
(0, import_class_validator60.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7273
7346
|
message: "Password must include letters, numbers and symbols."
|
|
7274
7347
|
})
|
|
7275
7348
|
], CreateClientDto.prototype, "password", 2);
|
|
7276
7349
|
__decorateClass([
|
|
7277
|
-
(0,
|
|
7350
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
7278
7351
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
7279
7352
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
7280
7353
|
__decorateClass([
|
|
7281
|
-
(0,
|
|
7282
|
-
(0,
|
|
7354
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter company name." }),
|
|
7355
|
+
(0, import_class_validator60.IsString)()
|
|
7283
7356
|
], CreateClientDto.prototype, "companyName", 2);
|
|
7284
7357
|
__decorateClass([
|
|
7285
|
-
(0,
|
|
7286
|
-
(0,
|
|
7358
|
+
(0, import_class_validator60.IsArray)({ message: "Skills should be an array." }),
|
|
7359
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter skills." })
|
|
7287
7360
|
], CreateClientDto.prototype, "skills", 2);
|
|
7288
7361
|
__decorateClass([
|
|
7289
|
-
(0,
|
|
7290
|
-
(0,
|
|
7362
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
7363
|
+
(0, import_class_validator60.IsString)()
|
|
7291
7364
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
7292
7365
|
__decorateClass([
|
|
7293
|
-
(0,
|
|
7294
|
-
(0,
|
|
7366
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
7367
|
+
(0, import_class_validator60.IsEnum)(CreateClientHiringTypeEnum)
|
|
7295
7368
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
7296
7369
|
__decorateClass([
|
|
7297
|
-
(0,
|
|
7298
|
-
(0,
|
|
7370
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
7371
|
+
(0, import_class_validator60.IsEnum)(CreateClientHiringModeEnum)
|
|
7299
7372
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
7300
7373
|
__decorateClass([
|
|
7301
|
-
(0,
|
|
7302
|
-
(0,
|
|
7374
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
7375
|
+
(0, import_class_validator60.IsString)()
|
|
7303
7376
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
7304
7377
|
__decorateClass([
|
|
7305
|
-
(0,
|
|
7306
|
-
(0,
|
|
7378
|
+
(0, import_class_validator60.IsOptional)(),
|
|
7379
|
+
(0, import_class_validator60.IsString)()
|
|
7307
7380
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
7308
7381
|
__decorateClass([
|
|
7309
|
-
(0,
|
|
7310
|
-
(0,
|
|
7382
|
+
(0, import_class_validator60.IsOptional)(),
|
|
7383
|
+
(0, import_class_validator60.IsString)()
|
|
7311
7384
|
], CreateClientDto.prototype, "hiringCommisionTypeForFte", 2);
|
|
7312
7385
|
__decorateClass([
|
|
7313
|
-
(0,
|
|
7314
|
-
(0,
|
|
7386
|
+
(0, import_class_validator60.IsOptional)(),
|
|
7387
|
+
(0, import_class_validator60.IsString)()
|
|
7315
7388
|
], CreateClientDto.prototype, "hiringCommissionValueForFte", 2);
|
|
7316
7389
|
|
|
7317
7390
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
7318
|
-
var
|
|
7391
|
+
var import_class_validator61 = require("class-validator");
|
|
7319
7392
|
var UpdateClientAccountStatusDto = class {
|
|
7320
7393
|
};
|
|
7321
7394
|
__decorateClass([
|
|
7322
|
-
(0,
|
|
7323
|
-
(0,
|
|
7395
|
+
(0, import_class_validator61.IsNotEmpty)({ message: "Please enter account status." }),
|
|
7396
|
+
(0, import_class_validator61.IsString)()
|
|
7324
7397
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
7325
7398
|
|
|
7326
7399
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
7327
7400
|
var import_class_transformer11 = require("class-transformer");
|
|
7328
|
-
var
|
|
7401
|
+
var import_class_validator62 = require("class-validator");
|
|
7329
7402
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
7330
7403
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
7331
7404
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -7341,61 +7414,61 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
7341
7414
|
var UpdateClientDto = class {
|
|
7342
7415
|
};
|
|
7343
7416
|
__decorateClass([
|
|
7344
|
-
(0,
|
|
7345
|
-
(0,
|
|
7417
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please enter first name." }),
|
|
7418
|
+
(0, import_class_validator62.IsString)()
|
|
7346
7419
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
7347
7420
|
__decorateClass([
|
|
7348
|
-
(0,
|
|
7349
|
-
(0,
|
|
7421
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please enter last name." }),
|
|
7422
|
+
(0, import_class_validator62.IsString)()
|
|
7350
7423
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
7351
7424
|
__decorateClass([
|
|
7352
|
-
(0,
|
|
7353
|
-
(0,
|
|
7425
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please enter email." }),
|
|
7426
|
+
(0, import_class_validator62.IsEmail)()
|
|
7354
7427
|
], UpdateClientDto.prototype, "email", 2);
|
|
7355
7428
|
__decorateClass([
|
|
7356
|
-
(0,
|
|
7429
|
+
(0, import_class_validator62.IsOptional)(),
|
|
7357
7430
|
(0, import_class_transformer11.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
7358
|
-
(0,
|
|
7359
|
-
(0,
|
|
7360
|
-
(0,
|
|
7431
|
+
(0, import_class_validator62.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
7432
|
+
(0, import_class_validator62.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
7433
|
+
(0, import_class_validator62.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7361
7434
|
message: "Password must include letters, numbers and symbols."
|
|
7362
7435
|
})
|
|
7363
7436
|
], UpdateClientDto.prototype, "password", 2);
|
|
7364
7437
|
__decorateClass([
|
|
7365
|
-
(0,
|
|
7366
|
-
(0,
|
|
7438
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please enter company name." }),
|
|
7439
|
+
(0, import_class_validator62.IsString)()
|
|
7367
7440
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
7368
7441
|
__decorateClass([
|
|
7369
|
-
(0,
|
|
7370
|
-
(0,
|
|
7442
|
+
(0, import_class_validator62.IsArray)({ message: "Skills should be an array." }),
|
|
7443
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please enter skills." })
|
|
7371
7444
|
], UpdateClientDto.prototype, "skills", 2);
|
|
7372
7445
|
__decorateClass([
|
|
7373
|
-
(0,
|
|
7374
|
-
(0,
|
|
7446
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
7447
|
+
(0, import_class_validator62.IsString)()
|
|
7375
7448
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
7376
7449
|
__decorateClass([
|
|
7377
|
-
(0,
|
|
7378
|
-
(0,
|
|
7450
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
7451
|
+
(0, import_class_validator62.IsEnum)(UpdateClientHiringTypeEnum)
|
|
7379
7452
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
7380
7453
|
__decorateClass([
|
|
7381
|
-
(0,
|
|
7382
|
-
(0,
|
|
7454
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
7455
|
+
(0, import_class_validator62.IsEnum)(UpdateClientHiringModeEnum)
|
|
7383
7456
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
7384
7457
|
__decorateClass([
|
|
7385
|
-
(0,
|
|
7386
|
-
(0,
|
|
7458
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
7459
|
+
(0, import_class_validator62.IsString)()
|
|
7387
7460
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
7388
7461
|
__decorateClass([
|
|
7389
|
-
(0,
|
|
7390
|
-
(0,
|
|
7462
|
+
(0, import_class_validator62.IsOptional)(),
|
|
7463
|
+
(0, import_class_validator62.IsString)()
|
|
7391
7464
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
7392
7465
|
__decorateClass([
|
|
7393
|
-
(0,
|
|
7394
|
-
(0,
|
|
7466
|
+
(0, import_class_validator62.IsOptional)(),
|
|
7467
|
+
(0, import_class_validator62.IsString)()
|
|
7395
7468
|
], UpdateClientDto.prototype, "hiringCommisionTypeForFte", 2);
|
|
7396
7469
|
__decorateClass([
|
|
7397
|
-
(0,
|
|
7398
|
-
(0,
|
|
7470
|
+
(0, import_class_validator62.IsOptional)(),
|
|
7471
|
+
(0, import_class_validator62.IsString)()
|
|
7399
7472
|
], UpdateClientDto.prototype, "hiringCommissionValueForFte", 2);
|
|
7400
7473
|
|
|
7401
7474
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -7405,7 +7478,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
7405
7478
|
};
|
|
7406
7479
|
|
|
7407
7480
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
7408
|
-
var
|
|
7481
|
+
var import_class_validator63 = require("class-validator");
|
|
7409
7482
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
7410
7483
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
7411
7484
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -7416,16 +7489,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
7416
7489
|
var FreelancerDeclarationDto = class {
|
|
7417
7490
|
};
|
|
7418
7491
|
__decorateClass([
|
|
7419
|
-
(0,
|
|
7420
|
-
(0,
|
|
7492
|
+
(0, import_class_validator63.IsOptional)(),
|
|
7493
|
+
(0, import_class_validator63.IsString)({ message: "UUID must be a string" })
|
|
7421
7494
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
7422
7495
|
__decorateClass([
|
|
7423
|
-
(0,
|
|
7496
|
+
(0, import_class_validator63.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
7424
7497
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
7425
7498
|
__decorateClass([
|
|
7426
|
-
(0,
|
|
7427
|
-
(0,
|
|
7428
|
-
(0,
|
|
7499
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
7500
|
+
(0, import_class_validator63.IsString)(),
|
|
7501
|
+
(0, import_class_validator63.IsIn)([
|
|
7429
7502
|
"true"
|
|
7430
7503
|
])
|
|
7431
7504
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -7449,36 +7522,36 @@ var CMS_PATTERNS = {
|
|
|
7449
7522
|
};
|
|
7450
7523
|
|
|
7451
7524
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
7452
|
-
var
|
|
7525
|
+
var import_class_validator64 = require("class-validator");
|
|
7453
7526
|
var CreateCmsDto = class {
|
|
7454
7527
|
};
|
|
7455
7528
|
__decorateClass([
|
|
7456
|
-
(0,
|
|
7529
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter name." })
|
|
7457
7530
|
], CreateCmsDto.prototype, "title", 2);
|
|
7458
7531
|
__decorateClass([
|
|
7459
|
-
(0,
|
|
7532
|
+
(0, import_class_validator64.IsOptional)()
|
|
7460
7533
|
], CreateCmsDto.prototype, "content", 2);
|
|
7461
7534
|
__decorateClass([
|
|
7462
|
-
(0,
|
|
7463
|
-
(0,
|
|
7535
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7536
|
+
(0, import_class_validator64.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
7464
7537
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
7465
7538
|
|
|
7466
7539
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
7467
|
-
var
|
|
7540
|
+
var import_class_validator65 = require("class-validator");
|
|
7468
7541
|
var UpdateCmsDto = class {
|
|
7469
7542
|
};
|
|
7470
7543
|
__decorateClass([
|
|
7471
|
-
(0,
|
|
7544
|
+
(0, import_class_validator65.IsOptional)()
|
|
7472
7545
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
7473
7546
|
__decorateClass([
|
|
7474
|
-
(0,
|
|
7547
|
+
(0, import_class_validator65.IsNotEmpty)({ message: "Please enter name." })
|
|
7475
7548
|
], UpdateCmsDto.prototype, "title", 2);
|
|
7476
7549
|
__decorateClass([
|
|
7477
|
-
(0,
|
|
7550
|
+
(0, import_class_validator65.IsOptional)()
|
|
7478
7551
|
], UpdateCmsDto.prototype, "content", 2);
|
|
7479
7552
|
__decorateClass([
|
|
7480
|
-
(0,
|
|
7481
|
-
(0,
|
|
7553
|
+
(0, import_class_validator65.IsOptional)(),
|
|
7554
|
+
(0, import_class_validator65.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
7482
7555
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
7483
7556
|
|
|
7484
7557
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -7512,7 +7585,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
7512
7585
|
|
|
7513
7586
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
7514
7587
|
var import_class_transformer12 = require("class-transformer");
|
|
7515
|
-
var
|
|
7588
|
+
var import_class_validator66 = require("class-validator");
|
|
7516
7589
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
7517
7590
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
7518
7591
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -7528,91 +7601,91 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
7528
7601
|
var AdminCreateJobInformationDto = class {
|
|
7529
7602
|
};
|
|
7530
7603
|
__decorateClass([
|
|
7531
|
-
(0,
|
|
7532
|
-
(0,
|
|
7604
|
+
(0, import_class_validator66.IsString)({ message: "Job role must be a string." }),
|
|
7605
|
+
(0, import_class_validator66.IsNotEmpty)({ message: "Job role is required." })
|
|
7533
7606
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
7534
7607
|
__decorateClass([
|
|
7535
|
-
(0,
|
|
7536
|
-
(0,
|
|
7608
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7609
|
+
(0, import_class_validator66.IsString)({ message: "Note must be a string." })
|
|
7537
7610
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
7538
7611
|
__decorateClass([
|
|
7539
|
-
(0,
|
|
7540
|
-
(0,
|
|
7541
|
-
(0,
|
|
7612
|
+
(0, import_class_validator66.IsArray)({ message: "Skills must be an array of skill names." }),
|
|
7613
|
+
(0, import_class_validator66.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
|
|
7614
|
+
(0, import_class_validator66.IsString)({ each: true, message: "Each skill must be a valid string." })
|
|
7542
7615
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
7543
7616
|
__decorateClass([
|
|
7544
|
-
(0,
|
|
7545
|
-
(0,
|
|
7617
|
+
(0, import_class_validator66.IsInt)({ message: "Openings must be a valid integer." }),
|
|
7618
|
+
(0, import_class_validator66.Min)(1, { message: "There must be at least one opening." })
|
|
7546
7619
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
7547
7620
|
__decorateClass([
|
|
7548
|
-
(0,
|
|
7621
|
+
(0, import_class_validator66.IsEnum)(JobLocationEnumDto, {
|
|
7549
7622
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
7550
7623
|
", "
|
|
7551
7624
|
)}.`
|
|
7552
7625
|
})
|
|
7553
7626
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
7554
7627
|
__decorateClass([
|
|
7555
|
-
(0,
|
|
7628
|
+
(0, import_class_validator66.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
7556
7629
|
message: `Type of employment must be one of: ${Object.values(
|
|
7557
7630
|
TypeOfEmploymentEnumDto
|
|
7558
7631
|
).join(", ")}.`
|
|
7559
7632
|
})
|
|
7560
7633
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
7561
7634
|
__decorateClass([
|
|
7562
|
-
(0,
|
|
7563
|
-
(0,
|
|
7635
|
+
(0, import_class_validator66.IsString)({ message: "Onboarding Days must be a string." }),
|
|
7636
|
+
(0, import_class_validator66.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
7564
7637
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
7565
7638
|
__decorateClass([
|
|
7566
|
-
(0,
|
|
7567
|
-
(0,
|
|
7639
|
+
(0, import_class_validator66.IsString)({ message: "Communication skills must be a string." }),
|
|
7640
|
+
(0, import_class_validator66.IsNotEmpty)({ message: "Communication skills are required." })
|
|
7568
7641
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
7569
7642
|
__decorateClass([
|
|
7570
|
-
(0,
|
|
7571
|
-
(0,
|
|
7643
|
+
(0, import_class_validator66.IsString)({ message: "Currency must be a string." }),
|
|
7644
|
+
(0, import_class_validator66.IsNotEmpty)({ message: "Currency is required." })
|
|
7572
7645
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
7573
7646
|
__decorateClass([
|
|
7574
7647
|
(0, import_class_transformer12.Type)(() => Number),
|
|
7575
|
-
(0,
|
|
7648
|
+
(0, import_class_validator66.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
7576
7649
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
7577
7650
|
__decorateClass([
|
|
7578
7651
|
(0, import_class_transformer12.Type)(() => Number),
|
|
7579
|
-
(0,
|
|
7652
|
+
(0, import_class_validator66.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
7580
7653
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
7581
7654
|
__decorateClass([
|
|
7582
|
-
(0,
|
|
7655
|
+
(0, import_class_validator66.IsDateString)(
|
|
7583
7656
|
{ strict: true },
|
|
7584
7657
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
7585
7658
|
)
|
|
7586
7659
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
7587
7660
|
__decorateClass([
|
|
7588
|
-
(0,
|
|
7661
|
+
(0, import_class_validator66.IsDateString)(
|
|
7589
7662
|
{ strict: true },
|
|
7590
7663
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
7591
7664
|
)
|
|
7592
7665
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
7593
7666
|
__decorateClass([
|
|
7594
|
-
(0,
|
|
7595
|
-
(0,
|
|
7667
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7668
|
+
(0, import_class_validator66.IsString)({ message: "Additional comment must be a string." })
|
|
7596
7669
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
7597
7670
|
__decorateClass([
|
|
7598
|
-
(0,
|
|
7599
|
-
(0,
|
|
7671
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7672
|
+
(0, import_class_validator66.IsInt)({ message: "Country ID must be a valid integer." })
|
|
7600
7673
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
7601
7674
|
__decorateClass([
|
|
7602
|
-
(0,
|
|
7603
|
-
(0,
|
|
7675
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7676
|
+
(0, import_class_validator66.IsInt)({ message: "State ID must be a valid integer." })
|
|
7604
7677
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
7605
7678
|
__decorateClass([
|
|
7606
|
-
(0,
|
|
7607
|
-
(0,
|
|
7679
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7680
|
+
(0, import_class_validator66.IsInt)({ message: "City ID must be a valid integer." })
|
|
7608
7681
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
7609
7682
|
__decorateClass([
|
|
7610
|
-
(0,
|
|
7683
|
+
(0, import_class_validator66.IsInt)({ message: "Client ID must be a valid integer." })
|
|
7611
7684
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
7612
7685
|
|
|
7613
7686
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
7614
7687
|
var import_class_transformer13 = require("class-transformer");
|
|
7615
|
-
var
|
|
7688
|
+
var import_class_validator67 = require("class-validator");
|
|
7616
7689
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
7617
7690
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
7618
7691
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -7628,90 +7701,90 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
7628
7701
|
var AdminUpdateJobInformationDto = class {
|
|
7629
7702
|
};
|
|
7630
7703
|
__decorateClass([
|
|
7631
|
-
(0,
|
|
7632
|
-
(0,
|
|
7704
|
+
(0, import_class_validator67.IsString)({ message: "Job role must be a string." }),
|
|
7705
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Job role is required." })
|
|
7633
7706
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
7634
7707
|
__decorateClass([
|
|
7635
|
-
(0,
|
|
7636
|
-
(0,
|
|
7708
|
+
(0, import_class_validator67.IsOptional)(),
|
|
7709
|
+
(0, import_class_validator67.IsString)({ message: "Note must be a string." })
|
|
7637
7710
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
7638
7711
|
__decorateClass([
|
|
7639
|
-
(0,
|
|
7640
|
-
(0,
|
|
7641
|
-
(0,
|
|
7712
|
+
(0, import_class_validator67.IsArray)({ message: "Skills must be an array of skill names." }),
|
|
7713
|
+
(0, import_class_validator67.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
|
|
7714
|
+
(0, import_class_validator67.IsString)({ each: true, message: "Each skill must be a valid string." })
|
|
7642
7715
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
7643
7716
|
__decorateClass([
|
|
7644
|
-
(0,
|
|
7645
|
-
(0,
|
|
7717
|
+
(0, import_class_validator67.IsInt)({ message: "Openings must be a valid integer." }),
|
|
7718
|
+
(0, import_class_validator67.Min)(1, { message: "There must be at least one opening." })
|
|
7646
7719
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
7647
7720
|
__decorateClass([
|
|
7648
|
-
(0,
|
|
7721
|
+
(0, import_class_validator67.IsEnum)(JobLocationEnums, {
|
|
7649
7722
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
7650
7723
|
", "
|
|
7651
7724
|
)}.`
|
|
7652
7725
|
})
|
|
7653
7726
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
7654
7727
|
__decorateClass([
|
|
7655
|
-
(0,
|
|
7728
|
+
(0, import_class_validator67.IsEnum)(TypeOfEmploymentEnums, {
|
|
7656
7729
|
message: `Type of employment must be one of: ${Object.values(
|
|
7657
7730
|
TypeOfEmploymentEnums
|
|
7658
7731
|
).join(", ")}.`
|
|
7659
7732
|
})
|
|
7660
7733
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
7661
7734
|
__decorateClass([
|
|
7662
|
-
(0,
|
|
7663
|
-
(0,
|
|
7735
|
+
(0, import_class_validator67.IsString)({ message: "Onboarding Days must be a string." }),
|
|
7736
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
7664
7737
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
7665
7738
|
__decorateClass([
|
|
7666
|
-
(0,
|
|
7667
|
-
(0,
|
|
7739
|
+
(0, import_class_validator67.IsString)({ message: "Communication skills must be a string." }),
|
|
7740
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Communication skills are required." })
|
|
7668
7741
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
7669
7742
|
__decorateClass([
|
|
7670
|
-
(0,
|
|
7671
|
-
(0,
|
|
7743
|
+
(0, import_class_validator67.IsString)({ message: "Currency must be a string." }),
|
|
7744
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Currency is required." })
|
|
7672
7745
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
7673
7746
|
__decorateClass([
|
|
7674
7747
|
(0, import_class_transformer13.Type)(() => Number),
|
|
7675
|
-
(0,
|
|
7748
|
+
(0, import_class_validator67.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
7676
7749
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
7677
7750
|
__decorateClass([
|
|
7678
7751
|
(0, import_class_transformer13.Type)(() => Number),
|
|
7679
|
-
(0,
|
|
7752
|
+
(0, import_class_validator67.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
7680
7753
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
7681
7754
|
__decorateClass([
|
|
7682
|
-
(0,
|
|
7755
|
+
(0, import_class_validator67.IsDateString)(
|
|
7683
7756
|
{ strict: true },
|
|
7684
7757
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
7685
7758
|
)
|
|
7686
7759
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
7687
7760
|
__decorateClass([
|
|
7688
|
-
(0,
|
|
7761
|
+
(0, import_class_validator67.IsDateString)(
|
|
7689
7762
|
{ strict: true },
|
|
7690
7763
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
7691
7764
|
)
|
|
7692
7765
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
7693
7766
|
__decorateClass([
|
|
7694
|
-
(0,
|
|
7695
|
-
(0,
|
|
7767
|
+
(0, import_class_validator67.IsOptional)(),
|
|
7768
|
+
(0, import_class_validator67.IsString)({ message: "Additional comment must be a string." })
|
|
7696
7769
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
7697
7770
|
__decorateClass([
|
|
7698
|
-
(0,
|
|
7699
|
-
(0,
|
|
7771
|
+
(0, import_class_validator67.IsOptional)(),
|
|
7772
|
+
(0, import_class_validator67.IsInt)({ message: "Country ID must be a valid integer." })
|
|
7700
7773
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
7701
7774
|
__decorateClass([
|
|
7702
|
-
(0,
|
|
7703
|
-
(0,
|
|
7775
|
+
(0, import_class_validator67.IsOptional)(),
|
|
7776
|
+
(0, import_class_validator67.IsInt)({ message: "State ID must be a valid integer." })
|
|
7704
7777
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
7705
7778
|
__decorateClass([
|
|
7706
|
-
(0,
|
|
7707
|
-
(0,
|
|
7779
|
+
(0, import_class_validator67.IsOptional)(),
|
|
7780
|
+
(0, import_class_validator67.IsInt)({ message: "City ID must be a valid integer." })
|
|
7708
7781
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
7709
7782
|
__decorateClass([
|
|
7710
|
-
(0,
|
|
7783
|
+
(0, import_class_validator67.IsInt)({ message: "Client ID must be a valid integer." })
|
|
7711
7784
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
7712
7785
|
|
|
7713
7786
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
7714
|
-
var
|
|
7787
|
+
var import_class_validator68 = require("class-validator");
|
|
7715
7788
|
var import_class_transformer14 = require("class-transformer");
|
|
7716
7789
|
var JobLocationAdminEnumDto = /* @__PURE__ */ ((JobLocationAdminEnumDto2) => {
|
|
7717
7790
|
JobLocationAdminEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -7741,16 +7814,16 @@ var AdminStepCompletedEnumV2 = /* @__PURE__ */ ((AdminStepCompletedEnumV22) => {
|
|
|
7741
7814
|
var JobLocationAdminDto = class {
|
|
7742
7815
|
};
|
|
7743
7816
|
__decorateClass([
|
|
7744
|
-
(0,
|
|
7745
|
-
(0,
|
|
7817
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7818
|
+
(0, import_class_validator68.IsNumber)()
|
|
7746
7819
|
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
7747
7820
|
__decorateClass([
|
|
7748
|
-
(0,
|
|
7749
|
-
(0,
|
|
7821
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7822
|
+
(0, import_class_validator68.IsNumber)()
|
|
7750
7823
|
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
7751
7824
|
__decorateClass([
|
|
7752
|
-
(0,
|
|
7753
|
-
(0,
|
|
7825
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7826
|
+
(0, import_class_validator68.IsNumber)()
|
|
7754
7827
|
], JobLocationAdminDto.prototype, "cityId", 2);
|
|
7755
7828
|
var AdminJobBasicInformationV2Dto = class {
|
|
7756
7829
|
constructor() {
|
|
@@ -7758,158 +7831,158 @@ var AdminJobBasicInformationV2Dto = class {
|
|
|
7758
7831
|
}
|
|
7759
7832
|
};
|
|
7760
7833
|
__decorateClass([
|
|
7761
|
-
(0,
|
|
7834
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7762
7835
|
(0, import_class_transformer14.Type)(() => Boolean)
|
|
7763
7836
|
], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
7764
7837
|
__decorateClass([
|
|
7765
|
-
(0,
|
|
7838
|
+
(0, import_class_validator68.IsInt)({ message: "Client ID must be a valid integer." })
|
|
7766
7839
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
7767
7840
|
__decorateClass([
|
|
7768
|
-
(0,
|
|
7769
|
-
(0,
|
|
7841
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter job role" }),
|
|
7842
|
+
(0, import_class_validator68.IsString)({ message: "Job role must be a string" })
|
|
7770
7843
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
7771
7844
|
__decorateClass([
|
|
7772
|
-
(0,
|
|
7773
|
-
(0,
|
|
7845
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7846
|
+
(0, import_class_validator68.IsString)({ message: "Note must be a string" })
|
|
7774
7847
|
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
7775
7848
|
__decorateClass([
|
|
7776
|
-
(0,
|
|
7777
|
-
(0,
|
|
7778
|
-
(0,
|
|
7779
|
-
(0,
|
|
7780
|
-
(0,
|
|
7849
|
+
(0, import_class_validator68.ValidateIf)((o) => !o.isDraft),
|
|
7850
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7851
|
+
(0, import_class_validator68.IsArray)({ message: "Skills must be an array" }),
|
|
7852
|
+
(0, import_class_validator68.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
7853
|
+
(0, import_class_validator68.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
7781
7854
|
(0, import_class_transformer14.Type)(() => String)
|
|
7782
7855
|
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
7783
7856
|
__decorateClass([
|
|
7784
|
-
(0,
|
|
7785
|
-
(0,
|
|
7786
|
-
(0,
|
|
7857
|
+
(0, import_class_validator68.ValidateIf)((o) => !o.isDraft),
|
|
7858
|
+
(0, import_class_validator68.IsNumber)({}, { message: "Openings must be a number" }),
|
|
7859
|
+
(0, import_class_validator68.Min)(1, { message: "There must be at least 1 opening" }),
|
|
7787
7860
|
(0, import_class_transformer14.Type)(() => Number)
|
|
7788
7861
|
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
7789
7862
|
__decorateClass([
|
|
7790
|
-
(0,
|
|
7791
|
-
(0,
|
|
7863
|
+
(0, import_class_validator68.ValidateIf)((o) => !o.isDraft),
|
|
7864
|
+
(0, import_class_validator68.IsEnum)(JobLocationAdminEnumDto, {
|
|
7792
7865
|
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
7793
7866
|
", "
|
|
7794
7867
|
)}`
|
|
7795
7868
|
})
|
|
7796
7869
|
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
7797
7870
|
__decorateClass([
|
|
7798
|
-
(0,
|
|
7799
|
-
(0,
|
|
7871
|
+
(0, import_class_validator68.ValidateIf)((o) => !o.isDraft),
|
|
7872
|
+
(0, import_class_validator68.IsEnum)(EmploymentTypeAdminEnumDto, {
|
|
7800
7873
|
message: `Type of employment must be one of: ${Object.values(
|
|
7801
7874
|
EmploymentTypeAdminEnumDto
|
|
7802
7875
|
).join(", ")}`
|
|
7803
7876
|
})
|
|
7804
7877
|
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7805
7878
|
__decorateClass([
|
|
7806
|
-
(0,
|
|
7807
|
-
(0,
|
|
7808
|
-
(0,
|
|
7879
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7880
|
+
(0, import_class_validator68.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
7881
|
+
(0, import_class_validator68.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
7809
7882
|
(0, import_class_transformer14.Type)(() => Number)
|
|
7810
7883
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
7811
7884
|
__decorateClass([
|
|
7812
|
-
(0,
|
|
7813
|
-
(0,
|
|
7814
|
-
(0,
|
|
7885
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7886
|
+
(0, import_class_validator68.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
7887
|
+
(0, import_class_validator68.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
7815
7888
|
(0, import_class_transformer14.Type)(() => Number)
|
|
7816
7889
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
7817
7890
|
__decorateClass([
|
|
7818
|
-
(0,
|
|
7891
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7819
7892
|
(0, import_class_transformer14.Type)(() => JobLocationAdminDto)
|
|
7820
7893
|
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
7821
7894
|
__decorateClass([
|
|
7822
|
-
(0,
|
|
7823
|
-
(0,
|
|
7824
|
-
(0,
|
|
7895
|
+
(0, import_class_validator68.ValidateIf)((o) => !o.isDraft),
|
|
7896
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter the academic qualification" }),
|
|
7897
|
+
(0, import_class_validator68.IsString)({ message: "Academic qualification must be a string" })
|
|
7825
7898
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
7826
7899
|
__decorateClass([
|
|
7827
|
-
(0,
|
|
7828
|
-
(0,
|
|
7900
|
+
(0, import_class_validator68.ValidateIf)((o) => !o.isDraft),
|
|
7901
|
+
(0, import_class_validator68.IsEnum)(typeOfExperienceAdminEnumDto, {
|
|
7829
7902
|
message: `Type of experience must be one of: ${Object.values(
|
|
7830
7903
|
typeOfExperienceAdminEnumDto
|
|
7831
7904
|
).join(", ")}`
|
|
7832
7905
|
})
|
|
7833
7906
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
7834
7907
|
__decorateClass([
|
|
7835
|
-
(0,
|
|
7836
|
-
(0,
|
|
7837
|
-
(0,
|
|
7908
|
+
(0, import_class_validator68.ValidateIf)((o) => !o.isDraft),
|
|
7909
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter the years of experience" }),
|
|
7910
|
+
(0, import_class_validator68.IsString)({ message: "Years of experience must be a string" })
|
|
7838
7911
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
7839
7912
|
__decorateClass([
|
|
7840
|
-
(0,
|
|
7841
|
-
(0,
|
|
7842
|
-
(0,
|
|
7913
|
+
(0, import_class_validator68.ValidateIf)((o) => !o.isDraft),
|
|
7914
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter the years of experience upto" }),
|
|
7915
|
+
(0, import_class_validator68.IsString)({ message: "Years of experience must be a string" })
|
|
7843
7916
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
7844
7917
|
__decorateClass([
|
|
7845
|
-
(0,
|
|
7846
|
-
(0,
|
|
7918
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7919
|
+
(0, import_class_validator68.IsString)({ message: "Business industry must be a string" })
|
|
7847
7920
|
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
7848
7921
|
__decorateClass([
|
|
7849
|
-
(0,
|
|
7850
|
-
(0,
|
|
7922
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7923
|
+
(0, import_class_validator68.IsString)({ message: "Project name must be a string" })
|
|
7851
7924
|
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
7852
7925
|
__decorateClass([
|
|
7853
|
-
(0,
|
|
7926
|
+
(0, import_class_validator68.IsOptional)()
|
|
7854
7927
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
7855
7928
|
__decorateClass([
|
|
7856
|
-
(0,
|
|
7929
|
+
(0, import_class_validator68.IsOptional)()
|
|
7857
7930
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
7858
7931
|
__decorateClass([
|
|
7859
|
-
(0,
|
|
7860
|
-
(0,
|
|
7861
|
-
(0,
|
|
7932
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7933
|
+
(0, import_class_validator68.IsNumber)({}, { message: "Expected annual budget (from) must be a number" }),
|
|
7934
|
+
(0, import_class_validator68.Min)(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
7862
7935
|
(0, import_class_transformer14.Type)(() => Number)
|
|
7863
7936
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
7864
7937
|
__decorateClass([
|
|
7865
|
-
(0,
|
|
7938
|
+
(0, import_class_validator68.IsOptional)()
|
|
7866
7939
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
7867
7940
|
__decorateClass([
|
|
7868
|
-
(0,
|
|
7869
|
-
(0,
|
|
7870
|
-
(0,
|
|
7941
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7942
|
+
(0, import_class_validator68.IsNumber)({}, { message: "Expected annual budget (to) must be a number" }),
|
|
7943
|
+
(0, import_class_validator68.Min)(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
7871
7944
|
(0, import_class_transformer14.Type)(() => Number)
|
|
7872
7945
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
|
|
7873
7946
|
__decorateClass([
|
|
7874
|
-
(0,
|
|
7947
|
+
(0, import_class_validator68.IsOptional)()
|
|
7875
7948
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
7876
7949
|
__decorateClass([
|
|
7877
|
-
(0,
|
|
7878
|
-
(0,
|
|
7879
|
-
(0,
|
|
7880
|
-
(0,
|
|
7950
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7951
|
+
(0, import_class_validator68.IsNumber)({}, { message: "Number of hours must be a number" }),
|
|
7952
|
+
(0, import_class_validator68.Min)(0, { message: "Number of hours cannot be negative" }),
|
|
7953
|
+
(0, import_class_validator68.Max)(40, { message: "Number of hours cannot exceed 40" }),
|
|
7881
7954
|
(0, import_class_transformer14.Type)(() => Number)
|
|
7882
7955
|
], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
7883
7956
|
__decorateClass([
|
|
7884
|
-
(0,
|
|
7957
|
+
(0, import_class_validator68.IsOptional)()
|
|
7885
7958
|
], AdminJobBasicInformationV2Dto.prototype, "years", 2);
|
|
7886
7959
|
__decorateClass([
|
|
7887
|
-
(0,
|
|
7960
|
+
(0, import_class_validator68.IsOptional)()
|
|
7888
7961
|
], AdminJobBasicInformationV2Dto.prototype, "months", 2);
|
|
7889
7962
|
__decorateClass([
|
|
7890
|
-
(0,
|
|
7963
|
+
(0, import_class_validator68.IsOptional)()
|
|
7891
7964
|
], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
7892
7965
|
__decorateClass([
|
|
7893
|
-
(0,
|
|
7966
|
+
(0, import_class_validator68.IsOptional)()
|
|
7894
7967
|
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
7895
7968
|
__decorateClass([
|
|
7896
|
-
(0,
|
|
7897
|
-
(0,
|
|
7898
|
-
(0,
|
|
7969
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7970
|
+
(0, import_class_validator68.IsString)({ message: "Additional comment must be a string" }),
|
|
7971
|
+
(0, import_class_validator68.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
7899
7972
|
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
7900
7973
|
__decorateClass([
|
|
7901
|
-
(0,
|
|
7902
|
-
(0,
|
|
7903
|
-
(0,
|
|
7904
|
-
(0,
|
|
7974
|
+
(0, import_class_validator68.ValidateIf)((o) => !o.isDraft),
|
|
7975
|
+
(0, import_class_validator68.IsArray)({ message: "Good to have skills must be an array" }),
|
|
7976
|
+
(0, import_class_validator68.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
7977
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7905
7978
|
(0, import_class_transformer14.Type)(() => String)
|
|
7906
7979
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
7907
7980
|
__decorateClass([
|
|
7908
|
-
(0,
|
|
7981
|
+
(0, import_class_validator68.IsOptional)()
|
|
7909
7982
|
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
7910
7983
|
__decorateClass([
|
|
7911
|
-
(0,
|
|
7912
|
-
(0,
|
|
7984
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7985
|
+
(0, import_class_validator68.IsEnum)(AdminStepCompletedEnumV2, {
|
|
7913
7986
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
7914
7987
|
AdminStepCompletedEnumV2
|
|
7915
7988
|
).join(", ")}`
|
|
@@ -7923,7 +7996,7 @@ var LEAD_PATTERN = {
|
|
|
7923
7996
|
};
|
|
7924
7997
|
|
|
7925
7998
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
7926
|
-
var
|
|
7999
|
+
var import_class_validator69 = require("class-validator");
|
|
7927
8000
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
7928
8001
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
7929
8002
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -7932,23 +8005,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
7932
8005
|
var CreateLeadDto = class {
|
|
7933
8006
|
};
|
|
7934
8007
|
__decorateClass([
|
|
7935
|
-
(0,
|
|
8008
|
+
(0, import_class_validator69.IsString)({ message: "Name must be a string" })
|
|
7936
8009
|
], CreateLeadDto.prototype, "name", 2);
|
|
7937
8010
|
__decorateClass([
|
|
7938
|
-
(0,
|
|
8011
|
+
(0, import_class_validator69.IsEmail)({}, { message: "Invalid email address" })
|
|
7939
8012
|
], CreateLeadDto.prototype, "email", 2);
|
|
7940
8013
|
__decorateClass([
|
|
7941
|
-
(0,
|
|
8014
|
+
(0, import_class_validator69.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
7942
8015
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
7943
8016
|
__decorateClass([
|
|
7944
|
-
(0,
|
|
8017
|
+
(0, import_class_validator69.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
7945
8018
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
7946
8019
|
__decorateClass([
|
|
7947
|
-
(0,
|
|
7948
|
-
(0,
|
|
8020
|
+
(0, import_class_validator69.IsOptional)(),
|
|
8021
|
+
(0, import_class_validator69.IsString)({ message: "Description must be a string" })
|
|
7949
8022
|
], CreateLeadDto.prototype, "description", 2);
|
|
7950
8023
|
__decorateClass([
|
|
7951
|
-
(0,
|
|
8024
|
+
(0, import_class_validator69.IsEnum)(CategoryEmumDto, {
|
|
7952
8025
|
message: `Type of category must be one of: ${Object.values(
|
|
7953
8026
|
CategoryEmumDto
|
|
7954
8027
|
).join(", ")}`
|
|
@@ -7969,46 +8042,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
7969
8042
|
};
|
|
7970
8043
|
|
|
7971
8044
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
7972
|
-
var
|
|
8045
|
+
var import_class_validator70 = require("class-validator");
|
|
7973
8046
|
var CreateAdminRoleDto = class {
|
|
7974
8047
|
};
|
|
7975
8048
|
__decorateClass([
|
|
7976
|
-
(0,
|
|
7977
|
-
(0,
|
|
8049
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
8050
|
+
(0, import_class_validator70.IsString)({ message: "Role name must be a string." })
|
|
7978
8051
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
7979
8052
|
__decorateClass([
|
|
7980
|
-
(0,
|
|
7981
|
-
(0,
|
|
8053
|
+
(0, import_class_validator70.IsOptional)(),
|
|
8054
|
+
(0, import_class_validator70.IsString)({ message: "Role description must be a string." })
|
|
7982
8055
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7983
8056
|
|
|
7984
8057
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
7985
|
-
var
|
|
8058
|
+
var import_class_validator71 = require("class-validator");
|
|
7986
8059
|
var UpdateAdminRoleDto = class {
|
|
7987
8060
|
};
|
|
7988
8061
|
__decorateClass([
|
|
7989
|
-
(0,
|
|
7990
|
-
(0,
|
|
8062
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
8063
|
+
(0, import_class_validator71.IsString)({ message: "Role name must be a string." })
|
|
7991
8064
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
7992
8065
|
__decorateClass([
|
|
7993
|
-
(0,
|
|
7994
|
-
(0,
|
|
8066
|
+
(0, import_class_validator71.IsOptional)(),
|
|
8067
|
+
(0, import_class_validator71.IsString)({ message: "Role description must be a string." })
|
|
7995
8068
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7996
8069
|
__decorateClass([
|
|
7997
|
-
(0,
|
|
7998
|
-
(0,
|
|
8070
|
+
(0, import_class_validator71.IsOptional)(),
|
|
8071
|
+
(0, import_class_validator71.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
7999
8072
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
8000
8073
|
|
|
8001
8074
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
8002
|
-
var
|
|
8075
|
+
var import_class_validator72 = require("class-validator");
|
|
8003
8076
|
var AttachPermissionsToRoleDto = class {
|
|
8004
8077
|
};
|
|
8005
8078
|
__decorateClass([
|
|
8006
|
-
(0,
|
|
8007
|
-
(0,
|
|
8079
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Please enter admin role ID." }),
|
|
8080
|
+
(0, import_class_validator72.IsString)({ message: "Role ID must be a string." })
|
|
8008
8081
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
8009
8082
|
__decorateClass([
|
|
8010
|
-
(0,
|
|
8011
|
-
(0,
|
|
8083
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Please enter permission IDs." }),
|
|
8084
|
+
(0, import_class_validator72.IsString)({ message: "Permission IDs must be a comma-separated string." })
|
|
8012
8085
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
8013
8086
|
|
|
8014
8087
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -8088,7 +8161,7 @@ var INTERVIEW_PATTERN = {
|
|
|
8088
8161
|
};
|
|
8089
8162
|
|
|
8090
8163
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
8091
|
-
var
|
|
8164
|
+
var import_class_validator73 = require("class-validator");
|
|
8092
8165
|
var import_class_transformer15 = require("class-transformer");
|
|
8093
8166
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
8094
8167
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -8100,126 +8173,126 @@ var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
|
8100
8173
|
var ExistingCandidateDto = class {
|
|
8101
8174
|
};
|
|
8102
8175
|
__decorateClass([
|
|
8103
|
-
(0,
|
|
8176
|
+
(0, import_class_validator73.IsUUID)()
|
|
8104
8177
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
8105
8178
|
__decorateClass([
|
|
8106
|
-
(0,
|
|
8179
|
+
(0, import_class_validator73.IsEnum)(CandidateType, {
|
|
8107
8180
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
8108
8181
|
})
|
|
8109
8182
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
8110
8183
|
var NewCandidateDto = class {
|
|
8111
8184
|
};
|
|
8112
8185
|
__decorateClass([
|
|
8113
|
-
(0,
|
|
8114
|
-
(0,
|
|
8186
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Please enter the candidate name" }),
|
|
8187
|
+
(0, import_class_validator73.IsString)({ message: "Name must be a string" })
|
|
8115
8188
|
], NewCandidateDto.prototype, "name", 2);
|
|
8116
8189
|
__decorateClass([
|
|
8117
|
-
(0,
|
|
8190
|
+
(0, import_class_validator73.IsEmail)({}, { message: "Please enter a valid email." })
|
|
8118
8191
|
], NewCandidateDto.prototype, "email", 2);
|
|
8119
8192
|
__decorateClass([
|
|
8120
|
-
(0,
|
|
8193
|
+
(0, import_class_validator73.IsEnum)(CandidateType, {
|
|
8121
8194
|
message: "type must be NEW"
|
|
8122
8195
|
})
|
|
8123
8196
|
], NewCandidateDto.prototype, "type", 2);
|
|
8124
8197
|
var CandidatesDto = class {
|
|
8125
8198
|
};
|
|
8126
8199
|
__decorateClass([
|
|
8127
|
-
(0,
|
|
8128
|
-
(0,
|
|
8129
|
-
(0,
|
|
8130
|
-
(0,
|
|
8200
|
+
(0, import_class_validator73.ValidateIf)((o) => o.exixtingCandidates?.length > 0),
|
|
8201
|
+
(0, import_class_validator73.IsArray)({ message: "Existing candidates should be an array." }),
|
|
8202
|
+
(0, import_class_validator73.ArrayNotEmpty)({ message: "Please select at least one candidate." }),
|
|
8203
|
+
(0, import_class_validator73.ValidateNested)({ each: true }),
|
|
8131
8204
|
(0, import_class_transformer15.Type)(() => ExistingCandidateDto)
|
|
8132
8205
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
8133
8206
|
__decorateClass([
|
|
8134
|
-
(0,
|
|
8135
|
-
(0,
|
|
8136
|
-
(0,
|
|
8137
|
-
(0,
|
|
8207
|
+
(0, import_class_validator73.ValidateIf)((o) => o.newCandidates?.length > 0),
|
|
8208
|
+
(0, import_class_validator73.IsArray)({ message: "New candidates should be an array." }),
|
|
8209
|
+
(0, import_class_validator73.ArrayNotEmpty)({ message: "Please add at least one candidate." }),
|
|
8210
|
+
(0, import_class_validator73.ValidateNested)({ each: true }),
|
|
8138
8211
|
(0, import_class_transformer15.Type)(() => NewCandidateDto)
|
|
8139
8212
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
8140
8213
|
var InterviewInviteDto = class {
|
|
8141
8214
|
};
|
|
8142
8215
|
__decorateClass([
|
|
8143
|
-
(0,
|
|
8216
|
+
(0, import_class_validator73.IsUUID)()
|
|
8144
8217
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
8145
8218
|
__decorateClass([
|
|
8146
|
-
(0,
|
|
8219
|
+
(0, import_class_validator73.ValidateNested)({ each: true }),
|
|
8147
8220
|
(0, import_class_transformer15.Type)(() => CandidatesDto)
|
|
8148
8221
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
8149
8222
|
|
|
8150
8223
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
8151
|
-
var
|
|
8224
|
+
var import_class_validator74 = require("class-validator");
|
|
8152
8225
|
var CreateF2FInterviewDto = class {
|
|
8153
8226
|
};
|
|
8154
8227
|
__decorateClass([
|
|
8155
|
-
(0,
|
|
8156
|
-
(0,
|
|
8228
|
+
(0, import_class_validator74.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
8229
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Invitee email is required." })
|
|
8157
8230
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
8158
8231
|
__decorateClass([
|
|
8159
|
-
(0,
|
|
8160
|
-
(0,
|
|
8232
|
+
(0, import_class_validator74.IsString)({ message: "Invitee name must be a string." }),
|
|
8233
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Invitee name is required." })
|
|
8161
8234
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
8162
8235
|
__decorateClass([
|
|
8163
|
-
(0,
|
|
8236
|
+
(0, import_class_validator74.IsNumber)({}, { message: "Interview ID must be a number." })
|
|
8164
8237
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
8165
8238
|
__decorateClass([
|
|
8166
|
-
(0,
|
|
8239
|
+
(0, import_class_validator74.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
8167
8240
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
8168
8241
|
|
|
8169
8242
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
8170
|
-
var
|
|
8243
|
+
var import_class_validator75 = require("class-validator");
|
|
8171
8244
|
var CreateF2FInterviewDirectDto = class {
|
|
8172
8245
|
};
|
|
8173
8246
|
__decorateClass([
|
|
8174
|
-
(0,
|
|
8175
|
-
(0,
|
|
8247
|
+
(0, import_class_validator75.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
8248
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Invitee email is required." })
|
|
8176
8249
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
8177
8250
|
__decorateClass([
|
|
8178
|
-
(0,
|
|
8179
|
-
(0,
|
|
8251
|
+
(0, import_class_validator75.IsString)({ message: "Invitee name must be a string." }),
|
|
8252
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Invitee name is required." })
|
|
8180
8253
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
8181
8254
|
__decorateClass([
|
|
8182
|
-
(0,
|
|
8255
|
+
(0, import_class_validator75.IsNumber)({}, { message: "Job ID must be a number." })
|
|
8183
8256
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
8184
8257
|
__decorateClass([
|
|
8185
|
-
(0,
|
|
8258
|
+
(0, import_class_validator75.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
8186
8259
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
8187
8260
|
|
|
8188
8261
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
8189
|
-
var
|
|
8262
|
+
var import_class_validator76 = require("class-validator");
|
|
8190
8263
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
8191
8264
|
};
|
|
8192
8265
|
__decorateClass([
|
|
8193
|
-
(0,
|
|
8266
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "F2F Interview ID is required." })
|
|
8194
8267
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
8195
8268
|
__decorateClass([
|
|
8196
|
-
(0,
|
|
8269
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "Rescheduled date is required." })
|
|
8197
8270
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
8198
8271
|
__decorateClass([
|
|
8199
|
-
(0,
|
|
8200
|
-
(0,
|
|
8272
|
+
(0, import_class_validator76.IsString)({ message: "Rescheduled slot must be a string." }),
|
|
8273
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "Rescheduled slot is required." })
|
|
8201
8274
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
8202
8275
|
__decorateClass([
|
|
8203
|
-
(0,
|
|
8276
|
+
(0, import_class_validator76.IsString)({ message: "Freelancer reason must be a string." })
|
|
8204
8277
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
8205
8278
|
|
|
8206
8279
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
8207
|
-
var
|
|
8280
|
+
var import_class_validator77 = require("class-validator");
|
|
8208
8281
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
8209
8282
|
};
|
|
8210
8283
|
__decorateClass([
|
|
8211
|
-
(0,
|
|
8284
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "AI Interview ID is required." })
|
|
8212
8285
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
8213
8286
|
__decorateClass([
|
|
8214
|
-
(0,
|
|
8287
|
+
(0, import_class_validator77.IsString)({ message: "Freelancer reason must be a string." })
|
|
8215
8288
|
], CreateAIInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
8216
8289
|
|
|
8217
8290
|
// src/modules/interview/dto/reject-ai-interview-reschedule-request.dto.ts
|
|
8218
|
-
var
|
|
8291
|
+
var import_class_validator78 = require("class-validator");
|
|
8219
8292
|
var RejectAIInterviewRescheduleRequestDto = class {
|
|
8220
8293
|
};
|
|
8221
8294
|
__decorateClass([
|
|
8222
|
-
(0,
|
|
8295
|
+
(0, import_class_validator78.IsString)({ message: "Client reject reason must be a string." })
|
|
8223
8296
|
], RejectAIInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
8224
8297
|
|
|
8225
8298
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -8257,43 +8330,43 @@ var CONTRACT_PATTERN = {
|
|
|
8257
8330
|
};
|
|
8258
8331
|
|
|
8259
8332
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
8260
|
-
var
|
|
8333
|
+
var import_class_validator79 = require("class-validator");
|
|
8261
8334
|
var import_class_transformer16 = require("class-transformer");
|
|
8262
8335
|
var SignContractForClientDto = class {
|
|
8263
8336
|
};
|
|
8264
8337
|
__decorateClass([
|
|
8265
|
-
(0,
|
|
8338
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Job Id is required." }),
|
|
8266
8339
|
(0, import_class_transformer16.Type)(() => Number),
|
|
8267
|
-
(0,
|
|
8340
|
+
(0, import_class_validator79.IsNumber)({}, { message: "Job ID must be a number." })
|
|
8268
8341
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
8269
8342
|
__decorateClass([
|
|
8270
|
-
(0,
|
|
8343
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Freelancer ID is required." }),
|
|
8271
8344
|
(0, import_class_transformer16.Type)(() => Number),
|
|
8272
|
-
(0,
|
|
8345
|
+
(0, import_class_validator79.IsNumber)({}, { message: "Freelancer ID must be a number." })
|
|
8273
8346
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
8274
8347
|
__decorateClass([
|
|
8275
|
-
(0,
|
|
8276
|
-
(0,
|
|
8348
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Contract type is required." }),
|
|
8349
|
+
(0, import_class_validator79.IsEnum)(ContractTypeEnum)
|
|
8277
8350
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
8278
8351
|
|
|
8279
8352
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
8280
|
-
var
|
|
8353
|
+
var import_class_validator80 = require("class-validator");
|
|
8281
8354
|
var import_class_transformer17 = require("class-transformer");
|
|
8282
8355
|
var SignContractForFreelancerDto = class {
|
|
8283
8356
|
};
|
|
8284
8357
|
__decorateClass([
|
|
8285
|
-
(0,
|
|
8358
|
+
(0, import_class_validator80.IsNotEmpty)({ message: "Job Id is required." }),
|
|
8286
8359
|
(0, import_class_transformer17.Type)(() => Number),
|
|
8287
|
-
(0,
|
|
8360
|
+
(0, import_class_validator80.IsNumber)({}, { message: "Job ID must be a number." })
|
|
8288
8361
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
8289
8362
|
__decorateClass([
|
|
8290
|
-
(0,
|
|
8363
|
+
(0, import_class_validator80.IsNotEmpty)({ message: "Client ID is required." }),
|
|
8291
8364
|
(0, import_class_transformer17.Type)(() => Number),
|
|
8292
|
-
(0,
|
|
8365
|
+
(0, import_class_validator80.IsNumber)({}, { message: "Client ID must be a number." })
|
|
8293
8366
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
8294
8367
|
__decorateClass([
|
|
8295
|
-
(0,
|
|
8296
|
-
(0,
|
|
8368
|
+
(0, import_class_validator80.IsNotEmpty)({ message: "Contract type is required." }),
|
|
8369
|
+
(0, import_class_validator80.IsEnum)(ContractTypeEnum)
|
|
8297
8370
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
8298
8371
|
|
|
8299
8372
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -8317,11 +8390,11 @@ var STRIPE_PATTERN = {
|
|
|
8317
8390
|
};
|
|
8318
8391
|
|
|
8319
8392
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
8320
|
-
var
|
|
8393
|
+
var import_class_validator81 = require("class-validator");
|
|
8321
8394
|
var CreateCheckoutSessionDto = class {
|
|
8322
8395
|
};
|
|
8323
8396
|
__decorateClass([
|
|
8324
|
-
(0,
|
|
8397
|
+
(0, import_class_validator81.IsNotEmpty)({ message: "Amount is required" })
|
|
8325
8398
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
8326
8399
|
|
|
8327
8400
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -8365,101 +8438,143 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
8365
8438
|
};
|
|
8366
8439
|
|
|
8367
8440
|
// src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
|
|
8368
|
-
var
|
|
8441
|
+
var import_class_validator82 = require("class-validator");
|
|
8369
8442
|
var CreateFreelancerTimesheetDto = class {
|
|
8370
8443
|
};
|
|
8371
8444
|
__decorateClass([
|
|
8372
|
-
(0,
|
|
8373
|
-
(0,
|
|
8445
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "Job id is required" }),
|
|
8446
|
+
(0, import_class_validator82.IsNumber)({}, { message: "Job id must be a number" })
|
|
8374
8447
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
8375
8448
|
__decorateClass([
|
|
8376
|
-
(0,
|
|
8377
|
-
(0,
|
|
8449
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "start date is required" }),
|
|
8450
|
+
(0, import_class_validator82.IsDateString)()
|
|
8378
8451
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
8379
8452
|
__decorateClass([
|
|
8380
|
-
(0,
|
|
8381
|
-
(0,
|
|
8453
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "end date is required" }),
|
|
8454
|
+
(0, import_class_validator82.IsDateString)()
|
|
8382
8455
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
8383
8456
|
__decorateClass([
|
|
8384
|
-
(0,
|
|
8385
|
-
(0,
|
|
8457
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "start time is required" }),
|
|
8458
|
+
(0, import_class_validator82.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8386
8459
|
message: "startTime must be in HH:mm:ss format"
|
|
8387
8460
|
})
|
|
8388
8461
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
8389
8462
|
__decorateClass([
|
|
8390
|
-
(0,
|
|
8391
|
-
(0,
|
|
8463
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "end time is required" }),
|
|
8464
|
+
(0, import_class_validator82.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8392
8465
|
message: "endTime must be in HH:mm:ss format"
|
|
8393
8466
|
})
|
|
8394
8467
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
8395
8468
|
__decorateClass([
|
|
8396
|
-
(0,
|
|
8397
|
-
(0,
|
|
8469
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8470
|
+
(0, import_class_validator82.IsInt)()
|
|
8398
8471
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
8399
8472
|
__decorateClass([
|
|
8400
|
-
(0,
|
|
8401
|
-
(0,
|
|
8473
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8474
|
+
(0, import_class_validator82.IsString)()
|
|
8402
8475
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
8403
8476
|
__decorateClass([
|
|
8404
|
-
(0,
|
|
8405
|
-
(0,
|
|
8477
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8478
|
+
(0, import_class_validator82.IsString)()
|
|
8406
8479
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
8407
8480
|
__decorateClass([
|
|
8408
|
-
(0,
|
|
8409
|
-
(0,
|
|
8481
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8482
|
+
(0, import_class_validator82.IsString)()
|
|
8410
8483
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
8411
8484
|
__decorateClass([
|
|
8412
|
-
(0,
|
|
8485
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "Description is required" })
|
|
8413
8486
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
8414
8487
|
|
|
8415
8488
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
8416
|
-
var
|
|
8489
|
+
var import_class_validator83 = require("class-validator");
|
|
8417
8490
|
var UpdateFreelancerTimesheetDto = class {
|
|
8418
8491
|
};
|
|
8419
8492
|
__decorateClass([
|
|
8420
|
-
(0,
|
|
8421
|
-
(0,
|
|
8493
|
+
(0, import_class_validator83.IsNotEmpty)({ message: "Job id is required" }),
|
|
8494
|
+
(0, import_class_validator83.IsNumber)({}, { message: "Job id must be a number" })
|
|
8422
8495
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
8423
8496
|
__decorateClass([
|
|
8424
|
-
(0,
|
|
8425
|
-
(0,
|
|
8497
|
+
(0, import_class_validator83.IsNotEmpty)({ message: "start date is required" }),
|
|
8498
|
+
(0, import_class_validator83.IsDateString)()
|
|
8426
8499
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
8427
8500
|
__decorateClass([
|
|
8428
|
-
(0,
|
|
8429
|
-
(0,
|
|
8501
|
+
(0, import_class_validator83.IsNotEmpty)({ message: "end date is required" }),
|
|
8502
|
+
(0, import_class_validator83.IsDateString)()
|
|
8430
8503
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
8431
8504
|
__decorateClass([
|
|
8432
|
-
(0,
|
|
8433
|
-
(0,
|
|
8505
|
+
(0, import_class_validator83.IsNotEmpty)({ message: "start time is required" }),
|
|
8506
|
+
(0, import_class_validator83.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8434
8507
|
message: "startTime must be in HH:mm:ss format"
|
|
8435
8508
|
})
|
|
8436
8509
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
8437
8510
|
__decorateClass([
|
|
8438
|
-
(0,
|
|
8439
|
-
(0,
|
|
8511
|
+
(0, import_class_validator83.IsNotEmpty)({ message: "end time is required" }),
|
|
8512
|
+
(0, import_class_validator83.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8440
8513
|
message: "endTime must be in HH:mm:ss format"
|
|
8441
8514
|
})
|
|
8442
8515
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
8443
8516
|
__decorateClass([
|
|
8444
|
-
(0,
|
|
8445
|
-
(0,
|
|
8517
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8518
|
+
(0, import_class_validator83.IsInt)()
|
|
8446
8519
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
8447
8520
|
__decorateClass([
|
|
8448
|
-
(0,
|
|
8449
|
-
(0,
|
|
8521
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8522
|
+
(0, import_class_validator83.IsString)()
|
|
8450
8523
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
8451
8524
|
__decorateClass([
|
|
8452
|
-
(0,
|
|
8453
|
-
(0,
|
|
8525
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8526
|
+
(0, import_class_validator83.IsString)()
|
|
8454
8527
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
8455
8528
|
__decorateClass([
|
|
8456
|
-
(0,
|
|
8457
|
-
(0,
|
|
8529
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8530
|
+
(0, import_class_validator83.IsString)()
|
|
8458
8531
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
8459
8532
|
__decorateClass([
|
|
8460
|
-
(0,
|
|
8533
|
+
(0, import_class_validator83.IsNotEmpty)({ message: "Description is required" })
|
|
8461
8534
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
8462
8535
|
|
|
8536
|
+
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
8537
|
+
var import_class_validator84 = require("class-validator");
|
|
8538
|
+
var SubmitTimesheetDto = class {
|
|
8539
|
+
};
|
|
8540
|
+
__decorateClass([
|
|
8541
|
+
(0, import_class_validator84.IsNotEmpty)({ message: "Timesheet line ID is required" }),
|
|
8542
|
+
(0, import_class_validator84.IsNumber)({}, { message: "Timesheet line ID must be a number" })
|
|
8543
|
+
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
8544
|
+
|
|
8545
|
+
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
8546
|
+
var import_class_validator85 = require("class-validator");
|
|
8547
|
+
var ResubmitTimesheetDto = class {
|
|
8548
|
+
};
|
|
8549
|
+
__decorateClass([
|
|
8550
|
+
(0, import_class_validator85.IsNotEmpty)({ message: "Timesheet line ID is required" }),
|
|
8551
|
+
(0, import_class_validator85.IsNumber)({}, { message: "Timesheet line ID must be a number" })
|
|
8552
|
+
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
8553
|
+
|
|
8554
|
+
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
8555
|
+
var import_class_validator86 = require("class-validator");
|
|
8556
|
+
var ApproveTimesheetsDto = class {
|
|
8557
|
+
};
|
|
8558
|
+
__decorateClass([
|
|
8559
|
+
(0, import_class_validator86.IsArray)({ message: "Timesheet line IDs must be an array" }),
|
|
8560
|
+
(0, import_class_validator86.ArrayNotEmpty)({ message: "At least one timesheet line ID is required" }),
|
|
8561
|
+
(0, import_class_validator86.IsNumber)({}, { each: true, message: "Each timesheet line ID must be a number" })
|
|
8562
|
+
], ApproveTimesheetsDto.prototype, "timesheetLineIds", 2);
|
|
8563
|
+
|
|
8564
|
+
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
8565
|
+
var import_class_validator87 = require("class-validator");
|
|
8566
|
+
var SendBackTimesheetsDto = class {
|
|
8567
|
+
};
|
|
8568
|
+
__decorateClass([
|
|
8569
|
+
(0, import_class_validator87.IsArray)({ message: "Timesheet line IDs must be an array" }),
|
|
8570
|
+
(0, import_class_validator87.ArrayNotEmpty)({ message: "At least one timesheet line ID is required" }),
|
|
8571
|
+
(0, import_class_validator87.IsNumber)({}, { each: true, message: "Each timesheet line ID must be a number" })
|
|
8572
|
+
], SendBackTimesheetsDto.prototype, "timesheetLineIds", 2);
|
|
8573
|
+
__decorateClass([
|
|
8574
|
+
(0, import_class_validator87.IsOptional)(),
|
|
8575
|
+
(0, import_class_validator87.IsString)()
|
|
8576
|
+
], SendBackTimesheetsDto.prototype, "reason", 2);
|
|
8577
|
+
|
|
8463
8578
|
// src/modules/invoice/pattern/pattern.ts
|
|
8464
8579
|
var INVOICE_PATTERN = {
|
|
8465
8580
|
createInvoice: "invoice.create",
|
|
@@ -8479,16 +8594,25 @@ var INVOICE_PATTERN = {
|
|
|
8479
8594
|
};
|
|
8480
8595
|
|
|
8481
8596
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
8482
|
-
var
|
|
8597
|
+
var import_class_validator88 = require("class-validator");
|
|
8483
8598
|
var UpdateInvoiceStatusDto = class {
|
|
8484
8599
|
};
|
|
8485
8600
|
__decorateClass([
|
|
8486
|
-
(0,
|
|
8487
|
-
(0,
|
|
8601
|
+
(0, import_class_validator88.IsNotEmpty)({ message: "Please provide invoice status." }),
|
|
8602
|
+
(0, import_class_validator88.IsEnum)(InvoiceStatusEnum, {
|
|
8488
8603
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
8489
8604
|
})
|
|
8490
8605
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
8491
8606
|
|
|
8607
|
+
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
8608
|
+
var import_class_validator89 = require("class-validator");
|
|
8609
|
+
var CreateInvoiceDto = class {
|
|
8610
|
+
};
|
|
8611
|
+
__decorateClass([
|
|
8612
|
+
(0, import_class_validator89.IsNotEmpty)({ message: "Timesheet line ID is required" }),
|
|
8613
|
+
(0, import_class_validator89.IsNumber)({}, { message: "Timesheet line ID must be a number" })
|
|
8614
|
+
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
8615
|
+
|
|
8492
8616
|
// src/modules/dispute/pattern/pattern.ts
|
|
8493
8617
|
var DISPUTE_PATTERN = {
|
|
8494
8618
|
fetchDisputes: "fetch.disputes",
|
|
@@ -8497,42 +8621,42 @@ var DISPUTE_PATTERN = {
|
|
|
8497
8621
|
};
|
|
8498
8622
|
|
|
8499
8623
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
8500
|
-
var
|
|
8624
|
+
var import_class_validator90 = require("class-validator");
|
|
8501
8625
|
var import_class_transformer18 = require("class-transformer");
|
|
8502
8626
|
var CreateDisputeDto = class {
|
|
8503
8627
|
};
|
|
8504
8628
|
__decorateClass([
|
|
8505
|
-
(0,
|
|
8506
|
-
(0,
|
|
8629
|
+
(0, import_class_validator90.ValidateIf)((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
8630
|
+
(0, import_class_validator90.IsNumber)({}, { message: "Client id must be a number" }),
|
|
8507
8631
|
(0, import_class_transformer18.Type)(() => Number)
|
|
8508
8632
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
8509
8633
|
__decorateClass([
|
|
8510
|
-
(0,
|
|
8511
|
-
(0,
|
|
8634
|
+
(0, import_class_validator90.ValidateIf)((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
8635
|
+
(0, import_class_validator90.IsNumber)({}, { message: "Freelancer id must be a number" }),
|
|
8512
8636
|
(0, import_class_transformer18.Type)(() => Number)
|
|
8513
8637
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
8514
8638
|
__decorateClass([
|
|
8515
|
-
(0,
|
|
8516
|
-
(0,
|
|
8517
|
-
(0,
|
|
8639
|
+
(0, import_class_validator90.IsNotEmpty)({ message: "Please select dispute type." }),
|
|
8640
|
+
(0, import_class_validator90.IsString)(),
|
|
8641
|
+
(0, import_class_validator90.IsIn)(["JOB", "INVOICE"])
|
|
8518
8642
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
8519
8643
|
__decorateClass([
|
|
8520
|
-
(0,
|
|
8521
|
-
(0,
|
|
8644
|
+
(0, import_class_validator90.IsNotEmpty)({ message: "Please provide initiator type." }),
|
|
8645
|
+
(0, import_class_validator90.IsString)()
|
|
8522
8646
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
8523
8647
|
__decorateClass([
|
|
8524
|
-
(0,
|
|
8525
|
-
(0,
|
|
8526
|
-
(0,
|
|
8648
|
+
(0, import_class_validator90.IsNotEmpty)({ message: "Please enter description." }),
|
|
8649
|
+
(0, import_class_validator90.IsString)({ message: "Description must be a string" }),
|
|
8650
|
+
(0, import_class_validator90.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
8527
8651
|
], CreateDisputeDto.prototype, "description", 2);
|
|
8528
8652
|
__decorateClass([
|
|
8529
|
-
(0,
|
|
8530
|
-
(0,
|
|
8531
|
-
(0,
|
|
8653
|
+
(0, import_class_validator90.IsOptional)(),
|
|
8654
|
+
(0, import_class_validator90.IsString)({ message: "Comment must be a string" }),
|
|
8655
|
+
(0, import_class_validator90.MaxLength)(500, { message: "Comment must not exceed 500 characters" })
|
|
8532
8656
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
8533
8657
|
__decorateClass([
|
|
8534
|
-
(0,
|
|
8535
|
-
(0,
|
|
8658
|
+
(0, import_class_validator90.IsOptional)(),
|
|
8659
|
+
(0, import_class_validator90.IsObject)({ message: "Dynamic fields must be a valid object" }),
|
|
8536
8660
|
(0, import_class_transformer18.Transform)(({ value }) => {
|
|
8537
8661
|
if (typeof value === "string") {
|
|
8538
8662
|
try {
|
|
@@ -8553,14 +8677,14 @@ var SENSELOAF_PATTERN = {
|
|
|
8553
8677
|
};
|
|
8554
8678
|
|
|
8555
8679
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
8556
|
-
var
|
|
8680
|
+
var import_class_validator91 = require("class-validator");
|
|
8557
8681
|
var AiInterviewQuestionGenerateDto = class {
|
|
8558
8682
|
};
|
|
8559
8683
|
__decorateClass([
|
|
8560
|
-
(0,
|
|
8684
|
+
(0, import_class_validator91.IsNotEmpty)({ message: "Please enter job description." })
|
|
8561
8685
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
8562
8686
|
__decorateClass([
|
|
8563
|
-
(0,
|
|
8687
|
+
(0, import_class_validator91.IsNotEmpty)({ message: "Please enter number of questions." })
|
|
8564
8688
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
8565
8689
|
|
|
8566
8690
|
// src/modules/commission/pattern/pattern.ts
|
|
@@ -8575,6 +8699,19 @@ var HIRING_PATTERN = {
|
|
|
8575
8699
|
createHiring: "create.hiring"
|
|
8576
8700
|
};
|
|
8577
8701
|
|
|
8702
|
+
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
8703
|
+
var import_class_validator92 = require("class-validator");
|
|
8704
|
+
var CreateHiringDto = class {
|
|
8705
|
+
};
|
|
8706
|
+
__decorateClass([
|
|
8707
|
+
(0, import_class_validator92.IsNotEmpty)({ message: "Freelancer ID is required" }),
|
|
8708
|
+
(0, import_class_validator92.IsNumber)({}, { message: "Freelancer ID must be a number" })
|
|
8709
|
+
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
8710
|
+
__decorateClass([
|
|
8711
|
+
(0, import_class_validator92.IsNotEmpty)({ message: "Job ID is required" }),
|
|
8712
|
+
(0, import_class_validator92.IsNumber)({}, { message: "Job ID must be a number" })
|
|
8713
|
+
], CreateHiringDto.prototype, "jobId", 2);
|
|
8714
|
+
|
|
8578
8715
|
// src/modules/llm/pattern/pattern.ts
|
|
8579
8716
|
var LLM_PATTERN = {
|
|
8580
8717
|
handleMcqGeneration: "handle.mcq.generation"
|
|
@@ -9621,6 +9758,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
9621
9758
|
AiInterviewStatusEnum,
|
|
9622
9759
|
AnswerTypeEnum,
|
|
9623
9760
|
ApplicationStatusEnum,
|
|
9761
|
+
ApproveTimesheetsDto,
|
|
9624
9762
|
AssessmentAnswer,
|
|
9625
9763
|
AssessmentRequestStatusEnum,
|
|
9626
9764
|
AssessmentStatusEnum,
|
|
@@ -9649,6 +9787,8 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
9649
9787
|
CaseStudyDto,
|
|
9650
9788
|
CategoryEmum,
|
|
9651
9789
|
CategoryEmumDto,
|
|
9790
|
+
ChangeJobApplicationStatusBulkDto,
|
|
9791
|
+
ChangeJobApplicationStatusDto,
|
|
9652
9792
|
ChatRMQAdapter,
|
|
9653
9793
|
ChatTCPAdapter,
|
|
9654
9794
|
City,
|
|
@@ -9658,6 +9798,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
9658
9798
|
ClientCreateAccountDto,
|
|
9659
9799
|
ClientFreelancerRecommendation,
|
|
9660
9800
|
ClientProfileQuestionDto,
|
|
9801
|
+
CloseJobDto,
|
|
9661
9802
|
Cms,
|
|
9662
9803
|
Commission,
|
|
9663
9804
|
CommissionTypeEnum,
|
|
@@ -9688,6 +9829,9 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
9688
9829
|
CreateF2FInterviewRescheduleRequestDto,
|
|
9689
9830
|
CreateFreelancerDto,
|
|
9690
9831
|
CreateFreelancerTimesheetDto,
|
|
9832
|
+
CreateHiringDto,
|
|
9833
|
+
CreateInvoiceDto,
|
|
9834
|
+
CreateJobApplicationDto,
|
|
9691
9835
|
CreateLeadDto,
|
|
9692
9836
|
CreateQuestionDto,
|
|
9693
9837
|
CreateRatingDto,
|
|
@@ -9779,6 +9923,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
9779
9923
|
Job,
|
|
9780
9924
|
JobAdditionalCommentDto,
|
|
9781
9925
|
JobApplication,
|
|
9926
|
+
JobApplicationStatus,
|
|
9782
9927
|
JobBasicInformationDto,
|
|
9783
9928
|
JobBasicInformationV2Dto,
|
|
9784
9929
|
JobDescriptionDto,
|
|
@@ -9843,6 +9988,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
9843
9988
|
RejectAIInterviewRescheduleRequestDto,
|
|
9844
9989
|
ResetPasswordDto,
|
|
9845
9990
|
ResetPasswordTokenValidationDto,
|
|
9991
|
+
ResubmitTimesheetDto,
|
|
9846
9992
|
ResultStatusEnum,
|
|
9847
9993
|
SENSELOAF_PATTERN,
|
|
9848
9994
|
SIGNATURE_PATTERN,
|
|
@@ -9854,6 +10000,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
9854
10000
|
SYSTEM_PREFERENCES_PATTERN,
|
|
9855
10001
|
ScopeEnum,
|
|
9856
10002
|
SelectedAnswerTypeEnum,
|
|
10003
|
+
SendBackTimesheetsDto,
|
|
9857
10004
|
SendGuestOtpDto,
|
|
9858
10005
|
SendGuestOtpPurposeEnum,
|
|
9859
10006
|
SendGuestOtpScopeEnum,
|
|
@@ -9875,6 +10022,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
9875
10022
|
StripeTransaction,
|
|
9876
10023
|
StripeTransactionStatusEnum,
|
|
9877
10024
|
StripeTransactionTypeEnum,
|
|
10025
|
+
SubmitTimesheetDto,
|
|
9878
10026
|
SystemPreference,
|
|
9879
10027
|
SystemPreferenceDto,
|
|
9880
10028
|
SystemPreferenceKey,
|