@experts_hub/shared 1.0.570 → 1.0.571
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 +241 -1
- package/dist/index.d.ts +241 -1
- package/dist/index.js +1739 -1002
- package/dist/index.mjs +1577 -883
- package/dist/modules/authentication/dto/index.d.ts +3 -0
- package/dist/modules/authentication/dto/social-auth.dto.d.ts +7 -0
- package/dist/modules/authentication/dto/validate-email.dto.d.ts +3 -0
- package/dist/modules/authentication/dto/validate-mobile.dto.d.ts +3 -0
- package/dist/modules/contract/dto/escrow-fund-contract.dto.d.ts +6 -0
- package/dist/modules/contract/dto/esign-contract-client.dto.d.ts +3 -0
- package/dist/modules/contract/dto/esign-contract-freelancer.dto.d.ts +3 -0
- package/dist/modules/contract/dto/generate-contract.dto.d.ts +5 -0
- package/dist/modules/contract/dto/index.d.ts +4 -0
- package/dist/modules/freelancer-admin/dto/index.d.ts +2 -0
- package/dist/modules/freelancer-admin/dto/send-ai-assessment-link.dto.d.ts +3 -0
- package/dist/modules/freelancer-admin/dto/update-assessment-request-status.dto.d.ts +10 -0
- package/dist/modules/interview/dto/capture-ai-interview-result-public.dto.d.ts +5 -0
- package/dist/modules/interview/dto/create-interview-basic-information.dto.d.ts +10 -0
- package/dist/modules/interview/dto/index.d.ts +4 -0
- package/dist/modules/interview/dto/reject-f2f-interview-reschedule-request.dto.d.ts +1 -1
- package/dist/modules/interview/dto/update-interview-basic-information.dto.d.ts +8 -0
- package/dist/modules/notification/dto/index.d.ts +1 -0
- package/dist/modules/notification/dto/test-notification.dto.d.ts +7 -0
- package/dist/modules/notification/index.d.ts +1 -0
- package/dist/modules/onboarding/dto/index.d.ts +1 -0
- package/dist/modules/onboarding/dto/verify-onboarding-token.dto.d.ts +3 -0
- package/dist/modules/otp/dto/index.d.ts +2 -0
- package/dist/modules/otp/dto/send-otp.dto.d.ts +9 -0
- package/dist/modules/otp/dto/verify-otp.dto.d.ts +5 -0
- package/dist/modules/question/dto/index.d.ts +2 -0
- package/dist/modules/question/dto/record-assessment-answer.dto.d.ts +6 -0
- package/dist/modules/question/dto/record-assessment-answers.dto.d.ts +5 -0
- package/dist/modules/senseloaf/dto/ai-assessment-creation.dto.d.ts +6 -0
- package/dist/modules/senseloaf/dto/ai-interview-link-generation.dto.d.ts +6 -0
- package/dist/modules/senseloaf/dto/ai-interview-template-generation.dto.d.ts +6 -0
- package/dist/modules/senseloaf/dto/check-resume-eligibility.dto.d.ts +5 -0
- package/dist/modules/senseloaf/dto/index.d.ts +6 -0
- package/dist/modules/senseloaf/dto/resume-data-processing.dto.d.ts +5 -0
- package/dist/modules/senseloaf/dto/resume-parsing-by-url.dto.d.ts +4 -0
- package/dist/modules/stripe/dto/client-add-fund.dto.d.ts +5 -0
- package/dist/modules/stripe/dto/create-payout.dto.d.ts +6 -0
- package/dist/modules/stripe/dto/index.d.ts +4 -0
- package/dist/modules/stripe/dto/pre-checkout-calculation.dto.d.ts +5 -0
- package/dist/modules/stripe/dto/transfer-funds.dto.d.ts +5 -0
- package/dist/modules/timesheet/dto/create-default-timesheet-line.dto.d.ts +5 -0
- package/dist/modules/timesheet/dto/index.d.ts +1 -0
- package/dist/modules/user/client-candidate-preference/dto/index.d.ts +2 -0
- package/dist/modules/user/client-candidate-preference/dto/mark-candidate-status-bulk.dto.d.ts +3 -0
- package/dist/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.d.ts +3 -0
- package/dist/modules/user/client-candidate-preference/index.d.ts +1 -0
- package/dist/modules/user/client-profile/dto/client-e-signature.dto.d.ts +3 -0
- package/dist/modules/user/client-profile/dto/client-service-agreement-upload.dto.d.ts +3 -0
- package/dist/modules/user/client-profile/dto/fetch-freelancer-info-for-chat.dto.d.ts +3 -0
- package/dist/modules/user/client-profile/dto/index.d.ts +3 -0
- package/dist/modules/user/freelancer-profile/dto/capture-ai-assessment-result.dto.d.ts +5 -0
- package/dist/modules/user/freelancer-profile/dto/fetch-client-info-for-chat.dto.d.ts +3 -0
- package/dist/modules/user/freelancer-profile/dto/freelancer-e-signature.dto.d.ts +3 -0
- package/dist/modules/user/freelancer-profile/dto/index.d.ts +3 -0
- package/dist/modules/user/signature/dto/index.d.ts +1 -0
- package/dist/modules/user/signature/dto/save-signature.dto.d.ts +4 -0
- package/dist/modules/user/signature/index.d.ts +1 -0
- package/dist/modules/wallet/dto/add-topup-escrow-amount.dto.d.ts +3 -0
- package/dist/modules/wallet/dto/debit-commission-fte-hiring.dto.d.ts +4 -0
- package/dist/modules/wallet/dto/index.d.ts +2 -0
- package/dist/modules/wallet/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -197,6 +197,49 @@ __decorateClass([
|
|
|
197
197
|
})
|
|
198
198
|
], ResetPasswordTokenValidationDto.prototype, "scope", 2);
|
|
199
199
|
|
|
200
|
+
// src/modules/authentication/dto/validate-email.dto.ts
|
|
201
|
+
import { IsNotEmpty as IsNotEmpty9, IsEmail as IsEmail2 } from "class-validator";
|
|
202
|
+
var ValidateEmailDto = class {
|
|
203
|
+
};
|
|
204
|
+
__decorateClass([
|
|
205
|
+
IsNotEmpty9({ message: "Email is required" }),
|
|
206
|
+
IsEmail2({}, { message: "Email must be valid" })
|
|
207
|
+
], ValidateEmailDto.prototype, "email", 2);
|
|
208
|
+
|
|
209
|
+
// src/modules/authentication/dto/validate-mobile.dto.ts
|
|
210
|
+
import { IsNotEmpty as IsNotEmpty10, IsPhoneNumber } from "class-validator";
|
|
211
|
+
var ValidateMobileDto = class {
|
|
212
|
+
};
|
|
213
|
+
__decorateClass([
|
|
214
|
+
IsNotEmpty10({ message: "Mobile number is required" }),
|
|
215
|
+
IsPhoneNumber()
|
|
216
|
+
], ValidateMobileDto.prototype, "mobile", 2);
|
|
217
|
+
|
|
218
|
+
// src/modules/authentication/dto/social-auth.dto.ts
|
|
219
|
+
import { IsOptional, IsString, IsObject } from "class-validator";
|
|
220
|
+
var SocialAuthDto = class {
|
|
221
|
+
};
|
|
222
|
+
__decorateClass([
|
|
223
|
+
IsOptional(),
|
|
224
|
+
IsString()
|
|
225
|
+
], SocialAuthDto.prototype, "accessToken", 2);
|
|
226
|
+
__decorateClass([
|
|
227
|
+
IsOptional(),
|
|
228
|
+
IsString()
|
|
229
|
+
], SocialAuthDto.prototype, "refreshToken", 2);
|
|
230
|
+
__decorateClass([
|
|
231
|
+
IsOptional(),
|
|
232
|
+
IsObject()
|
|
233
|
+
], SocialAuthDto.prototype, "profile", 2);
|
|
234
|
+
__decorateClass([
|
|
235
|
+
IsOptional(),
|
|
236
|
+
IsString()
|
|
237
|
+
], SocialAuthDto.prototype, "provider", 2);
|
|
238
|
+
__decorateClass([
|
|
239
|
+
IsOptional(),
|
|
240
|
+
IsString()
|
|
241
|
+
], SocialAuthDto.prototype, "providerId", 2);
|
|
242
|
+
|
|
200
243
|
// src/modules/otp/pattern/pattern.ts
|
|
201
244
|
var OTP_PATTERN = {
|
|
202
245
|
handleSendGuestOtp: "handle.send.guest.otp",
|
|
@@ -207,7 +250,7 @@ var OTP_PATTERN = {
|
|
|
207
250
|
};
|
|
208
251
|
|
|
209
252
|
// src/modules/otp/dto/send-guest-otp.dto.ts
|
|
210
|
-
import { IsEnum as IsEnum7, IsNotEmpty as
|
|
253
|
+
import { IsEnum as IsEnum7, IsNotEmpty as IsNotEmpty11, IsOptional as IsOptional2, IsString as IsString2 } from "class-validator";
|
|
211
254
|
var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
|
|
212
255
|
SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
213
256
|
return SendGuestOtpPurposeEnum2;
|
|
@@ -220,28 +263,28 @@ var SendGuestOtpScopeEnum = /* @__PURE__ */ ((SendGuestOtpScopeEnum2) => {
|
|
|
220
263
|
var SendGuestOtpDto = class {
|
|
221
264
|
};
|
|
222
265
|
__decorateClass([
|
|
223
|
-
|
|
224
|
-
|
|
266
|
+
IsNotEmpty11({ message: "Please enter full name." }),
|
|
267
|
+
IsString2({ message: "Please enter valid full name." })
|
|
225
268
|
], SendGuestOtpDto.prototype, "fullName", 2);
|
|
226
269
|
__decorateClass([
|
|
227
|
-
|
|
228
|
-
|
|
270
|
+
IsNotEmpty11({ message: "Please enter target." }),
|
|
271
|
+
IsString2({ message: "Please enter valid target." })
|
|
229
272
|
], SendGuestOtpDto.prototype, "target", 2);
|
|
230
273
|
__decorateClass([
|
|
231
|
-
|
|
232
|
-
|
|
274
|
+
IsOptional2(),
|
|
275
|
+
IsString2({ message: "Please enter valid fallback target." })
|
|
233
276
|
], SendGuestOtpDto.prototype, "fallbackTarget", 2);
|
|
234
277
|
__decorateClass([
|
|
235
|
-
|
|
278
|
+
IsNotEmpty11({ message: "Please enter OTP purpose." }),
|
|
236
279
|
IsEnum7(SendGuestOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
237
280
|
], SendGuestOtpDto.prototype, "purpose", 2);
|
|
238
281
|
__decorateClass([
|
|
239
|
-
|
|
282
|
+
IsNotEmpty11({ message: "Please enter scope." }),
|
|
240
283
|
IsEnum7(SendGuestOtpScopeEnum, { message: "scope must be a valid" })
|
|
241
284
|
], SendGuestOtpDto.prototype, "scope", 2);
|
|
242
285
|
|
|
243
286
|
// src/modules/otp/dto/send-login-otp.dto.ts
|
|
244
|
-
import { IsEnum as IsEnum8, IsNotEmpty as
|
|
287
|
+
import { IsEnum as IsEnum8, IsNotEmpty as IsNotEmpty12, IsString as IsString3 } from "class-validator";
|
|
245
288
|
var SendLoginOtpPurposeEnum = /* @__PURE__ */ ((SendLoginOtpPurposeEnum2) => {
|
|
246
289
|
SendLoginOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
247
290
|
return SendLoginOtpPurposeEnum2;
|
|
@@ -254,20 +297,20 @@ var SendLoginOtpScopeEnum = /* @__PURE__ */ ((SendLoginOtpScopeEnum2) => {
|
|
|
254
297
|
var SendLoginOtpDto = class {
|
|
255
298
|
};
|
|
256
299
|
__decorateClass([
|
|
257
|
-
|
|
258
|
-
|
|
300
|
+
IsNotEmpty12({ message: "Please enter target." }),
|
|
301
|
+
IsString3({ message: "Please enter valid target." })
|
|
259
302
|
], SendLoginOtpDto.prototype, "target", 2);
|
|
260
303
|
__decorateClass([
|
|
261
|
-
|
|
304
|
+
IsNotEmpty12({ message: "Please enter OTP purpose." }),
|
|
262
305
|
IsEnum8(SendLoginOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
263
306
|
], SendLoginOtpDto.prototype, "purpose", 2);
|
|
264
307
|
__decorateClass([
|
|
265
|
-
|
|
308
|
+
IsNotEmpty12({ message: "Please enter scope." }),
|
|
266
309
|
IsEnum8(SendLoginOtpScopeEnum, { message: "scope must be a valid" })
|
|
267
310
|
], SendLoginOtpDto.prototype, "scope", 2);
|
|
268
311
|
|
|
269
312
|
// src/modules/otp/dto/verify-guest-otp.dto.ts
|
|
270
|
-
import { IsEnum as IsEnum9, IsNotEmpty as
|
|
313
|
+
import { IsEnum as IsEnum9, IsNotEmpty as IsNotEmpty13, IsString as IsString4, Length } from "class-validator";
|
|
271
314
|
var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) => {
|
|
272
315
|
VerifyGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
273
316
|
return VerifyGuestOtpPurposeEnum2;
|
|
@@ -275,21 +318,60 @@ var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) =>
|
|
|
275
318
|
var VerifyGuestOtpDto = class {
|
|
276
319
|
};
|
|
277
320
|
__decorateClass([
|
|
278
|
-
|
|
279
|
-
|
|
321
|
+
IsNotEmpty13({ message: "Please enter target." }),
|
|
322
|
+
IsString4({ message: "Please enter valid target." })
|
|
280
323
|
], VerifyGuestOtpDto.prototype, "target", 2);
|
|
281
324
|
__decorateClass([
|
|
282
|
-
|
|
283
|
-
|
|
325
|
+
IsNotEmpty13({ message: "Please enter otp." }),
|
|
326
|
+
IsString4({ message: "Please enter valid otp." }),
|
|
284
327
|
Length(4, 6, { message: "OTP must be between 4 and 6 characters" })
|
|
285
328
|
], VerifyGuestOtpDto.prototype, "otp", 2);
|
|
286
329
|
__decorateClass([
|
|
287
|
-
|
|
330
|
+
IsNotEmpty13({ message: "Please enter OTP purpose." }),
|
|
288
331
|
IsEnum9(VerifyGuestOtpPurposeEnum, {
|
|
289
332
|
message: "Purpose must be a valid OTP purpose"
|
|
290
333
|
})
|
|
291
334
|
], VerifyGuestOtpDto.prototype, "purpose", 2);
|
|
292
335
|
|
|
336
|
+
// src/modules/otp/dto/send-otp.dto.ts
|
|
337
|
+
import { IsNotEmpty as IsNotEmpty14, IsString as IsString5, IsOptional as IsOptional4, IsEnum as IsEnum10 } from "class-validator";
|
|
338
|
+
var OtpType = /* @__PURE__ */ ((OtpType2) => {
|
|
339
|
+
OtpType2["SMS"] = "SMS";
|
|
340
|
+
OtpType2["EMAIL"] = "EMAIL";
|
|
341
|
+
return OtpType2;
|
|
342
|
+
})(OtpType || {});
|
|
343
|
+
var SendOtpDto = class {
|
|
344
|
+
};
|
|
345
|
+
__decorateClass([
|
|
346
|
+
IsNotEmpty14({ message: "Recipient is required" }),
|
|
347
|
+
IsString5({ message: "Recipient must be a string" })
|
|
348
|
+
], SendOtpDto.prototype, "recipient", 2);
|
|
349
|
+
__decorateClass([
|
|
350
|
+
IsOptional4(),
|
|
351
|
+
IsEnum10(OtpType, { message: `Type must be one of: ${Object.values(OtpType).join(", ")}` })
|
|
352
|
+
], SendOtpDto.prototype, "type", 2);
|
|
353
|
+
__decorateClass([
|
|
354
|
+
IsOptional4(),
|
|
355
|
+
IsString5()
|
|
356
|
+
], SendOtpDto.prototype, "purpose", 2);
|
|
357
|
+
|
|
358
|
+
// src/modules/otp/dto/verify-otp.dto.ts
|
|
359
|
+
import { IsNotEmpty as IsNotEmpty15, IsString as IsString6, IsOptional as IsOptional5 } from "class-validator";
|
|
360
|
+
var VerifyOtpDto = class {
|
|
361
|
+
};
|
|
362
|
+
__decorateClass([
|
|
363
|
+
IsNotEmpty15({ message: "Recipient is required" }),
|
|
364
|
+
IsString6({ message: "Recipient must be a string" })
|
|
365
|
+
], VerifyOtpDto.prototype, "recipient", 2);
|
|
366
|
+
__decorateClass([
|
|
367
|
+
IsNotEmpty15({ message: "OTP code is required" }),
|
|
368
|
+
IsString6({ message: "OTP code must be a string" })
|
|
369
|
+
], VerifyOtpDto.prototype, "otp", 2);
|
|
370
|
+
__decorateClass([
|
|
371
|
+
IsOptional5(),
|
|
372
|
+
IsString6()
|
|
373
|
+
], VerifyOtpDto.prototype, "purpose", 2);
|
|
374
|
+
|
|
293
375
|
// src/modules/onboarding/pattern/pattern.ts
|
|
294
376
|
var ONBOARDING_PATTERN = {
|
|
295
377
|
handleFreelancerAccountCreation: "handle.freelancer.account.creation",
|
|
@@ -316,11 +398,11 @@ var ONBOARDING_PATTERN = {
|
|
|
316
398
|
|
|
317
399
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
318
400
|
import {
|
|
319
|
-
IsNotEmpty as
|
|
320
|
-
IsEmail as
|
|
401
|
+
IsNotEmpty as IsNotEmpty16,
|
|
402
|
+
IsEmail as IsEmail3,
|
|
321
403
|
Matches as Matches3,
|
|
322
|
-
IsString as
|
|
323
|
-
IsOptional as
|
|
404
|
+
IsString as IsString7,
|
|
405
|
+
IsOptional as IsOptional6
|
|
324
406
|
} from "class-validator";
|
|
325
407
|
|
|
326
408
|
// src/decorators/match.decorator.ts
|
|
@@ -496,123 +578,123 @@ function IsBusinessEmail(validationOptions) {
|
|
|
496
578
|
var FreelancerCreateAccountDto = class {
|
|
497
579
|
};
|
|
498
580
|
__decorateClass([
|
|
499
|
-
|
|
500
|
-
|
|
581
|
+
IsNotEmpty16({ message: "Please enter full name." }),
|
|
582
|
+
IsString7({ message: "Please enter valid full name." })
|
|
501
583
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
502
584
|
__decorateClass([
|
|
503
|
-
|
|
504
|
-
|
|
585
|
+
IsNotEmpty16({ message: "Please enter email." }),
|
|
586
|
+
IsEmail3()
|
|
505
587
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
506
588
|
__decorateClass([
|
|
507
|
-
|
|
589
|
+
IsNotEmpty16({ message: "Please enter mobile code." }),
|
|
508
590
|
Matches3(/^\+\d{1,4}$/, {
|
|
509
591
|
message: "Please enter a valid country mobile code (e.g., +91, +1, +44)."
|
|
510
592
|
})
|
|
511
593
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
512
594
|
__decorateClass([
|
|
513
|
-
|
|
595
|
+
IsNotEmpty16({ message: "Please enter mobile number." }),
|
|
514
596
|
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
515
597
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
516
598
|
__decorateClass([
|
|
517
|
-
|
|
599
|
+
IsNotEmpty16({ message: "Please enter country iso code." })
|
|
518
600
|
], FreelancerCreateAccountDto.prototype, "countryISOCode", 2);
|
|
519
601
|
__decorateClass([
|
|
520
|
-
|
|
602
|
+
IsOptional6()
|
|
521
603
|
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
522
604
|
|
|
523
605
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
524
|
-
import { IsUUID, IsNotEmpty as
|
|
606
|
+
import { IsUUID, IsNotEmpty as IsNotEmpty17 } from "class-validator";
|
|
525
607
|
var FreelancerUploadResumeDto = class {
|
|
526
608
|
};
|
|
527
609
|
__decorateClass([
|
|
528
|
-
|
|
610
|
+
IsNotEmpty17({ message: "Please enter uuid." }),
|
|
529
611
|
IsUUID()
|
|
530
612
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
531
613
|
|
|
532
614
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
533
|
-
import { IsUUID as IsUUID2, IsNotEmpty as
|
|
615
|
+
import { IsUUID as IsUUID2, IsNotEmpty as IsNotEmpty18 } from "class-validator";
|
|
534
616
|
var FreelancerParseResumeDto = class {
|
|
535
617
|
};
|
|
536
618
|
__decorateClass([
|
|
537
|
-
|
|
619
|
+
IsNotEmpty18({ message: "Please enter uuid." }),
|
|
538
620
|
IsUUID2()
|
|
539
621
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
540
622
|
|
|
541
623
|
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
542
|
-
import { IsUUID as IsUUID3, IsNotEmpty as
|
|
624
|
+
import { IsUUID as IsUUID3, IsNotEmpty as IsNotEmpty19 } from "class-validator";
|
|
543
625
|
var FreelancerInitiateMcqAssessmentDto = class {
|
|
544
626
|
};
|
|
545
627
|
__decorateClass([
|
|
546
|
-
|
|
628
|
+
IsNotEmpty19({ message: "Please enter uuid." }),
|
|
547
629
|
IsUUID3()
|
|
548
630
|
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
549
631
|
|
|
550
632
|
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
551
|
-
import { IsUUID as IsUUID4, IsNotEmpty as
|
|
633
|
+
import { IsUUID as IsUUID4, IsNotEmpty as IsNotEmpty20 } from "class-validator";
|
|
552
634
|
var FreelancerSkipAiAssessmentDto = class {
|
|
553
635
|
};
|
|
554
636
|
__decorateClass([
|
|
555
|
-
|
|
637
|
+
IsNotEmpty20({ message: "Please enter uuid." }),
|
|
556
638
|
IsUUID4()
|
|
557
639
|
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
558
640
|
|
|
559
641
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
560
|
-
import { IsUUID as IsUUID5, IsNotEmpty as
|
|
642
|
+
import { IsUUID as IsUUID5, IsNotEmpty as IsNotEmpty21 } from "class-validator";
|
|
561
643
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
562
644
|
};
|
|
563
645
|
__decorateClass([
|
|
564
|
-
|
|
646
|
+
IsNotEmpty21({ message: "Please enter uuid." }),
|
|
565
647
|
IsUUID5()
|
|
566
648
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
567
649
|
|
|
568
650
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
569
|
-
import { IsUUID as IsUUID6, IsNotEmpty as
|
|
651
|
+
import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty22, IsOptional as IsOptional7 } from "class-validator";
|
|
570
652
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
571
653
|
};
|
|
572
654
|
__decorateClass([
|
|
573
|
-
|
|
655
|
+
IsNotEmpty22({ message: "Please enter uuid." }),
|
|
574
656
|
IsUUID6()
|
|
575
657
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
576
658
|
__decorateClass([
|
|
577
|
-
|
|
659
|
+
IsNotEmpty22({ message: "Please enter assessment id." })
|
|
578
660
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
579
661
|
__decorateClass([
|
|
580
|
-
|
|
662
|
+
IsNotEmpty22({ message: "Please enter assessment status." })
|
|
581
663
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
582
664
|
__decorateClass([
|
|
583
|
-
|
|
665
|
+
IsOptional7()
|
|
584
666
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
585
667
|
|
|
586
668
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
587
|
-
import { IsUUID as IsUUID7, IsNotEmpty as
|
|
669
|
+
import { IsUUID as IsUUID7, IsNotEmpty as IsNotEmpty23, IsBoolean } from "class-validator";
|
|
588
670
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
589
671
|
};
|
|
590
672
|
__decorateClass([
|
|
591
|
-
|
|
673
|
+
IsNotEmpty23({ message: "Please enter uuid." }),
|
|
592
674
|
IsUUID7()
|
|
593
675
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
594
676
|
__decorateClass([
|
|
595
|
-
|
|
677
|
+
IsNotEmpty23({ message: "Please select development flag." }),
|
|
596
678
|
IsBoolean()
|
|
597
679
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
598
680
|
|
|
599
681
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
600
682
|
import {
|
|
601
683
|
IsUUID as IsUUID8,
|
|
602
|
-
IsString as
|
|
603
|
-
IsNotEmpty as
|
|
684
|
+
IsString as IsString8,
|
|
685
|
+
IsNotEmpty as IsNotEmpty24,
|
|
604
686
|
IsIn,
|
|
605
|
-
IsOptional as
|
|
687
|
+
IsOptional as IsOptional8
|
|
606
688
|
} from "class-validator";
|
|
607
689
|
var FreelancerProfileQuestionDto = class {
|
|
608
690
|
};
|
|
609
691
|
__decorateClass([
|
|
610
|
-
|
|
692
|
+
IsNotEmpty24({ message: "Please enter uuid." }),
|
|
611
693
|
IsUUID8()
|
|
612
694
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
613
695
|
__decorateClass([
|
|
614
|
-
|
|
615
|
-
|
|
696
|
+
IsNotEmpty24({ message: "Please enter question slug." }),
|
|
697
|
+
IsString8(),
|
|
616
698
|
IsIn([
|
|
617
699
|
"natureOfWork",
|
|
618
700
|
"expectedHourlyCompensation",
|
|
@@ -622,35 +704,35 @@ __decorateClass([
|
|
|
622
704
|
])
|
|
623
705
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
624
706
|
__decorateClass([
|
|
625
|
-
|
|
707
|
+
IsNotEmpty24({ message: "Please enter answer." })
|
|
626
708
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
627
709
|
__decorateClass([
|
|
628
|
-
|
|
710
|
+
IsOptional8()
|
|
629
711
|
], FreelancerProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
630
712
|
__decorateClass([
|
|
631
|
-
|
|
713
|
+
IsOptional8()
|
|
632
714
|
], FreelancerProfileQuestionDto.prototype, "currency", 2);
|
|
633
715
|
__decorateClass([
|
|
634
|
-
|
|
716
|
+
IsOptional8()
|
|
635
717
|
], FreelancerProfileQuestionDto.prototype, "ctc", 2);
|
|
636
718
|
|
|
637
719
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
638
720
|
import {
|
|
639
|
-
IsNotEmpty as
|
|
640
|
-
IsOptional as
|
|
721
|
+
IsNotEmpty as IsNotEmpty25,
|
|
722
|
+
IsOptional as IsOptional9,
|
|
641
723
|
IsUrl,
|
|
642
|
-
IsString as
|
|
724
|
+
IsString as IsString9,
|
|
643
725
|
IsUUID as IsUUID9
|
|
644
726
|
} from "class-validator";
|
|
645
727
|
var FreelancerWorkShowcaseDto = class {
|
|
646
728
|
};
|
|
647
729
|
__decorateClass([
|
|
648
|
-
|
|
730
|
+
IsNotEmpty25({ message: "Please enter uuid." }),
|
|
649
731
|
IsUUID9()
|
|
650
732
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
651
733
|
__decorateClass([
|
|
652
|
-
|
|
653
|
-
|
|
734
|
+
IsNotEmpty25({ message: "Please enter likedin profile url." }),
|
|
735
|
+
IsString9(),
|
|
654
736
|
IsUrl(
|
|
655
737
|
{ require_protocol: false },
|
|
656
738
|
{
|
|
@@ -659,7 +741,7 @@ __decorateClass([
|
|
|
659
741
|
)
|
|
660
742
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
661
743
|
__decorateClass([
|
|
662
|
-
|
|
744
|
+
IsOptional9(),
|
|
663
745
|
IsUrl(
|
|
664
746
|
{ require_protocol: false },
|
|
665
747
|
{
|
|
@@ -668,7 +750,7 @@ __decorateClass([
|
|
|
668
750
|
)
|
|
669
751
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
670
752
|
__decorateClass([
|
|
671
|
-
|
|
753
|
+
IsOptional9(),
|
|
672
754
|
IsUrl(
|
|
673
755
|
{ require_protocol: false },
|
|
674
756
|
{
|
|
@@ -677,7 +759,7 @@ __decorateClass([
|
|
|
677
759
|
)
|
|
678
760
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
679
761
|
__decorateClass([
|
|
680
|
-
|
|
762
|
+
IsOptional9(),
|
|
681
763
|
IsUrl(
|
|
682
764
|
{ require_protocol: false },
|
|
683
765
|
{
|
|
@@ -686,7 +768,7 @@ __decorateClass([
|
|
|
686
768
|
)
|
|
687
769
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
688
770
|
__decorateClass([
|
|
689
|
-
|
|
771
|
+
IsOptional9(),
|
|
690
772
|
IsUrl(
|
|
691
773
|
{ require_protocol: false },
|
|
692
774
|
{
|
|
@@ -698,21 +780,21 @@ __decorateClass([
|
|
|
698
780
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
699
781
|
import {
|
|
700
782
|
IsUUID as IsUUID10,
|
|
701
|
-
IsString as
|
|
702
|
-
IsNotEmpty as
|
|
783
|
+
IsString as IsString10,
|
|
784
|
+
IsNotEmpty as IsNotEmpty26,
|
|
703
785
|
IsIn as IsIn2,
|
|
704
786
|
ValidateIf,
|
|
705
|
-
IsOptional as
|
|
787
|
+
IsOptional as IsOptional10
|
|
706
788
|
} from "class-validator";
|
|
707
789
|
var ClientProfileQuestionDto = class {
|
|
708
790
|
};
|
|
709
791
|
__decorateClass([
|
|
710
|
-
|
|
792
|
+
IsNotEmpty26({ message: "Please enter uuid." }),
|
|
711
793
|
IsUUID10()
|
|
712
794
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
713
795
|
__decorateClass([
|
|
714
|
-
|
|
715
|
-
|
|
796
|
+
IsNotEmpty26({ message: "Please enter question slug." }),
|
|
797
|
+
IsString10(),
|
|
716
798
|
IsIn2([
|
|
717
799
|
"skills",
|
|
718
800
|
"requiredFreelancer",
|
|
@@ -722,43 +804,52 @@ __decorateClass([
|
|
|
722
804
|
])
|
|
723
805
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
724
806
|
__decorateClass([
|
|
725
|
-
|
|
807
|
+
IsNotEmpty26({ message: "Please enter answer." })
|
|
726
808
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
727
809
|
__decorateClass([
|
|
728
|
-
|
|
810
|
+
IsOptional10()
|
|
729
811
|
], ClientProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
730
812
|
__decorateClass([
|
|
731
813
|
ValidateIf((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
732
|
-
|
|
733
|
-
|
|
814
|
+
IsNotEmpty26({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
815
|
+
IsString10()
|
|
734
816
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
735
817
|
|
|
736
818
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
737
819
|
import {
|
|
738
|
-
IsNotEmpty as
|
|
739
|
-
IsEmail as
|
|
740
|
-
IsString as
|
|
741
|
-
IsOptional as
|
|
820
|
+
IsNotEmpty as IsNotEmpty27,
|
|
821
|
+
IsEmail as IsEmail4,
|
|
822
|
+
IsString as IsString11,
|
|
823
|
+
IsOptional as IsOptional11
|
|
742
824
|
} from "class-validator";
|
|
743
825
|
var ClientCreateAccountDto = class {
|
|
744
826
|
};
|
|
745
827
|
__decorateClass([
|
|
746
|
-
|
|
747
|
-
|
|
828
|
+
IsNotEmpty27({ message: "Please enter full name." }),
|
|
829
|
+
IsString11({ message: "Please enter valid full name." })
|
|
748
830
|
], ClientCreateAccountDto.prototype, "fullName", 2);
|
|
749
831
|
__decorateClass([
|
|
750
|
-
|
|
751
|
-
|
|
832
|
+
IsNotEmpty27({ message: "Please enter email." }),
|
|
833
|
+
IsEmail4(),
|
|
752
834
|
IsBusinessEmail()
|
|
753
835
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
754
836
|
__decorateClass([
|
|
755
|
-
|
|
756
|
-
|
|
837
|
+
IsNotEmpty27({ message: "Please enter company name." }),
|
|
838
|
+
IsString11({ message: "Please enter valid company name." })
|
|
757
839
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
758
840
|
__decorateClass([
|
|
759
|
-
|
|
841
|
+
IsOptional11()
|
|
760
842
|
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
761
843
|
|
|
844
|
+
// src/modules/onboarding/dto/verify-onboarding-token.dto.ts
|
|
845
|
+
import { IsNotEmpty as IsNotEmpty28, IsString as IsString12 } from "class-validator";
|
|
846
|
+
var VerifyOnboardingTokenDto = class {
|
|
847
|
+
};
|
|
848
|
+
__decorateClass([
|
|
849
|
+
IsNotEmpty28({ message: "Token is required" }),
|
|
850
|
+
IsString12({ message: "Token must be a string" })
|
|
851
|
+
], VerifyOnboardingTokenDto.prototype, "token", 2);
|
|
852
|
+
|
|
762
853
|
// src/modules/maintenance/pattern/pattern.ts
|
|
763
854
|
var MAINTENANCE_PATTERN = {
|
|
764
855
|
truncateData: "truncate.data"
|
|
@@ -789,68 +880,68 @@ var SUBADMIN_PATTERN = {
|
|
|
789
880
|
|
|
790
881
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
791
882
|
import {
|
|
792
|
-
IsNotEmpty as
|
|
883
|
+
IsNotEmpty as IsNotEmpty29
|
|
793
884
|
} from "class-validator";
|
|
794
885
|
var CreateSubAdminDto = class {
|
|
795
886
|
};
|
|
796
887
|
__decorateClass([
|
|
797
|
-
|
|
888
|
+
IsNotEmpty29({ message: "Please enter username." })
|
|
798
889
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
799
890
|
__decorateClass([
|
|
800
|
-
|
|
891
|
+
IsNotEmpty29({ message: "Please enter first name." })
|
|
801
892
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
802
893
|
__decorateClass([
|
|
803
|
-
|
|
894
|
+
IsNotEmpty29({ message: "Please enter last name." })
|
|
804
895
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
805
896
|
__decorateClass([
|
|
806
|
-
|
|
897
|
+
IsNotEmpty29({ message: "Please enter email." })
|
|
807
898
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
808
899
|
__decorateClass([
|
|
809
|
-
|
|
900
|
+
IsNotEmpty29({ message: "Please enter mobile Code." })
|
|
810
901
|
], CreateSubAdminDto.prototype, "mobileCode", 2);
|
|
811
902
|
__decorateClass([
|
|
812
|
-
|
|
903
|
+
IsNotEmpty29({ message: "Please enter mobile number." })
|
|
813
904
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
814
905
|
__decorateClass([
|
|
815
|
-
|
|
906
|
+
IsNotEmpty29({ message: "Please enter the password." })
|
|
816
907
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
817
908
|
__decorateClass([
|
|
818
|
-
|
|
909
|
+
IsNotEmpty29({ message: "Please Select Roles." })
|
|
819
910
|
], CreateSubAdminDto.prototype, "roleIds", 2);
|
|
820
911
|
|
|
821
912
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
822
|
-
import { IsString as
|
|
913
|
+
import { IsString as IsString13 } from "class-validator";
|
|
823
914
|
var UpdateSubAdminAccountStatusDto = class {
|
|
824
915
|
};
|
|
825
916
|
__decorateClass([
|
|
826
|
-
|
|
917
|
+
IsString13()
|
|
827
918
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
828
919
|
|
|
829
920
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
830
921
|
import { Transform } from "class-transformer";
|
|
831
|
-
import { IsNotEmpty as
|
|
922
|
+
import { IsNotEmpty as IsNotEmpty30, IsOptional as IsOptional12, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength5 } from "class-validator";
|
|
832
923
|
var UpdateSubAdminDto = class {
|
|
833
924
|
};
|
|
834
925
|
__decorateClass([
|
|
835
|
-
|
|
926
|
+
IsNotEmpty30({ message: "Please enter username." })
|
|
836
927
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
837
928
|
__decorateClass([
|
|
838
|
-
|
|
929
|
+
IsNotEmpty30({ message: "Please enter first name." })
|
|
839
930
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
840
931
|
__decorateClass([
|
|
841
|
-
|
|
932
|
+
IsNotEmpty30({ message: "Please enter last name." })
|
|
842
933
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
843
934
|
__decorateClass([
|
|
844
|
-
|
|
935
|
+
IsNotEmpty30({ message: "Please enter email." })
|
|
845
936
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
846
937
|
__decorateClass([
|
|
847
|
-
|
|
938
|
+
IsNotEmpty30({ message: "Please enter mobile Code." })
|
|
848
939
|
], UpdateSubAdminDto.prototype, "mobileCode", 2);
|
|
849
940
|
__decorateClass([
|
|
850
|
-
|
|
941
|
+
IsNotEmpty30({ message: "Please enter mobile number." })
|
|
851
942
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
852
943
|
__decorateClass([
|
|
853
|
-
|
|
944
|
+
IsOptional12(),
|
|
854
945
|
Transform(({ value }) => value === null || value === "" ? void 0 : value),
|
|
855
946
|
MinLength5(6, { message: "Password must be at least 6 characters." }),
|
|
856
947
|
MaxLength5(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -859,7 +950,7 @@ __decorateClass([
|
|
|
859
950
|
})
|
|
860
951
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
861
952
|
__decorateClass([
|
|
862
|
-
|
|
953
|
+
IsNotEmpty30({ message: "Please Select Roles." })
|
|
863
954
|
], UpdateSubAdminDto.prototype, "roleIds", 2);
|
|
864
955
|
|
|
865
956
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -887,95 +978,122 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
887
978
|
|
|
888
979
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
889
980
|
import {
|
|
890
|
-
IsString as
|
|
891
|
-
IsNotEmpty as
|
|
892
|
-
IsEmail as
|
|
981
|
+
IsString as IsString14,
|
|
982
|
+
IsNotEmpty as IsNotEmpty31,
|
|
983
|
+
IsEmail as IsEmail5,
|
|
893
984
|
Length as Length2,
|
|
894
985
|
IsUrl as IsUrl2,
|
|
895
|
-
IsOptional as
|
|
986
|
+
IsOptional as IsOptional13,
|
|
896
987
|
ValidateIf as ValidateIf2,
|
|
897
988
|
IsNumber
|
|
898
989
|
} from "class-validator";
|
|
899
990
|
var UpdateCompanyProfileDto = class {
|
|
900
991
|
};
|
|
901
992
|
__decorateClass([
|
|
902
|
-
|
|
903
|
-
|
|
993
|
+
IsNotEmpty31({ message: "Please enter company name." }),
|
|
994
|
+
IsString14({ message: "Company name must be a string." }),
|
|
904
995
|
Length2(2, 255, {
|
|
905
996
|
message: "Company name must be between 2 and 255 characters"
|
|
906
997
|
})
|
|
907
998
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
908
999
|
__decorateClass([
|
|
909
|
-
|
|
1000
|
+
IsOptional13(),
|
|
910
1001
|
ValidateIf2((o) => o.webSite !== ""),
|
|
911
1002
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
912
1003
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
913
1004
|
__decorateClass([
|
|
914
|
-
|
|
1005
|
+
IsOptional13(),
|
|
915
1006
|
IsNumber()
|
|
916
1007
|
], UpdateCompanyProfileDto.prototype, "countryId", 2);
|
|
917
1008
|
__decorateClass([
|
|
918
|
-
|
|
1009
|
+
IsOptional13(),
|
|
919
1010
|
IsNumber()
|
|
920
1011
|
], UpdateCompanyProfileDto.prototype, "stateId", 2);
|
|
921
1012
|
__decorateClass([
|
|
922
|
-
|
|
1013
|
+
IsOptional13(),
|
|
923
1014
|
IsNumber()
|
|
924
1015
|
], UpdateCompanyProfileDto.prototype, "cityId", 2);
|
|
925
1016
|
__decorateClass([
|
|
926
|
-
|
|
927
|
-
|
|
1017
|
+
IsNotEmpty31({ message: "Please enter company address." }),
|
|
1018
|
+
IsString14({ message: "Company address must be a string" }),
|
|
928
1019
|
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
929
1020
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
930
1021
|
__decorateClass([
|
|
931
|
-
|
|
932
|
-
|
|
1022
|
+
IsOptional13(),
|
|
1023
|
+
IsString14({ message: "Address line must be a string" })
|
|
933
1024
|
], UpdateCompanyProfileDto.prototype, "addressLine", 2);
|
|
934
1025
|
__decorateClass([
|
|
935
|
-
|
|
936
|
-
|
|
1026
|
+
IsNotEmpty31({ message: "Please enter postal code." }),
|
|
1027
|
+
IsString14({ message: "Postal Code must be a string" })
|
|
937
1028
|
], UpdateCompanyProfileDto.prototype, "postalCode", 2);
|
|
938
1029
|
__decorateClass([
|
|
939
|
-
|
|
940
|
-
|
|
1030
|
+
IsNotEmpty31({ message: "Please enter mobile code." }),
|
|
1031
|
+
IsString14({ message: "Mobile Code must be a string" })
|
|
941
1032
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
942
1033
|
// @Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
943
1034
|
// message: "Please enter a valid US phone number",
|
|
944
1035
|
// })
|
|
945
1036
|
__decorateClass([
|
|
946
|
-
|
|
947
|
-
|
|
1037
|
+
IsNotEmpty31({ message: "Please enter phone number." }),
|
|
1038
|
+
IsString14({ message: "Please enter valid phone number." })
|
|
948
1039
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
949
1040
|
__decorateClass([
|
|
950
|
-
|
|
951
|
-
|
|
1041
|
+
IsNotEmpty31({ message: "Please enter email." }),
|
|
1042
|
+
IsEmail5()
|
|
952
1043
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
953
1044
|
__decorateClass([
|
|
954
|
-
|
|
955
|
-
|
|
1045
|
+
IsOptional13(),
|
|
1046
|
+
IsString14({ message: "About company must be a string." })
|
|
956
1047
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
957
1048
|
|
|
958
1049
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
959
1050
|
import {
|
|
960
|
-
IsString as
|
|
1051
|
+
IsString as IsString15,
|
|
961
1052
|
MinLength as MinLength6,
|
|
962
1053
|
Matches as Matches7,
|
|
963
|
-
IsNotEmpty as
|
|
1054
|
+
IsNotEmpty as IsNotEmpty32
|
|
964
1055
|
} from "class-validator";
|
|
965
1056
|
var ClientChangePasswordDto = class {
|
|
966
1057
|
};
|
|
967
1058
|
__decorateClass([
|
|
968
|
-
|
|
1059
|
+
IsString15(),
|
|
969
1060
|
MinLength6(8, { message: "Password must be at least 8 characters long." }),
|
|
970
1061
|
Matches7(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
971
1062
|
message: "Password must contain at least one uppercase letter and one number."
|
|
972
1063
|
})
|
|
973
1064
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
974
1065
|
__decorateClass([
|
|
975
|
-
|
|
1066
|
+
IsNotEmpty32({ message: "Please enter confirm password." }),
|
|
976
1067
|
Match("newPassword", { message: "Passwords do not match" })
|
|
977
1068
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
978
1069
|
|
|
1070
|
+
// src/modules/user/client-profile/dto/client-service-agreement-upload.dto.ts
|
|
1071
|
+
import { IsOptional as IsOptional14, IsString as IsString16 } from "class-validator";
|
|
1072
|
+
var ClientServiceAgreementUploadDto = class {
|
|
1073
|
+
};
|
|
1074
|
+
__decorateClass([
|
|
1075
|
+
IsOptional14(),
|
|
1076
|
+
IsString16()
|
|
1077
|
+
], ClientServiceAgreementUploadDto.prototype, "agreementType", 2);
|
|
1078
|
+
|
|
1079
|
+
// src/modules/user/client-profile/dto/client-e-signature.dto.ts
|
|
1080
|
+
import { IsNotEmpty as IsNotEmpty33, IsString as IsString17 } from "class-validator";
|
|
1081
|
+
var ClientESignatureDto = class {
|
|
1082
|
+
};
|
|
1083
|
+
__decorateClass([
|
|
1084
|
+
IsNotEmpty33({ message: "Agreement UUID is required" }),
|
|
1085
|
+
IsString17({ message: "Agreement UUID must be a string" })
|
|
1086
|
+
], ClientESignatureDto.prototype, "agreementUuid", 2);
|
|
1087
|
+
|
|
1088
|
+
// src/modules/user/client-profile/dto/fetch-freelancer-info-for-chat.dto.ts
|
|
1089
|
+
import { IsNotEmpty as IsNotEmpty34, IsNumber as IsNumber2 } from "class-validator";
|
|
1090
|
+
var FetchFreelancerInfoForChatDto = class {
|
|
1091
|
+
};
|
|
1092
|
+
__decorateClass([
|
|
1093
|
+
IsNotEmpty34({ message: "Freelancer ID is required" }),
|
|
1094
|
+
IsNumber2({}, { message: "Freelancer ID must be a number" })
|
|
1095
|
+
], FetchFreelancerInfoForChatDto.prototype, "freelancerId", 2);
|
|
1096
|
+
|
|
979
1097
|
// src/modules/question/pattern/pattern.ts
|
|
980
1098
|
var ONBOARDING_QUESTION_PATTERN = {
|
|
981
1099
|
fetchOnboardingQuestions: "fetch.onboarding.questions"
|
|
@@ -990,29 +1108,68 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
990
1108
|
|
|
991
1109
|
// src/modules/question/dto/create-question.dto.ts
|
|
992
1110
|
import {
|
|
993
|
-
IsNotEmpty as
|
|
994
|
-
IsOptional as
|
|
1111
|
+
IsNotEmpty as IsNotEmpty35,
|
|
1112
|
+
IsOptional as IsOptional15,
|
|
995
1113
|
IsBoolean as IsBoolean2
|
|
996
1114
|
} from "class-validator";
|
|
997
1115
|
var CreateQuestionDto = class {
|
|
998
1116
|
};
|
|
999
1117
|
__decorateClass([
|
|
1000
|
-
|
|
1118
|
+
IsNotEmpty35({ message: "Please enter unique id." })
|
|
1001
1119
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1002
1120
|
__decorateClass([
|
|
1003
|
-
|
|
1121
|
+
IsNotEmpty35({ message: "Please enter question." })
|
|
1004
1122
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1005
1123
|
__decorateClass([
|
|
1006
|
-
|
|
1124
|
+
IsNotEmpty35({ message: "Please enter for whom the question is." })
|
|
1007
1125
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1008
1126
|
__decorateClass([
|
|
1009
|
-
|
|
1127
|
+
IsNotEmpty35({ message: "Please enter options." })
|
|
1010
1128
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1011
1129
|
__decorateClass([
|
|
1012
|
-
|
|
1130
|
+
IsOptional15(),
|
|
1013
1131
|
IsBoolean2({ message: "Whether the question status active" })
|
|
1014
1132
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
1015
1133
|
|
|
1134
|
+
// src/modules/question/dto/record-assessment-answer.dto.ts
|
|
1135
|
+
import { IsNotEmpty as IsNotEmpty36, IsString as IsString18, IsOptional as IsOptional16, IsObject as IsObject2 } from "class-validator";
|
|
1136
|
+
var RecordAssessmentAnswerDto = class {
|
|
1137
|
+
};
|
|
1138
|
+
__decorateClass([
|
|
1139
|
+
IsNotEmpty36({ message: "Question ID is required" }),
|
|
1140
|
+
IsString18({ message: "Question ID must be a string" })
|
|
1141
|
+
], RecordAssessmentAnswerDto.prototype, "questionId", 2);
|
|
1142
|
+
__decorateClass([
|
|
1143
|
+
IsNotEmpty36({ message: "Answer is required" }),
|
|
1144
|
+
IsObject2()
|
|
1145
|
+
], RecordAssessmentAnswerDto.prototype, "answer", 2);
|
|
1146
|
+
__decorateClass([
|
|
1147
|
+
IsOptional16(),
|
|
1148
|
+
IsString18()
|
|
1149
|
+
], RecordAssessmentAnswerDto.prototype, "assessmentId", 2);
|
|
1150
|
+
__decorateClass([
|
|
1151
|
+
IsOptional16(),
|
|
1152
|
+
IsString18()
|
|
1153
|
+
], RecordAssessmentAnswerDto.prototype, "userId", 2);
|
|
1154
|
+
|
|
1155
|
+
// src/modules/question/dto/record-assessment-answers.dto.ts
|
|
1156
|
+
import { IsNotEmpty as IsNotEmpty37, IsArray, IsObject as IsObject3, IsOptional as IsOptional17, IsString as IsString19 } from "class-validator";
|
|
1157
|
+
var RecordAssessmentAnswersDto = class {
|
|
1158
|
+
};
|
|
1159
|
+
__decorateClass([
|
|
1160
|
+
IsNotEmpty37({ message: "Answers array is required" }),
|
|
1161
|
+
IsArray({ message: "Answers must be an array" }),
|
|
1162
|
+
IsObject3({ each: true, message: "Each answer must be an object" })
|
|
1163
|
+
], RecordAssessmentAnswersDto.prototype, "answers", 2);
|
|
1164
|
+
__decorateClass([
|
|
1165
|
+
IsOptional17(),
|
|
1166
|
+
IsString19()
|
|
1167
|
+
], RecordAssessmentAnswersDto.prototype, "assessmentId", 2);
|
|
1168
|
+
__decorateClass([
|
|
1169
|
+
IsOptional17(),
|
|
1170
|
+
IsString19()
|
|
1171
|
+
], RecordAssessmentAnswersDto.prototype, "userId", 2);
|
|
1172
|
+
|
|
1016
1173
|
// src/modules/job/pattern/pattern.ts
|
|
1017
1174
|
var JOB_ROLE_PATTERN = {
|
|
1018
1175
|
fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
|
|
@@ -1070,13 +1227,13 @@ var JOB_APPLICATION_PATTERN = {
|
|
|
1070
1227
|
|
|
1071
1228
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1072
1229
|
import {
|
|
1073
|
-
IsString as
|
|
1074
|
-
IsNotEmpty as
|
|
1075
|
-
IsArray,
|
|
1230
|
+
IsString as IsString20,
|
|
1231
|
+
IsNotEmpty as IsNotEmpty38,
|
|
1232
|
+
IsArray as IsArray2,
|
|
1076
1233
|
ArrayNotEmpty,
|
|
1077
|
-
IsNumber as
|
|
1078
|
-
IsOptional as
|
|
1079
|
-
IsEnum as
|
|
1234
|
+
IsNumber as IsNumber3,
|
|
1235
|
+
IsOptional as IsOptional18,
|
|
1236
|
+
IsEnum as IsEnum11,
|
|
1080
1237
|
Min,
|
|
1081
1238
|
ValidateIf as ValidateIf3,
|
|
1082
1239
|
MaxLength as MaxLength6,
|
|
@@ -1104,71 +1261,71 @@ var JobBasicInformationDto = class {
|
|
|
1104
1261
|
}
|
|
1105
1262
|
};
|
|
1106
1263
|
__decorateClass([
|
|
1107
|
-
|
|
1264
|
+
IsOptional18(),
|
|
1108
1265
|
Type(() => Boolean)
|
|
1109
1266
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
1110
1267
|
__decorateClass([
|
|
1111
|
-
|
|
1112
|
-
|
|
1268
|
+
IsNotEmpty38({ message: "Please enter job role" }),
|
|
1269
|
+
IsString20({ message: "Job role must be a string" })
|
|
1113
1270
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
1114
1271
|
__decorateClass([
|
|
1115
|
-
|
|
1272
|
+
IsOptional18()
|
|
1116
1273
|
], JobBasicInformationDto.prototype, "jobRoleCanonicalName", 2);
|
|
1117
1274
|
__decorateClass([
|
|
1118
|
-
|
|
1119
|
-
|
|
1275
|
+
IsOptional18(),
|
|
1276
|
+
IsString20({ message: "Project name must be a string" })
|
|
1120
1277
|
], JobBasicInformationDto.prototype, "projectName", 2);
|
|
1121
1278
|
__decorateClass([
|
|
1122
|
-
|
|
1123
|
-
|
|
1279
|
+
IsOptional18(),
|
|
1280
|
+
IsString20({ message: "Note must be a string" })
|
|
1124
1281
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
1125
1282
|
__decorateClass([
|
|
1126
1283
|
ValidateIf3((o) => !o.isDraft),
|
|
1127
|
-
|
|
1128
|
-
|
|
1284
|
+
IsOptional18(),
|
|
1285
|
+
IsArray2({ message: "Skills must be an array" }),
|
|
1129
1286
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
1130
|
-
|
|
1287
|
+
IsString20({ each: true, message: "Each skill must be a string" }),
|
|
1131
1288
|
Type(() => String)
|
|
1132
1289
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1133
1290
|
__decorateClass([
|
|
1134
1291
|
ValidateIf3((o) => !o.isDraft),
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1292
|
+
IsArray2({ message: "Good to have skills must be an array" }),
|
|
1293
|
+
IsString20({ each: true, message: "Each skill must be a string" }),
|
|
1294
|
+
IsOptional18(),
|
|
1138
1295
|
Type(() => String)
|
|
1139
1296
|
], JobBasicInformationDto.prototype, "goodToHaveSkills", 2);
|
|
1140
1297
|
__decorateClass([
|
|
1141
1298
|
ValidateIf3((o) => !o.isDraft),
|
|
1142
|
-
|
|
1299
|
+
IsNumber3({}, { message: "Openings must be a number" }),
|
|
1143
1300
|
Min(1, { message: "There must be at least 1 opening" }),
|
|
1144
1301
|
Type(() => Number)
|
|
1145
1302
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1146
1303
|
__decorateClass([
|
|
1147
1304
|
ValidateIf3((o) => !o.isDraft),
|
|
1148
|
-
|
|
1305
|
+
IsEnum11(JobLocationEnum, {
|
|
1149
1306
|
message: `Location must be one of: ${Object.values(JobLocationEnum).join(
|
|
1150
1307
|
", "
|
|
1151
1308
|
)}`
|
|
1152
1309
|
})
|
|
1153
1310
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
1154
1311
|
__decorateClass([
|
|
1155
|
-
|
|
1156
|
-
|
|
1312
|
+
IsOptional18(),
|
|
1313
|
+
IsNumber3({}, { message: "Country id must be a number" }),
|
|
1157
1314
|
Type(() => Number)
|
|
1158
1315
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
1159
1316
|
__decorateClass([
|
|
1160
|
-
|
|
1161
|
-
|
|
1317
|
+
IsOptional18(),
|
|
1318
|
+
IsNumber3({}, { message: "State id must be a number" }),
|
|
1162
1319
|
Type(() => Number)
|
|
1163
1320
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
1164
1321
|
__decorateClass([
|
|
1165
|
-
|
|
1166
|
-
|
|
1322
|
+
IsOptional18(),
|
|
1323
|
+
IsNumber3({}, { message: "City id must be a number" }),
|
|
1167
1324
|
Type(() => Number)
|
|
1168
1325
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
1169
1326
|
__decorateClass([
|
|
1170
1327
|
ValidateIf3((o) => !o.isDraft),
|
|
1171
|
-
|
|
1328
|
+
IsEnum11(EmploymentType, {
|
|
1172
1329
|
message: `Type of employment must be one of: ${Object.values(
|
|
1173
1330
|
EmploymentType
|
|
1174
1331
|
).join(", ")}`
|
|
@@ -1176,82 +1333,82 @@ __decorateClass([
|
|
|
1176
1333
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
1177
1334
|
__decorateClass([
|
|
1178
1335
|
ValidateIf3((o) => !o.isDraft),
|
|
1179
|
-
|
|
1336
|
+
IsString20({ message: "Currency must be a string" })
|
|
1180
1337
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
1181
1338
|
__decorateClass([
|
|
1182
1339
|
ValidateIf3((o) => !o.isDraft),
|
|
1183
|
-
|
|
1340
|
+
IsNumber3({}, { message: "Expected salary (from) must be a number" }),
|
|
1184
1341
|
Min(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1185
1342
|
Type(() => Number)
|
|
1186
1343
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1187
1344
|
__decorateClass([
|
|
1188
|
-
|
|
1345
|
+
IsOptional18()
|
|
1189
1346
|
], JobBasicInformationDto.prototype, "hideExpectedSalaryFrom", 2);
|
|
1190
1347
|
__decorateClass([
|
|
1191
1348
|
ValidateIf3((o) => !o.isDraft),
|
|
1192
|
-
|
|
1349
|
+
IsNumber3({}, { message: "Expected salary (to) must be a number" }),
|
|
1193
1350
|
Min(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1194
1351
|
Type(() => Number)
|
|
1195
1352
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1196
1353
|
__decorateClass([
|
|
1197
|
-
|
|
1354
|
+
IsOptional18()
|
|
1198
1355
|
], JobBasicInformationDto.prototype, "hideExpectedSalaryTo", 2);
|
|
1199
1356
|
__decorateClass([
|
|
1200
|
-
|
|
1357
|
+
IsOptional18()
|
|
1201
1358
|
], JobBasicInformationDto.prototype, "years", 2);
|
|
1202
1359
|
__decorateClass([
|
|
1203
|
-
|
|
1360
|
+
IsOptional18()
|
|
1204
1361
|
], JobBasicInformationDto.prototype, "months", 2);
|
|
1205
1362
|
__decorateClass([
|
|
1206
|
-
|
|
1363
|
+
IsOptional18()
|
|
1207
1364
|
], JobBasicInformationDto.prototype, "weeks", 2);
|
|
1208
1365
|
__decorateClass([
|
|
1209
|
-
|
|
1366
|
+
IsOptional18()
|
|
1210
1367
|
], JobBasicInformationDto.prototype, "days", 2);
|
|
1211
1368
|
__decorateClass([
|
|
1212
|
-
|
|
1213
|
-
|
|
1369
|
+
IsOptional18(),
|
|
1370
|
+
IsNumber3({}, { message: "Number of hours must be a number" }),
|
|
1214
1371
|
Min(0, { message: "Number of hours cannot be negative" }),
|
|
1215
1372
|
Max(40, { message: "Number of hours cannot exceed 40" }),
|
|
1216
1373
|
Type(() => Number)
|
|
1217
1374
|
], JobBasicInformationDto.prototype, "numberOfHours", 2);
|
|
1218
1375
|
__decorateClass([
|
|
1219
1376
|
ValidateIf3((o) => !o.isDraft),
|
|
1220
|
-
|
|
1221
|
-
|
|
1377
|
+
IsString20({ message: "Candidate communication skills must be a string" }),
|
|
1378
|
+
IsOptional18()
|
|
1222
1379
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1223
1380
|
__decorateClass([
|
|
1224
1381
|
ValidateIf3((o) => !o.isDraft),
|
|
1225
|
-
|
|
1226
|
-
|
|
1382
|
+
IsNotEmpty38({ message: "Please enter the academic qualification" }),
|
|
1383
|
+
IsString20({ message: "Academic qualification must be a string" })
|
|
1227
1384
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
1228
1385
|
__decorateClass([
|
|
1229
1386
|
ValidateIf3((o) => !o.isDraft),
|
|
1230
|
-
|
|
1231
|
-
|
|
1387
|
+
IsNotEmpty38({ message: "Please enter the years of experience" }),
|
|
1388
|
+
IsString20({ message: "Years of experience must be a string" })
|
|
1232
1389
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1233
1390
|
__decorateClass([
|
|
1234
|
-
|
|
1235
|
-
|
|
1391
|
+
IsOptional18(),
|
|
1392
|
+
IsString20({ message: "Business industry must be a string" })
|
|
1236
1393
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1237
1394
|
__decorateClass([
|
|
1238
|
-
|
|
1239
|
-
|
|
1395
|
+
IsOptional18(),
|
|
1396
|
+
IsString20({ message: "Additional comment must be a string" }),
|
|
1240
1397
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1241
1398
|
], JobBasicInformationDto.prototype, "additionalComment", 2);
|
|
1242
1399
|
|
|
1243
1400
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1244
|
-
import { IsOptional as
|
|
1401
|
+
import { IsOptional as IsOptional19, IsString as IsString21, MaxLength as MaxLength7 } from "class-validator";
|
|
1245
1402
|
var JobAdditionalCommentDto = class {
|
|
1246
1403
|
};
|
|
1247
1404
|
__decorateClass([
|
|
1248
|
-
|
|
1249
|
-
|
|
1405
|
+
IsOptional19(),
|
|
1406
|
+
IsString21({ message: "Additional comment must be a string" }),
|
|
1250
1407
|
MaxLength7(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1251
1408
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1252
1409
|
|
|
1253
1410
|
// src/modules/job/dto/job-description.dto.ts
|
|
1254
|
-
import { IsString as
|
|
1411
|
+
import { IsString as IsString22, IsNotEmpty as IsNotEmpty39, MaxLength as MaxLength8, IsOptional as IsOptional20 } from "class-validator";
|
|
1255
1412
|
import { Type as Type2 } from "class-transformer";
|
|
1256
1413
|
var JobDescriptionDto = class {
|
|
1257
1414
|
constructor() {
|
|
@@ -1259,17 +1416,17 @@ var JobDescriptionDto = class {
|
|
|
1259
1416
|
}
|
|
1260
1417
|
};
|
|
1261
1418
|
__decorateClass([
|
|
1262
|
-
|
|
1419
|
+
IsOptional20(),
|
|
1263
1420
|
Type2(() => Boolean)
|
|
1264
1421
|
], JobDescriptionDto.prototype, "isDraft", 2);
|
|
1265
1422
|
__decorateClass([
|
|
1266
|
-
|
|
1267
|
-
|
|
1423
|
+
IsNotEmpty39({ message: "Please enter job description" }),
|
|
1424
|
+
IsString22({ message: "Description must be a string" }),
|
|
1268
1425
|
MaxLength8(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1269
1426
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1270
1427
|
|
|
1271
1428
|
// src/modules/job/dto/job-status.dto.ts
|
|
1272
|
-
import { IsEnum as
|
|
1429
|
+
import { IsEnum as IsEnum12, IsNotEmpty as IsNotEmpty40 } from "class-validator";
|
|
1273
1430
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1274
1431
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1275
1432
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1281,8 +1438,8 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
1281
1438
|
var JobStatusDto = class {
|
|
1282
1439
|
};
|
|
1283
1440
|
__decorateClass([
|
|
1284
|
-
|
|
1285
|
-
|
|
1441
|
+
IsNotEmpty40({ message: "Please provide a job status" }),
|
|
1442
|
+
IsEnum12(JobStatus, {
|
|
1286
1443
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1287
1444
|
})
|
|
1288
1445
|
], JobStatusDto.prototype, "status", 2);
|
|
@@ -1299,13 +1456,13 @@ __decorateClass([
|
|
|
1299
1456
|
|
|
1300
1457
|
// src/modules/job/dto/job-basic-information-v2.dto.ts
|
|
1301
1458
|
import {
|
|
1302
|
-
IsString as
|
|
1303
|
-
IsNotEmpty as
|
|
1304
|
-
IsArray as
|
|
1459
|
+
IsString as IsString23,
|
|
1460
|
+
IsNotEmpty as IsNotEmpty41,
|
|
1461
|
+
IsArray as IsArray3,
|
|
1305
1462
|
ArrayNotEmpty as ArrayNotEmpty2,
|
|
1306
|
-
IsNumber as
|
|
1307
|
-
IsOptional as
|
|
1308
|
-
IsEnum as
|
|
1463
|
+
IsNumber as IsNumber4,
|
|
1464
|
+
IsOptional as IsOptional21,
|
|
1465
|
+
IsEnum as IsEnum13,
|
|
1309
1466
|
Min as Min2,
|
|
1310
1467
|
ValidateIf as ValidateIf4,
|
|
1311
1468
|
MaxLength as MaxLength9,
|
|
@@ -1340,15 +1497,15 @@ var StepCompletedEnumV2 = /* @__PURE__ */ ((StepCompletedEnumV22) => {
|
|
|
1340
1497
|
var JobLocationDto = class {
|
|
1341
1498
|
};
|
|
1342
1499
|
__decorateClass([
|
|
1343
|
-
|
|
1500
|
+
IsOptional21(),
|
|
1344
1501
|
Type3(() => Number)
|
|
1345
1502
|
], JobLocationDto.prototype, "countryId", 2);
|
|
1346
1503
|
__decorateClass([
|
|
1347
|
-
|
|
1504
|
+
IsOptional21(),
|
|
1348
1505
|
Type3(() => Number)
|
|
1349
1506
|
], JobLocationDto.prototype, "stateId", 2);
|
|
1350
1507
|
__decorateClass([
|
|
1351
|
-
|
|
1508
|
+
IsOptional21(),
|
|
1352
1509
|
Type3(() => Number)
|
|
1353
1510
|
], JobLocationDto.prototype, "cityId", 2);
|
|
1354
1511
|
var JobBasicInformationV2Dto = class {
|
|
@@ -1357,60 +1514,60 @@ var JobBasicInformationV2Dto = class {
|
|
|
1357
1514
|
}
|
|
1358
1515
|
};
|
|
1359
1516
|
__decorateClass([
|
|
1360
|
-
|
|
1517
|
+
IsOptional21(),
|
|
1361
1518
|
Type3(() => Boolean)
|
|
1362
1519
|
], JobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
1363
1520
|
__decorateClass([
|
|
1364
|
-
|
|
1365
|
-
|
|
1521
|
+
IsNotEmpty41({ message: "Please enter job role" }),
|
|
1522
|
+
IsString23({ message: "Job role must be a string" })
|
|
1366
1523
|
], JobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
1367
1524
|
__decorateClass([
|
|
1368
|
-
|
|
1525
|
+
IsOptional21()
|
|
1369
1526
|
], JobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
1370
1527
|
__decorateClass([
|
|
1371
|
-
|
|
1372
|
-
|
|
1528
|
+
IsOptional21(),
|
|
1529
|
+
IsString23({ message: "Project name must be a string" })
|
|
1373
1530
|
], JobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
1374
1531
|
__decorateClass([
|
|
1375
|
-
|
|
1376
|
-
|
|
1532
|
+
IsOptional21(),
|
|
1533
|
+
IsString23({ message: "Note must be a string" })
|
|
1377
1534
|
], JobBasicInformationV2Dto.prototype, "note", 2);
|
|
1378
1535
|
__decorateClass([
|
|
1379
1536
|
ValidateIf4((o) => !o.isDraft),
|
|
1380
|
-
|
|
1381
|
-
|
|
1537
|
+
IsOptional21(),
|
|
1538
|
+
IsArray3({ message: "Skills must be an array" }),
|
|
1382
1539
|
ArrayNotEmpty2({ message: "Please select at least one skill" }),
|
|
1383
|
-
|
|
1540
|
+
IsString23({ each: true, message: "Each skill must be a string" }),
|
|
1384
1541
|
Type3(() => String)
|
|
1385
1542
|
], JobBasicInformationV2Dto.prototype, "skills", 2);
|
|
1386
1543
|
__decorateClass([
|
|
1387
1544
|
ValidateIf4((o) => !o.isDraft),
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1545
|
+
IsArray3({ message: "Good to have skills must be an array" }),
|
|
1546
|
+
IsString23({ each: true, message: "Each skill must be a string" }),
|
|
1547
|
+
IsOptional21(),
|
|
1391
1548
|
Type3(() => String)
|
|
1392
1549
|
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
1393
1550
|
__decorateClass([
|
|
1394
1551
|
ValidateIf4((o) => !o.isDraft),
|
|
1395
|
-
|
|
1552
|
+
IsNumber4({}, { message: "Openings must be a number" }),
|
|
1396
1553
|
Min2(1, { message: "There must be at least 1 opening" }),
|
|
1397
1554
|
Type3(() => Number)
|
|
1398
1555
|
], JobBasicInformationV2Dto.prototype, "openings", 2);
|
|
1399
1556
|
__decorateClass([
|
|
1400
1557
|
ValidateIf4((o) => !o.isDraft),
|
|
1401
|
-
|
|
1558
|
+
IsEnum13(JobLocationEnumV2, {
|
|
1402
1559
|
message: `Location must be one of: ${Object.values(JobLocationEnumV2).join(
|
|
1403
1560
|
", "
|
|
1404
1561
|
)}`
|
|
1405
1562
|
})
|
|
1406
1563
|
], JobBasicInformationV2Dto.prototype, "locationMode", 2);
|
|
1407
1564
|
__decorateClass([
|
|
1408
|
-
|
|
1565
|
+
IsOptional21(),
|
|
1409
1566
|
Type3(() => JobLocationDto)
|
|
1410
1567
|
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
1411
1568
|
__decorateClass([
|
|
1412
1569
|
ValidateIf4((o) => !o.isDraft),
|
|
1413
|
-
|
|
1570
|
+
IsEnum13(EmploymentTypeV2, {
|
|
1414
1571
|
message: `Type of employment must be one of: ${Object.values(
|
|
1415
1572
|
EmploymentTypeV2
|
|
1416
1573
|
).join(", ")}`
|
|
@@ -1418,125 +1575,125 @@ __decorateClass([
|
|
|
1418
1575
|
], JobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
1419
1576
|
__decorateClass([
|
|
1420
1577
|
ValidateIf4((o) => !o.isDraft),
|
|
1421
|
-
|
|
1578
|
+
IsString23({ message: "Currency must be a string" })
|
|
1422
1579
|
], JobBasicInformationV2Dto.prototype, "currency", 2);
|
|
1423
1580
|
__decorateClass([
|
|
1424
1581
|
ValidateIf4((o) => !o.isDraft),
|
|
1425
|
-
|
|
1582
|
+
IsNumber4({}, { message: "Expected salary (from) must be a number" }),
|
|
1426
1583
|
Min2(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1427
1584
|
Type3(() => Number)
|
|
1428
1585
|
], JobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
1429
1586
|
__decorateClass([
|
|
1430
|
-
|
|
1587
|
+
IsOptional21()
|
|
1431
1588
|
], JobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
1432
1589
|
__decorateClass([
|
|
1433
1590
|
ValidateIf4((o) => !o.isDraft),
|
|
1434
|
-
|
|
1591
|
+
IsNumber4({}, { message: "Expected salary (to) must be a number" }),
|
|
1435
1592
|
Min2(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1436
1593
|
Type3(() => Number)
|
|
1437
1594
|
], JobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
1438
1595
|
__decorateClass([
|
|
1439
|
-
|
|
1596
|
+
IsOptional21()
|
|
1440
1597
|
], JobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
1441
1598
|
__decorateClass([
|
|
1442
|
-
|
|
1443
|
-
|
|
1599
|
+
IsOptional21(),
|
|
1600
|
+
IsNumber4({}, { message: "Expected annual budget (from) must be a number" }),
|
|
1444
1601
|
Min2(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
1445
1602
|
Type3(() => Number)
|
|
1446
1603
|
], JobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
1447
1604
|
__decorateClass([
|
|
1448
|
-
|
|
1605
|
+
IsOptional21()
|
|
1449
1606
|
], JobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
1450
1607
|
__decorateClass([
|
|
1451
|
-
|
|
1452
|
-
|
|
1608
|
+
IsOptional21(),
|
|
1609
|
+
IsNumber4({}, { message: "Expected annual budget (to) must be a number" }),
|
|
1453
1610
|
Min2(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
1454
1611
|
Type3(() => Number)
|
|
1455
1612
|
], JobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
|
|
1456
1613
|
__decorateClass([
|
|
1457
|
-
|
|
1614
|
+
IsOptional21()
|
|
1458
1615
|
], JobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
1459
1616
|
__decorateClass([
|
|
1460
|
-
|
|
1617
|
+
IsOptional21()
|
|
1461
1618
|
], JobBasicInformationV2Dto.prototype, "years", 2);
|
|
1462
1619
|
__decorateClass([
|
|
1463
|
-
|
|
1620
|
+
IsOptional21()
|
|
1464
1621
|
], JobBasicInformationV2Dto.prototype, "months", 2);
|
|
1465
1622
|
__decorateClass([
|
|
1466
|
-
|
|
1623
|
+
IsOptional21()
|
|
1467
1624
|
], JobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
1468
1625
|
__decorateClass([
|
|
1469
|
-
|
|
1626
|
+
IsOptional21()
|
|
1470
1627
|
], JobBasicInformationV2Dto.prototype, "days", 2);
|
|
1471
1628
|
__decorateClass([
|
|
1472
|
-
|
|
1473
|
-
|
|
1629
|
+
IsOptional21(),
|
|
1630
|
+
IsNumber4({}, { message: "Number of hours must be a number" }),
|
|
1474
1631
|
Min2(0, { message: "Number of hours cannot be negative" }),
|
|
1475
1632
|
Max2(40, { message: "Number of hours cannot exceed 40" }),
|
|
1476
1633
|
Type3(() => Number)
|
|
1477
1634
|
], JobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
1478
1635
|
__decorateClass([
|
|
1479
1636
|
ValidateIf4((o) => !o.isDraft),
|
|
1480
|
-
|
|
1481
|
-
|
|
1637
|
+
IsString23({ message: "Candidate communication skills must be a string" }),
|
|
1638
|
+
IsOptional21()
|
|
1482
1639
|
], JobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
1483
1640
|
__decorateClass([
|
|
1484
1641
|
ValidateIf4((o) => !o.isDraft),
|
|
1485
|
-
|
|
1486
|
-
|
|
1642
|
+
IsNotEmpty41({ message: "Please enter the academic qualification" }),
|
|
1643
|
+
IsString23({ message: "Academic qualification must be a string" })
|
|
1487
1644
|
], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
1488
1645
|
__decorateClass([
|
|
1489
1646
|
ValidateIf4((o) => !o.isDraft),
|
|
1490
|
-
|
|
1491
|
-
|
|
1647
|
+
IsNotEmpty41({ message: "Please enter the years of experience" }),
|
|
1648
|
+
IsString23({ message: "Years of experience must be a string" })
|
|
1492
1649
|
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
1493
1650
|
__decorateClass([
|
|
1494
1651
|
ValidateIf4((o) => !o.isDraft),
|
|
1495
|
-
|
|
1496
|
-
|
|
1652
|
+
IsNotEmpty41({ message: "Please enter the years of experience upto" }),
|
|
1653
|
+
IsString23({ message: "Years of experience must be a string" })
|
|
1497
1654
|
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
1498
1655
|
__decorateClass([
|
|
1499
|
-
|
|
1500
|
-
|
|
1656
|
+
IsOptional21(),
|
|
1657
|
+
IsString23({ message: "Business industry must be a string" })
|
|
1501
1658
|
], JobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
1502
1659
|
__decorateClass([
|
|
1503
|
-
|
|
1504
|
-
|
|
1660
|
+
IsOptional21(),
|
|
1661
|
+
IsEnum13(StepCompletedEnumV2, {
|
|
1505
1662
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
1506
1663
|
StepCompletedEnumV2
|
|
1507
1664
|
).join(", ")}`
|
|
1508
1665
|
})
|
|
1509
1666
|
], JobBasicInformationV2Dto.prototype, "stepCompleted", 2);
|
|
1510
1667
|
__decorateClass([
|
|
1511
|
-
|
|
1512
|
-
|
|
1668
|
+
IsOptional21(),
|
|
1669
|
+
IsString23({ message: "Additional comment must be a string" }),
|
|
1513
1670
|
MaxLength9(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1514
1671
|
], JobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
1515
1672
|
|
|
1516
1673
|
// src/modules/job/dto/close-job.dto.ts
|
|
1517
|
-
import { IsOptional as
|
|
1674
|
+
import { IsOptional as IsOptional22, IsString as IsString24 } from "class-validator";
|
|
1518
1675
|
var CloseJobDto = class {
|
|
1519
1676
|
};
|
|
1520
1677
|
__decorateClass([
|
|
1521
|
-
|
|
1522
|
-
|
|
1678
|
+
IsOptional22(),
|
|
1679
|
+
IsString24()
|
|
1523
1680
|
], CloseJobDto.prototype, "reason", 2);
|
|
1524
1681
|
|
|
1525
1682
|
// src/modules/job/dto/create-job-application.dto.ts
|
|
1526
|
-
import { IsBoolean as IsBoolean3, IsNotEmpty as
|
|
1683
|
+
import { IsBoolean as IsBoolean3, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional23, IsString as IsString25 } from "class-validator";
|
|
1527
1684
|
var CreateJobApplicationDto = class {
|
|
1528
1685
|
};
|
|
1529
1686
|
__decorateClass([
|
|
1530
|
-
|
|
1531
|
-
|
|
1687
|
+
IsNotEmpty42({ message: "Job ID is required" }),
|
|
1688
|
+
IsString25({ message: "Job ID must be a string" })
|
|
1532
1689
|
], CreateJobApplicationDto.prototype, "jobId", 2);
|
|
1533
1690
|
__decorateClass([
|
|
1534
|
-
|
|
1691
|
+
IsOptional23(),
|
|
1535
1692
|
IsBoolean3({ message: "isCta must be a boolean" })
|
|
1536
1693
|
], CreateJobApplicationDto.prototype, "isCta", 2);
|
|
1537
1694
|
|
|
1538
1695
|
// src/modules/job/dto/change-job-application-status.dto.ts
|
|
1539
|
-
import { IsEnum as
|
|
1696
|
+
import { IsEnum as IsEnum14, IsNotEmpty as IsNotEmpty43 } from "class-validator";
|
|
1540
1697
|
var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
1541
1698
|
JobApplicationStatus2["PENDING"] = "PENDING";
|
|
1542
1699
|
JobApplicationStatus2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -1548,24 +1705,24 @@ var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
|
1548
1705
|
var ChangeJobApplicationStatusDto = class {
|
|
1549
1706
|
};
|
|
1550
1707
|
__decorateClass([
|
|
1551
|
-
|
|
1552
|
-
|
|
1708
|
+
IsNotEmpty43({ message: "Status is required" }),
|
|
1709
|
+
IsEnum14(JobApplicationStatus, {
|
|
1553
1710
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
1554
1711
|
})
|
|
1555
1712
|
], ChangeJobApplicationStatusDto.prototype, "status", 2);
|
|
1556
1713
|
|
|
1557
1714
|
// src/modules/job/dto/change-job-application-status-bulk.dto.ts
|
|
1558
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as
|
|
1715
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray4, IsEnum as IsEnum15, IsNotEmpty as IsNotEmpty44, IsNumber as IsNumber5 } from "class-validator";
|
|
1559
1716
|
var ChangeJobApplicationStatusBulkDto = class {
|
|
1560
1717
|
};
|
|
1561
1718
|
__decorateClass([
|
|
1562
|
-
|
|
1719
|
+
IsArray4({ message: "Job application IDs must be an array" }),
|
|
1563
1720
|
ArrayNotEmpty3({ message: "At least one job application ID is required" }),
|
|
1564
|
-
|
|
1721
|
+
IsNumber5({}, { each: true, message: "Each job application ID must be a number" })
|
|
1565
1722
|
], ChangeJobApplicationStatusBulkDto.prototype, "jobApplicationIds", 2);
|
|
1566
1723
|
__decorateClass([
|
|
1567
|
-
|
|
1568
|
-
|
|
1724
|
+
IsNotEmpty44({ message: "Status is required" }),
|
|
1725
|
+
IsEnum15(JobApplicationStatus, {
|
|
1569
1726
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
1570
1727
|
})
|
|
1571
1728
|
], ChangeJobApplicationStatusBulkDto.prototype, "status", 2);
|
|
@@ -1613,8 +1770,8 @@ var FREELANCER_ASSESSMENT_REQUEST_PATTERN = {
|
|
|
1613
1770
|
|
|
1614
1771
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1615
1772
|
import {
|
|
1616
|
-
IsString as
|
|
1617
|
-
IsNotEmpty as
|
|
1773
|
+
IsString as IsString26,
|
|
1774
|
+
IsNotEmpty as IsNotEmpty45,
|
|
1618
1775
|
MaxLength as MaxLength10,
|
|
1619
1776
|
MinLength as MinLength7,
|
|
1620
1777
|
Matches as Matches8
|
|
@@ -1622,12 +1779,12 @@ import {
|
|
|
1622
1779
|
var FreelancerChangePasswordDto = class {
|
|
1623
1780
|
};
|
|
1624
1781
|
__decorateClass([
|
|
1625
|
-
|
|
1626
|
-
|
|
1782
|
+
IsNotEmpty45({ message: "Please enter Old Password." }),
|
|
1783
|
+
IsString26()
|
|
1627
1784
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1628
1785
|
__decorateClass([
|
|
1629
|
-
|
|
1630
|
-
|
|
1786
|
+
IsNotEmpty45({ message: "Please enter New Password." }),
|
|
1787
|
+
IsString26(),
|
|
1631
1788
|
MinLength7(6),
|
|
1632
1789
|
MaxLength10(32),
|
|
1633
1790
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -1637,12 +1794,12 @@ __decorateClass([
|
|
|
1637
1794
|
|
|
1638
1795
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1639
1796
|
import {
|
|
1640
|
-
IsOptional as
|
|
1641
|
-
IsString as
|
|
1642
|
-
IsEmail as
|
|
1643
|
-
IsNumber as
|
|
1644
|
-
IsEnum as
|
|
1645
|
-
IsNotEmpty as
|
|
1797
|
+
IsOptional as IsOptional24,
|
|
1798
|
+
IsString as IsString27,
|
|
1799
|
+
IsEmail as IsEmail6,
|
|
1800
|
+
IsNumber as IsNumber6,
|
|
1801
|
+
IsEnum as IsEnum16,
|
|
1802
|
+
IsNotEmpty as IsNotEmpty46,
|
|
1646
1803
|
ValidateIf as ValidateIf5,
|
|
1647
1804
|
IsInt
|
|
1648
1805
|
} from "class-validator";
|
|
@@ -1661,116 +1818,151 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1661
1818
|
var UpdateFreelancerProfileDto = class {
|
|
1662
1819
|
};
|
|
1663
1820
|
__decorateClass([
|
|
1664
|
-
|
|
1665
|
-
|
|
1821
|
+
IsNotEmpty46({ message: "Please enter first name." }),
|
|
1822
|
+
IsString27({ message: "Please enter valid first name." })
|
|
1666
1823
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1667
1824
|
__decorateClass([
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1825
|
+
IsOptional24(),
|
|
1826
|
+
IsNotEmpty46({ message: "Please enter last name." }),
|
|
1827
|
+
IsString27({ message: "Please enter valid last name." })
|
|
1671
1828
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1672
1829
|
__decorateClass([
|
|
1673
|
-
|
|
1674
|
-
|
|
1830
|
+
IsNotEmpty46({ message: "Please enter designation." }),
|
|
1831
|
+
IsString27({ message: "Please enter valid designation." })
|
|
1675
1832
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1676
1833
|
__decorateClass([
|
|
1677
|
-
|
|
1678
|
-
|
|
1834
|
+
IsNotEmpty46({ message: "Please enter experience." }),
|
|
1835
|
+
IsString27({ message: "Please enter valid experience." })
|
|
1679
1836
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1680
1837
|
__decorateClass([
|
|
1681
|
-
|
|
1682
|
-
|
|
1838
|
+
IsNotEmpty46({ message: "Please enter email id." }),
|
|
1839
|
+
IsEmail6()
|
|
1683
1840
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1684
1841
|
__decorateClass([
|
|
1685
|
-
|
|
1686
|
-
|
|
1842
|
+
IsNotEmpty46({ message: "Please enter mobile code." }),
|
|
1843
|
+
IsString27({ message: "Please enter valid mobile code." })
|
|
1687
1844
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1688
1845
|
__decorateClass([
|
|
1689
|
-
|
|
1690
|
-
|
|
1846
|
+
IsNotEmpty46({ message: "Please enter mobile number." }),
|
|
1847
|
+
IsString27({ message: "Please enter valid mobile number." })
|
|
1691
1848
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1692
1849
|
__decorateClass([
|
|
1693
|
-
|
|
1694
|
-
|
|
1850
|
+
IsOptional24(),
|
|
1851
|
+
IsNumber6()
|
|
1695
1852
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1696
1853
|
__decorateClass([
|
|
1697
|
-
|
|
1698
|
-
|
|
1854
|
+
IsOptional24(),
|
|
1855
|
+
IsNumber6()
|
|
1699
1856
|
], UpdateFreelancerProfileDto.prototype, "stateId", 2);
|
|
1700
1857
|
__decorateClass([
|
|
1701
|
-
|
|
1702
|
-
|
|
1858
|
+
IsOptional24(),
|
|
1859
|
+
IsNumber6()
|
|
1703
1860
|
], UpdateFreelancerProfileDto.prototype, "cityId", 2);
|
|
1704
1861
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
1705
1862
|
__decorateClass([
|
|
1706
|
-
|
|
1863
|
+
IsNotEmpty46({ message: "Please enter expected hourly compensation." })
|
|
1707
1864
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1708
1865
|
__decorateClass([
|
|
1709
1866
|
ValidateIf5((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
1710
|
-
|
|
1867
|
+
IsNotEmpty46({ message: "Please enter expected annual compensation." })
|
|
1711
1868
|
], UpdateFreelancerProfileDto.prototype, "expectedAnnualCompensation", 2);
|
|
1712
1869
|
__decorateClass([
|
|
1713
1870
|
ValidateIf5((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
1714
1871
|
IsInt({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
1715
|
-
|
|
1872
|
+
IsNotEmpty46({ message: "Please enter weekly availability hours" })
|
|
1716
1873
|
], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
|
|
1717
1874
|
__decorateClass([
|
|
1718
|
-
|
|
1719
|
-
|
|
1875
|
+
IsNotEmpty46({ message: "Please select engagement type." }),
|
|
1876
|
+
IsEnum16(NatureOfWorkDto, {
|
|
1720
1877
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1721
1878
|
NatureOfWorkDto
|
|
1722
1879
|
).join(", ")}`
|
|
1723
1880
|
})
|
|
1724
1881
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1725
1882
|
__decorateClass([
|
|
1726
|
-
|
|
1727
|
-
|
|
1883
|
+
IsNotEmpty46({ message: "Please select mode of work." }),
|
|
1884
|
+
IsEnum16(ModeOfWorkDto, {
|
|
1728
1885
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1729
1886
|
", "
|
|
1730
1887
|
)}`
|
|
1731
1888
|
})
|
|
1732
1889
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1733
1890
|
__decorateClass([
|
|
1734
|
-
|
|
1735
|
-
|
|
1891
|
+
IsOptional24(),
|
|
1892
|
+
IsString27()
|
|
1736
1893
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1737
1894
|
__decorateClass([
|
|
1738
|
-
|
|
1739
|
-
|
|
1895
|
+
IsNotEmpty46({ message: "Please enter address." }),
|
|
1896
|
+
IsString27()
|
|
1740
1897
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1741
1898
|
__decorateClass([
|
|
1742
|
-
|
|
1743
|
-
|
|
1899
|
+
IsOptional24(),
|
|
1900
|
+
IsString27()
|
|
1744
1901
|
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
1745
1902
|
__decorateClass([
|
|
1746
|
-
|
|
1747
|
-
|
|
1903
|
+
IsNotEmpty46({ message: "Please enter postalCode." }),
|
|
1904
|
+
IsString27()
|
|
1748
1905
|
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
1749
1906
|
__decorateClass([
|
|
1750
|
-
|
|
1751
|
-
|
|
1907
|
+
IsOptional24(),
|
|
1908
|
+
IsString27()
|
|
1752
1909
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1753
1910
|
__decorateClass([
|
|
1754
|
-
|
|
1755
|
-
|
|
1911
|
+
IsOptional24(),
|
|
1912
|
+
IsString27()
|
|
1756
1913
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1757
1914
|
__decorateClass([
|
|
1758
|
-
|
|
1759
|
-
|
|
1915
|
+
IsOptional24(),
|
|
1916
|
+
IsString27()
|
|
1760
1917
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1761
1918
|
__decorateClass([
|
|
1762
|
-
|
|
1763
|
-
|
|
1919
|
+
IsOptional24(),
|
|
1920
|
+
IsString27()
|
|
1764
1921
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1765
1922
|
__decorateClass([
|
|
1766
|
-
|
|
1767
|
-
|
|
1923
|
+
IsOptional24(),
|
|
1924
|
+
IsString27()
|
|
1768
1925
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1769
1926
|
__decorateClass([
|
|
1770
|
-
|
|
1771
|
-
|
|
1927
|
+
IsOptional24(),
|
|
1928
|
+
IsString27()
|
|
1772
1929
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1773
1930
|
|
|
1931
|
+
// src/modules/user/freelancer-profile/dto/freelancer-e-signature.dto.ts
|
|
1932
|
+
import { IsNotEmpty as IsNotEmpty47, IsString as IsString28 } from "class-validator";
|
|
1933
|
+
var FreelancerESignatureDto = class {
|
|
1934
|
+
};
|
|
1935
|
+
__decorateClass([
|
|
1936
|
+
IsNotEmpty47({ message: "Agreement UUID is required" }),
|
|
1937
|
+
IsString28({ message: "Agreement UUID must be a string" })
|
|
1938
|
+
], FreelancerESignatureDto.prototype, "agreementUuid", 2);
|
|
1939
|
+
|
|
1940
|
+
// src/modules/user/freelancer-profile/dto/fetch-client-info-for-chat.dto.ts
|
|
1941
|
+
import { IsNotEmpty as IsNotEmpty48, IsNumber as IsNumber7 } from "class-validator";
|
|
1942
|
+
var FetchClientInfoForChatDto = class {
|
|
1943
|
+
};
|
|
1944
|
+
__decorateClass([
|
|
1945
|
+
IsNotEmpty48({ message: "Client ID is required" }),
|
|
1946
|
+
IsNumber7({}, { message: "Client ID must be a number" })
|
|
1947
|
+
], FetchClientInfoForChatDto.prototype, "clientId", 2);
|
|
1948
|
+
|
|
1949
|
+
// src/modules/user/freelancer-profile/dto/capture-ai-assessment-result.dto.ts
|
|
1950
|
+
import { IsNotEmpty as IsNotEmpty49, IsString as IsString29, IsOptional as IsOptional25, IsObject as IsObject4 } from "class-validator";
|
|
1951
|
+
var CaptureAiAssessmentResultDto = class {
|
|
1952
|
+
};
|
|
1953
|
+
__decorateClass([
|
|
1954
|
+
IsNotEmpty49({ message: "AI Assessment UUID is required" }),
|
|
1955
|
+
IsString29({ message: "AI Assessment UUID must be a string" })
|
|
1956
|
+
], CaptureAiAssessmentResultDto.prototype, "aiAssessmentUuid", 2);
|
|
1957
|
+
__decorateClass([
|
|
1958
|
+
IsOptional25(),
|
|
1959
|
+
IsObject4()
|
|
1960
|
+
], CaptureAiAssessmentResultDto.prototype, "result", 2);
|
|
1961
|
+
__decorateClass([
|
|
1962
|
+
IsOptional25(),
|
|
1963
|
+
IsString29()
|
|
1964
|
+
], CaptureAiAssessmentResultDto.prototype, "status", 2);
|
|
1965
|
+
|
|
1774
1966
|
// src/modules/bank/pattern/pattern.ts
|
|
1775
1967
|
var BANK_PATTERN = {
|
|
1776
1968
|
addFreelancerBankDetails: "add.freelancer.bankdetails",
|
|
@@ -1783,10 +1975,10 @@ var BANK_PATTERN = {
|
|
|
1783
1975
|
|
|
1784
1976
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1785
1977
|
import {
|
|
1786
|
-
IsEnum as
|
|
1787
|
-
IsNotEmpty as
|
|
1788
|
-
IsOptional as
|
|
1789
|
-
IsString as
|
|
1978
|
+
IsEnum as IsEnum17,
|
|
1979
|
+
IsNotEmpty as IsNotEmpty50,
|
|
1980
|
+
IsOptional as IsOptional26,
|
|
1981
|
+
IsString as IsString30,
|
|
1790
1982
|
ValidateIf as ValidateIf6
|
|
1791
1983
|
} from "class-validator";
|
|
1792
1984
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1797,51 +1989,51 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1797
1989
|
var FreelancerBankDetailsDto = class {
|
|
1798
1990
|
};
|
|
1799
1991
|
__decorateClass([
|
|
1800
|
-
|
|
1992
|
+
IsNotEmpty50({ message: "Please enter Account Holder Name." })
|
|
1801
1993
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1802
1994
|
__decorateClass([
|
|
1803
|
-
|
|
1995
|
+
IsNotEmpty50({ message: "Please enter Mobile Code." })
|
|
1804
1996
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
1805
1997
|
__decorateClass([
|
|
1806
|
-
|
|
1998
|
+
IsNotEmpty50({ message: "Please enter Mobile Number." })
|
|
1807
1999
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1808
2000
|
__decorateClass([
|
|
1809
|
-
|
|
2001
|
+
IsNotEmpty50({ message: "Please enter Email." })
|
|
1810
2002
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1811
2003
|
__decorateClass([
|
|
1812
|
-
|
|
2004
|
+
IsOptional26()
|
|
1813
2005
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1814
2006
|
__decorateClass([
|
|
1815
|
-
|
|
2007
|
+
IsNotEmpty50({ message: "Please enter Account Number." })
|
|
1816
2008
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1817
2009
|
__decorateClass([
|
|
1818
|
-
|
|
2010
|
+
IsNotEmpty50({ message: "Please enter Bank Name." })
|
|
1819
2011
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1820
2012
|
__decorateClass([
|
|
1821
|
-
|
|
1822
|
-
|
|
2013
|
+
IsOptional26(),
|
|
2014
|
+
IsString30()
|
|
1823
2015
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1824
2016
|
__decorateClass([
|
|
1825
2017
|
ValidateIf6((dto) => dto.accountScope === "DOMESTIC"),
|
|
1826
|
-
|
|
2018
|
+
IsNotEmpty50({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1827
2019
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1828
2020
|
__decorateClass([
|
|
1829
2021
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1830
|
-
|
|
2022
|
+
IsNotEmpty50({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1831
2023
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1832
2024
|
__decorateClass([
|
|
1833
2025
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1834
|
-
|
|
2026
|
+
IsNotEmpty50({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1835
2027
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1836
2028
|
__decorateClass([
|
|
1837
2029
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1838
|
-
|
|
2030
|
+
IsNotEmpty50({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1839
2031
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1840
2032
|
__decorateClass([
|
|
1841
|
-
|
|
2033
|
+
IsOptional26()
|
|
1842
2034
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1843
2035
|
__decorateClass([
|
|
1844
|
-
|
|
2036
|
+
IsEnum17(BankAccountScope, {
|
|
1845
2037
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1846
2038
|
BankAccountScope
|
|
1847
2039
|
).join(", ")}`
|
|
@@ -1863,7 +2055,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1863
2055
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1864
2056
|
import {
|
|
1865
2057
|
IsBoolean as IsBoolean4,
|
|
1866
|
-
IsEnum as
|
|
2058
|
+
IsEnum as IsEnum18
|
|
1867
2059
|
} from "class-validator";
|
|
1868
2060
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1869
2061
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -1876,7 +2068,7 @@ __decorateClass([
|
|
|
1876
2068
|
IsBoolean4()
|
|
1877
2069
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1878
2070
|
__decorateClass([
|
|
1879
|
-
|
|
2071
|
+
IsEnum18(SystemPreferenceKey, {
|
|
1880
2072
|
message: `key must be one of: ${Object.values(
|
|
1881
2073
|
SystemPreferenceKey
|
|
1882
2074
|
).join(", ")}`
|
|
@@ -1914,19 +2106,44 @@ var EMAIL_PATTERN = {
|
|
|
1914
2106
|
cleanQueue: "email.clean.queue"
|
|
1915
2107
|
};
|
|
1916
2108
|
|
|
1917
|
-
// src/modules/
|
|
1918
|
-
|
|
1919
|
-
|
|
2109
|
+
// src/modules/notification/dto/test-notification.dto.ts
|
|
2110
|
+
import { IsOptional as IsOptional27, IsString as IsString31, IsObject as IsObject5, IsEmail as IsEmail7, IsPhoneNumber as IsPhoneNumber2 } from "class-validator";
|
|
2111
|
+
var TestNotificationDto = class {
|
|
2112
|
+
};
|
|
2113
|
+
__decorateClass([
|
|
2114
|
+
IsOptional27(),
|
|
2115
|
+
IsEmail7({}, { message: "Email must be valid" })
|
|
2116
|
+
], TestNotificationDto.prototype, "email", 2);
|
|
2117
|
+
__decorateClass([
|
|
2118
|
+
IsOptional27(),
|
|
2119
|
+
IsPhoneNumber2()
|
|
2120
|
+
], TestNotificationDto.prototype, "phone", 2);
|
|
2121
|
+
__decorateClass([
|
|
2122
|
+
IsOptional27(),
|
|
2123
|
+
IsString31()
|
|
2124
|
+
], TestNotificationDto.prototype, "message", 2);
|
|
2125
|
+
__decorateClass([
|
|
2126
|
+
IsOptional27(),
|
|
2127
|
+
IsObject5()
|
|
2128
|
+
], TestNotificationDto.prototype, "data", 2);
|
|
2129
|
+
__decorateClass([
|
|
2130
|
+
IsOptional27(),
|
|
2131
|
+
IsString31()
|
|
2132
|
+
], TestNotificationDto.prototype, "type", 2);
|
|
2133
|
+
|
|
2134
|
+
// src/modules/rating/pattern/pattern.ts
|
|
2135
|
+
var RATING_PATTERN = {
|
|
2136
|
+
addRating: "add.rating",
|
|
1920
2137
|
fetchRating: "fetch.rating"
|
|
1921
2138
|
};
|
|
1922
2139
|
|
|
1923
2140
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1924
2141
|
import {
|
|
1925
|
-
IsEnum as
|
|
2142
|
+
IsEnum as IsEnum19,
|
|
1926
2143
|
IsInt as IsInt2,
|
|
1927
|
-
IsNotEmpty as
|
|
1928
|
-
IsOptional as
|
|
1929
|
-
IsString as
|
|
2144
|
+
IsNotEmpty as IsNotEmpty51,
|
|
2145
|
+
IsOptional as IsOptional28,
|
|
2146
|
+
IsString as IsString32,
|
|
1930
2147
|
Max as Max3,
|
|
1931
2148
|
Min as Min3
|
|
1932
2149
|
} from "class-validator";
|
|
@@ -6727,10 +6944,10 @@ var CreateRatingDto = class {
|
|
|
6727
6944
|
};
|
|
6728
6945
|
__decorateClass([
|
|
6729
6946
|
IsInt2({ message: "Reviewee ID must be a valid integer" }),
|
|
6730
|
-
|
|
6947
|
+
IsNotEmpty51({ message: "Reviewee ID is required" })
|
|
6731
6948
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
6732
6949
|
__decorateClass([
|
|
6733
|
-
|
|
6950
|
+
IsEnum19(RatingTypeEnum, {
|
|
6734
6951
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
6735
6952
|
})
|
|
6736
6953
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
@@ -6740,8 +6957,8 @@ __decorateClass([
|
|
|
6740
6957
|
Max3(5, { message: "Rating must be at most 5" })
|
|
6741
6958
|
], CreateRatingDto.prototype, "rating", 2);
|
|
6742
6959
|
__decorateClass([
|
|
6743
|
-
|
|
6744
|
-
|
|
6960
|
+
IsOptional28(),
|
|
6961
|
+
IsString32({ message: "Review must be a string" })
|
|
6745
6962
|
], CreateRatingDto.prototype, "review", 2);
|
|
6746
6963
|
|
|
6747
6964
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -6757,48 +6974,48 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
6757
6974
|
};
|
|
6758
6975
|
|
|
6759
6976
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
6760
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as
|
|
6977
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional29 } from "class-validator";
|
|
6761
6978
|
var CreateCompanyRoleDto = class {
|
|
6762
6979
|
};
|
|
6763
6980
|
__decorateClass([
|
|
6764
|
-
|
|
6981
|
+
IsNotEmpty52({ message: "Please enter company role name." })
|
|
6765
6982
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
6766
6983
|
__decorateClass([
|
|
6767
|
-
|
|
6984
|
+
IsNotEmpty52({ message: "Please enter company role slug" })
|
|
6768
6985
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
6769
6986
|
__decorateClass([
|
|
6770
|
-
|
|
6987
|
+
IsNotEmpty52({ message: "Please enter description" })
|
|
6771
6988
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
6772
6989
|
__decorateClass([
|
|
6773
|
-
|
|
6990
|
+
IsArray5({ message: "Permission IDs must be an array." }),
|
|
6774
6991
|
ArrayNotEmpty4({ message: "Please select at least one permission." }),
|
|
6775
6992
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
6776
6993
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6777
6994
|
__decorateClass([
|
|
6778
|
-
|
|
6995
|
+
IsOptional29(),
|
|
6779
6996
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
6780
6997
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
6781
6998
|
|
|
6782
6999
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
6783
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as
|
|
7000
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional30 } from "class-validator";
|
|
6784
7001
|
var UpdateCompanyRoleDto = class {
|
|
6785
7002
|
};
|
|
6786
7003
|
__decorateClass([
|
|
6787
|
-
|
|
7004
|
+
IsNotEmpty53({ message: "Please enter company name." })
|
|
6788
7005
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
6789
7006
|
__decorateClass([
|
|
6790
|
-
|
|
7007
|
+
IsNotEmpty53({ message: "Please enter slug" })
|
|
6791
7008
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
6792
7009
|
__decorateClass([
|
|
6793
|
-
|
|
7010
|
+
IsNotEmpty53({ message: "Please enter description" })
|
|
6794
7011
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
6795
7012
|
__decorateClass([
|
|
6796
|
-
|
|
7013
|
+
IsArray6({ message: "Permission IDs must be an array." }),
|
|
6797
7014
|
ArrayNotEmpty5({ message: "Please select at least one permission." }),
|
|
6798
7015
|
IsInt4({ each: true, message: "Each permission ID must be an integer." })
|
|
6799
7016
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6800
7017
|
__decorateClass([
|
|
6801
|
-
|
|
7018
|
+
IsOptional30(),
|
|
6802
7019
|
IsBoolean6({ message: "Is active must be a boolean value" })
|
|
6803
7020
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
6804
7021
|
|
|
@@ -6819,9 +7036,9 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
6819
7036
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
6820
7037
|
import {
|
|
6821
7038
|
ArrayMinSize,
|
|
6822
|
-
IsNotEmpty as
|
|
6823
|
-
IsOptional as
|
|
6824
|
-
IsString as
|
|
7039
|
+
IsNotEmpty as IsNotEmpty54,
|
|
7040
|
+
IsOptional as IsOptional31,
|
|
7041
|
+
IsString as IsString35,
|
|
6825
7042
|
MaxLength as MaxLength12,
|
|
6826
7043
|
ValidateNested as ValidateNested2
|
|
6827
7044
|
} from "class-validator";
|
|
@@ -6829,23 +7046,23 @@ import { Type as Type4 } from "class-transformer";
|
|
|
6829
7046
|
var ExperienceDto = class {
|
|
6830
7047
|
};
|
|
6831
7048
|
__decorateClass([
|
|
6832
|
-
|
|
7049
|
+
IsOptional31()
|
|
6833
7050
|
], ExperienceDto.prototype, "uuid", 2);
|
|
6834
7051
|
__decorateClass([
|
|
6835
|
-
|
|
6836
|
-
|
|
7052
|
+
IsNotEmpty54(),
|
|
7053
|
+
IsString35()
|
|
6837
7054
|
], ExperienceDto.prototype, "companyName", 2);
|
|
6838
7055
|
__decorateClass([
|
|
6839
|
-
|
|
6840
|
-
|
|
7056
|
+
IsNotEmpty54(),
|
|
7057
|
+
IsString35()
|
|
6841
7058
|
], ExperienceDto.prototype, "designation", 2);
|
|
6842
7059
|
__decorateClass([
|
|
6843
|
-
|
|
6844
|
-
|
|
7060
|
+
IsNotEmpty54(),
|
|
7061
|
+
IsString35()
|
|
6845
7062
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
6846
7063
|
__decorateClass([
|
|
6847
|
-
|
|
6848
|
-
|
|
7064
|
+
IsOptional31(),
|
|
7065
|
+
IsString35(),
|
|
6849
7066
|
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6850
7067
|
], ExperienceDto.prototype, "description", 2);
|
|
6851
7068
|
var FreelancerExperienceDto = class {
|
|
@@ -6869,33 +7086,33 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
6869
7086
|
};
|
|
6870
7087
|
|
|
6871
7088
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
6872
|
-
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as
|
|
7089
|
+
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsInt as IsInt5, IsNotEmpty as IsNotEmpty55 } from "class-validator";
|
|
6873
7090
|
var CreateCompanyMemberDto = class {
|
|
6874
7091
|
};
|
|
6875
7092
|
__decorateClass([
|
|
6876
|
-
|
|
7093
|
+
IsNotEmpty55({ message: "Please enter name." })
|
|
6877
7094
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
6878
7095
|
__decorateClass([
|
|
6879
|
-
|
|
7096
|
+
IsNotEmpty55({ message: "Please enter email" })
|
|
6880
7097
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
6881
7098
|
__decorateClass([
|
|
6882
|
-
|
|
7099
|
+
IsArray7({ message: "Role IDs must be an array." }),
|
|
6883
7100
|
ArrayNotEmpty6({ message: "Please select at least one role." }),
|
|
6884
7101
|
IsInt5({ each: true, message: "Each role ID must be an integer." })
|
|
6885
7102
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
6886
7103
|
|
|
6887
7104
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
6888
|
-
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as
|
|
7105
|
+
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt6, IsNotEmpty as IsNotEmpty56 } from "class-validator";
|
|
6889
7106
|
var UpdateCompanyMemberDto = class {
|
|
6890
7107
|
};
|
|
6891
7108
|
__decorateClass([
|
|
6892
|
-
|
|
7109
|
+
IsNotEmpty56({ message: "Please enter name." })
|
|
6893
7110
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
6894
7111
|
__decorateClass([
|
|
6895
|
-
|
|
7112
|
+
IsNotEmpty56({ message: "Please enter email" })
|
|
6896
7113
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
6897
7114
|
__decorateClass([
|
|
6898
|
-
|
|
7115
|
+
IsArray8({ message: "Role IDs must be an array." }),
|
|
6899
7116
|
ArrayNotEmpty7({ message: "Please select at least one role." }),
|
|
6900
7117
|
IsInt6({ each: true, message: "Each role ID must be an integer." })
|
|
6901
7118
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
@@ -6915,29 +7132,29 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
6915
7132
|
};
|
|
6916
7133
|
|
|
6917
7134
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
6918
|
-
import { IsArray as
|
|
7135
|
+
import { IsArray as IsArray9, ValidateNested as ValidateNested3, IsString as IsString38, IsNotEmpty as IsNotEmpty57, IsOptional as IsOptional34, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
6919
7136
|
import { Type as Type5 } from "class-transformer";
|
|
6920
7137
|
var EducationDto = class {
|
|
6921
7138
|
};
|
|
6922
7139
|
__decorateClass([
|
|
6923
|
-
|
|
7140
|
+
IsOptional34()
|
|
6924
7141
|
], EducationDto.prototype, "uuid", 2);
|
|
6925
7142
|
__decorateClass([
|
|
6926
|
-
|
|
6927
|
-
|
|
7143
|
+
IsString38(),
|
|
7144
|
+
IsNotEmpty57({ message: "Please Enter Degree " })
|
|
6928
7145
|
], EducationDto.prototype, "degree", 2);
|
|
6929
7146
|
__decorateClass([
|
|
6930
|
-
|
|
6931
|
-
|
|
7147
|
+
IsString38(),
|
|
7148
|
+
IsNotEmpty57({ message: "Please Enter University " })
|
|
6932
7149
|
], EducationDto.prototype, "university", 2);
|
|
6933
7150
|
__decorateClass([
|
|
6934
|
-
|
|
6935
|
-
|
|
7151
|
+
IsString38(),
|
|
7152
|
+
IsNotEmpty57({ message: "Please Enter Year of Graduation " })
|
|
6936
7153
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
6937
7154
|
var FreelancerEducationDto = class {
|
|
6938
7155
|
};
|
|
6939
7156
|
__decorateClass([
|
|
6940
|
-
|
|
7157
|
+
IsArray9(),
|
|
6941
7158
|
ArrayMinSize2(1, { message: "At least one education is required." }),
|
|
6942
7159
|
ValidateNested3({ each: true }),
|
|
6943
7160
|
Type5(() => EducationDto)
|
|
@@ -6950,66 +7167,66 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
6950
7167
|
};
|
|
6951
7168
|
|
|
6952
7169
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
6953
|
-
import { IsArray as
|
|
7170
|
+
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as IsString39, IsNotEmpty as IsNotEmpty58, IsOptional as IsOptional35, IsDateString, MaxLength as MaxLength14, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
6954
7171
|
import { Type as Type6 } from "class-transformer";
|
|
6955
7172
|
var ProjectDto = class {
|
|
6956
7173
|
};
|
|
6957
7174
|
__decorateClass([
|
|
6958
|
-
|
|
7175
|
+
IsOptional35()
|
|
6959
7176
|
], ProjectDto.prototype, "uuid", 2);
|
|
6960
7177
|
__decorateClass([
|
|
6961
|
-
|
|
6962
|
-
|
|
7178
|
+
IsString39(),
|
|
7179
|
+
IsNotEmpty58({ message: "Please Enter Project Name " })
|
|
6963
7180
|
], ProjectDto.prototype, "projectName", 2);
|
|
6964
7181
|
__decorateClass([
|
|
6965
7182
|
IsDateString(),
|
|
6966
|
-
|
|
7183
|
+
IsNotEmpty58({ message: "Please Enter Start Date " })
|
|
6967
7184
|
], ProjectDto.prototype, "startDate", 2);
|
|
6968
7185
|
__decorateClass([
|
|
6969
7186
|
IsDateString(),
|
|
6970
|
-
|
|
7187
|
+
IsNotEmpty58({ message: "Please Enter End Date " })
|
|
6971
7188
|
], ProjectDto.prototype, "endDate", 2);
|
|
6972
7189
|
__decorateClass([
|
|
6973
|
-
|
|
6974
|
-
|
|
7190
|
+
IsOptional35(),
|
|
7191
|
+
IsString39()
|
|
6975
7192
|
], ProjectDto.prototype, "clientName", 2);
|
|
6976
7193
|
__decorateClass([
|
|
6977
|
-
|
|
6978
|
-
|
|
7194
|
+
IsOptional35(),
|
|
7195
|
+
IsString39()
|
|
6979
7196
|
], ProjectDto.prototype, "gitLink", 2);
|
|
6980
7197
|
__decorateClass([
|
|
6981
|
-
|
|
6982
|
-
|
|
7198
|
+
IsOptional35(),
|
|
7199
|
+
IsString39(),
|
|
6983
7200
|
MaxLength14(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6984
7201
|
], ProjectDto.prototype, "description", 2);
|
|
6985
7202
|
var CaseStudyDto = class {
|
|
6986
7203
|
};
|
|
6987
7204
|
__decorateClass([
|
|
6988
|
-
|
|
7205
|
+
IsOptional35()
|
|
6989
7206
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
6990
7207
|
__decorateClass([
|
|
6991
|
-
|
|
6992
|
-
|
|
7208
|
+
IsString39(),
|
|
7209
|
+
IsNotEmpty58({ message: "Please Enter Project Name " })
|
|
6993
7210
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
6994
7211
|
__decorateClass([
|
|
6995
|
-
|
|
6996
|
-
|
|
7212
|
+
IsOptional35(),
|
|
7213
|
+
IsString39()
|
|
6997
7214
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
6998
7215
|
__decorateClass([
|
|
6999
|
-
|
|
7000
|
-
|
|
7216
|
+
IsOptional35(),
|
|
7217
|
+
IsString39(),
|
|
7001
7218
|
MaxLength14(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7002
7219
|
], CaseStudyDto.prototype, "description", 2);
|
|
7003
7220
|
var FreelancerProjectDto = class {
|
|
7004
7221
|
};
|
|
7005
7222
|
__decorateClass([
|
|
7006
|
-
|
|
7223
|
+
IsArray10(),
|
|
7007
7224
|
ArrayMinSize3(1, { message: "At least one project is required." }),
|
|
7008
7225
|
ValidateNested4({ each: true }),
|
|
7009
7226
|
Type6(() => ProjectDto)
|
|
7010
7227
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
7011
7228
|
__decorateClass([
|
|
7012
|
-
|
|
7229
|
+
IsArray10(),
|
|
7013
7230
|
ValidateNested4({ each: true }),
|
|
7014
7231
|
Type6(() => CaseStudyDto)
|
|
7015
7232
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
@@ -7027,7 +7244,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
7027
7244
|
};
|
|
7028
7245
|
|
|
7029
7246
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
7030
|
-
import { IsArray as
|
|
7247
|
+
import { IsArray as IsArray11, IsString as IsString40, IsOptional as IsOptional36 } from "class-validator";
|
|
7031
7248
|
import { Type as Type7 } from "class-transformer";
|
|
7032
7249
|
var FreelancerSkillDto = class {
|
|
7033
7250
|
constructor() {
|
|
@@ -7038,28 +7255,28 @@ var FreelancerSkillDto = class {
|
|
|
7038
7255
|
}
|
|
7039
7256
|
};
|
|
7040
7257
|
__decorateClass([
|
|
7041
|
-
|
|
7042
|
-
|
|
7258
|
+
IsOptional36(),
|
|
7259
|
+
IsArray11(),
|
|
7043
7260
|
Type7(() => String),
|
|
7044
|
-
|
|
7261
|
+
IsString40({ each: true })
|
|
7045
7262
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
7046
7263
|
__decorateClass([
|
|
7047
|
-
|
|
7048
|
-
|
|
7264
|
+
IsOptional36(),
|
|
7265
|
+
IsArray11(),
|
|
7049
7266
|
Type7(() => String),
|
|
7050
|
-
|
|
7267
|
+
IsString40({ each: true })
|
|
7051
7268
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
7052
7269
|
__decorateClass([
|
|
7053
|
-
|
|
7054
|
-
|
|
7270
|
+
IsOptional36(),
|
|
7271
|
+
IsArray11(),
|
|
7055
7272
|
Type7(() => String),
|
|
7056
|
-
|
|
7273
|
+
IsString40({ each: true })
|
|
7057
7274
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
7058
7275
|
__decorateClass([
|
|
7059
|
-
|
|
7060
|
-
|
|
7276
|
+
IsOptional36(),
|
|
7277
|
+
IsArray11(),
|
|
7061
7278
|
Type7(() => String),
|
|
7062
|
-
|
|
7279
|
+
IsString40({ each: true })
|
|
7063
7280
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
7064
7281
|
|
|
7065
7282
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -7086,16 +7303,16 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
7086
7303
|
|
|
7087
7304
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
7088
7305
|
import {
|
|
7089
|
-
IsString as
|
|
7090
|
-
IsEmail as
|
|
7306
|
+
IsString as IsString41,
|
|
7307
|
+
IsEmail as IsEmail12,
|
|
7091
7308
|
IsBoolean as IsBoolean11,
|
|
7092
|
-
IsOptional as
|
|
7093
|
-
IsEnum as
|
|
7094
|
-
IsNumber as
|
|
7309
|
+
IsOptional as IsOptional37,
|
|
7310
|
+
IsEnum as IsEnum20,
|
|
7311
|
+
IsNumber as IsNumber8,
|
|
7095
7312
|
IsUrl as IsUrl3,
|
|
7096
7313
|
Min as Min4,
|
|
7097
7314
|
MaxLength as MaxLength16,
|
|
7098
|
-
IsNotEmpty as
|
|
7315
|
+
IsNotEmpty as IsNotEmpty60,
|
|
7099
7316
|
MinLength as MinLength12,
|
|
7100
7317
|
Matches as Matches9,
|
|
7101
7318
|
ValidateIf as ValidateIf7,
|
|
@@ -7123,20 +7340,20 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
7123
7340
|
var CreateFreelancerDto = class {
|
|
7124
7341
|
};
|
|
7125
7342
|
__decorateClass([
|
|
7126
|
-
|
|
7343
|
+
IsString41({ message: "Full name must be a string" }),
|
|
7127
7344
|
MaxLength16(100, { message: "Full name must not exceed 100 characters" })
|
|
7128
7345
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
7129
7346
|
__decorateClass([
|
|
7130
|
-
|
|
7347
|
+
IsEmail12({}, { message: "Invalid email address" })
|
|
7131
7348
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
7132
7349
|
__decorateClass([
|
|
7133
|
-
|
|
7350
|
+
IsString41({ message: "Mobile code must be a string (e.g., +1)" })
|
|
7134
7351
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
7135
7352
|
__decorateClass([
|
|
7136
|
-
|
|
7353
|
+
IsString41({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
7137
7354
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
7138
7355
|
__decorateClass([
|
|
7139
|
-
|
|
7356
|
+
IsNotEmpty60({ message: "Please enter password." }),
|
|
7140
7357
|
MinLength12(6),
|
|
7141
7358
|
MaxLength16(32),
|
|
7142
7359
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -7144,7 +7361,7 @@ __decorateClass([
|
|
|
7144
7361
|
})
|
|
7145
7362
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
7146
7363
|
__decorateClass([
|
|
7147
|
-
|
|
7364
|
+
IsNotEmpty60({ message: "Please enter confirm password." }),
|
|
7148
7365
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
7149
7366
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
7150
7367
|
__decorateClass([
|
|
@@ -7152,28 +7369,28 @@ __decorateClass([
|
|
|
7152
7369
|
Type8(() => Boolean)
|
|
7153
7370
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
7154
7371
|
__decorateClass([
|
|
7155
|
-
|
|
7372
|
+
IsEnum20(NatureOfWorkEnum, {
|
|
7156
7373
|
message: `Nature of work must be one of: ${Object.values(
|
|
7157
7374
|
NatureOfWorkEnum
|
|
7158
7375
|
).join(", ")}`
|
|
7159
7376
|
})
|
|
7160
7377
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
7161
7378
|
__decorateClass([
|
|
7162
|
-
|
|
7379
|
+
IsNumber8({}, { message: "Expected hourly compensation must be a number" }),
|
|
7163
7380
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
7164
7381
|
Type8(() => Number)
|
|
7165
7382
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
7166
7383
|
__decorateClass([
|
|
7167
7384
|
ValidateIf7((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7168
|
-
|
|
7385
|
+
IsNotEmpty60({ message: "Please enter expected annual compensation." })
|
|
7169
7386
|
], CreateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
7170
7387
|
__decorateClass([
|
|
7171
7388
|
ValidateIf7((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
7172
7389
|
IsInt7({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
7173
|
-
|
|
7390
|
+
IsNotEmpty60({ message: "Please enter weekly availability hours" })
|
|
7174
7391
|
], CreateFreelancerDto.prototype, "numberOfHours", 2);
|
|
7175
7392
|
__decorateClass([
|
|
7176
|
-
|
|
7393
|
+
IsEnum20(ModeOfWorkEnum, {
|
|
7177
7394
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
7178
7395
|
", "
|
|
7179
7396
|
)}`
|
|
@@ -7185,43 +7402,43 @@ __decorateClass([
|
|
|
7185
7402
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
7186
7403
|
__decorateClass([
|
|
7187
7404
|
ValidateIf7((o) => o.isImmediateJoiner === false),
|
|
7188
|
-
|
|
7405
|
+
IsNotEmpty60({ message: "Please enter availability to join." })
|
|
7189
7406
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
7190
7407
|
__decorateClass([
|
|
7191
|
-
|
|
7408
|
+
IsOptional37(),
|
|
7192
7409
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
7193
7410
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
7194
7411
|
__decorateClass([
|
|
7195
|
-
|
|
7196
|
-
|
|
7412
|
+
IsOptional37(),
|
|
7413
|
+
IsString41({ message: "Kaggle profile link must be a string" })
|
|
7197
7414
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
7198
7415
|
__decorateClass([
|
|
7199
|
-
|
|
7416
|
+
IsOptional37(),
|
|
7200
7417
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
7201
7418
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
7202
7419
|
__decorateClass([
|
|
7203
|
-
|
|
7420
|
+
IsOptional37(),
|
|
7204
7421
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
7205
7422
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
7206
7423
|
__decorateClass([
|
|
7207
|
-
|
|
7424
|
+
IsOptional37(),
|
|
7208
7425
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
7209
7426
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
7210
7427
|
|
|
7211
7428
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
7212
7429
|
import {
|
|
7213
|
-
IsString as
|
|
7214
|
-
IsEmail as
|
|
7430
|
+
IsString as IsString42,
|
|
7431
|
+
IsEmail as IsEmail13,
|
|
7215
7432
|
IsBoolean as IsBoolean12,
|
|
7216
|
-
IsOptional as
|
|
7217
|
-
IsEnum as
|
|
7218
|
-
IsNumber as
|
|
7433
|
+
IsOptional as IsOptional38,
|
|
7434
|
+
IsEnum as IsEnum21,
|
|
7435
|
+
IsNumber as IsNumber9,
|
|
7219
7436
|
IsUrl as IsUrl4,
|
|
7220
7437
|
Min as Min5,
|
|
7221
7438
|
MaxLength as MaxLength17,
|
|
7222
7439
|
MinLength as MinLength13,
|
|
7223
7440
|
Matches as Matches10,
|
|
7224
|
-
IsNotEmpty as
|
|
7441
|
+
IsNotEmpty as IsNotEmpty61,
|
|
7225
7442
|
ValidateIf as ValidateIf8,
|
|
7226
7443
|
IsInt as IsInt8
|
|
7227
7444
|
} from "class-validator";
|
|
@@ -7241,24 +7458,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
7241
7458
|
var UpdateFreelancerDto = class {
|
|
7242
7459
|
};
|
|
7243
7460
|
__decorateClass([
|
|
7244
|
-
|
|
7245
|
-
|
|
7461
|
+
IsOptional38(),
|
|
7462
|
+
IsString42({ message: "Full name must be a string" }),
|
|
7246
7463
|
MaxLength17(100, { message: "Full name must not exceed 100 characters" })
|
|
7247
7464
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
7248
7465
|
__decorateClass([
|
|
7249
|
-
|
|
7250
|
-
|
|
7466
|
+
IsOptional38(),
|
|
7467
|
+
IsEmail13({}, { message: "Invalid email address" })
|
|
7251
7468
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
7252
7469
|
__decorateClass([
|
|
7253
|
-
|
|
7254
|
-
|
|
7470
|
+
IsOptional38(),
|
|
7471
|
+
IsString42({ message: "Mobile code must be a string (e.g., +1)" })
|
|
7255
7472
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
7256
7473
|
__decorateClass([
|
|
7257
|
-
|
|
7258
|
-
|
|
7474
|
+
IsOptional38(),
|
|
7475
|
+
IsString42({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
7259
7476
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
7260
7477
|
__decorateClass([
|
|
7261
|
-
|
|
7478
|
+
IsOptional38(),
|
|
7262
7479
|
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
7263
7480
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
7264
7481
|
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -7267,73 +7484,103 @@ __decorateClass([
|
|
|
7267
7484
|
})
|
|
7268
7485
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
7269
7486
|
__decorateClass([
|
|
7270
|
-
|
|
7487
|
+
IsOptional38(),
|
|
7271
7488
|
IsBoolean12({ message: "Developer flag must be true or false" }),
|
|
7272
7489
|
Type9(() => Boolean)
|
|
7273
7490
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
7274
7491
|
__decorateClass([
|
|
7275
|
-
|
|
7276
|
-
|
|
7492
|
+
IsOptional38(),
|
|
7493
|
+
IsEnum21(NatureOfWorkEnum2, {
|
|
7277
7494
|
message: `Nature of work must be one of: ${Object.values(
|
|
7278
7495
|
NatureOfWorkEnum2
|
|
7279
7496
|
).join(", ")}`
|
|
7280
7497
|
})
|
|
7281
7498
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
7282
7499
|
__decorateClass([
|
|
7283
|
-
|
|
7284
|
-
|
|
7500
|
+
IsOptional38(),
|
|
7501
|
+
IsNumber9({}, { message: "Expected hourly compensation must be a number" }),
|
|
7285
7502
|
Min5(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
7286
7503
|
Type9(() => Number)
|
|
7287
7504
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
7288
7505
|
__decorateClass([
|
|
7289
|
-
|
|
7506
|
+
IsOptional38(),
|
|
7290
7507
|
ValidateIf8((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7291
|
-
|
|
7508
|
+
IsNotEmpty61({ message: "Please enter expected annual compensation." })
|
|
7292
7509
|
], UpdateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
7293
7510
|
__decorateClass([
|
|
7294
|
-
|
|
7511
|
+
IsOptional38(),
|
|
7295
7512
|
ValidateIf8((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
7296
7513
|
IsInt8({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
7297
|
-
|
|
7514
|
+
IsNotEmpty61({ message: "Please enter weekly availability hours" })
|
|
7298
7515
|
], UpdateFreelancerDto.prototype, "numberOfHours", 2);
|
|
7299
7516
|
__decorateClass([
|
|
7300
|
-
|
|
7301
|
-
|
|
7517
|
+
IsOptional38(),
|
|
7518
|
+
IsEnum21(ModeOfWorkEnum2, {
|
|
7302
7519
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
7303
7520
|
", "
|
|
7304
7521
|
)}`
|
|
7305
7522
|
})
|
|
7306
7523
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
7307
7524
|
__decorateClass([
|
|
7308
|
-
|
|
7525
|
+
IsOptional38(),
|
|
7309
7526
|
IsBoolean12({ message: "isImmediateJoiner must be true or false" }),
|
|
7310
7527
|
Type9(() => Boolean)
|
|
7311
7528
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
7312
7529
|
__decorateClass([
|
|
7313
7530
|
ValidateIf8((o) => o.isImmediateJoiner === false),
|
|
7314
|
-
|
|
7531
|
+
IsNotEmpty61({ message: "Please enter availability to join." })
|
|
7315
7532
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
7316
7533
|
__decorateClass([
|
|
7317
|
-
|
|
7534
|
+
IsOptional38(),
|
|
7318
7535
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
7319
7536
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
7320
7537
|
__decorateClass([
|
|
7321
|
-
|
|
7322
|
-
|
|
7538
|
+
IsOptional38(),
|
|
7539
|
+
IsString42({ message: "Kaggle profile link must be a string" })
|
|
7323
7540
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
7324
7541
|
__decorateClass([
|
|
7325
|
-
|
|
7542
|
+
IsOptional38(),
|
|
7326
7543
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
7327
7544
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
7328
7545
|
__decorateClass([
|
|
7329
|
-
|
|
7546
|
+
IsOptional38(),
|
|
7330
7547
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
7331
7548
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
7332
7549
|
__decorateClass([
|
|
7333
|
-
|
|
7550
|
+
IsOptional38(),
|
|
7334
7551
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
7335
7552
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
7336
7553
|
|
|
7554
|
+
// src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
|
|
7555
|
+
import { IsNotEmpty as IsNotEmpty62, IsNumber as IsNumber10 } from "class-validator";
|
|
7556
|
+
var SendAiAssessmentLinkDto = class {
|
|
7557
|
+
};
|
|
7558
|
+
__decorateClass([
|
|
7559
|
+
IsNotEmpty62({ message: "User ID is required" }),
|
|
7560
|
+
IsNumber10({}, { message: "User ID must be a number" })
|
|
7561
|
+
], SendAiAssessmentLinkDto.prototype, "userId", 2);
|
|
7562
|
+
|
|
7563
|
+
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
7564
|
+
import { IsEnum as IsEnum22, IsOptional as IsOptional39, IsString as IsString43 } from "class-validator";
|
|
7565
|
+
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
7566
|
+
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
7567
|
+
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
7568
|
+
AssessmentRequestStatus2["REJECTED"] = "REJECTED";
|
|
7569
|
+
AssessmentRequestStatus2["EXPIRED"] = "EXPIRED";
|
|
7570
|
+
return AssessmentRequestStatus2;
|
|
7571
|
+
})(AssessmentRequestStatus || {});
|
|
7572
|
+
var UpdateAssessmentRequestStatusDto = class {
|
|
7573
|
+
};
|
|
7574
|
+
__decorateClass([
|
|
7575
|
+
IsEnum22(AssessmentRequestStatus, {
|
|
7576
|
+
message: `Status must be one of: ${Object.values(AssessmentRequestStatus).join(", ")}`
|
|
7577
|
+
})
|
|
7578
|
+
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
7579
|
+
__decorateClass([
|
|
7580
|
+
IsOptional39(),
|
|
7581
|
+
IsString43()
|
|
7582
|
+
], UpdateAssessmentRequestStatusDto.prototype, "remarks", 2);
|
|
7583
|
+
|
|
7337
7584
|
// src/modules/client-admin/pattern/pattern.ts
|
|
7338
7585
|
var CLIENT_ADMIN_PATTERNS = {
|
|
7339
7586
|
fetchAdminClients: "fetch.admin.clients",
|
|
@@ -7349,14 +7596,14 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
7349
7596
|
|
|
7350
7597
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
7351
7598
|
import {
|
|
7352
|
-
IsNotEmpty as
|
|
7353
|
-
IsEmail as
|
|
7354
|
-
IsOptional as
|
|
7355
|
-
IsString as
|
|
7356
|
-
IsArray as
|
|
7599
|
+
IsNotEmpty as IsNotEmpty63,
|
|
7600
|
+
IsEmail as IsEmail14,
|
|
7601
|
+
IsOptional as IsOptional40,
|
|
7602
|
+
IsString as IsString44,
|
|
7603
|
+
IsArray as IsArray12,
|
|
7357
7604
|
MinLength as MinLength14,
|
|
7358
7605
|
MaxLength as MaxLength18,
|
|
7359
|
-
IsEnum as
|
|
7606
|
+
IsEnum as IsEnum23,
|
|
7360
7607
|
Matches as Matches11
|
|
7361
7608
|
} from "class-validator";
|
|
7362
7609
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
@@ -7374,19 +7621,19 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
7374
7621
|
var CreateClientDto = class {
|
|
7375
7622
|
};
|
|
7376
7623
|
__decorateClass([
|
|
7377
|
-
|
|
7378
|
-
|
|
7624
|
+
IsNotEmpty63({ message: "Please enter first name." }),
|
|
7625
|
+
IsString44()
|
|
7379
7626
|
], CreateClientDto.prototype, "firstName", 2);
|
|
7380
7627
|
__decorateClass([
|
|
7381
|
-
|
|
7382
|
-
|
|
7628
|
+
IsNotEmpty63({ message: "Please enter last name." }),
|
|
7629
|
+
IsString44()
|
|
7383
7630
|
], CreateClientDto.prototype, "lastName", 2);
|
|
7384
7631
|
__decorateClass([
|
|
7385
|
-
|
|
7386
|
-
|
|
7632
|
+
IsNotEmpty63({ message: "Please enter email." }),
|
|
7633
|
+
IsEmail14()
|
|
7387
7634
|
], CreateClientDto.prototype, "email", 2);
|
|
7388
7635
|
__decorateClass([
|
|
7389
|
-
|
|
7636
|
+
IsNotEmpty63({ message: "Please enter password." }),
|
|
7390
7637
|
MinLength14(6),
|
|
7391
7638
|
MaxLength18(32),
|
|
7392
7639
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -7394,66 +7641,66 @@ __decorateClass([
|
|
|
7394
7641
|
})
|
|
7395
7642
|
], CreateClientDto.prototype, "password", 2);
|
|
7396
7643
|
__decorateClass([
|
|
7397
|
-
|
|
7644
|
+
IsNotEmpty63({ message: "Please enter confirm password." }),
|
|
7398
7645
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
7399
7646
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
7400
7647
|
__decorateClass([
|
|
7401
|
-
|
|
7402
|
-
|
|
7648
|
+
IsNotEmpty63({ message: "Please enter company name." }),
|
|
7649
|
+
IsString44()
|
|
7403
7650
|
], CreateClientDto.prototype, "companyName", 2);
|
|
7404
7651
|
__decorateClass([
|
|
7405
|
-
|
|
7406
|
-
|
|
7652
|
+
IsArray12({ message: "Skills should be an array." }),
|
|
7653
|
+
IsNotEmpty63({ message: "Please enter skills." })
|
|
7407
7654
|
], CreateClientDto.prototype, "skills", 2);
|
|
7408
7655
|
__decorateClass([
|
|
7409
|
-
|
|
7410
|
-
|
|
7656
|
+
IsNotEmpty63({ message: "Please specify required freelancer count." }),
|
|
7657
|
+
IsString44()
|
|
7411
7658
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
7412
7659
|
__decorateClass([
|
|
7413
|
-
|
|
7414
|
-
|
|
7660
|
+
IsNotEmpty63({ message: "Please specify the kind of hiring." }),
|
|
7661
|
+
IsEnum23(CreateClientHiringTypeEnum)
|
|
7415
7662
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
7416
7663
|
__decorateClass([
|
|
7417
|
-
|
|
7418
|
-
|
|
7664
|
+
IsNotEmpty63({ message: "Please specify the mode of hire." }),
|
|
7665
|
+
IsEnum23(CreateClientHiringModeEnum)
|
|
7419
7666
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
7420
7667
|
__decorateClass([
|
|
7421
|
-
|
|
7422
|
-
|
|
7668
|
+
IsNotEmpty63({ message: "Please let us know how you found us." }),
|
|
7669
|
+
IsString44()
|
|
7423
7670
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
7424
7671
|
__decorateClass([
|
|
7425
|
-
|
|
7426
|
-
|
|
7672
|
+
IsOptional40(),
|
|
7673
|
+
IsString44()
|
|
7427
7674
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
7428
7675
|
__decorateClass([
|
|
7429
|
-
|
|
7430
|
-
|
|
7676
|
+
IsOptional40(),
|
|
7677
|
+
IsString44()
|
|
7431
7678
|
], CreateClientDto.prototype, "hiringCommisionTypeForFte", 2);
|
|
7432
7679
|
__decorateClass([
|
|
7433
|
-
|
|
7434
|
-
|
|
7680
|
+
IsOptional40(),
|
|
7681
|
+
IsString44()
|
|
7435
7682
|
], CreateClientDto.prototype, "hiringCommissionValueForFte", 2);
|
|
7436
7683
|
|
|
7437
7684
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
7438
|
-
import { IsString as
|
|
7685
|
+
import { IsString as IsString45, IsNotEmpty as IsNotEmpty64 } from "class-validator";
|
|
7439
7686
|
var UpdateClientAccountStatusDto = class {
|
|
7440
7687
|
};
|
|
7441
7688
|
__decorateClass([
|
|
7442
|
-
|
|
7443
|
-
|
|
7689
|
+
IsNotEmpty64({ message: "Please enter account status." }),
|
|
7690
|
+
IsString45()
|
|
7444
7691
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
7445
7692
|
|
|
7446
7693
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
7447
7694
|
import { Transform as Transform3 } from "class-transformer";
|
|
7448
7695
|
import {
|
|
7449
|
-
IsNotEmpty as
|
|
7450
|
-
IsEmail as
|
|
7451
|
-
IsOptional as
|
|
7452
|
-
IsString as
|
|
7453
|
-
IsArray as
|
|
7696
|
+
IsNotEmpty as IsNotEmpty65,
|
|
7697
|
+
IsEmail as IsEmail15,
|
|
7698
|
+
IsOptional as IsOptional41,
|
|
7699
|
+
IsString as IsString46,
|
|
7700
|
+
IsArray as IsArray13,
|
|
7454
7701
|
MinLength as MinLength15,
|
|
7455
7702
|
MaxLength as MaxLength19,
|
|
7456
|
-
IsEnum as
|
|
7703
|
+
IsEnum as IsEnum24,
|
|
7457
7704
|
Matches as Matches12
|
|
7458
7705
|
} from "class-validator";
|
|
7459
7706
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
@@ -7471,19 +7718,19 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
7471
7718
|
var UpdateClientDto = class {
|
|
7472
7719
|
};
|
|
7473
7720
|
__decorateClass([
|
|
7474
|
-
|
|
7475
|
-
|
|
7721
|
+
IsNotEmpty65({ message: "Please enter first name." }),
|
|
7722
|
+
IsString46()
|
|
7476
7723
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
7477
7724
|
__decorateClass([
|
|
7478
|
-
|
|
7479
|
-
|
|
7725
|
+
IsNotEmpty65({ message: "Please enter last name." }),
|
|
7726
|
+
IsString46()
|
|
7480
7727
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
7481
7728
|
__decorateClass([
|
|
7482
|
-
|
|
7483
|
-
|
|
7729
|
+
IsNotEmpty65({ message: "Please enter email." }),
|
|
7730
|
+
IsEmail15()
|
|
7484
7731
|
], UpdateClientDto.prototype, "email", 2);
|
|
7485
7732
|
__decorateClass([
|
|
7486
|
-
|
|
7733
|
+
IsOptional41(),
|
|
7487
7734
|
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
7488
7735
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
7489
7736
|
MaxLength19(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -7492,40 +7739,40 @@ __decorateClass([
|
|
|
7492
7739
|
})
|
|
7493
7740
|
], UpdateClientDto.prototype, "password", 2);
|
|
7494
7741
|
__decorateClass([
|
|
7495
|
-
|
|
7496
|
-
|
|
7742
|
+
IsNotEmpty65({ message: "Please enter company name." }),
|
|
7743
|
+
IsString46()
|
|
7497
7744
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
7498
7745
|
__decorateClass([
|
|
7499
|
-
|
|
7500
|
-
|
|
7746
|
+
IsArray13({ message: "Skills should be an array." }),
|
|
7747
|
+
IsNotEmpty65({ message: "Please enter skills." })
|
|
7501
7748
|
], UpdateClientDto.prototype, "skills", 2);
|
|
7502
7749
|
__decorateClass([
|
|
7503
|
-
|
|
7504
|
-
|
|
7750
|
+
IsNotEmpty65({ message: "Please specify required freelancer count." }),
|
|
7751
|
+
IsString46()
|
|
7505
7752
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
7506
7753
|
__decorateClass([
|
|
7507
|
-
|
|
7508
|
-
|
|
7754
|
+
IsNotEmpty65({ message: "Please specify the kind of hiring." }),
|
|
7755
|
+
IsEnum24(UpdateClientHiringTypeEnum)
|
|
7509
7756
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
7510
7757
|
__decorateClass([
|
|
7511
|
-
|
|
7512
|
-
|
|
7758
|
+
IsNotEmpty65({ message: "Please specify the mode of hire." }),
|
|
7759
|
+
IsEnum24(UpdateClientHiringModeEnum)
|
|
7513
7760
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
7514
7761
|
__decorateClass([
|
|
7515
|
-
|
|
7516
|
-
|
|
7762
|
+
IsNotEmpty65({ message: "Please let us know how you found us." }),
|
|
7763
|
+
IsString46()
|
|
7517
7764
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
7518
7765
|
__decorateClass([
|
|
7519
|
-
|
|
7520
|
-
|
|
7766
|
+
IsOptional41(),
|
|
7767
|
+
IsString46()
|
|
7521
7768
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
7522
7769
|
__decorateClass([
|
|
7523
|
-
|
|
7524
|
-
|
|
7770
|
+
IsOptional41(),
|
|
7771
|
+
IsString46()
|
|
7525
7772
|
], UpdateClientDto.prototype, "hiringCommisionTypeForFte", 2);
|
|
7526
7773
|
__decorateClass([
|
|
7527
|
-
|
|
7528
|
-
|
|
7774
|
+
IsOptional41(),
|
|
7775
|
+
IsString46()
|
|
7529
7776
|
], UpdateClientDto.prototype, "hiringCommissionValueForFte", 2);
|
|
7530
7777
|
|
|
7531
7778
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -7535,7 +7782,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
7535
7782
|
};
|
|
7536
7783
|
|
|
7537
7784
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
7538
|
-
import { IsOptional as
|
|
7785
|
+
import { IsOptional as IsOptional42, IsEnum as IsEnum25, IsString as IsString47, IsNotEmpty as IsNotEmpty66, IsIn as IsIn3 } from "class-validator";
|
|
7539
7786
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
7540
7787
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
7541
7788
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -7546,15 +7793,15 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
7546
7793
|
var FreelancerDeclarationDto = class {
|
|
7547
7794
|
};
|
|
7548
7795
|
__decorateClass([
|
|
7549
|
-
|
|
7550
|
-
|
|
7796
|
+
IsOptional42(),
|
|
7797
|
+
IsString47({ message: "UUID must be a string" })
|
|
7551
7798
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
7552
7799
|
__decorateClass([
|
|
7553
|
-
|
|
7800
|
+
IsEnum25(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
7554
7801
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
7555
7802
|
__decorateClass([
|
|
7556
|
-
|
|
7557
|
-
|
|
7803
|
+
IsNotEmpty66({ message: "Please accept the declaration " }),
|
|
7804
|
+
IsString47(),
|
|
7558
7805
|
IsIn3([
|
|
7559
7806
|
"true"
|
|
7560
7807
|
])
|
|
@@ -7569,6 +7816,25 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
|
|
|
7569
7816
|
markCandidateAsShortlistedInBulk: "mark.candidate.as.shortlisted.in.bulk"
|
|
7570
7817
|
};
|
|
7571
7818
|
|
|
7819
|
+
// src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
|
|
7820
|
+
import { IsNotEmpty as IsNotEmpty67, IsNumber as IsNumber11 } from "class-validator";
|
|
7821
|
+
var MarkCandidateStatusDto = class {
|
|
7822
|
+
};
|
|
7823
|
+
__decorateClass([
|
|
7824
|
+
IsNotEmpty67({ message: "Freelancer ID is required" }),
|
|
7825
|
+
IsNumber11({}, { message: "Freelancer ID must be a number" })
|
|
7826
|
+
], MarkCandidateStatusDto.prototype, "freelancerId", 2);
|
|
7827
|
+
|
|
7828
|
+
// src/modules/user/client-candidate-preference/dto/mark-candidate-status-bulk.dto.ts
|
|
7829
|
+
import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as IsArray14, IsNumber as IsNumber12 } from "class-validator";
|
|
7830
|
+
var MarkCandidateStatusBulkDto = class {
|
|
7831
|
+
};
|
|
7832
|
+
__decorateClass([
|
|
7833
|
+
IsArray14({ message: "Freelancer IDs must be an array" }),
|
|
7834
|
+
ArrayNotEmpty8({ message: "At least one freelancer ID is required" }),
|
|
7835
|
+
IsNumber12({}, { each: true, message: "Each freelancer ID must be a number" })
|
|
7836
|
+
], MarkCandidateStatusBulkDto.prototype, "freelancerIds", 2);
|
|
7837
|
+
|
|
7572
7838
|
// src/modules/cms/pattern/pattern.ts
|
|
7573
7839
|
var CMS_PATTERNS = {
|
|
7574
7840
|
fetchCms: "cms.fetch",
|
|
@@ -7579,35 +7845,35 @@ var CMS_PATTERNS = {
|
|
|
7579
7845
|
};
|
|
7580
7846
|
|
|
7581
7847
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
7582
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as
|
|
7848
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty68, IsOptional as IsOptional43 } from "class-validator";
|
|
7583
7849
|
var CreateCmsDto = class {
|
|
7584
7850
|
};
|
|
7585
7851
|
__decorateClass([
|
|
7586
|
-
|
|
7852
|
+
IsNotEmpty68({ message: "Please enter name." })
|
|
7587
7853
|
], CreateCmsDto.prototype, "title", 2);
|
|
7588
7854
|
__decorateClass([
|
|
7589
|
-
|
|
7855
|
+
IsOptional43()
|
|
7590
7856
|
], CreateCmsDto.prototype, "content", 2);
|
|
7591
7857
|
__decorateClass([
|
|
7592
|
-
|
|
7858
|
+
IsOptional43(),
|
|
7593
7859
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
7594
7860
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
7595
7861
|
|
|
7596
7862
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
7597
|
-
import { IsBoolean as IsBoolean14, IsNotEmpty as
|
|
7863
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty69, IsOptional as IsOptional44 } from "class-validator";
|
|
7598
7864
|
var UpdateCmsDto = class {
|
|
7599
7865
|
};
|
|
7600
7866
|
__decorateClass([
|
|
7601
|
-
|
|
7867
|
+
IsOptional44()
|
|
7602
7868
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
7603
7869
|
__decorateClass([
|
|
7604
|
-
|
|
7870
|
+
IsNotEmpty69({ message: "Please enter name." })
|
|
7605
7871
|
], UpdateCmsDto.prototype, "title", 2);
|
|
7606
7872
|
__decorateClass([
|
|
7607
|
-
|
|
7873
|
+
IsOptional44()
|
|
7608
7874
|
], UpdateCmsDto.prototype, "content", 2);
|
|
7609
7875
|
__decorateClass([
|
|
7610
|
-
|
|
7876
|
+
IsOptional44(),
|
|
7611
7877
|
IsBoolean14({ message: "Is active must be a boolean value" })
|
|
7612
7878
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
7613
7879
|
|
|
@@ -7643,16 +7909,16 @@ var ADMIN_JOB_PATTERN = {
|
|
|
7643
7909
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
7644
7910
|
import { Type as Type10 } from "class-transformer";
|
|
7645
7911
|
import {
|
|
7646
|
-
IsString as
|
|
7647
|
-
IsEnum as
|
|
7912
|
+
IsString as IsString48,
|
|
7913
|
+
IsEnum as IsEnum26,
|
|
7648
7914
|
IsInt as IsInt9,
|
|
7649
|
-
IsOptional as
|
|
7650
|
-
IsArray as
|
|
7915
|
+
IsOptional as IsOptional45,
|
|
7916
|
+
IsArray as IsArray15,
|
|
7651
7917
|
IsDateString as IsDateString4,
|
|
7652
|
-
IsNotEmpty as
|
|
7653
|
-
ArrayNotEmpty as
|
|
7918
|
+
IsNotEmpty as IsNotEmpty70,
|
|
7919
|
+
ArrayNotEmpty as ArrayNotEmpty9,
|
|
7654
7920
|
Min as Min6,
|
|
7655
|
-
IsNumber as
|
|
7921
|
+
IsNumber as IsNumber13
|
|
7656
7922
|
} from "class-validator";
|
|
7657
7923
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
7658
7924
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -7669,55 +7935,55 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
7669
7935
|
var AdminCreateJobInformationDto = class {
|
|
7670
7936
|
};
|
|
7671
7937
|
__decorateClass([
|
|
7672
|
-
|
|
7673
|
-
|
|
7938
|
+
IsString48({ message: "Job role must be a string." }),
|
|
7939
|
+
IsNotEmpty70({ message: "Job role is required." })
|
|
7674
7940
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
7675
7941
|
__decorateClass([
|
|
7676
|
-
|
|
7677
|
-
|
|
7942
|
+
IsOptional45(),
|
|
7943
|
+
IsString48({ message: "Note must be a string." })
|
|
7678
7944
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
7679
7945
|
__decorateClass([
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7946
|
+
IsArray15({ message: "Skills must be an array of skill names." }),
|
|
7947
|
+
ArrayNotEmpty9({ message: "At least one skill must be provided." }),
|
|
7948
|
+
IsString48({ each: true, message: "Each skill must be a valid string." })
|
|
7683
7949
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
7684
7950
|
__decorateClass([
|
|
7685
7951
|
IsInt9({ message: "Openings must be a valid integer." }),
|
|
7686
7952
|
Min6(1, { message: "There must be at least one opening." })
|
|
7687
7953
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
7688
7954
|
__decorateClass([
|
|
7689
|
-
|
|
7955
|
+
IsEnum26(JobLocationEnumDto, {
|
|
7690
7956
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
7691
7957
|
", "
|
|
7692
7958
|
)}.`
|
|
7693
7959
|
})
|
|
7694
7960
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
7695
7961
|
__decorateClass([
|
|
7696
|
-
|
|
7962
|
+
IsEnum26(TypeOfEmploymentEnumDto, {
|
|
7697
7963
|
message: `Type of employment must be one of: ${Object.values(
|
|
7698
7964
|
TypeOfEmploymentEnumDto
|
|
7699
7965
|
).join(", ")}.`
|
|
7700
7966
|
})
|
|
7701
7967
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
7702
7968
|
__decorateClass([
|
|
7703
|
-
|
|
7704
|
-
|
|
7969
|
+
IsString48({ message: "Onboarding Days must be a string." }),
|
|
7970
|
+
IsNotEmpty70({ message: "Onboarding Days is required." })
|
|
7705
7971
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
7706
7972
|
__decorateClass([
|
|
7707
|
-
|
|
7708
|
-
|
|
7973
|
+
IsString48({ message: "Communication skills must be a string." }),
|
|
7974
|
+
IsNotEmpty70({ message: "Communication skills are required." })
|
|
7709
7975
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
7710
7976
|
__decorateClass([
|
|
7711
|
-
|
|
7712
|
-
|
|
7977
|
+
IsString48({ message: "Currency must be a string." }),
|
|
7978
|
+
IsNotEmpty70({ message: "Currency is required." })
|
|
7713
7979
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
7714
7980
|
__decorateClass([
|
|
7715
7981
|
Type10(() => Number),
|
|
7716
|
-
|
|
7982
|
+
IsNumber13({}, { message: "Expected salary from must be a number." })
|
|
7717
7983
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
7718
7984
|
__decorateClass([
|
|
7719
7985
|
Type10(() => Number),
|
|
7720
|
-
|
|
7986
|
+
IsNumber13({}, { message: "Expected salary to must be a number." })
|
|
7721
7987
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
7722
7988
|
__decorateClass([
|
|
7723
7989
|
IsDateString4(
|
|
@@ -7732,19 +7998,19 @@ __decorateClass([
|
|
|
7732
7998
|
)
|
|
7733
7999
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
7734
8000
|
__decorateClass([
|
|
7735
|
-
|
|
7736
|
-
|
|
8001
|
+
IsOptional45(),
|
|
8002
|
+
IsString48({ message: "Additional comment must be a string." })
|
|
7737
8003
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
7738
8004
|
__decorateClass([
|
|
7739
|
-
|
|
8005
|
+
IsOptional45(),
|
|
7740
8006
|
IsInt9({ message: "Country ID must be a valid integer." })
|
|
7741
8007
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
7742
8008
|
__decorateClass([
|
|
7743
|
-
|
|
8009
|
+
IsOptional45(),
|
|
7744
8010
|
IsInt9({ message: "State ID must be a valid integer." })
|
|
7745
8011
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
7746
8012
|
__decorateClass([
|
|
7747
|
-
|
|
8013
|
+
IsOptional45(),
|
|
7748
8014
|
IsInt9({ message: "City ID must be a valid integer." })
|
|
7749
8015
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
7750
8016
|
__decorateClass([
|
|
@@ -7754,16 +8020,16 @@ __decorateClass([
|
|
|
7754
8020
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
7755
8021
|
import { Type as Type11 } from "class-transformer";
|
|
7756
8022
|
import {
|
|
7757
|
-
IsString as
|
|
7758
|
-
IsEnum as
|
|
8023
|
+
IsString as IsString49,
|
|
8024
|
+
IsEnum as IsEnum27,
|
|
7759
8025
|
IsInt as IsInt10,
|
|
7760
|
-
IsOptional as
|
|
7761
|
-
IsArray as
|
|
8026
|
+
IsOptional as IsOptional46,
|
|
8027
|
+
IsArray as IsArray16,
|
|
7762
8028
|
IsDateString as IsDateString5,
|
|
7763
|
-
IsNotEmpty as
|
|
7764
|
-
ArrayNotEmpty as
|
|
8029
|
+
IsNotEmpty as IsNotEmpty71,
|
|
8030
|
+
ArrayNotEmpty as ArrayNotEmpty10,
|
|
7765
8031
|
Min as Min7,
|
|
7766
|
-
IsNumber as
|
|
8032
|
+
IsNumber as IsNumber14
|
|
7767
8033
|
} from "class-validator";
|
|
7768
8034
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
7769
8035
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
@@ -7780,55 +8046,55 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
7780
8046
|
var AdminUpdateJobInformationDto = class {
|
|
7781
8047
|
};
|
|
7782
8048
|
__decorateClass([
|
|
7783
|
-
|
|
7784
|
-
|
|
8049
|
+
IsString49({ message: "Job role must be a string." }),
|
|
8050
|
+
IsNotEmpty71({ message: "Job role is required." })
|
|
7785
8051
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
7786
8052
|
__decorateClass([
|
|
7787
|
-
|
|
7788
|
-
|
|
8053
|
+
IsOptional46(),
|
|
8054
|
+
IsString49({ message: "Note must be a string." })
|
|
7789
8055
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
7790
8056
|
__decorateClass([
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
8057
|
+
IsArray16({ message: "Skills must be an array of skill names." }),
|
|
8058
|
+
ArrayNotEmpty10({ message: "At least one skill must be provided." }),
|
|
8059
|
+
IsString49({ each: true, message: "Each skill must be a valid string." })
|
|
7794
8060
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
7795
8061
|
__decorateClass([
|
|
7796
8062
|
IsInt10({ message: "Openings must be a valid integer." }),
|
|
7797
8063
|
Min7(1, { message: "There must be at least one opening." })
|
|
7798
8064
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
7799
8065
|
__decorateClass([
|
|
7800
|
-
|
|
8066
|
+
IsEnum27(JobLocationEnums, {
|
|
7801
8067
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
7802
8068
|
", "
|
|
7803
8069
|
)}.`
|
|
7804
8070
|
})
|
|
7805
8071
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
7806
8072
|
__decorateClass([
|
|
7807
|
-
|
|
8073
|
+
IsEnum27(TypeOfEmploymentEnums, {
|
|
7808
8074
|
message: `Type of employment must be one of: ${Object.values(
|
|
7809
8075
|
TypeOfEmploymentEnums
|
|
7810
8076
|
).join(", ")}.`
|
|
7811
8077
|
})
|
|
7812
8078
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
7813
8079
|
__decorateClass([
|
|
7814
|
-
|
|
7815
|
-
|
|
8080
|
+
IsString49({ message: "Onboarding Days must be a string." }),
|
|
8081
|
+
IsNotEmpty71({ message: "Onboarding Days is required." })
|
|
7816
8082
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
7817
8083
|
__decorateClass([
|
|
7818
|
-
|
|
7819
|
-
|
|
8084
|
+
IsString49({ message: "Communication skills must be a string." }),
|
|
8085
|
+
IsNotEmpty71({ message: "Communication skills are required." })
|
|
7820
8086
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
7821
8087
|
__decorateClass([
|
|
7822
|
-
|
|
7823
|
-
|
|
8088
|
+
IsString49({ message: "Currency must be a string." }),
|
|
8089
|
+
IsNotEmpty71({ message: "Currency is required." })
|
|
7824
8090
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
7825
8091
|
__decorateClass([
|
|
7826
8092
|
Type11(() => Number),
|
|
7827
|
-
|
|
8093
|
+
IsNumber14({}, { message: "Expected salary from must be a number." })
|
|
7828
8094
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
7829
8095
|
__decorateClass([
|
|
7830
8096
|
Type11(() => Number),
|
|
7831
|
-
|
|
8097
|
+
IsNumber14({}, { message: "Expected salary to must be a number." })
|
|
7832
8098
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
7833
8099
|
__decorateClass([
|
|
7834
8100
|
IsDateString5(
|
|
@@ -7843,19 +8109,19 @@ __decorateClass([
|
|
|
7843
8109
|
)
|
|
7844
8110
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
7845
8111
|
__decorateClass([
|
|
7846
|
-
|
|
7847
|
-
|
|
8112
|
+
IsOptional46(),
|
|
8113
|
+
IsString49({ message: "Additional comment must be a string." })
|
|
7848
8114
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
7849
8115
|
__decorateClass([
|
|
7850
|
-
|
|
8116
|
+
IsOptional46(),
|
|
7851
8117
|
IsInt10({ message: "Country ID must be a valid integer." })
|
|
7852
8118
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
7853
8119
|
__decorateClass([
|
|
7854
|
-
|
|
8120
|
+
IsOptional46(),
|
|
7855
8121
|
IsInt10({ message: "State ID must be a valid integer." })
|
|
7856
8122
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
7857
8123
|
__decorateClass([
|
|
7858
|
-
|
|
8124
|
+
IsOptional46(),
|
|
7859
8125
|
IsInt10({ message: "City ID must be a valid integer." })
|
|
7860
8126
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
7861
8127
|
__decorateClass([
|
|
@@ -7864,13 +8130,13 @@ __decorateClass([
|
|
|
7864
8130
|
|
|
7865
8131
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
7866
8132
|
import {
|
|
7867
|
-
IsString as
|
|
7868
|
-
IsNotEmpty as
|
|
7869
|
-
IsArray as
|
|
7870
|
-
ArrayNotEmpty as
|
|
7871
|
-
IsNumber as
|
|
7872
|
-
IsOptional as
|
|
7873
|
-
IsEnum as
|
|
8133
|
+
IsString as IsString50,
|
|
8134
|
+
IsNotEmpty as IsNotEmpty72,
|
|
8135
|
+
IsArray as IsArray17,
|
|
8136
|
+
ArrayNotEmpty as ArrayNotEmpty11,
|
|
8137
|
+
IsNumber as IsNumber15,
|
|
8138
|
+
IsOptional as IsOptional47,
|
|
8139
|
+
IsEnum as IsEnum28,
|
|
7874
8140
|
Min as Min8,
|
|
7875
8141
|
ValidateIf as ValidateIf9,
|
|
7876
8142
|
MaxLength as MaxLength20,
|
|
@@ -7906,16 +8172,16 @@ var AdminStepCompletedEnumV2 = /* @__PURE__ */ ((AdminStepCompletedEnumV22) => {
|
|
|
7906
8172
|
var JobLocationAdminDto = class {
|
|
7907
8173
|
};
|
|
7908
8174
|
__decorateClass([
|
|
7909
|
-
|
|
7910
|
-
|
|
8175
|
+
IsOptional47(),
|
|
8176
|
+
IsNumber15()
|
|
7911
8177
|
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
7912
8178
|
__decorateClass([
|
|
7913
|
-
|
|
7914
|
-
|
|
8179
|
+
IsOptional47(),
|
|
8180
|
+
IsNumber15()
|
|
7915
8181
|
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
7916
8182
|
__decorateClass([
|
|
7917
|
-
|
|
7918
|
-
|
|
8183
|
+
IsOptional47(),
|
|
8184
|
+
IsNumber15()
|
|
7919
8185
|
], JobLocationAdminDto.prototype, "cityId", 2);
|
|
7920
8186
|
var AdminJobBasicInformationV2Dto = class {
|
|
7921
8187
|
constructor() {
|
|
@@ -7923,37 +8189,37 @@ var AdminJobBasicInformationV2Dto = class {
|
|
|
7923
8189
|
}
|
|
7924
8190
|
};
|
|
7925
8191
|
__decorateClass([
|
|
7926
|
-
|
|
8192
|
+
IsOptional47(),
|
|
7927
8193
|
Type12(() => Boolean)
|
|
7928
8194
|
], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
7929
8195
|
__decorateClass([
|
|
7930
8196
|
IsInt11({ message: "Client ID must be a valid integer." })
|
|
7931
8197
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
7932
8198
|
__decorateClass([
|
|
7933
|
-
|
|
7934
|
-
|
|
8199
|
+
IsNotEmpty72({ message: "Please enter job role" }),
|
|
8200
|
+
IsString50({ message: "Job role must be a string" })
|
|
7935
8201
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
7936
8202
|
__decorateClass([
|
|
7937
|
-
|
|
7938
|
-
|
|
8203
|
+
IsOptional47(),
|
|
8204
|
+
IsString50({ message: "Note must be a string" })
|
|
7939
8205
|
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
7940
8206
|
__decorateClass([
|
|
7941
8207
|
ValidateIf9((o) => !o.isDraft),
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
8208
|
+
IsOptional47(),
|
|
8209
|
+
IsArray17({ message: "Skills must be an array" }),
|
|
8210
|
+
ArrayNotEmpty11({ message: "Please select at least one skill" }),
|
|
8211
|
+
IsString50({ each: true, message: "Each skill must be a string" }),
|
|
7946
8212
|
Type12(() => String)
|
|
7947
8213
|
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
7948
8214
|
__decorateClass([
|
|
7949
8215
|
ValidateIf9((o) => !o.isDraft),
|
|
7950
|
-
|
|
8216
|
+
IsNumber15({}, { message: "Openings must be a number" }),
|
|
7951
8217
|
Min8(1, { message: "There must be at least 1 opening" }),
|
|
7952
8218
|
Type12(() => Number)
|
|
7953
8219
|
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
7954
8220
|
__decorateClass([
|
|
7955
8221
|
ValidateIf9((o) => !o.isDraft),
|
|
7956
|
-
|
|
8222
|
+
IsEnum28(JobLocationAdminEnumDto, {
|
|
7957
8223
|
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
7958
8224
|
", "
|
|
7959
8225
|
)}`
|
|
@@ -7961,36 +8227,36 @@ __decorateClass([
|
|
|
7961
8227
|
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
7962
8228
|
__decorateClass([
|
|
7963
8229
|
ValidateIf9((o) => !o.isDraft),
|
|
7964
|
-
|
|
8230
|
+
IsEnum28(EmploymentTypeAdminEnumDto, {
|
|
7965
8231
|
message: `Type of employment must be one of: ${Object.values(
|
|
7966
8232
|
EmploymentTypeAdminEnumDto
|
|
7967
8233
|
).join(", ")}`
|
|
7968
8234
|
})
|
|
7969
8235
|
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7970
8236
|
__decorateClass([
|
|
7971
|
-
|
|
7972
|
-
|
|
8237
|
+
IsOptional47(),
|
|
8238
|
+
IsNumber15({}, { message: "Expected salary (from) must be a number" }),
|
|
7973
8239
|
Min8(0, { message: "Expected salary (from) cannot be negative" }),
|
|
7974
8240
|
Type12(() => Number)
|
|
7975
8241
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
7976
8242
|
__decorateClass([
|
|
7977
|
-
|
|
7978
|
-
|
|
8243
|
+
IsOptional47(),
|
|
8244
|
+
IsNumber15({}, { message: "Expected salary (to) must be a number" }),
|
|
7979
8245
|
Min8(0, { message: "Expected salary (to) cannot be negative" }),
|
|
7980
8246
|
Type12(() => Number)
|
|
7981
8247
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
7982
8248
|
__decorateClass([
|
|
7983
|
-
|
|
8249
|
+
IsOptional47(),
|
|
7984
8250
|
Type12(() => JobLocationAdminDto)
|
|
7985
8251
|
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
7986
8252
|
__decorateClass([
|
|
7987
8253
|
ValidateIf9((o) => !o.isDraft),
|
|
7988
|
-
|
|
7989
|
-
|
|
8254
|
+
IsNotEmpty72({ message: "Please enter the academic qualification" }),
|
|
8255
|
+
IsString50({ message: "Academic qualification must be a string" })
|
|
7990
8256
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
7991
8257
|
__decorateClass([
|
|
7992
8258
|
ValidateIf9((o) => !o.isDraft),
|
|
7993
|
-
|
|
8259
|
+
IsEnum28(typeOfExperienceAdminEnumDto, {
|
|
7994
8260
|
message: `Type of experience must be one of: ${Object.values(
|
|
7995
8261
|
typeOfExperienceAdminEnumDto
|
|
7996
8262
|
).join(", ")}`
|
|
@@ -7998,83 +8264,83 @@ __decorateClass([
|
|
|
7998
8264
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
7999
8265
|
__decorateClass([
|
|
8000
8266
|
ValidateIf9((o) => !o.isDraft),
|
|
8001
|
-
|
|
8002
|
-
|
|
8267
|
+
IsNotEmpty72({ message: "Please enter the years of experience" }),
|
|
8268
|
+
IsString50({ message: "Years of experience must be a string" })
|
|
8003
8269
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
8004
8270
|
__decorateClass([
|
|
8005
8271
|
ValidateIf9((o) => !o.isDraft),
|
|
8006
|
-
|
|
8007
|
-
|
|
8272
|
+
IsNotEmpty72({ message: "Please enter the years of experience upto" }),
|
|
8273
|
+
IsString50({ message: "Years of experience must be a string" })
|
|
8008
8274
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
8009
8275
|
__decorateClass([
|
|
8010
|
-
|
|
8011
|
-
|
|
8276
|
+
IsOptional47(),
|
|
8277
|
+
IsString50({ message: "Business industry must be a string" })
|
|
8012
8278
|
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
8013
8279
|
__decorateClass([
|
|
8014
|
-
|
|
8015
|
-
|
|
8280
|
+
IsOptional47(),
|
|
8281
|
+
IsString50({ message: "Project name must be a string" })
|
|
8016
8282
|
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
8017
8283
|
__decorateClass([
|
|
8018
|
-
|
|
8284
|
+
IsOptional47()
|
|
8019
8285
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
8020
8286
|
__decorateClass([
|
|
8021
|
-
|
|
8287
|
+
IsOptional47()
|
|
8022
8288
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
8023
8289
|
__decorateClass([
|
|
8024
|
-
|
|
8025
|
-
|
|
8290
|
+
IsOptional47(),
|
|
8291
|
+
IsNumber15({}, { message: "Expected annual budget (from) must be a number" }),
|
|
8026
8292
|
Min8(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
8027
8293
|
Type12(() => Number)
|
|
8028
8294
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
8029
8295
|
__decorateClass([
|
|
8030
|
-
|
|
8296
|
+
IsOptional47()
|
|
8031
8297
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
8032
8298
|
__decorateClass([
|
|
8033
|
-
|
|
8034
|
-
|
|
8299
|
+
IsOptional47(),
|
|
8300
|
+
IsNumber15({}, { message: "Expected annual budget (to) must be a number" }),
|
|
8035
8301
|
Min8(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
8036
8302
|
Type12(() => Number)
|
|
8037
8303
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
|
|
8038
8304
|
__decorateClass([
|
|
8039
|
-
|
|
8305
|
+
IsOptional47()
|
|
8040
8306
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
8041
8307
|
__decorateClass([
|
|
8042
|
-
|
|
8043
|
-
|
|
8308
|
+
IsOptional47(),
|
|
8309
|
+
IsNumber15({}, { message: "Number of hours must be a number" }),
|
|
8044
8310
|
Min8(0, { message: "Number of hours cannot be negative" }),
|
|
8045
8311
|
Max4(40, { message: "Number of hours cannot exceed 40" }),
|
|
8046
8312
|
Type12(() => Number)
|
|
8047
8313
|
], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
8048
8314
|
__decorateClass([
|
|
8049
|
-
|
|
8315
|
+
IsOptional47()
|
|
8050
8316
|
], AdminJobBasicInformationV2Dto.prototype, "years", 2);
|
|
8051
8317
|
__decorateClass([
|
|
8052
|
-
|
|
8318
|
+
IsOptional47()
|
|
8053
8319
|
], AdminJobBasicInformationV2Dto.prototype, "months", 2);
|
|
8054
8320
|
__decorateClass([
|
|
8055
|
-
|
|
8321
|
+
IsOptional47()
|
|
8056
8322
|
], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
8057
8323
|
__decorateClass([
|
|
8058
|
-
|
|
8324
|
+
IsOptional47()
|
|
8059
8325
|
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
8060
8326
|
__decorateClass([
|
|
8061
|
-
|
|
8062
|
-
|
|
8327
|
+
IsOptional47(),
|
|
8328
|
+
IsString50({ message: "Additional comment must be a string" }),
|
|
8063
8329
|
MaxLength20(500, { message: "Additional comment must not exceed 500 characters" })
|
|
8064
8330
|
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
8065
8331
|
__decorateClass([
|
|
8066
8332
|
ValidateIf9((o) => !o.isDraft),
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8333
|
+
IsArray17({ message: "Good to have skills must be an array" }),
|
|
8334
|
+
IsString50({ each: true, message: "Each skill must be a string" }),
|
|
8335
|
+
IsOptional47(),
|
|
8070
8336
|
Type12(() => String)
|
|
8071
8337
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
8072
8338
|
__decorateClass([
|
|
8073
|
-
|
|
8339
|
+
IsOptional47()
|
|
8074
8340
|
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
8075
8341
|
__decorateClass([
|
|
8076
|
-
|
|
8077
|
-
|
|
8342
|
+
IsOptional47(),
|
|
8343
|
+
IsEnum28(AdminStepCompletedEnumV2, {
|
|
8078
8344
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
8079
8345
|
AdminStepCompletedEnumV2
|
|
8080
8346
|
).join(", ")}`
|
|
@@ -8088,7 +8354,7 @@ var LEAD_PATTERN = {
|
|
|
8088
8354
|
};
|
|
8089
8355
|
|
|
8090
8356
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
8091
|
-
import { IsString as
|
|
8357
|
+
import { IsString as IsString51, IsEmail as IsEmail16, IsOptional as IsOptional48, IsEnum as IsEnum29 } from "class-validator";
|
|
8092
8358
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
8093
8359
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
8094
8360
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -8097,23 +8363,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
8097
8363
|
var CreateLeadDto = class {
|
|
8098
8364
|
};
|
|
8099
8365
|
__decorateClass([
|
|
8100
|
-
|
|
8366
|
+
IsString51({ message: "Name must be a string" })
|
|
8101
8367
|
], CreateLeadDto.prototype, "name", 2);
|
|
8102
8368
|
__decorateClass([
|
|
8103
|
-
|
|
8369
|
+
IsEmail16({}, { message: "Invalid email address" })
|
|
8104
8370
|
], CreateLeadDto.prototype, "email", 2);
|
|
8105
8371
|
__decorateClass([
|
|
8106
|
-
|
|
8372
|
+
IsString51({ message: "Mobile code must be a string (e.g., +1)" })
|
|
8107
8373
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
8108
8374
|
__decorateClass([
|
|
8109
|
-
|
|
8375
|
+
IsString51({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
8110
8376
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
8111
8377
|
__decorateClass([
|
|
8112
|
-
|
|
8113
|
-
|
|
8378
|
+
IsOptional48(),
|
|
8379
|
+
IsString51({ message: "Description must be a string" })
|
|
8114
8380
|
], CreateLeadDto.prototype, "description", 2);
|
|
8115
8381
|
__decorateClass([
|
|
8116
|
-
|
|
8382
|
+
IsEnum29(CategoryEmumDto, {
|
|
8117
8383
|
message: `Type of category must be one of: ${Object.values(
|
|
8118
8384
|
CategoryEmumDto
|
|
8119
8385
|
).join(", ")}`
|
|
@@ -8134,46 +8400,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
8134
8400
|
};
|
|
8135
8401
|
|
|
8136
8402
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
8137
|
-
import { IsNotEmpty as
|
|
8403
|
+
import { IsNotEmpty as IsNotEmpty73, IsOptional as IsOptional49, IsString as IsString52 } from "class-validator";
|
|
8138
8404
|
var CreateAdminRoleDto = class {
|
|
8139
8405
|
};
|
|
8140
8406
|
__decorateClass([
|
|
8141
|
-
|
|
8142
|
-
|
|
8407
|
+
IsNotEmpty73({ message: "Please enter admin role name." }),
|
|
8408
|
+
IsString52({ message: "Role name must be a string." })
|
|
8143
8409
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
8144
8410
|
__decorateClass([
|
|
8145
|
-
|
|
8146
|
-
|
|
8411
|
+
IsOptional49(),
|
|
8412
|
+
IsString52({ message: "Role description must be a string." })
|
|
8147
8413
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
8148
8414
|
|
|
8149
8415
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
8150
|
-
import { IsBoolean as IsBoolean16, IsNotEmpty as
|
|
8416
|
+
import { IsBoolean as IsBoolean16, IsNotEmpty as IsNotEmpty74, IsOptional as IsOptional50, IsString as IsString53 } from "class-validator";
|
|
8151
8417
|
var UpdateAdminRoleDto = class {
|
|
8152
8418
|
};
|
|
8153
8419
|
__decorateClass([
|
|
8154
|
-
|
|
8155
|
-
|
|
8420
|
+
IsNotEmpty74({ message: "Please enter admin role name." }),
|
|
8421
|
+
IsString53({ message: "Role name must be a string." })
|
|
8156
8422
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
8157
8423
|
__decorateClass([
|
|
8158
|
-
|
|
8159
|
-
|
|
8424
|
+
IsOptional50(),
|
|
8425
|
+
IsString53({ message: "Role description must be a string." })
|
|
8160
8426
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
8161
8427
|
__decorateClass([
|
|
8162
|
-
|
|
8428
|
+
IsOptional50(),
|
|
8163
8429
|
IsBoolean16({ message: "Is active must be a boolean value." })
|
|
8164
8430
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
8165
8431
|
|
|
8166
8432
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
8167
|
-
import { IsNotEmpty as
|
|
8433
|
+
import { IsNotEmpty as IsNotEmpty75, IsString as IsString54 } from "class-validator";
|
|
8168
8434
|
var AttachPermissionsToRoleDto = class {
|
|
8169
8435
|
};
|
|
8170
8436
|
__decorateClass([
|
|
8171
|
-
|
|
8172
|
-
|
|
8437
|
+
IsNotEmpty75({ message: "Please enter admin role ID." }),
|
|
8438
|
+
IsString54({ message: "Role ID must be a string." })
|
|
8173
8439
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
8174
8440
|
__decorateClass([
|
|
8175
|
-
|
|
8176
|
-
|
|
8441
|
+
IsNotEmpty75({ message: "Please enter permission IDs." }),
|
|
8442
|
+
IsString54({ message: "Permission IDs must be a comma-separated string." })
|
|
8177
8443
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
8178
8444
|
|
|
8179
8445
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -8254,13 +8520,13 @@ var INTERVIEW_PATTERN = {
|
|
|
8254
8520
|
|
|
8255
8521
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
8256
8522
|
import {
|
|
8257
|
-
IsString as
|
|
8258
|
-
IsNotEmpty as
|
|
8259
|
-
IsArray as
|
|
8260
|
-
ArrayNotEmpty as
|
|
8261
|
-
IsEmail as
|
|
8523
|
+
IsString as IsString55,
|
|
8524
|
+
IsNotEmpty as IsNotEmpty76,
|
|
8525
|
+
IsArray as IsArray18,
|
|
8526
|
+
ArrayNotEmpty as ArrayNotEmpty12,
|
|
8527
|
+
IsEmail as IsEmail17,
|
|
8262
8528
|
IsUUID as IsUUID12,
|
|
8263
|
-
IsEnum as
|
|
8529
|
+
IsEnum as IsEnum30,
|
|
8264
8530
|
ValidateIf as ValidateIf10,
|
|
8265
8531
|
ValidateNested as ValidateNested7
|
|
8266
8532
|
} from "class-validator";
|
|
@@ -8278,21 +8544,21 @@ __decorateClass([
|
|
|
8278
8544
|
IsUUID12()
|
|
8279
8545
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
8280
8546
|
__decorateClass([
|
|
8281
|
-
|
|
8547
|
+
IsEnum30(CandidateType, {
|
|
8282
8548
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
8283
8549
|
})
|
|
8284
8550
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
8285
8551
|
var NewCandidateDto = class {
|
|
8286
8552
|
};
|
|
8287
8553
|
__decorateClass([
|
|
8288
|
-
|
|
8289
|
-
|
|
8554
|
+
IsNotEmpty76({ message: "Please enter the candidate name" }),
|
|
8555
|
+
IsString55({ message: "Name must be a string" })
|
|
8290
8556
|
], NewCandidateDto.prototype, "name", 2);
|
|
8291
8557
|
__decorateClass([
|
|
8292
|
-
|
|
8558
|
+
IsEmail17({}, { message: "Please enter a valid email." })
|
|
8293
8559
|
], NewCandidateDto.prototype, "email", 2);
|
|
8294
8560
|
__decorateClass([
|
|
8295
|
-
|
|
8561
|
+
IsEnum30(CandidateType, {
|
|
8296
8562
|
message: "type must be NEW"
|
|
8297
8563
|
})
|
|
8298
8564
|
], NewCandidateDto.prototype, "type", 2);
|
|
@@ -8300,15 +8566,15 @@ var CandidatesDto = class {
|
|
|
8300
8566
|
};
|
|
8301
8567
|
__decorateClass([
|
|
8302
8568
|
ValidateIf10((o) => o.exixtingCandidates?.length > 0),
|
|
8303
|
-
|
|
8304
|
-
|
|
8569
|
+
IsArray18({ message: "Existing candidates should be an array." }),
|
|
8570
|
+
ArrayNotEmpty12({ message: "Please select at least one candidate." }),
|
|
8305
8571
|
ValidateNested7({ each: true }),
|
|
8306
8572
|
Type13(() => ExistingCandidateDto)
|
|
8307
8573
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
8308
8574
|
__decorateClass([
|
|
8309
8575
|
ValidateIf10((o) => o.newCandidates?.length > 0),
|
|
8310
|
-
|
|
8311
|
-
|
|
8576
|
+
IsArray18({ message: "New candidates should be an array." }),
|
|
8577
|
+
ArrayNotEmpty12({ message: "Please add at least one candidate." }),
|
|
8312
8578
|
ValidateNested7({ each: true }),
|
|
8313
8579
|
Type13(() => NewCandidateDto)
|
|
8314
8580
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
@@ -8324,97 +8590,191 @@ __decorateClass([
|
|
|
8324
8590
|
|
|
8325
8591
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
8326
8592
|
import {
|
|
8327
|
-
IsString as
|
|
8328
|
-
IsNotEmpty as
|
|
8329
|
-
IsEmail as
|
|
8330
|
-
IsNumber as
|
|
8593
|
+
IsString as IsString56,
|
|
8594
|
+
IsNotEmpty as IsNotEmpty77,
|
|
8595
|
+
IsEmail as IsEmail18,
|
|
8596
|
+
IsNumber as IsNumber16
|
|
8331
8597
|
} from "class-validator";
|
|
8332
8598
|
var CreateF2FInterviewDto = class {
|
|
8333
8599
|
};
|
|
8334
8600
|
__decorateClass([
|
|
8335
|
-
|
|
8336
|
-
|
|
8601
|
+
IsEmail18({}, { message: "Please enter a valid email address." }),
|
|
8602
|
+
IsNotEmpty77({ message: "Invitee email is required." })
|
|
8337
8603
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
8338
8604
|
__decorateClass([
|
|
8339
|
-
|
|
8340
|
-
|
|
8605
|
+
IsString56({ message: "Invitee name must be a string." }),
|
|
8606
|
+
IsNotEmpty77({ message: "Invitee name is required." })
|
|
8341
8607
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
8342
8608
|
__decorateClass([
|
|
8343
|
-
|
|
8609
|
+
IsNumber16({}, { message: "Interview ID must be a number." })
|
|
8344
8610
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
8345
8611
|
__decorateClass([
|
|
8346
|
-
|
|
8612
|
+
IsNumber16({}, { message: "Candidate ID must be a number." })
|
|
8347
8613
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
8348
8614
|
|
|
8349
8615
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
8350
8616
|
import {
|
|
8351
|
-
IsString as
|
|
8352
|
-
IsNotEmpty as
|
|
8353
|
-
IsEmail as
|
|
8354
|
-
IsNumber as
|
|
8617
|
+
IsString as IsString57,
|
|
8618
|
+
IsNotEmpty as IsNotEmpty78,
|
|
8619
|
+
IsEmail as IsEmail19,
|
|
8620
|
+
IsNumber as IsNumber17
|
|
8355
8621
|
} from "class-validator";
|
|
8356
8622
|
var CreateF2FInterviewDirectDto = class {
|
|
8357
8623
|
};
|
|
8358
8624
|
__decorateClass([
|
|
8359
|
-
|
|
8360
|
-
|
|
8625
|
+
IsEmail19({}, { message: "Please enter a valid email address." }),
|
|
8626
|
+
IsNotEmpty78({ message: "Invitee email is required." })
|
|
8361
8627
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
8362
8628
|
__decorateClass([
|
|
8363
|
-
|
|
8364
|
-
|
|
8629
|
+
IsString57({ message: "Invitee name must be a string." }),
|
|
8630
|
+
IsNotEmpty78({ message: "Invitee name is required." })
|
|
8365
8631
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
8366
8632
|
__decorateClass([
|
|
8367
|
-
|
|
8633
|
+
IsNumber17({}, { message: "Job ID must be a number." })
|
|
8368
8634
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
8369
8635
|
__decorateClass([
|
|
8370
|
-
|
|
8636
|
+
IsNumber17({}, { message: "Candidate ID must be a number." })
|
|
8371
8637
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
8372
8638
|
|
|
8373
8639
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
8374
8640
|
import {
|
|
8375
|
-
IsString as
|
|
8376
|
-
IsNotEmpty as
|
|
8641
|
+
IsString as IsString58,
|
|
8642
|
+
IsNotEmpty as IsNotEmpty79
|
|
8377
8643
|
} from "class-validator";
|
|
8378
8644
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
8379
8645
|
};
|
|
8380
8646
|
__decorateClass([
|
|
8381
|
-
|
|
8647
|
+
IsNotEmpty79({ message: "F2F Interview ID is required." })
|
|
8382
8648
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
8383
8649
|
__decorateClass([
|
|
8384
|
-
|
|
8650
|
+
IsNotEmpty79({ message: "Rescheduled date is required." })
|
|
8385
8651
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
8386
8652
|
__decorateClass([
|
|
8387
|
-
|
|
8388
|
-
|
|
8653
|
+
IsString58({ message: "Rescheduled slot must be a string." }),
|
|
8654
|
+
IsNotEmpty79({ message: "Rescheduled slot is required." })
|
|
8389
8655
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
8390
8656
|
__decorateClass([
|
|
8391
|
-
|
|
8657
|
+
IsString58({ message: "Freelancer reason must be a string." })
|
|
8392
8658
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
8393
8659
|
|
|
8394
8660
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
8395
8661
|
import {
|
|
8396
|
-
IsString as
|
|
8397
|
-
IsNotEmpty as
|
|
8662
|
+
IsString as IsString59,
|
|
8663
|
+
IsNotEmpty as IsNotEmpty80
|
|
8398
8664
|
} from "class-validator";
|
|
8399
8665
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
8400
8666
|
};
|
|
8401
8667
|
__decorateClass([
|
|
8402
|
-
|
|
8668
|
+
IsNotEmpty80({ message: "AI Interview ID is required." })
|
|
8403
8669
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
8404
8670
|
__decorateClass([
|
|
8405
|
-
|
|
8671
|
+
IsString59({ message: "Freelancer reason must be a string." })
|
|
8406
8672
|
], CreateAIInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
8407
8673
|
|
|
8408
8674
|
// src/modules/interview/dto/reject-ai-interview-reschedule-request.dto.ts
|
|
8409
8675
|
import {
|
|
8410
|
-
IsString as
|
|
8676
|
+
IsString as IsString60
|
|
8411
8677
|
} from "class-validator";
|
|
8412
8678
|
var RejectAIInterviewRescheduleRequestDto = class {
|
|
8413
8679
|
};
|
|
8414
8680
|
__decorateClass([
|
|
8415
|
-
|
|
8681
|
+
IsString60({ message: "Client reject reason must be a string." })
|
|
8416
8682
|
], RejectAIInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
8417
8683
|
|
|
8684
|
+
// src/modules/interview/dto/reject-f2f-interview-reschedule-request.dto.ts
|
|
8685
|
+
import { IsOptional as IsOptional54, IsString as IsString61 } from "class-validator";
|
|
8686
|
+
var RejectF2FInterviewRescheduleRequestDto = class {
|
|
8687
|
+
};
|
|
8688
|
+
__decorateClass([
|
|
8689
|
+
IsOptional54(),
|
|
8690
|
+
IsString61()
|
|
8691
|
+
], RejectF2FInterviewRescheduleRequestDto.prototype, "reason", 2);
|
|
8692
|
+
|
|
8693
|
+
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
8694
|
+
import { IsNotEmpty as IsNotEmpty81, IsString as IsString62, IsOptional as IsOptional55, IsObject as IsObject6 } from "class-validator";
|
|
8695
|
+
var CaptureAiInterviewResultPublicDto = class {
|
|
8696
|
+
};
|
|
8697
|
+
__decorateClass([
|
|
8698
|
+
IsNotEmpty81({ message: "AI Interview UUID is required" }),
|
|
8699
|
+
IsString62({ message: "AI Interview UUID must be a string" })
|
|
8700
|
+
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
8701
|
+
__decorateClass([
|
|
8702
|
+
IsOptional55(),
|
|
8703
|
+
IsObject6()
|
|
8704
|
+
], CaptureAiInterviewResultPublicDto.prototype, "result", 2);
|
|
8705
|
+
__decorateClass([
|
|
8706
|
+
IsOptional55(),
|
|
8707
|
+
IsString62()
|
|
8708
|
+
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
8709
|
+
|
|
8710
|
+
// src/modules/interview/dto/create-interview-basic-information.dto.ts
|
|
8711
|
+
import { IsNotEmpty as IsNotEmpty82, IsString as IsString63, IsOptional as IsOptional56, IsNumber as IsNumber18, IsArray as IsArray19, IsDateString as IsDateString7 } from "class-validator";
|
|
8712
|
+
var CreateInterviewBasicInformationDto = class {
|
|
8713
|
+
};
|
|
8714
|
+
__decorateClass([
|
|
8715
|
+
IsNotEmpty82({ message: "Job ID is required" }),
|
|
8716
|
+
IsNumber18({}, { message: "Job ID must be a number" })
|
|
8717
|
+
], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
|
|
8718
|
+
__decorateClass([
|
|
8719
|
+
IsNotEmpty82({ message: "Interview type is required" }),
|
|
8720
|
+
IsString63({ message: "Interview type must be a string" })
|
|
8721
|
+
], CreateInterviewBasicInformationDto.prototype, "interviewType", 2);
|
|
8722
|
+
__decorateClass([
|
|
8723
|
+
IsOptional56(),
|
|
8724
|
+
IsString63()
|
|
8725
|
+
], CreateInterviewBasicInformationDto.prototype, "title", 2);
|
|
8726
|
+
__decorateClass([
|
|
8727
|
+
IsOptional56(),
|
|
8728
|
+
IsString63()
|
|
8729
|
+
], CreateInterviewBasicInformationDto.prototype, "description", 2);
|
|
8730
|
+
__decorateClass([
|
|
8731
|
+
IsOptional56(),
|
|
8732
|
+
IsDateString7()
|
|
8733
|
+
], CreateInterviewBasicInformationDto.prototype, "scheduledAt", 2);
|
|
8734
|
+
__decorateClass([
|
|
8735
|
+
IsOptional56(),
|
|
8736
|
+
IsNumber18({}, { message: "Duration must be a number" })
|
|
8737
|
+
], CreateInterviewBasicInformationDto.prototype, "duration", 2);
|
|
8738
|
+
__decorateClass([
|
|
8739
|
+
IsOptional56(),
|
|
8740
|
+
IsArray19(),
|
|
8741
|
+
IsNumber18({}, { each: true, message: "Each skill ID must be a number" })
|
|
8742
|
+
], CreateInterviewBasicInformationDto.prototype, "skillIds", 2);
|
|
8743
|
+
__decorateClass([
|
|
8744
|
+
IsOptional56(),
|
|
8745
|
+
IsString63()
|
|
8746
|
+
], CreateInterviewBasicInformationDto.prototype, "location", 2);
|
|
8747
|
+
|
|
8748
|
+
// src/modules/interview/dto/update-interview-basic-information.dto.ts
|
|
8749
|
+
import { IsOptional as IsOptional57, IsString as IsString64, IsNumber as IsNumber19, IsArray as IsArray20, IsDateString as IsDateString8 } from "class-validator";
|
|
8750
|
+
var UpdateInterviewBasicInformationDto = class {
|
|
8751
|
+
};
|
|
8752
|
+
__decorateClass([
|
|
8753
|
+
IsOptional57(),
|
|
8754
|
+
IsString64()
|
|
8755
|
+
], UpdateInterviewBasicInformationDto.prototype, "title", 2);
|
|
8756
|
+
__decorateClass([
|
|
8757
|
+
IsOptional57(),
|
|
8758
|
+
IsString64()
|
|
8759
|
+
], UpdateInterviewBasicInformationDto.prototype, "description", 2);
|
|
8760
|
+
__decorateClass([
|
|
8761
|
+
IsOptional57(),
|
|
8762
|
+
IsDateString8()
|
|
8763
|
+
], UpdateInterviewBasicInformationDto.prototype, "scheduledAt", 2);
|
|
8764
|
+
__decorateClass([
|
|
8765
|
+
IsOptional57(),
|
|
8766
|
+
IsNumber19({}, { message: "Duration must be a number" })
|
|
8767
|
+
], UpdateInterviewBasicInformationDto.prototype, "duration", 2);
|
|
8768
|
+
__decorateClass([
|
|
8769
|
+
IsOptional57(),
|
|
8770
|
+
IsArray20(),
|
|
8771
|
+
IsNumber19({}, { each: true, message: "Each skill ID must be a number" })
|
|
8772
|
+
], UpdateInterviewBasicInformationDto.prototype, "skillIds", 2);
|
|
8773
|
+
__decorateClass([
|
|
8774
|
+
IsOptional57(),
|
|
8775
|
+
IsString64()
|
|
8776
|
+
], UpdateInterviewBasicInformationDto.prototype, "location", 2);
|
|
8777
|
+
|
|
8418
8778
|
// src/modules/contract/pattern/pattern.ts
|
|
8419
8779
|
var CONTRACT_PATTERN = {
|
|
8420
8780
|
generateContract: "generate.contract",
|
|
@@ -8450,45 +8810,101 @@ var CONTRACT_PATTERN = {
|
|
|
8450
8810
|
};
|
|
8451
8811
|
|
|
8452
8812
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
8453
|
-
import { IsEnum as
|
|
8813
|
+
import { IsEnum as IsEnum31, IsNotEmpty as IsNotEmpty83, IsNumber as IsNumber20 } from "class-validator";
|
|
8454
8814
|
import { Type as Type14 } from "class-transformer";
|
|
8455
8815
|
var SignContractForClientDto = class {
|
|
8456
8816
|
};
|
|
8457
8817
|
__decorateClass([
|
|
8458
|
-
|
|
8818
|
+
IsNotEmpty83({ message: "Job Id is required." }),
|
|
8459
8819
|
Type14(() => Number),
|
|
8460
|
-
|
|
8820
|
+
IsNumber20({}, { message: "Job ID must be a number." })
|
|
8461
8821
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
8462
8822
|
__decorateClass([
|
|
8463
|
-
|
|
8823
|
+
IsNotEmpty83({ message: "Freelancer ID is required." }),
|
|
8464
8824
|
Type14(() => Number),
|
|
8465
|
-
|
|
8825
|
+
IsNumber20({}, { message: "Freelancer ID must be a number." })
|
|
8466
8826
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
8467
8827
|
__decorateClass([
|
|
8468
|
-
|
|
8469
|
-
|
|
8828
|
+
IsNotEmpty83({ message: "Contract type is required." }),
|
|
8829
|
+
IsEnum31(ContractTypeEnum)
|
|
8470
8830
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
8471
8831
|
|
|
8472
8832
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
8473
|
-
import { IsEnum as
|
|
8833
|
+
import { IsEnum as IsEnum32, IsNotEmpty as IsNotEmpty84, IsNumber as IsNumber21 } from "class-validator";
|
|
8474
8834
|
import { Type as Type15 } from "class-transformer";
|
|
8475
8835
|
var SignContractForFreelancerDto = class {
|
|
8476
8836
|
};
|
|
8477
8837
|
__decorateClass([
|
|
8478
|
-
|
|
8838
|
+
IsNotEmpty84({ message: "Job Id is required." }),
|
|
8479
8839
|
Type15(() => Number),
|
|
8480
|
-
|
|
8840
|
+
IsNumber21({}, { message: "Job ID must be a number." })
|
|
8481
8841
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
8482
8842
|
__decorateClass([
|
|
8483
|
-
|
|
8843
|
+
IsNotEmpty84({ message: "Client ID is required." }),
|
|
8484
8844
|
Type15(() => Number),
|
|
8485
|
-
|
|
8845
|
+
IsNumber21({}, { message: "Client ID must be a number." })
|
|
8486
8846
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
8487
8847
|
__decorateClass([
|
|
8488
|
-
|
|
8489
|
-
|
|
8848
|
+
IsNotEmpty84({ message: "Contract type is required." }),
|
|
8849
|
+
IsEnum32(ContractTypeEnum)
|
|
8490
8850
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
8491
8851
|
|
|
8852
|
+
// src/modules/contract/dto/generate-contract.dto.ts
|
|
8853
|
+
import { IsNotEmpty as IsNotEmpty85, IsNumber as IsNumber22, IsOptional as IsOptional58, IsString as IsString65 } from "class-validator";
|
|
8854
|
+
var GenerateContractDto = class {
|
|
8855
|
+
};
|
|
8856
|
+
__decorateClass([
|
|
8857
|
+
IsNotEmpty85({ message: "Hiring ID is required" }),
|
|
8858
|
+
IsNumber22({}, { message: "Hiring ID must be a number" })
|
|
8859
|
+
], GenerateContractDto.prototype, "hiringId", 2);
|
|
8860
|
+
__decorateClass([
|
|
8861
|
+
IsOptional58(),
|
|
8862
|
+
IsString65()
|
|
8863
|
+
], GenerateContractDto.prototype, "contractType", 2);
|
|
8864
|
+
__decorateClass([
|
|
8865
|
+
IsOptional58(),
|
|
8866
|
+
IsString65()
|
|
8867
|
+
], GenerateContractDto.prototype, "templateId", 2);
|
|
8868
|
+
|
|
8869
|
+
// src/modules/contract/dto/esign-contract-client.dto.ts
|
|
8870
|
+
import { IsNotEmpty as IsNotEmpty86, IsString as IsString66 } from "class-validator";
|
|
8871
|
+
var EsignContractClientDto = class {
|
|
8872
|
+
};
|
|
8873
|
+
__decorateClass([
|
|
8874
|
+
IsNotEmpty86({ message: "Contract UUID is required" }),
|
|
8875
|
+
IsString66({ message: "Contract UUID must be a string" })
|
|
8876
|
+
], EsignContractClientDto.prototype, "contractUuid", 2);
|
|
8877
|
+
|
|
8878
|
+
// src/modules/contract/dto/esign-contract-freelancer.dto.ts
|
|
8879
|
+
import { IsNotEmpty as IsNotEmpty87, IsString as IsString67 } from "class-validator";
|
|
8880
|
+
var EsignContractFreelancerDto = class {
|
|
8881
|
+
};
|
|
8882
|
+
__decorateClass([
|
|
8883
|
+
IsNotEmpty87({ message: "Contract UUID is required" }),
|
|
8884
|
+
IsString67({ message: "Contract UUID must be a string" })
|
|
8885
|
+
], EsignContractFreelancerDto.prototype, "contractUuid", 2);
|
|
8886
|
+
|
|
8887
|
+
// src/modules/contract/dto/escrow-fund-contract.dto.ts
|
|
8888
|
+
import { IsNotEmpty as IsNotEmpty88, IsNumber as IsNumber23, IsOptional as IsOptional59, IsString as IsString68 } from "class-validator";
|
|
8889
|
+
var EscrowFundContractDto = class {
|
|
8890
|
+
};
|
|
8891
|
+
__decorateClass([
|
|
8892
|
+
IsNotEmpty88({ message: "Contract ID is required" }),
|
|
8893
|
+
IsNumber23({}, { message: "Contract ID must be a number" })
|
|
8894
|
+
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
8895
|
+
__decorateClass([
|
|
8896
|
+
IsNotEmpty88({ message: "Amount is required" }),
|
|
8897
|
+
IsNumber23({}, { message: "Amount must be a number" })
|
|
8898
|
+
], EscrowFundContractDto.prototype, "amount", 2);
|
|
8899
|
+
__decorateClass([
|
|
8900
|
+
IsOptional59(),
|
|
8901
|
+
IsString68()
|
|
8902
|
+
], EscrowFundContractDto.prototype, "currency", 2);
|
|
8903
|
+
__decorateClass([
|
|
8904
|
+
IsOptional59(),
|
|
8905
|
+
IsString68()
|
|
8906
|
+
], EscrowFundContractDto.prototype, "description", 2);
|
|
8907
|
+
|
|
8492
8908
|
// src/modules/stripe/pattern/pattern.ts
|
|
8493
8909
|
var STRIPE_PATTERN = {
|
|
8494
8910
|
handleStripeWebhookEvent: "handle.stripe.webhook.event",
|
|
@@ -8511,14 +8927,86 @@ var STRIPE_PATTERN = {
|
|
|
8511
8927
|
|
|
8512
8928
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
8513
8929
|
import {
|
|
8514
|
-
IsNotEmpty as
|
|
8930
|
+
IsNotEmpty as IsNotEmpty89
|
|
8515
8931
|
} from "class-validator";
|
|
8516
8932
|
var CreateCheckoutSessionDto = class {
|
|
8517
8933
|
};
|
|
8518
8934
|
__decorateClass([
|
|
8519
|
-
|
|
8935
|
+
IsNotEmpty89({ message: "Amount is required" })
|
|
8520
8936
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
8521
8937
|
|
|
8938
|
+
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
8939
|
+
import { IsNotEmpty as IsNotEmpty90, IsNumber as IsNumber24, IsOptional as IsOptional60, IsString as IsString69 } from "class-validator";
|
|
8940
|
+
var PreCheckoutCalculationDto = class {
|
|
8941
|
+
};
|
|
8942
|
+
__decorateClass([
|
|
8943
|
+
IsNotEmpty90({ message: "Amount is required" }),
|
|
8944
|
+
IsNumber24({}, { message: "Amount must be a number" })
|
|
8945
|
+
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
8946
|
+
__decorateClass([
|
|
8947
|
+
IsOptional60(),
|
|
8948
|
+
IsString69()
|
|
8949
|
+
], PreCheckoutCalculationDto.prototype, "currency", 2);
|
|
8950
|
+
__decorateClass([
|
|
8951
|
+
IsOptional60(),
|
|
8952
|
+
IsString69()
|
|
8953
|
+
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
8954
|
+
|
|
8955
|
+
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
8956
|
+
import { IsNotEmpty as IsNotEmpty91, IsNumber as IsNumber25, IsOptional as IsOptional61, IsString as IsString70 } from "class-validator";
|
|
8957
|
+
var ClientAddFundDto = class {
|
|
8958
|
+
};
|
|
8959
|
+
__decorateClass([
|
|
8960
|
+
IsNotEmpty91({ message: "Amount is required" }),
|
|
8961
|
+
IsNumber25({}, { message: "Amount must be a number" })
|
|
8962
|
+
], ClientAddFundDto.prototype, "amount", 2);
|
|
8963
|
+
__decorateClass([
|
|
8964
|
+
IsOptional61(),
|
|
8965
|
+
IsString70()
|
|
8966
|
+
], ClientAddFundDto.prototype, "currency", 2);
|
|
8967
|
+
__decorateClass([
|
|
8968
|
+
IsOptional61(),
|
|
8969
|
+
IsString70()
|
|
8970
|
+
], ClientAddFundDto.prototype, "description", 2);
|
|
8971
|
+
|
|
8972
|
+
// src/modules/stripe/dto/transfer-funds.dto.ts
|
|
8973
|
+
import { IsNotEmpty as IsNotEmpty92, IsNumber as IsNumber26, IsOptional as IsOptional62, IsString as IsString71 } from "class-validator";
|
|
8974
|
+
var TransferFundsDto = class {
|
|
8975
|
+
};
|
|
8976
|
+
__decorateClass([
|
|
8977
|
+
IsNotEmpty92({ message: "Amount is required" }),
|
|
8978
|
+
IsNumber26({}, { message: "Amount must be a number" })
|
|
8979
|
+
], TransferFundsDto.prototype, "amount", 2);
|
|
8980
|
+
__decorateClass([
|
|
8981
|
+
IsNotEmpty92({ message: "Connected account ID is required" }),
|
|
8982
|
+
IsString71({ message: "Connected account ID must be a string" })
|
|
8983
|
+
], TransferFundsDto.prototype, "connectedAccountId", 2);
|
|
8984
|
+
__decorateClass([
|
|
8985
|
+
IsOptional62(),
|
|
8986
|
+
IsString71()
|
|
8987
|
+
], TransferFundsDto.prototype, "description", 2);
|
|
8988
|
+
|
|
8989
|
+
// src/modules/stripe/dto/create-payout.dto.ts
|
|
8990
|
+
import { IsNotEmpty as IsNotEmpty93, IsNumber as IsNumber27, IsOptional as IsOptional63, IsString as IsString72 } from "class-validator";
|
|
8991
|
+
var CreatePayoutDto = class {
|
|
8992
|
+
};
|
|
8993
|
+
__decorateClass([
|
|
8994
|
+
IsNotEmpty93({ message: "Amount is required" }),
|
|
8995
|
+
IsNumber27({}, { message: "Amount must be a number" })
|
|
8996
|
+
], CreatePayoutDto.prototype, "amount", 2);
|
|
8997
|
+
__decorateClass([
|
|
8998
|
+
IsNotEmpty93({ message: "Connected account ID is required" }),
|
|
8999
|
+
IsString72({ message: "Connected account ID must be a string" })
|
|
9000
|
+
], CreatePayoutDto.prototype, "connectedAccountId", 2);
|
|
9001
|
+
__decorateClass([
|
|
9002
|
+
IsOptional63(),
|
|
9003
|
+
IsString72()
|
|
9004
|
+
], CreatePayoutDto.prototype, "method", 2);
|
|
9005
|
+
__decorateClass([
|
|
9006
|
+
IsOptional63(),
|
|
9007
|
+
IsString72()
|
|
9008
|
+
], CreatePayoutDto.prototype, "description", 2);
|
|
9009
|
+
|
|
8522
9010
|
// src/modules/timesheet/pattern/pattern.ts
|
|
8523
9011
|
var TIMESHEET_FREELANCER_PATTERN = {
|
|
8524
9012
|
fetchTimesheetsByDateRangeForFreelancer: "fetch.timesheets.by.date.range.for.freelancer",
|
|
@@ -8561,158 +9049,175 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
8561
9049
|
|
|
8562
9050
|
// src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
|
|
8563
9051
|
import {
|
|
8564
|
-
IsDateString as
|
|
9052
|
+
IsDateString as IsDateString9,
|
|
8565
9053
|
IsInt as IsInt12,
|
|
8566
|
-
IsNotEmpty as
|
|
8567
|
-
IsOptional as
|
|
8568
|
-
IsString as
|
|
9054
|
+
IsNotEmpty as IsNotEmpty94,
|
|
9055
|
+
IsOptional as IsOptional64,
|
|
9056
|
+
IsString as IsString73,
|
|
8569
9057
|
Matches as Matches13,
|
|
8570
|
-
IsNumber as
|
|
9058
|
+
IsNumber as IsNumber28
|
|
8571
9059
|
} from "class-validator";
|
|
8572
9060
|
var CreateFreelancerTimesheetDto = class {
|
|
8573
9061
|
};
|
|
8574
9062
|
__decorateClass([
|
|
8575
|
-
|
|
8576
|
-
|
|
9063
|
+
IsNotEmpty94({ message: "Job id is required" }),
|
|
9064
|
+
IsNumber28({}, { message: "Job id must be a number" })
|
|
8577
9065
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
8578
9066
|
__decorateClass([
|
|
8579
|
-
|
|
8580
|
-
|
|
9067
|
+
IsNotEmpty94({ message: "start date is required" }),
|
|
9068
|
+
IsDateString9()
|
|
8581
9069
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
8582
9070
|
__decorateClass([
|
|
8583
|
-
|
|
8584
|
-
|
|
9071
|
+
IsNotEmpty94({ message: "end date is required" }),
|
|
9072
|
+
IsDateString9()
|
|
8585
9073
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
8586
9074
|
__decorateClass([
|
|
8587
|
-
|
|
9075
|
+
IsNotEmpty94({ message: "start time is required" }),
|
|
8588
9076
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8589
9077
|
message: "startTime must be in HH:mm:ss format"
|
|
8590
9078
|
})
|
|
8591
9079
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
8592
9080
|
__decorateClass([
|
|
8593
|
-
|
|
9081
|
+
IsNotEmpty94({ message: "end time is required" }),
|
|
8594
9082
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8595
9083
|
message: "endTime must be in HH:mm:ss format"
|
|
8596
9084
|
})
|
|
8597
9085
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
8598
9086
|
__decorateClass([
|
|
8599
|
-
|
|
9087
|
+
IsOptional64(),
|
|
8600
9088
|
IsInt12()
|
|
8601
9089
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
8602
9090
|
__decorateClass([
|
|
8603
|
-
|
|
8604
|
-
|
|
9091
|
+
IsOptional64(),
|
|
9092
|
+
IsString73()
|
|
8605
9093
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
8606
9094
|
__decorateClass([
|
|
8607
|
-
|
|
8608
|
-
|
|
9095
|
+
IsOptional64(),
|
|
9096
|
+
IsString73()
|
|
8609
9097
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
8610
9098
|
__decorateClass([
|
|
8611
|
-
|
|
8612
|
-
|
|
9099
|
+
IsOptional64(),
|
|
9100
|
+
IsString73()
|
|
8613
9101
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
8614
9102
|
__decorateClass([
|
|
8615
|
-
|
|
9103
|
+
IsNotEmpty94({ message: "Description is required" })
|
|
8616
9104
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
8617
9105
|
|
|
8618
9106
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
8619
9107
|
import {
|
|
8620
|
-
IsDateString as
|
|
9108
|
+
IsDateString as IsDateString10,
|
|
8621
9109
|
IsInt as IsInt13,
|
|
8622
|
-
IsNotEmpty as
|
|
8623
|
-
IsOptional as
|
|
8624
|
-
IsString as
|
|
9110
|
+
IsNotEmpty as IsNotEmpty95,
|
|
9111
|
+
IsOptional as IsOptional65,
|
|
9112
|
+
IsString as IsString74,
|
|
8625
9113
|
Matches as Matches14,
|
|
8626
|
-
IsNumber as
|
|
9114
|
+
IsNumber as IsNumber29
|
|
8627
9115
|
} from "class-validator";
|
|
8628
9116
|
var UpdateFreelancerTimesheetDto = class {
|
|
8629
9117
|
};
|
|
8630
9118
|
__decorateClass([
|
|
8631
|
-
|
|
8632
|
-
|
|
9119
|
+
IsNotEmpty95({ message: "Job id is required" }),
|
|
9120
|
+
IsNumber29({}, { message: "Job id must be a number" })
|
|
8633
9121
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
8634
9122
|
__decorateClass([
|
|
8635
|
-
|
|
8636
|
-
|
|
9123
|
+
IsNotEmpty95({ message: "start date is required" }),
|
|
9124
|
+
IsDateString10()
|
|
8637
9125
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
8638
9126
|
__decorateClass([
|
|
8639
|
-
|
|
8640
|
-
|
|
9127
|
+
IsNotEmpty95({ message: "end date is required" }),
|
|
9128
|
+
IsDateString10()
|
|
8641
9129
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
8642
9130
|
__decorateClass([
|
|
8643
|
-
|
|
9131
|
+
IsNotEmpty95({ message: "start time is required" }),
|
|
8644
9132
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8645
9133
|
message: "startTime must be in HH:mm:ss format"
|
|
8646
9134
|
})
|
|
8647
9135
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
8648
9136
|
__decorateClass([
|
|
8649
|
-
|
|
9137
|
+
IsNotEmpty95({ message: "end time is required" }),
|
|
8650
9138
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8651
9139
|
message: "endTime must be in HH:mm:ss format"
|
|
8652
9140
|
})
|
|
8653
9141
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
8654
9142
|
__decorateClass([
|
|
8655
|
-
|
|
9143
|
+
IsOptional65(),
|
|
8656
9144
|
IsInt13()
|
|
8657
9145
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
8658
9146
|
__decorateClass([
|
|
8659
|
-
|
|
8660
|
-
|
|
9147
|
+
IsOptional65(),
|
|
9148
|
+
IsString74()
|
|
8661
9149
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
8662
9150
|
__decorateClass([
|
|
8663
|
-
|
|
8664
|
-
|
|
9151
|
+
IsOptional65(),
|
|
9152
|
+
IsString74()
|
|
8665
9153
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
8666
9154
|
__decorateClass([
|
|
8667
|
-
|
|
8668
|
-
|
|
9155
|
+
IsOptional65(),
|
|
9156
|
+
IsString74()
|
|
8669
9157
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
8670
9158
|
__decorateClass([
|
|
8671
|
-
|
|
9159
|
+
IsNotEmpty95({ message: "Description is required" })
|
|
8672
9160
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
8673
9161
|
|
|
8674
9162
|
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
8675
|
-
import { IsNotEmpty as
|
|
9163
|
+
import { IsNotEmpty as IsNotEmpty96, IsNumber as IsNumber30 } from "class-validator";
|
|
8676
9164
|
var SubmitTimesheetDto = class {
|
|
8677
9165
|
};
|
|
8678
9166
|
__decorateClass([
|
|
8679
|
-
|
|
8680
|
-
|
|
9167
|
+
IsNotEmpty96({ message: "Timesheet line ID is required" }),
|
|
9168
|
+
IsNumber30({}, { message: "Timesheet line ID must be a number" })
|
|
8681
9169
|
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
8682
9170
|
|
|
8683
9171
|
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
8684
|
-
import { IsNotEmpty as
|
|
9172
|
+
import { IsNotEmpty as IsNotEmpty97, IsNumber as IsNumber31 } from "class-validator";
|
|
8685
9173
|
var ResubmitTimesheetDto = class {
|
|
8686
9174
|
};
|
|
8687
9175
|
__decorateClass([
|
|
8688
|
-
|
|
8689
|
-
|
|
9176
|
+
IsNotEmpty97({ message: "Timesheet line ID is required" }),
|
|
9177
|
+
IsNumber31({}, { message: "Timesheet line ID must be a number" })
|
|
8690
9178
|
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
8691
9179
|
|
|
8692
9180
|
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
8693
|
-
import { ArrayNotEmpty as
|
|
9181
|
+
import { ArrayNotEmpty as ArrayNotEmpty13, IsArray as IsArray21, IsNumber as IsNumber32 } from "class-validator";
|
|
8694
9182
|
var ApproveTimesheetsDto = class {
|
|
8695
9183
|
};
|
|
8696
9184
|
__decorateClass([
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
9185
|
+
IsArray21({ message: "Timesheet line IDs must be an array" }),
|
|
9186
|
+
ArrayNotEmpty13({ message: "At least one timesheet line ID is required" }),
|
|
9187
|
+
IsNumber32({}, { each: true, message: "Each timesheet line ID must be a number" })
|
|
8700
9188
|
], ApproveTimesheetsDto.prototype, "timesheetLineIds", 2);
|
|
8701
9189
|
|
|
8702
9190
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
8703
|
-
import { ArrayNotEmpty as
|
|
9191
|
+
import { ArrayNotEmpty as ArrayNotEmpty14, IsArray as IsArray22, IsNumber as IsNumber33, IsOptional as IsOptional66, IsString as IsString75 } from "class-validator";
|
|
8704
9192
|
var SendBackTimesheetsDto = class {
|
|
8705
9193
|
};
|
|
8706
9194
|
__decorateClass([
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
9195
|
+
IsArray22({ message: "Timesheet line IDs must be an array" }),
|
|
9196
|
+
ArrayNotEmpty14({ message: "At least one timesheet line ID is required" }),
|
|
9197
|
+
IsNumber33({}, { each: true, message: "Each timesheet line ID must be a number" })
|
|
8710
9198
|
], SendBackTimesheetsDto.prototype, "timesheetLineIds", 2);
|
|
8711
9199
|
__decorateClass([
|
|
8712
|
-
|
|
8713
|
-
|
|
9200
|
+
IsOptional66(),
|
|
9201
|
+
IsString75()
|
|
8714
9202
|
], SendBackTimesheetsDto.prototype, "reason", 2);
|
|
8715
9203
|
|
|
9204
|
+
// src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
|
|
9205
|
+
import { IsNotEmpty as IsNotEmpty98, IsNumber as IsNumber34 } from "class-validator";
|
|
9206
|
+
var CreateDefaultTimesheetLineDto = class {
|
|
9207
|
+
};
|
|
9208
|
+
__decorateClass([
|
|
9209
|
+
IsNotEmpty98({ message: "Contract ID is required" }),
|
|
9210
|
+
IsNumber34({}, { message: "Contract ID must be a number" })
|
|
9211
|
+
], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
|
|
9212
|
+
__decorateClass([
|
|
9213
|
+
IsNotEmpty98({ message: "Freelancer ID is required" }),
|
|
9214
|
+
IsNumber34({}, { message: "Freelancer ID must be a number" })
|
|
9215
|
+
], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
|
|
9216
|
+
__decorateClass([
|
|
9217
|
+
IsNotEmpty98({ message: "Client ID is required" }),
|
|
9218
|
+
IsNumber34({}, { message: "Client ID must be a number" })
|
|
9219
|
+
], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
|
|
9220
|
+
|
|
8716
9221
|
// src/modules/invoice/pattern/pattern.ts
|
|
8717
9222
|
var INVOICE_PATTERN = {
|
|
8718
9223
|
createInvoice: "invoice.create",
|
|
@@ -8732,23 +9237,23 @@ var INVOICE_PATTERN = {
|
|
|
8732
9237
|
};
|
|
8733
9238
|
|
|
8734
9239
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
8735
|
-
import { IsEnum as
|
|
9240
|
+
import { IsEnum as IsEnum35, IsNotEmpty as IsNotEmpty99 } from "class-validator";
|
|
8736
9241
|
var UpdateInvoiceStatusDto = class {
|
|
8737
9242
|
};
|
|
8738
9243
|
__decorateClass([
|
|
8739
|
-
|
|
8740
|
-
|
|
9244
|
+
IsNotEmpty99({ message: "Please provide invoice status." }),
|
|
9245
|
+
IsEnum35(InvoiceStatusEnum, {
|
|
8741
9246
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
8742
9247
|
})
|
|
8743
9248
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
8744
9249
|
|
|
8745
9250
|
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
8746
|
-
import { IsNotEmpty as
|
|
9251
|
+
import { IsNotEmpty as IsNotEmpty100, IsNumber as IsNumber35 } from "class-validator";
|
|
8747
9252
|
var CreateInvoiceDto = class {
|
|
8748
9253
|
};
|
|
8749
9254
|
__decorateClass([
|
|
8750
|
-
|
|
8751
|
-
|
|
9255
|
+
IsNotEmpty100({ message: "Timesheet line ID is required" }),
|
|
9256
|
+
IsNumber35({}, { message: "Timesheet line ID must be a number" })
|
|
8752
9257
|
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
8753
9258
|
|
|
8754
9259
|
// src/modules/dispute/pattern/pattern.ts
|
|
@@ -8760,13 +9265,13 @@ var DISPUTE_PATTERN = {
|
|
|
8760
9265
|
|
|
8761
9266
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
8762
9267
|
import {
|
|
8763
|
-
IsString as
|
|
8764
|
-
IsNotEmpty as
|
|
9268
|
+
IsString as IsString76,
|
|
9269
|
+
IsNotEmpty as IsNotEmpty101,
|
|
8765
9270
|
IsIn as IsIn4,
|
|
8766
|
-
IsOptional as
|
|
9271
|
+
IsOptional as IsOptional67,
|
|
8767
9272
|
MaxLength as MaxLength21,
|
|
8768
|
-
IsObject,
|
|
8769
|
-
IsNumber as
|
|
9273
|
+
IsObject as IsObject7,
|
|
9274
|
+
IsNumber as IsNumber36,
|
|
8770
9275
|
ValidateIf as ValidateIf11
|
|
8771
9276
|
} from "class-validator";
|
|
8772
9277
|
import { Transform as Transform4, Type as Type16 } from "class-transformer";
|
|
@@ -8774,36 +9279,36 @@ var CreateDisputeDto = class {
|
|
|
8774
9279
|
};
|
|
8775
9280
|
__decorateClass([
|
|
8776
9281
|
ValidateIf11((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
8777
|
-
|
|
9282
|
+
IsNumber36({}, { message: "Client id must be a number" }),
|
|
8778
9283
|
Type16(() => Number)
|
|
8779
9284
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
8780
9285
|
__decorateClass([
|
|
8781
9286
|
ValidateIf11((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
8782
|
-
|
|
9287
|
+
IsNumber36({}, { message: "Freelancer id must be a number" }),
|
|
8783
9288
|
Type16(() => Number)
|
|
8784
9289
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
8785
9290
|
__decorateClass([
|
|
8786
|
-
|
|
8787
|
-
|
|
9291
|
+
IsNotEmpty101({ message: "Please select dispute type." }),
|
|
9292
|
+
IsString76(),
|
|
8788
9293
|
IsIn4(["JOB", "INVOICE"])
|
|
8789
9294
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
8790
9295
|
__decorateClass([
|
|
8791
|
-
|
|
8792
|
-
|
|
9296
|
+
IsNotEmpty101({ message: "Please provide initiator type." }),
|
|
9297
|
+
IsString76()
|
|
8793
9298
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
8794
9299
|
__decorateClass([
|
|
8795
|
-
|
|
8796
|
-
|
|
9300
|
+
IsNotEmpty101({ message: "Please enter description." }),
|
|
9301
|
+
IsString76({ message: "Description must be a string" }),
|
|
8797
9302
|
MaxLength21(500, { message: "Description must not exceed 500 characters" })
|
|
8798
9303
|
], CreateDisputeDto.prototype, "description", 2);
|
|
8799
9304
|
__decorateClass([
|
|
8800
|
-
|
|
8801
|
-
|
|
9305
|
+
IsOptional67(),
|
|
9306
|
+
IsString76({ message: "Comment must be a string" }),
|
|
8802
9307
|
MaxLength21(500, { message: "Comment must not exceed 500 characters" })
|
|
8803
9308
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
8804
9309
|
__decorateClass([
|
|
8805
|
-
|
|
8806
|
-
|
|
9310
|
+
IsOptional67(),
|
|
9311
|
+
IsObject7({ message: "Dynamic fields must be a valid object" }),
|
|
8807
9312
|
Transform4(({ value }) => {
|
|
8808
9313
|
if (typeof value === "string") {
|
|
8809
9314
|
try {
|
|
@@ -8825,17 +9330,128 @@ var SENSELOAF_PATTERN = {
|
|
|
8825
9330
|
|
|
8826
9331
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
8827
9332
|
import {
|
|
8828
|
-
IsNotEmpty as
|
|
9333
|
+
IsNotEmpty as IsNotEmpty102
|
|
8829
9334
|
} from "class-validator";
|
|
8830
9335
|
var AiInterviewQuestionGenerateDto = class {
|
|
8831
9336
|
};
|
|
8832
9337
|
__decorateClass([
|
|
8833
|
-
|
|
9338
|
+
IsNotEmpty102({ message: "Please enter job description." })
|
|
8834
9339
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
8835
9340
|
__decorateClass([
|
|
8836
|
-
|
|
9341
|
+
IsNotEmpty102({ message: "Please enter number of questions." })
|
|
8837
9342
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
8838
9343
|
|
|
9344
|
+
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
9345
|
+
import { IsNotEmpty as IsNotEmpty103, IsString as IsString77, IsOptional as IsOptional68 } from "class-validator";
|
|
9346
|
+
var ResumeParsingByUrlDto = class {
|
|
9347
|
+
};
|
|
9348
|
+
__decorateClass([
|
|
9349
|
+
IsNotEmpty103({ message: "Resume URL is required" }),
|
|
9350
|
+
IsString77({ message: "Resume URL must be a string" })
|
|
9351
|
+
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
9352
|
+
__decorateClass([
|
|
9353
|
+
IsOptional68(),
|
|
9354
|
+
IsString77()
|
|
9355
|
+
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
9356
|
+
|
|
9357
|
+
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
9358
|
+
import { IsNotEmpty as IsNotEmpty104, IsString as IsString78, IsOptional as IsOptional69, IsObject as IsObject8 } from "class-validator";
|
|
9359
|
+
var ResumeDataProcessingDto = class {
|
|
9360
|
+
};
|
|
9361
|
+
__decorateClass([
|
|
9362
|
+
IsNotEmpty104({ message: "Resume data is required" }),
|
|
9363
|
+
IsObject8()
|
|
9364
|
+
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
9365
|
+
__decorateClass([
|
|
9366
|
+
IsOptional69(),
|
|
9367
|
+
IsString78()
|
|
9368
|
+
], ResumeDataProcessingDto.prototype, "userId", 2);
|
|
9369
|
+
__decorateClass([
|
|
9370
|
+
IsOptional69(),
|
|
9371
|
+
IsString78()
|
|
9372
|
+
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
9373
|
+
|
|
9374
|
+
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
9375
|
+
import { IsNotEmpty as IsNotEmpty105, IsString as IsString79, IsOptional as IsOptional70, IsObject as IsObject9 } from "class-validator";
|
|
9376
|
+
var CheckResumeEligibilityDto = class {
|
|
9377
|
+
};
|
|
9378
|
+
__decorateClass([
|
|
9379
|
+
IsNotEmpty105({ message: "Resume data is required" }),
|
|
9380
|
+
IsObject9()
|
|
9381
|
+
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
9382
|
+
__decorateClass([
|
|
9383
|
+
IsOptional70(),
|
|
9384
|
+
IsString79()
|
|
9385
|
+
], CheckResumeEligibilityDto.prototype, "jobId", 2);
|
|
9386
|
+
__decorateClass([
|
|
9387
|
+
IsOptional70(),
|
|
9388
|
+
IsString79()
|
|
9389
|
+
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
9390
|
+
|
|
9391
|
+
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
9392
|
+
import { IsNotEmpty as IsNotEmpty106, IsString as IsString80, IsOptional as IsOptional71, IsArray as IsArray23, IsNumber as IsNumber37 } from "class-validator";
|
|
9393
|
+
var AiInterviewTemplateGenerationDto = class {
|
|
9394
|
+
};
|
|
9395
|
+
__decorateClass([
|
|
9396
|
+
IsNotEmpty106({ message: "Job ID is required" }),
|
|
9397
|
+
IsString80({ message: "Job ID must be a string" })
|
|
9398
|
+
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
9399
|
+
__decorateClass([
|
|
9400
|
+
IsOptional71(),
|
|
9401
|
+
IsArray23(),
|
|
9402
|
+
IsString80({ each: true, message: "Each skill must be a string" })
|
|
9403
|
+
], AiInterviewTemplateGenerationDto.prototype, "skills", 2);
|
|
9404
|
+
__decorateClass([
|
|
9405
|
+
IsOptional71(),
|
|
9406
|
+
IsNumber37({}, { message: "Number of questions must be a number" })
|
|
9407
|
+
], AiInterviewTemplateGenerationDto.prototype, "numberOfQuestions", 2);
|
|
9408
|
+
__decorateClass([
|
|
9409
|
+
IsOptional71(),
|
|
9410
|
+
IsString80()
|
|
9411
|
+
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
9412
|
+
|
|
9413
|
+
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
9414
|
+
import { IsNotEmpty as IsNotEmpty107, IsString as IsString81, IsOptional as IsOptional72, IsNumber as IsNumber38 } from "class-validator";
|
|
9415
|
+
var AiInterviewLinkGenerationDto = class {
|
|
9416
|
+
};
|
|
9417
|
+
__decorateClass([
|
|
9418
|
+
IsNotEmpty107({ message: "Template ID is required" }),
|
|
9419
|
+
IsString81({ message: "Template ID must be a string" })
|
|
9420
|
+
], AiInterviewLinkGenerationDto.prototype, "templateId", 2);
|
|
9421
|
+
__decorateClass([
|
|
9422
|
+
IsNotEmpty107({ message: "Freelancer ID is required" }),
|
|
9423
|
+
IsString81({ message: "Freelancer ID must be a string" })
|
|
9424
|
+
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
9425
|
+
__decorateClass([
|
|
9426
|
+
IsOptional72(),
|
|
9427
|
+
IsString81()
|
|
9428
|
+
], AiInterviewLinkGenerationDto.prototype, "jobId", 2);
|
|
9429
|
+
__decorateClass([
|
|
9430
|
+
IsOptional72(),
|
|
9431
|
+
IsNumber38({}, { message: "Expiry hours must be a number" })
|
|
9432
|
+
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
9433
|
+
|
|
9434
|
+
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
9435
|
+
import { IsNotEmpty as IsNotEmpty108, IsString as IsString82, IsOptional as IsOptional73, IsNumber as IsNumber39 } from "class-validator";
|
|
9436
|
+
var AiAssessmentCreationDto = class {
|
|
9437
|
+
};
|
|
9438
|
+
__decorateClass([
|
|
9439
|
+
IsNotEmpty108({ message: "User ID is required" }),
|
|
9440
|
+
IsString82({ message: "User ID must be a string" })
|
|
9441
|
+
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
9442
|
+
__decorateClass([
|
|
9443
|
+
IsOptional73(),
|
|
9444
|
+
IsString82()
|
|
9445
|
+
], AiAssessmentCreationDto.prototype, "assessmentType", 2);
|
|
9446
|
+
__decorateClass([
|
|
9447
|
+
IsOptional73(),
|
|
9448
|
+
IsNumber39({}, { message: "Number of questions must be a number" })
|
|
9449
|
+
], AiAssessmentCreationDto.prototype, "numberOfQuestions", 2);
|
|
9450
|
+
__decorateClass([
|
|
9451
|
+
IsOptional73(),
|
|
9452
|
+
IsString82()
|
|
9453
|
+
], AiAssessmentCreationDto.prototype, "difficulty", 2);
|
|
9454
|
+
|
|
8839
9455
|
// src/modules/commission/pattern/pattern.ts
|
|
8840
9456
|
var COMMISSION_PATTERN = {
|
|
8841
9457
|
fetchCommission: "fetch.commission"
|
|
@@ -8849,16 +9465,16 @@ var HIRING_PATTERN = {
|
|
|
8849
9465
|
};
|
|
8850
9466
|
|
|
8851
9467
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
8852
|
-
import { IsNotEmpty as
|
|
9468
|
+
import { IsNotEmpty as IsNotEmpty109, IsNumber as IsNumber40 } from "class-validator";
|
|
8853
9469
|
var CreateHiringDto = class {
|
|
8854
9470
|
};
|
|
8855
9471
|
__decorateClass([
|
|
8856
|
-
|
|
8857
|
-
|
|
9472
|
+
IsNotEmpty109({ message: "Freelancer ID is required" }),
|
|
9473
|
+
IsNumber40({}, { message: "Freelancer ID must be a number" })
|
|
8858
9474
|
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
8859
9475
|
__decorateClass([
|
|
8860
|
-
|
|
8861
|
-
|
|
9476
|
+
IsNotEmpty109({ message: "Job ID is required" }),
|
|
9477
|
+
IsNumber40({}, { message: "Job ID must be a number" })
|
|
8862
9478
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
8863
9479
|
|
|
8864
9480
|
// src/modules/llm/pattern/pattern.ts
|
|
@@ -8878,6 +9494,19 @@ var SIGNATURE_PATTERN = {
|
|
|
8878
9494
|
saveSignature: "save.signature"
|
|
8879
9495
|
};
|
|
8880
9496
|
|
|
9497
|
+
// src/modules/user/signature/dto/save-signature.dto.ts
|
|
9498
|
+
import { IsOptional as IsOptional74, IsString as IsString83 } from "class-validator";
|
|
9499
|
+
var SaveSignatureDto = class {
|
|
9500
|
+
};
|
|
9501
|
+
__decorateClass([
|
|
9502
|
+
IsOptional74(),
|
|
9503
|
+
IsString83()
|
|
9504
|
+
], SaveSignatureDto.prototype, "signatureType", 2);
|
|
9505
|
+
__decorateClass([
|
|
9506
|
+
IsOptional74(),
|
|
9507
|
+
IsString83()
|
|
9508
|
+
], SaveSignatureDto.prototype, "description", 2);
|
|
9509
|
+
|
|
8881
9510
|
// src/modules/wallet/pattern/pattern.ts
|
|
8882
9511
|
var WALLET_PATTERN = {
|
|
8883
9512
|
fetchConnectAccountDetails: "fetch.connect.account.details",
|
|
@@ -8892,6 +9521,28 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
8892
9521
|
fetchAdminWalletTransactions: "fetch.admin.wallet.transactions"
|
|
8893
9522
|
};
|
|
8894
9523
|
|
|
9524
|
+
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
9525
|
+
import { IsNotEmpty as IsNotEmpty110, IsNumber as IsNumber41 } from "class-validator";
|
|
9526
|
+
var AddTopupEscrowAmountDto = class {
|
|
9527
|
+
};
|
|
9528
|
+
__decorateClass([
|
|
9529
|
+
IsNotEmpty110({ message: "Amount is required" }),
|
|
9530
|
+
IsNumber41({}, { message: "Amount must be a number" })
|
|
9531
|
+
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
9532
|
+
|
|
9533
|
+
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
9534
|
+
import { IsNotEmpty as IsNotEmpty111, IsNumber as IsNumber42 } from "class-validator";
|
|
9535
|
+
var DebitCommissionFteHiringDto = class {
|
|
9536
|
+
};
|
|
9537
|
+
__decorateClass([
|
|
9538
|
+
IsNotEmpty111({ message: "Hiring ID is required" }),
|
|
9539
|
+
IsNumber42({}, { message: "Hiring ID must be a number" })
|
|
9540
|
+
], DebitCommissionFteHiringDto.prototype, "hiringId", 2);
|
|
9541
|
+
__decorateClass([
|
|
9542
|
+
IsNotEmpty111({ message: "Amount is required" }),
|
|
9543
|
+
IsNumber42({}, { message: "Amount must be a number" })
|
|
9544
|
+
], DebitCommissionFteHiringDto.prototype, "amount", 2);
|
|
9545
|
+
|
|
8895
9546
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
8896
9547
|
import { config } from "dotenv";
|
|
8897
9548
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -9910,6 +10561,7 @@ export {
|
|
|
9910
10561
|
AUTHENTICATION_PATTERN,
|
|
9911
10562
|
AccountStatus,
|
|
9912
10563
|
AccountType,
|
|
10564
|
+
AddTopupEscrowAmountDto,
|
|
9913
10565
|
AdminCreateJobInformationDto,
|
|
9914
10566
|
AdminJobBasicInformationV2Dto,
|
|
9915
10567
|
AdminPermission,
|
|
@@ -9917,16 +10569,20 @@ export {
|
|
|
9917
10569
|
AdminRolePermission,
|
|
9918
10570
|
AdminUpdateJobInformationDto,
|
|
9919
10571
|
AdminUserRole,
|
|
10572
|
+
AiAssessmentCreationDto,
|
|
9920
10573
|
AiAssessmentStatusEnum,
|
|
9921
10574
|
AiInterview,
|
|
10575
|
+
AiInterviewLinkGenerationDto,
|
|
9922
10576
|
AiInterviewQuestionGenerateDto,
|
|
9923
10577
|
AiInterviewRescheduleRequest,
|
|
9924
10578
|
AiInterviewRescheduleRequestStatusEnum,
|
|
9925
10579
|
AiInterviewStatusEnum,
|
|
10580
|
+
AiInterviewTemplateGenerationDto,
|
|
9926
10581
|
AnswerTypeEnum,
|
|
9927
10582
|
ApplicationStatusEnum,
|
|
9928
10583
|
ApproveTimesheetsDto,
|
|
9929
10584
|
AssessmentAnswer,
|
|
10585
|
+
AssessmentRequestStatus,
|
|
9930
10586
|
AssessmentRequestStatusEnum,
|
|
9931
10587
|
AssessmentStatusEnum,
|
|
9932
10588
|
AssessmetQuestion,
|
|
@@ -9951,6 +10607,8 @@ export {
|
|
|
9951
10607
|
COUNTRY_PATTERN,
|
|
9952
10608
|
CalendlyMeetingLog,
|
|
9953
10609
|
CandidateType,
|
|
10610
|
+
CaptureAiAssessmentResultDto,
|
|
10611
|
+
CaptureAiInterviewResultPublicDto,
|
|
9954
10612
|
CaseStudyDto,
|
|
9955
10613
|
CategoryEmum,
|
|
9956
10614
|
CategoryEmumDto,
|
|
@@ -9958,13 +10616,17 @@ export {
|
|
|
9958
10616
|
ChangeJobApplicationStatusDto,
|
|
9959
10617
|
ChatRMQAdapter,
|
|
9960
10618
|
ChatTCPAdapter,
|
|
10619
|
+
CheckResumeEligibilityDto,
|
|
9961
10620
|
City,
|
|
10621
|
+
ClientAddFundDto,
|
|
9962
10622
|
ClientCandidatePreference,
|
|
9963
10623
|
ClientCandidatePreferenceEnum,
|
|
9964
10624
|
ClientChangePasswordDto,
|
|
9965
10625
|
ClientCreateAccountDto,
|
|
10626
|
+
ClientESignatureDto,
|
|
9966
10627
|
ClientFreelancerRecommendation,
|
|
9967
10628
|
ClientProfileQuestionDto,
|
|
10629
|
+
ClientServiceAgreementUploadDto,
|
|
9968
10630
|
CloseJobDto,
|
|
9969
10631
|
Cms,
|
|
9970
10632
|
Commission,
|
|
@@ -9990,6 +10652,7 @@ export {
|
|
|
9990
10652
|
CreateCmsDto,
|
|
9991
10653
|
CreateCompanyMemberDto,
|
|
9992
10654
|
CreateCompanyRoleDto,
|
|
10655
|
+
CreateDefaultTimesheetLineDto,
|
|
9993
10656
|
CreateDisputeDto,
|
|
9994
10657
|
CreateF2FInterviewDirectDto,
|
|
9995
10658
|
CreateF2FInterviewDto,
|
|
@@ -9997,13 +10660,16 @@ export {
|
|
|
9997
10660
|
CreateFreelancerDto,
|
|
9998
10661
|
CreateFreelancerTimesheetDto,
|
|
9999
10662
|
CreateHiringDto,
|
|
10663
|
+
CreateInterviewBasicInformationDto,
|
|
10000
10664
|
CreateInvoiceDto,
|
|
10001
10665
|
CreateJobApplicationDto,
|
|
10002
10666
|
CreateLeadDto,
|
|
10667
|
+
CreatePayoutDto,
|
|
10003
10668
|
CreateQuestionDto,
|
|
10004
10669
|
CreateRatingDto,
|
|
10005
10670
|
CreateSubAdminDto,
|
|
10006
10671
|
DISPUTE_PATTERN,
|
|
10672
|
+
DebitCommissionFteHiringDto,
|
|
10007
10673
|
Dispute,
|
|
10008
10674
|
DisputeStatusEnum,
|
|
10009
10675
|
DocumentType,
|
|
@@ -10013,10 +10679,13 @@ export {
|
|
|
10013
10679
|
EducationDto,
|
|
10014
10680
|
EmploymentType,
|
|
10015
10681
|
EmploymentTypeV2,
|
|
10682
|
+
EscrowFundContractDto,
|
|
10016
10683
|
EscrowWallet,
|
|
10017
10684
|
EscrowWalletTransaction,
|
|
10018
10685
|
EscrowWalletTransactionForEnum,
|
|
10019
10686
|
EscrowWalletTransactionTypeEnum,
|
|
10687
|
+
EsignContractClientDto,
|
|
10688
|
+
EsignContractFreelancerDto,
|
|
10020
10689
|
ExperienceDto,
|
|
10021
10690
|
F2FInterview,
|
|
10022
10691
|
F2FInterviewSchedule,
|
|
@@ -10032,6 +10701,8 @@ export {
|
|
|
10032
10701
|
FREELANCER_PROJECT_PATTERN,
|
|
10033
10702
|
FREELANCER_SKILL_PATTERN,
|
|
10034
10703
|
Feature,
|
|
10704
|
+
FetchClientInfoForChatDto,
|
|
10705
|
+
FetchFreelancerInfoForChatDto,
|
|
10035
10706
|
ForgotPasswordDto,
|
|
10036
10707
|
FreelancerAssessment,
|
|
10037
10708
|
FreelancerAssessmentRequest,
|
|
@@ -10043,6 +10714,7 @@ export {
|
|
|
10043
10714
|
FreelancerDeclaration,
|
|
10044
10715
|
FreelancerDeclarationDto,
|
|
10045
10716
|
FreelancerDevelopmentPreferenceDto,
|
|
10717
|
+
FreelancerESignatureDto,
|
|
10046
10718
|
FreelancerEducation,
|
|
10047
10719
|
FreelancerEducationDto,
|
|
10048
10720
|
FreelancerExperience,
|
|
@@ -10064,6 +10736,7 @@ export {
|
|
|
10064
10736
|
FreelancerUploadResumeDto,
|
|
10065
10737
|
FreelancerWorkShowcaseDto,
|
|
10066
10738
|
FromUsOn,
|
|
10739
|
+
GenerateContractDto,
|
|
10067
10740
|
HIRING_PATTERN,
|
|
10068
10741
|
HiredFreelancerNatureOfWorkEnum,
|
|
10069
10742
|
Hiring,
|
|
@@ -10122,6 +10795,8 @@ export {
|
|
|
10122
10795
|
LoginViaOtpScopeEnum,
|
|
10123
10796
|
LogoutDto,
|
|
10124
10797
|
MAINTENANCE_PATTERN,
|
|
10798
|
+
MarkCandidateStatusBulkDto,
|
|
10799
|
+
MarkCandidateStatusDto,
|
|
10125
10800
|
McqStatusEnum,
|
|
10126
10801
|
ModeOfHire,
|
|
10127
10802
|
ModeOfWork,
|
|
@@ -10135,11 +10810,13 @@ export {
|
|
|
10135
10810
|
OTP_PATTERN,
|
|
10136
10811
|
OnboardingStepEnum,
|
|
10137
10812
|
Otp,
|
|
10813
|
+
OtpType,
|
|
10138
10814
|
PERMISSION_PATTERN,
|
|
10139
10815
|
PLAN_PATTERN,
|
|
10140
10816
|
PROFILE_PATTERN,
|
|
10141
10817
|
Permission,
|
|
10142
10818
|
Plan,
|
|
10819
|
+
PreCheckoutCalculationDto,
|
|
10143
10820
|
ProjectDto,
|
|
10144
10821
|
Provider,
|
|
10145
10822
|
Question,
|
|
@@ -10150,13 +10827,18 @@ export {
|
|
|
10150
10827
|
Rating,
|
|
10151
10828
|
RatingTypeEnum,
|
|
10152
10829
|
RecommendationWeightageConfig,
|
|
10830
|
+
RecordAssessmentAnswerDto,
|
|
10831
|
+
RecordAssessmentAnswersDto,
|
|
10153
10832
|
RefreshDto,
|
|
10154
10833
|
RefreshToken,
|
|
10155
10834
|
RejectAIInterviewRescheduleRequestDto,
|
|
10835
|
+
RejectF2FInterviewRescheduleRequestDto,
|
|
10156
10836
|
ResetPasswordDto,
|
|
10157
10837
|
ResetPasswordTokenValidationDto,
|
|
10158
10838
|
ResubmitTimesheetDto,
|
|
10159
10839
|
ResultStatusEnum,
|
|
10840
|
+
ResumeDataProcessingDto,
|
|
10841
|
+
ResumeParsingByUrlDto,
|
|
10160
10842
|
SENSELOAF_PATTERN,
|
|
10161
10843
|
SIGNATURE_PATTERN,
|
|
10162
10844
|
SKILL_PATTERN,
|
|
@@ -10165,8 +10847,10 @@ export {
|
|
|
10165
10847
|
STRIPE_PATTERN,
|
|
10166
10848
|
SUBADMIN_PATTERN,
|
|
10167
10849
|
SYSTEM_PREFERENCES_PATTERN,
|
|
10850
|
+
SaveSignatureDto,
|
|
10168
10851
|
ScopeEnum,
|
|
10169
10852
|
SelectedAnswerTypeEnum,
|
|
10853
|
+
SendAiAssessmentLinkDto,
|
|
10170
10854
|
SendBackTimesheetsDto,
|
|
10171
10855
|
SendGuestOtpDto,
|
|
10172
10856
|
SendGuestOtpPurposeEnum,
|
|
@@ -10174,6 +10858,7 @@ export {
|
|
|
10174
10858
|
SendLoginOtpDto,
|
|
10175
10859
|
SendLoginOtpPurposeEnum,
|
|
10176
10860
|
SendLoginOtpScopeEnum,
|
|
10861
|
+
SendOtpDto,
|
|
10177
10862
|
SenseloafLog,
|
|
10178
10863
|
SequenceGenerator,
|
|
10179
10864
|
SetPasswordDto,
|
|
@@ -10182,6 +10867,7 @@ export {
|
|
|
10182
10867
|
Signature,
|
|
10183
10868
|
Skill,
|
|
10184
10869
|
SkillCatalog,
|
|
10870
|
+
SocialAuthDto,
|
|
10185
10871
|
State,
|
|
10186
10872
|
Step,
|
|
10187
10873
|
StepCompletedEnumV2,
|
|
@@ -10195,6 +10881,7 @@ export {
|
|
|
10195
10881
|
SystemPreferenceKey,
|
|
10196
10882
|
TIMESHEET_CLIENT_PATTERN,
|
|
10197
10883
|
TIMESHEET_FREELANCER_PATTERN,
|
|
10884
|
+
TestNotificationDto,
|
|
10198
10885
|
Timesheet,
|
|
10199
10886
|
TimesheetLine,
|
|
10200
10887
|
TimesheetLineHistory,
|
|
@@ -10205,10 +10892,12 @@ export {
|
|
|
10205
10892
|
TimesheetSubmissionActionEnum,
|
|
10206
10893
|
ToggleCompanyMemberVisibilityDto,
|
|
10207
10894
|
ToggleCompanyRoleVisibilityDto,
|
|
10895
|
+
TransferFundsDto,
|
|
10208
10896
|
TypeOfEmploymentEnum,
|
|
10209
10897
|
TypeOfEmploymentEnumDto,
|
|
10210
10898
|
TypeOfEmploymentEnums,
|
|
10211
10899
|
UpdateAdminRoleDto,
|
|
10900
|
+
UpdateAssessmentRequestStatusDto,
|
|
10212
10901
|
UpdateClientAccountStatusDto,
|
|
10213
10902
|
UpdateClientDto,
|
|
10214
10903
|
UpdateClientHiringModeEnum,
|
|
@@ -10220,14 +10909,19 @@ export {
|
|
|
10220
10909
|
UpdateFreelancerDto,
|
|
10221
10910
|
UpdateFreelancerProfileDto,
|
|
10222
10911
|
UpdateFreelancerTimesheetDto,
|
|
10912
|
+
UpdateInterviewBasicInformationDto,
|
|
10223
10913
|
UpdateInvoiceStatusDto,
|
|
10224
10914
|
UpdateSubAdminAccountStatusDto,
|
|
10225
10915
|
UpdateSubAdminDto,
|
|
10226
10916
|
User,
|
|
10227
10917
|
UserRMQAdapter,
|
|
10228
10918
|
UserTCPAdapter,
|
|
10919
|
+
ValidateEmailDto,
|
|
10920
|
+
ValidateMobileDto,
|
|
10229
10921
|
VerifyGuestOtpDto,
|
|
10230
10922
|
VerifyGuestOtpPurposeEnum,
|
|
10923
|
+
VerifyOnboardingTokenDto,
|
|
10924
|
+
VerifyOtpDto,
|
|
10231
10925
|
WALLET_ADMIN_PATTERN,
|
|
10232
10926
|
WALLET_PATTERN,
|
|
10233
10927
|
Wallet,
|