@experts_hub/shared 1.0.411 → 1.0.413
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/stripe-wallet-transaction.entity.d.ts +9 -0
- package/dist/entities/stripe-wallet.entity.d.ts +1 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +33 -0
- package/dist/index.mjs +151 -117
- package/dist/modules/onboarding/dto/client-profile-question.dto.d.ts +1 -0
- package/package.json +1 -1
|
@@ -24,4 +24,13 @@ export declare class StripeWalletTransaction extends BaseEntity {
|
|
|
24
24
|
stripeSessionId: string;
|
|
25
25
|
stripePaymentIntentId: string;
|
|
26
26
|
description: string;
|
|
27
|
+
depositAmountCents: number;
|
|
28
|
+
platformFeeCents: number;
|
|
29
|
+
taxCents: number;
|
|
30
|
+
stripeFeeCents: number;
|
|
31
|
+
totalPaidCents: number;
|
|
32
|
+
netReceivedCents: number;
|
|
33
|
+
stripeChargeId: string;
|
|
34
|
+
stripeBalanceTransactionId: string;
|
|
35
|
+
completedAt: Date;
|
|
27
36
|
}
|
|
@@ -16,6 +16,7 @@ export declare class StripeWallet extends BaseEntity {
|
|
|
16
16
|
stripeAccountId: string;
|
|
17
17
|
stripeCustomerId: string;
|
|
18
18
|
walletBalance: number;
|
|
19
|
+
walletBalanceCents: number;
|
|
19
20
|
onboardingStatus: StripeWalletOnboardingStatusEnum;
|
|
20
21
|
stripeMetadata: Record<string, any>;
|
|
21
22
|
transactions: StripeWalletTransaction[];
|
package/dist/index.d.mts
CHANGED
|
@@ -200,6 +200,7 @@ declare class ClientProfileQuestionDto {
|
|
|
200
200
|
uuid: string;
|
|
201
201
|
question_slug: string;
|
|
202
202
|
answer: any;
|
|
203
|
+
numberOfHours?: number;
|
|
203
204
|
foundUsOnDetail?: string;
|
|
204
205
|
}
|
|
205
206
|
|
|
@@ -1537,6 +1538,15 @@ declare class StripeWalletTransaction extends BaseEntity {
|
|
|
1537
1538
|
stripeSessionId: string;
|
|
1538
1539
|
stripePaymentIntentId: string;
|
|
1539
1540
|
description: string;
|
|
1541
|
+
depositAmountCents: number;
|
|
1542
|
+
platformFeeCents: number;
|
|
1543
|
+
taxCents: number;
|
|
1544
|
+
stripeFeeCents: number;
|
|
1545
|
+
totalPaidCents: number;
|
|
1546
|
+
netReceivedCents: number;
|
|
1547
|
+
stripeChargeId: string;
|
|
1548
|
+
stripeBalanceTransactionId: string;
|
|
1549
|
+
completedAt: Date;
|
|
1540
1550
|
}
|
|
1541
1551
|
|
|
1542
1552
|
declare enum StripeWalletAccountTypeEnum {
|
|
@@ -1554,6 +1564,7 @@ declare class StripeWallet extends BaseEntity {
|
|
|
1554
1564
|
stripeAccountId: string;
|
|
1555
1565
|
stripeCustomerId: string;
|
|
1556
1566
|
walletBalance: number;
|
|
1567
|
+
walletBalanceCents: number;
|
|
1557
1568
|
onboardingStatus: StripeWalletOnboardingStatusEnum;
|
|
1558
1569
|
stripeMetadata: Record<string, any>;
|
|
1559
1570
|
transactions: StripeWalletTransaction[];
|
package/dist/index.d.ts
CHANGED
|
@@ -200,6 +200,7 @@ declare class ClientProfileQuestionDto {
|
|
|
200
200
|
uuid: string;
|
|
201
201
|
question_slug: string;
|
|
202
202
|
answer: any;
|
|
203
|
+
numberOfHours?: number;
|
|
203
204
|
foundUsOnDetail?: string;
|
|
204
205
|
}
|
|
205
206
|
|
|
@@ -1537,6 +1538,15 @@ declare class StripeWalletTransaction extends BaseEntity {
|
|
|
1537
1538
|
stripeSessionId: string;
|
|
1538
1539
|
stripePaymentIntentId: string;
|
|
1539
1540
|
description: string;
|
|
1541
|
+
depositAmountCents: number;
|
|
1542
|
+
platformFeeCents: number;
|
|
1543
|
+
taxCents: number;
|
|
1544
|
+
stripeFeeCents: number;
|
|
1545
|
+
totalPaidCents: number;
|
|
1546
|
+
netReceivedCents: number;
|
|
1547
|
+
stripeChargeId: string;
|
|
1548
|
+
stripeBalanceTransactionId: string;
|
|
1549
|
+
completedAt: Date;
|
|
1540
1550
|
}
|
|
1541
1551
|
|
|
1542
1552
|
declare enum StripeWalletAccountTypeEnum {
|
|
@@ -1554,6 +1564,7 @@ declare class StripeWallet extends BaseEntity {
|
|
|
1554
1564
|
stripeAccountId: string;
|
|
1555
1565
|
stripeCustomerId: string;
|
|
1556
1566
|
walletBalance: number;
|
|
1567
|
+
walletBalanceCents: number;
|
|
1557
1568
|
onboardingStatus: StripeWalletOnboardingStatusEnum;
|
|
1558
1569
|
stripeMetadata: Record<string, any>;
|
|
1559
1570
|
transactions: StripeWalletTransaction[];
|
package/dist/index.js
CHANGED
|
@@ -929,6 +929,9 @@ __decorateClass([
|
|
|
929
929
|
__decorateClass([
|
|
930
930
|
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter answer." })
|
|
931
931
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
932
|
+
__decorateClass([
|
|
933
|
+
(0, import_class_validator25.IsOptional)()
|
|
934
|
+
], ClientProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
932
935
|
__decorateClass([
|
|
933
936
|
(0, import_class_validator25.ValidateIf)((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
934
937
|
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
@@ -4565,6 +4568,33 @@ __decorateClass([
|
|
|
4565
4568
|
__decorateClass([
|
|
4566
4569
|
(0, import_typeorm51.Column)({ name: "description", type: "text", nullable: true })
|
|
4567
4570
|
], StripeWalletTransaction.prototype, "description", 2);
|
|
4571
|
+
__decorateClass([
|
|
4572
|
+
(0, import_typeorm51.Column)({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
|
|
4573
|
+
], StripeWalletTransaction.prototype, "depositAmountCents", 2);
|
|
4574
|
+
__decorateClass([
|
|
4575
|
+
(0, import_typeorm51.Column)({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4576
|
+
], StripeWalletTransaction.prototype, "platformFeeCents", 2);
|
|
4577
|
+
__decorateClass([
|
|
4578
|
+
(0, import_typeorm51.Column)({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
|
|
4579
|
+
], StripeWalletTransaction.prototype, "taxCents", 2);
|
|
4580
|
+
__decorateClass([
|
|
4581
|
+
(0, import_typeorm51.Column)({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4582
|
+
], StripeWalletTransaction.prototype, "stripeFeeCents", 2);
|
|
4583
|
+
__decorateClass([
|
|
4584
|
+
(0, import_typeorm51.Column)({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
|
|
4585
|
+
], StripeWalletTransaction.prototype, "totalPaidCents", 2);
|
|
4586
|
+
__decorateClass([
|
|
4587
|
+
(0, import_typeorm51.Column)({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
|
|
4588
|
+
], StripeWalletTransaction.prototype, "netReceivedCents", 2);
|
|
4589
|
+
__decorateClass([
|
|
4590
|
+
(0, import_typeorm51.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4591
|
+
], StripeWalletTransaction.prototype, "stripeChargeId", 2);
|
|
4592
|
+
__decorateClass([
|
|
4593
|
+
(0, import_typeorm51.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4594
|
+
], StripeWalletTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
4595
|
+
__decorateClass([
|
|
4596
|
+
(0, import_typeorm51.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4597
|
+
], StripeWalletTransaction.prototype, "completedAt", 2);
|
|
4568
4598
|
StripeWalletTransaction = __decorateClass([
|
|
4569
4599
|
(0, import_typeorm51.Entity)("stripe_wallet_transactions")
|
|
4570
4600
|
], StripeWalletTransaction);
|
|
@@ -4602,6 +4632,9 @@ __decorateClass([
|
|
|
4602
4632
|
__decorateClass([
|
|
4603
4633
|
(0, import_typeorm52.Column)({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4604
4634
|
], StripeWallet.prototype, "walletBalance", 2);
|
|
4635
|
+
__decorateClass([
|
|
4636
|
+
(0, import_typeorm52.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0 })
|
|
4637
|
+
], StripeWallet.prototype, "walletBalanceCents", 2);
|
|
4605
4638
|
__decorateClass([
|
|
4606
4639
|
(0, import_typeorm52.Column)({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
|
|
4607
4640
|
], StripeWallet.prototype, "onboardingStatus", 2);
|
package/dist/index.mjs
CHANGED
|
@@ -673,7 +673,8 @@ import {
|
|
|
673
673
|
IsString as IsString7,
|
|
674
674
|
IsNotEmpty as IsNotEmpty22,
|
|
675
675
|
IsIn as IsIn2,
|
|
676
|
-
ValidateIf
|
|
676
|
+
ValidateIf,
|
|
677
|
+
IsOptional as IsOptional7
|
|
677
678
|
} from "class-validator";
|
|
678
679
|
var ClientProfileQuestionDto = class {
|
|
679
680
|
};
|
|
@@ -695,6 +696,9 @@ __decorateClass([
|
|
|
695
696
|
__decorateClass([
|
|
696
697
|
IsNotEmpty22({ message: "Please enter answer." })
|
|
697
698
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
699
|
+
__decorateClass([
|
|
700
|
+
IsOptional7()
|
|
701
|
+
], ClientProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
698
702
|
__decorateClass([
|
|
699
703
|
ValidateIf((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
700
704
|
IsNotEmpty22({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
@@ -706,7 +710,7 @@ import {
|
|
|
706
710
|
IsNotEmpty as IsNotEmpty23,
|
|
707
711
|
IsEmail as IsEmail3,
|
|
708
712
|
IsString as IsString8,
|
|
709
|
-
IsOptional as
|
|
713
|
+
IsOptional as IsOptional8
|
|
710
714
|
} from "class-validator";
|
|
711
715
|
var ClientCreateAccountDto = class {
|
|
712
716
|
};
|
|
@@ -724,7 +728,7 @@ __decorateClass([
|
|
|
724
728
|
IsString8({ message: "Please enter valid company name." })
|
|
725
729
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
726
730
|
__decorateClass([
|
|
727
|
-
|
|
731
|
+
IsOptional8()
|
|
728
732
|
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
729
733
|
|
|
730
734
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
@@ -785,7 +789,7 @@ __decorateClass([
|
|
|
785
789
|
|
|
786
790
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
787
791
|
import { Transform } from "class-transformer";
|
|
788
|
-
import { IsNotEmpty as IsNotEmpty25, IsOptional as
|
|
792
|
+
import { IsNotEmpty as IsNotEmpty25, IsOptional as IsOptional9, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength5 } from "class-validator";
|
|
789
793
|
var UpdateSubAdminDto = class {
|
|
790
794
|
};
|
|
791
795
|
__decorateClass([
|
|
@@ -807,7 +811,7 @@ __decorateClass([
|
|
|
807
811
|
IsNotEmpty25({ message: "Please enter mobile number." })
|
|
808
812
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
809
813
|
__decorateClass([
|
|
810
|
-
|
|
814
|
+
IsOptional9(),
|
|
811
815
|
Transform(({ value }) => value === null || value === "" ? void 0 : value),
|
|
812
816
|
MinLength5(6, { message: "Password must be at least 6 characters." }),
|
|
813
817
|
MaxLength5(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -836,7 +840,7 @@ import {
|
|
|
836
840
|
IsEmail as IsEmail4,
|
|
837
841
|
Length as Length2,
|
|
838
842
|
IsUrl as IsUrl2,
|
|
839
|
-
IsOptional as
|
|
843
|
+
IsOptional as IsOptional10,
|
|
840
844
|
ValidateIf as ValidateIf2
|
|
841
845
|
} from "class-validator";
|
|
842
846
|
var UpdateCompanyProfileDto = class {
|
|
@@ -849,7 +853,7 @@ __decorateClass([
|
|
|
849
853
|
})
|
|
850
854
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
851
855
|
__decorateClass([
|
|
852
|
-
|
|
856
|
+
IsOptional10(),
|
|
853
857
|
ValidateIf2((o) => o.webSite !== ""),
|
|
854
858
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
855
859
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
@@ -874,7 +878,7 @@ __decorateClass([
|
|
|
874
878
|
IsEmail4()
|
|
875
879
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
876
880
|
__decorateClass([
|
|
877
|
-
|
|
881
|
+
IsOptional10(),
|
|
878
882
|
IsString10({ message: "About company must be a string." })
|
|
879
883
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
880
884
|
|
|
@@ -910,7 +914,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
910
914
|
// src/modules/question/dto/create-question.dto.ts
|
|
911
915
|
import {
|
|
912
916
|
IsNotEmpty as IsNotEmpty28,
|
|
913
|
-
IsOptional as
|
|
917
|
+
IsOptional as IsOptional11,
|
|
914
918
|
IsBoolean as IsBoolean2
|
|
915
919
|
} from "class-validator";
|
|
916
920
|
var CreateQuestionDto = class {
|
|
@@ -928,7 +932,7 @@ __decorateClass([
|
|
|
928
932
|
IsNotEmpty28({ message: "Please enter options." })
|
|
929
933
|
], CreateQuestionDto.prototype, "options", 2);
|
|
930
934
|
__decorateClass([
|
|
931
|
-
|
|
935
|
+
IsOptional11(),
|
|
932
936
|
IsBoolean2({ message: "Whether the question status active" })
|
|
933
937
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
934
938
|
|
|
@@ -964,7 +968,7 @@ import {
|
|
|
964
968
|
IsArray,
|
|
965
969
|
ArrayNotEmpty,
|
|
966
970
|
IsNumber,
|
|
967
|
-
IsOptional as
|
|
971
|
+
IsOptional as IsOptional12,
|
|
968
972
|
IsEnum as IsEnum10,
|
|
969
973
|
Min,
|
|
970
974
|
ValidateIf as ValidateIf3,
|
|
@@ -992,7 +996,7 @@ var JobBasicInformationDto = class {
|
|
|
992
996
|
}
|
|
993
997
|
};
|
|
994
998
|
__decorateClass([
|
|
995
|
-
|
|
999
|
+
IsOptional12(),
|
|
996
1000
|
Type(() => Boolean)
|
|
997
1001
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
998
1002
|
__decorateClass([
|
|
@@ -1000,11 +1004,11 @@ __decorateClass([
|
|
|
1000
1004
|
IsString12({ message: "Job role must be a string" })
|
|
1001
1005
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
1002
1006
|
__decorateClass([
|
|
1003
|
-
|
|
1007
|
+
IsOptional12(),
|
|
1004
1008
|
IsString12({ message: "Project name must be a string" })
|
|
1005
1009
|
], JobBasicInformationDto.prototype, "projectName", 2);
|
|
1006
1010
|
__decorateClass([
|
|
1007
|
-
|
|
1011
|
+
IsOptional12(),
|
|
1008
1012
|
IsString12({ message: "Note must be a string" })
|
|
1009
1013
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
1010
1014
|
__decorateClass([
|
|
@@ -1062,7 +1066,7 @@ __decorateClass([
|
|
|
1062
1066
|
Type(() => Number)
|
|
1063
1067
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1064
1068
|
__decorateClass([
|
|
1065
|
-
|
|
1069
|
+
IsOptional12()
|
|
1066
1070
|
], JobBasicInformationDto.prototype, "hideExpectedSalaryFrom", 2);
|
|
1067
1071
|
__decorateClass([
|
|
1068
1072
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1071,7 +1075,7 @@ __decorateClass([
|
|
|
1071
1075
|
Type(() => Number)
|
|
1072
1076
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1073
1077
|
__decorateClass([
|
|
1074
|
-
|
|
1078
|
+
IsOptional12()
|
|
1075
1079
|
], JobBasicInformationDto.prototype, "hideExpectedSalaryTo", 2);
|
|
1076
1080
|
__decorateClass([
|
|
1077
1081
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1093,12 +1097,12 @@ __decorateClass([
|
|
|
1093
1097
|
__decorateClass([
|
|
1094
1098
|
ValidateIf3((o) => !o.isDraft),
|
|
1095
1099
|
IsString12({ message: "Onboarding TAT must be a string" }),
|
|
1096
|
-
|
|
1100
|
+
IsOptional12()
|
|
1097
1101
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1098
1102
|
__decorateClass([
|
|
1099
1103
|
ValidateIf3((o) => !o.isDraft),
|
|
1100
1104
|
IsString12({ message: "Candidate communication skills must be a string" }),
|
|
1101
|
-
|
|
1105
|
+
IsOptional12()
|
|
1102
1106
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1103
1107
|
__decorateClass([
|
|
1104
1108
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1111,21 +1115,21 @@ __decorateClass([
|
|
|
1111
1115
|
IsString12({ message: "Years of experience must be a string" })
|
|
1112
1116
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1113
1117
|
__decorateClass([
|
|
1114
|
-
|
|
1118
|
+
IsOptional12(),
|
|
1115
1119
|
IsString12({ message: "Business industry must be a string" })
|
|
1116
1120
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1117
1121
|
__decorateClass([
|
|
1118
|
-
|
|
1122
|
+
IsOptional12(),
|
|
1119
1123
|
IsString12({ message: "Additional comment must be a string" }),
|
|
1120
1124
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1121
1125
|
], JobBasicInformationDto.prototype, "additionalComment", 2);
|
|
1122
1126
|
|
|
1123
1127
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1124
|
-
import { IsOptional as
|
|
1128
|
+
import { IsOptional as IsOptional13, IsString as IsString13, MaxLength as MaxLength7 } from "class-validator";
|
|
1125
1129
|
var JobAdditionalCommentDto = class {
|
|
1126
1130
|
};
|
|
1127
1131
|
__decorateClass([
|
|
1128
|
-
|
|
1132
|
+
IsOptional13(),
|
|
1129
1133
|
IsString13({ message: "Additional comment must be a string" }),
|
|
1130
1134
|
MaxLength7(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1131
1135
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
@@ -1207,7 +1211,7 @@ __decorateClass([
|
|
|
1207
1211
|
|
|
1208
1212
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1209
1213
|
import {
|
|
1210
|
-
IsOptional as
|
|
1214
|
+
IsOptional as IsOptional14,
|
|
1211
1215
|
IsString as IsString16,
|
|
1212
1216
|
IsEmail as IsEmail5,
|
|
1213
1217
|
IsNumber as IsNumber2,
|
|
@@ -1257,7 +1261,7 @@ __decorateClass([
|
|
|
1257
1261
|
IsString16({ message: "Please enter valid mobile number." })
|
|
1258
1262
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1259
1263
|
__decorateClass([
|
|
1260
|
-
|
|
1264
|
+
IsOptional14(),
|
|
1261
1265
|
IsNumber2()
|
|
1262
1266
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1263
1267
|
__decorateClass([
|
|
@@ -1285,35 +1289,35 @@ __decorateClass([
|
|
|
1285
1289
|
})
|
|
1286
1290
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1287
1291
|
__decorateClass([
|
|
1288
|
-
|
|
1292
|
+
IsOptional14(),
|
|
1289
1293
|
IsString16()
|
|
1290
1294
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1291
1295
|
__decorateClass([
|
|
1292
|
-
|
|
1296
|
+
IsOptional14(),
|
|
1293
1297
|
IsString16()
|
|
1294
1298
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1295
1299
|
__decorateClass([
|
|
1296
|
-
|
|
1300
|
+
IsOptional14(),
|
|
1297
1301
|
IsString16()
|
|
1298
1302
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1299
1303
|
__decorateClass([
|
|
1300
|
-
|
|
1304
|
+
IsOptional14(),
|
|
1301
1305
|
IsString16()
|
|
1302
1306
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1303
1307
|
__decorateClass([
|
|
1304
|
-
|
|
1308
|
+
IsOptional14(),
|
|
1305
1309
|
IsString16()
|
|
1306
1310
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1307
1311
|
__decorateClass([
|
|
1308
|
-
|
|
1312
|
+
IsOptional14(),
|
|
1309
1313
|
IsString16()
|
|
1310
1314
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1311
1315
|
__decorateClass([
|
|
1312
|
-
|
|
1316
|
+
IsOptional14(),
|
|
1313
1317
|
IsString16()
|
|
1314
1318
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1315
1319
|
__decorateClass([
|
|
1316
|
-
|
|
1320
|
+
IsOptional14(),
|
|
1317
1321
|
IsString16()
|
|
1318
1322
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1319
1323
|
|
|
@@ -1328,7 +1332,7 @@ var BANK_PATTERN = {
|
|
|
1328
1332
|
import {
|
|
1329
1333
|
IsEnum as IsEnum13,
|
|
1330
1334
|
IsNotEmpty as IsNotEmpty34,
|
|
1331
|
-
IsOptional as
|
|
1335
|
+
IsOptional as IsOptional15,
|
|
1332
1336
|
ValidateIf as ValidateIf4
|
|
1333
1337
|
} from "class-validator";
|
|
1334
1338
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1348,7 +1352,7 @@ __decorateClass([
|
|
|
1348
1352
|
IsNotEmpty34({ message: "Please enter Email." })
|
|
1349
1353
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1350
1354
|
__decorateClass([
|
|
1351
|
-
|
|
1355
|
+
IsOptional15()
|
|
1352
1356
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1353
1357
|
__decorateClass([
|
|
1354
1358
|
IsNotEmpty34({ message: "Please enter Account Number." })
|
|
@@ -1376,7 +1380,7 @@ __decorateClass([
|
|
|
1376
1380
|
IsNotEmpty34({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1377
1381
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1378
1382
|
__decorateClass([
|
|
1379
|
-
|
|
1383
|
+
IsOptional15()
|
|
1380
1384
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1381
1385
|
__decorateClass([
|
|
1382
1386
|
IsEnum13(BankAccountScope, {
|
|
@@ -1438,7 +1442,7 @@ import {
|
|
|
1438
1442
|
IsEnum as IsEnum15,
|
|
1439
1443
|
IsInt,
|
|
1440
1444
|
IsNotEmpty as IsNotEmpty35,
|
|
1441
|
-
IsOptional as
|
|
1445
|
+
IsOptional as IsOptional16,
|
|
1442
1446
|
IsString as IsString17,
|
|
1443
1447
|
Max as Max2,
|
|
1444
1448
|
Min as Min2
|
|
@@ -4592,6 +4596,33 @@ __decorateClass([
|
|
|
4592
4596
|
__decorateClass([
|
|
4593
4597
|
Column51({ name: "description", type: "text", nullable: true })
|
|
4594
4598
|
], StripeWalletTransaction.prototype, "description", 2);
|
|
4599
|
+
__decorateClass([
|
|
4600
|
+
Column51({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
|
|
4601
|
+
], StripeWalletTransaction.prototype, "depositAmountCents", 2);
|
|
4602
|
+
__decorateClass([
|
|
4603
|
+
Column51({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4604
|
+
], StripeWalletTransaction.prototype, "platformFeeCents", 2);
|
|
4605
|
+
__decorateClass([
|
|
4606
|
+
Column51({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
|
|
4607
|
+
], StripeWalletTransaction.prototype, "taxCents", 2);
|
|
4608
|
+
__decorateClass([
|
|
4609
|
+
Column51({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4610
|
+
], StripeWalletTransaction.prototype, "stripeFeeCents", 2);
|
|
4611
|
+
__decorateClass([
|
|
4612
|
+
Column51({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
|
|
4613
|
+
], StripeWalletTransaction.prototype, "totalPaidCents", 2);
|
|
4614
|
+
__decorateClass([
|
|
4615
|
+
Column51({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
|
|
4616
|
+
], StripeWalletTransaction.prototype, "netReceivedCents", 2);
|
|
4617
|
+
__decorateClass([
|
|
4618
|
+
Column51({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4619
|
+
], StripeWalletTransaction.prototype, "stripeChargeId", 2);
|
|
4620
|
+
__decorateClass([
|
|
4621
|
+
Column51({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4622
|
+
], StripeWalletTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
4623
|
+
__decorateClass([
|
|
4624
|
+
Column51({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4625
|
+
], StripeWalletTransaction.prototype, "completedAt", 2);
|
|
4595
4626
|
StripeWalletTransaction = __decorateClass([
|
|
4596
4627
|
Entity50("stripe_wallet_transactions")
|
|
4597
4628
|
], StripeWalletTransaction);
|
|
@@ -4629,6 +4660,9 @@ __decorateClass([
|
|
|
4629
4660
|
__decorateClass([
|
|
4630
4661
|
Column52({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4631
4662
|
], StripeWallet.prototype, "walletBalance", 2);
|
|
4663
|
+
__decorateClass([
|
|
4664
|
+
Column52({ name: "wallet_balance_cents", type: "bigint", default: 0 })
|
|
4665
|
+
], StripeWallet.prototype, "walletBalanceCents", 2);
|
|
4632
4666
|
__decorateClass([
|
|
4633
4667
|
Column52({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
|
|
4634
4668
|
], StripeWallet.prototype, "onboardingStatus", 2);
|
|
@@ -5024,7 +5058,7 @@ __decorateClass([
|
|
|
5024
5058
|
Max2(5, { message: "Rating must be at most 5" })
|
|
5025
5059
|
], CreateRatingDto.prototype, "rating", 2);
|
|
5026
5060
|
__decorateClass([
|
|
5027
|
-
|
|
5061
|
+
IsOptional16(),
|
|
5028
5062
|
IsString17({ message: "Review must be a string" })
|
|
5029
5063
|
], CreateRatingDto.prototype, "review", 2);
|
|
5030
5064
|
|
|
@@ -5041,7 +5075,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
5041
5075
|
};
|
|
5042
5076
|
|
|
5043
5077
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
5044
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty36, IsOptional as
|
|
5078
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional17 } from "class-validator";
|
|
5045
5079
|
var CreateCompanyRoleDto = class {
|
|
5046
5080
|
};
|
|
5047
5081
|
__decorateClass([
|
|
@@ -5059,12 +5093,12 @@ __decorateClass([
|
|
|
5059
5093
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
5060
5094
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
5061
5095
|
__decorateClass([
|
|
5062
|
-
|
|
5096
|
+
IsOptional17(),
|
|
5063
5097
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
5064
5098
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
5065
5099
|
|
|
5066
5100
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
5067
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty37, IsOptional as
|
|
5101
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty37, IsOptional as IsOptional18 } from "class-validator";
|
|
5068
5102
|
var UpdateCompanyRoleDto = class {
|
|
5069
5103
|
};
|
|
5070
5104
|
__decorateClass([
|
|
@@ -5082,7 +5116,7 @@ __decorateClass([
|
|
|
5082
5116
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
5083
5117
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
5084
5118
|
__decorateClass([
|
|
5085
|
-
|
|
5119
|
+
IsOptional18(),
|
|
5086
5120
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
5087
5121
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
5088
5122
|
|
|
@@ -5104,7 +5138,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
5104
5138
|
import {
|
|
5105
5139
|
ArrayMinSize,
|
|
5106
5140
|
IsNotEmpty as IsNotEmpty38,
|
|
5107
|
-
IsOptional as
|
|
5141
|
+
IsOptional as IsOptional19,
|
|
5108
5142
|
IsString as IsString20,
|
|
5109
5143
|
MaxLength as MaxLength11,
|
|
5110
5144
|
ValidateNested
|
|
@@ -5113,7 +5147,7 @@ import { Type as Type2 } from "class-transformer";
|
|
|
5113
5147
|
var ExperienceDto = class {
|
|
5114
5148
|
};
|
|
5115
5149
|
__decorateClass([
|
|
5116
|
-
|
|
5150
|
+
IsOptional19()
|
|
5117
5151
|
], ExperienceDto.prototype, "uuid", 2);
|
|
5118
5152
|
__decorateClass([
|
|
5119
5153
|
IsNotEmpty38(),
|
|
@@ -5128,7 +5162,7 @@ __decorateClass([
|
|
|
5128
5162
|
IsString20()
|
|
5129
5163
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
5130
5164
|
__decorateClass([
|
|
5131
|
-
|
|
5165
|
+
IsOptional19(),
|
|
5132
5166
|
IsString20(),
|
|
5133
5167
|
MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
|
|
5134
5168
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -5199,12 +5233,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
5199
5233
|
};
|
|
5200
5234
|
|
|
5201
5235
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
5202
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty41, IsOptional as
|
|
5236
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty41, IsOptional as IsOptional22, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
5203
5237
|
import { Type as Type3 } from "class-transformer";
|
|
5204
5238
|
var EducationDto = class {
|
|
5205
5239
|
};
|
|
5206
5240
|
__decorateClass([
|
|
5207
|
-
|
|
5241
|
+
IsOptional22()
|
|
5208
5242
|
], EducationDto.prototype, "uuid", 2);
|
|
5209
5243
|
__decorateClass([
|
|
5210
5244
|
IsString23(),
|
|
@@ -5234,12 +5268,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
5234
5268
|
};
|
|
5235
5269
|
|
|
5236
5270
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
5237
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty42, IsOptional as
|
|
5271
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional23, IsDateString, MaxLength as MaxLength13, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
5238
5272
|
import { Type as Type4 } from "class-transformer";
|
|
5239
5273
|
var ProjectDto = class {
|
|
5240
5274
|
};
|
|
5241
5275
|
__decorateClass([
|
|
5242
|
-
|
|
5276
|
+
IsOptional23()
|
|
5243
5277
|
], ProjectDto.prototype, "uuid", 2);
|
|
5244
5278
|
__decorateClass([
|
|
5245
5279
|
IsString24(),
|
|
@@ -5254,33 +5288,33 @@ __decorateClass([
|
|
|
5254
5288
|
IsNotEmpty42({ message: "Please Enter End Date " })
|
|
5255
5289
|
], ProjectDto.prototype, "endDate", 2);
|
|
5256
5290
|
__decorateClass([
|
|
5257
|
-
|
|
5291
|
+
IsOptional23(),
|
|
5258
5292
|
IsString24()
|
|
5259
5293
|
], ProjectDto.prototype, "clientName", 2);
|
|
5260
5294
|
__decorateClass([
|
|
5261
|
-
|
|
5295
|
+
IsOptional23(),
|
|
5262
5296
|
IsString24()
|
|
5263
5297
|
], ProjectDto.prototype, "gitLink", 2);
|
|
5264
5298
|
__decorateClass([
|
|
5265
|
-
|
|
5299
|
+
IsOptional23(),
|
|
5266
5300
|
IsString24(),
|
|
5267
5301
|
MaxLength13(5e3, { message: "Description must not exceed 5000 characters" })
|
|
5268
5302
|
], ProjectDto.prototype, "description", 2);
|
|
5269
5303
|
var CaseStudyDto = class {
|
|
5270
5304
|
};
|
|
5271
5305
|
__decorateClass([
|
|
5272
|
-
|
|
5306
|
+
IsOptional23()
|
|
5273
5307
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
5274
5308
|
__decorateClass([
|
|
5275
5309
|
IsString24(),
|
|
5276
5310
|
IsNotEmpty42({ message: "Please Enter Project Name " })
|
|
5277
5311
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
5278
5312
|
__decorateClass([
|
|
5279
|
-
|
|
5313
|
+
IsOptional23(),
|
|
5280
5314
|
IsString24()
|
|
5281
5315
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
5282
5316
|
__decorateClass([
|
|
5283
|
-
|
|
5317
|
+
IsOptional23(),
|
|
5284
5318
|
IsString24(),
|
|
5285
5319
|
MaxLength13(5e3, { message: "Description must not exceed 5000 characters" })
|
|
5286
5320
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -5310,7 +5344,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
5310
5344
|
};
|
|
5311
5345
|
|
|
5312
5346
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
5313
|
-
import { IsArray as IsArray8, IsString as IsString25, IsOptional as
|
|
5347
|
+
import { IsArray as IsArray8, IsString as IsString25, IsOptional as IsOptional24 } from "class-validator";
|
|
5314
5348
|
import { Type as Type5 } from "class-transformer";
|
|
5315
5349
|
var FreelancerSkillDto = class {
|
|
5316
5350
|
constructor() {
|
|
@@ -5320,19 +5354,19 @@ var FreelancerSkillDto = class {
|
|
|
5320
5354
|
}
|
|
5321
5355
|
};
|
|
5322
5356
|
__decorateClass([
|
|
5323
|
-
|
|
5357
|
+
IsOptional24(),
|
|
5324
5358
|
IsArray8(),
|
|
5325
5359
|
Type5(() => String),
|
|
5326
5360
|
IsString25({ each: true })
|
|
5327
5361
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
5328
5362
|
__decorateClass([
|
|
5329
|
-
|
|
5363
|
+
IsOptional24(),
|
|
5330
5364
|
IsArray8(),
|
|
5331
5365
|
Type5(() => String),
|
|
5332
5366
|
IsString25({ each: true })
|
|
5333
5367
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
5334
5368
|
__decorateClass([
|
|
5335
|
-
|
|
5369
|
+
IsOptional24(),
|
|
5336
5370
|
IsArray8(),
|
|
5337
5371
|
Type5(() => String),
|
|
5338
5372
|
IsString25({ each: true })
|
|
@@ -5355,7 +5389,7 @@ import {
|
|
|
5355
5389
|
IsString as IsString26,
|
|
5356
5390
|
IsEmail as IsEmail10,
|
|
5357
5391
|
IsBoolean as IsBoolean10,
|
|
5358
|
-
IsOptional as
|
|
5392
|
+
IsOptional as IsOptional25,
|
|
5359
5393
|
IsEnum as IsEnum16,
|
|
5360
5394
|
IsNumber as IsNumber3,
|
|
5361
5395
|
IsUrl as IsUrl3,
|
|
@@ -5438,23 +5472,23 @@ __decorateClass([
|
|
|
5438
5472
|
IsNotEmpty44({ message: "Please enter availability to join." })
|
|
5439
5473
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
5440
5474
|
__decorateClass([
|
|
5441
|
-
|
|
5475
|
+
IsOptional25(),
|
|
5442
5476
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
5443
5477
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
5444
5478
|
__decorateClass([
|
|
5445
|
-
|
|
5479
|
+
IsOptional25(),
|
|
5446
5480
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
5447
5481
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
5448
5482
|
__decorateClass([
|
|
5449
|
-
|
|
5483
|
+
IsOptional25(),
|
|
5450
5484
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
5451
5485
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
5452
5486
|
__decorateClass([
|
|
5453
|
-
|
|
5487
|
+
IsOptional25(),
|
|
5454
5488
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
5455
5489
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
5456
5490
|
__decorateClass([
|
|
5457
|
-
|
|
5491
|
+
IsOptional25(),
|
|
5458
5492
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
5459
5493
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
5460
5494
|
|
|
@@ -5463,7 +5497,7 @@ import {
|
|
|
5463
5497
|
IsString as IsString27,
|
|
5464
5498
|
IsEmail as IsEmail11,
|
|
5465
5499
|
IsBoolean as IsBoolean11,
|
|
5466
|
-
IsOptional as
|
|
5500
|
+
IsOptional as IsOptional26,
|
|
5467
5501
|
IsEnum as IsEnum17,
|
|
5468
5502
|
IsNumber as IsNumber4,
|
|
5469
5503
|
IsUrl as IsUrl4,
|
|
@@ -5490,24 +5524,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
5490
5524
|
var UpdateFreelancerDto = class {
|
|
5491
5525
|
};
|
|
5492
5526
|
__decorateClass([
|
|
5493
|
-
|
|
5527
|
+
IsOptional26(),
|
|
5494
5528
|
IsString27({ message: "Full name must be a string" }),
|
|
5495
5529
|
MaxLength16(100, { message: "Full name must not exceed 100 characters" })
|
|
5496
5530
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
5497
5531
|
__decorateClass([
|
|
5498
|
-
|
|
5532
|
+
IsOptional26(),
|
|
5499
5533
|
IsEmail11({}, { message: "Invalid email address" })
|
|
5500
5534
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
5501
5535
|
__decorateClass([
|
|
5502
|
-
|
|
5536
|
+
IsOptional26(),
|
|
5503
5537
|
IsString27({ message: "Mobile code must be a string (e.g., +1)" })
|
|
5504
5538
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
5505
5539
|
__decorateClass([
|
|
5506
|
-
|
|
5540
|
+
IsOptional26(),
|
|
5507
5541
|
IsString27({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
5508
5542
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
5509
5543
|
__decorateClass([
|
|
5510
|
-
|
|
5544
|
+
IsOptional26(),
|
|
5511
5545
|
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
5512
5546
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
5513
5547
|
MaxLength16(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -5516,12 +5550,12 @@ __decorateClass([
|
|
|
5516
5550
|
})
|
|
5517
5551
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
5518
5552
|
__decorateClass([
|
|
5519
|
-
|
|
5553
|
+
IsOptional26(),
|
|
5520
5554
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
5521
5555
|
Type7(() => Boolean)
|
|
5522
5556
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
5523
5557
|
__decorateClass([
|
|
5524
|
-
|
|
5558
|
+
IsOptional26(),
|
|
5525
5559
|
IsEnum17(NatureOfWorkEnum2, {
|
|
5526
5560
|
message: `Nature of work must be one of: ${Object.values(
|
|
5527
5561
|
NatureOfWorkEnum2
|
|
@@ -5529,13 +5563,13 @@ __decorateClass([
|
|
|
5529
5563
|
})
|
|
5530
5564
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
5531
5565
|
__decorateClass([
|
|
5532
|
-
|
|
5566
|
+
IsOptional26(),
|
|
5533
5567
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
5534
5568
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
5535
5569
|
Type7(() => Number)
|
|
5536
5570
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
5537
5571
|
__decorateClass([
|
|
5538
|
-
|
|
5572
|
+
IsOptional26(),
|
|
5539
5573
|
IsEnum17(ModeOfWorkEnum2, {
|
|
5540
5574
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
5541
5575
|
", "
|
|
@@ -5543,7 +5577,7 @@ __decorateClass([
|
|
|
5543
5577
|
})
|
|
5544
5578
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
5545
5579
|
__decorateClass([
|
|
5546
|
-
|
|
5580
|
+
IsOptional26(),
|
|
5547
5581
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
5548
5582
|
Type7(() => Boolean)
|
|
5549
5583
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -5552,23 +5586,23 @@ __decorateClass([
|
|
|
5552
5586
|
IsNotEmpty45({ message: "Please enter availability to join." })
|
|
5553
5587
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
5554
5588
|
__decorateClass([
|
|
5555
|
-
|
|
5589
|
+
IsOptional26(),
|
|
5556
5590
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
5557
5591
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
5558
5592
|
__decorateClass([
|
|
5559
|
-
|
|
5593
|
+
IsOptional26(),
|
|
5560
5594
|
IsString27({ message: "Kaggle profile link must be a string" })
|
|
5561
5595
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
5562
5596
|
__decorateClass([
|
|
5563
|
-
|
|
5597
|
+
IsOptional26(),
|
|
5564
5598
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
5565
5599
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
5566
5600
|
__decorateClass([
|
|
5567
|
-
|
|
5601
|
+
IsOptional26(),
|
|
5568
5602
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
5569
5603
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
5570
5604
|
__decorateClass([
|
|
5571
|
-
|
|
5605
|
+
IsOptional26(),
|
|
5572
5606
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
5573
5607
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
5574
5608
|
|
|
@@ -5589,7 +5623,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
5589
5623
|
import {
|
|
5590
5624
|
IsNotEmpty as IsNotEmpty46,
|
|
5591
5625
|
IsEmail as IsEmail12,
|
|
5592
|
-
IsOptional as
|
|
5626
|
+
IsOptional as IsOptional27,
|
|
5593
5627
|
IsString as IsString28,
|
|
5594
5628
|
IsArray as IsArray9,
|
|
5595
5629
|
MinLength as MinLength14,
|
|
@@ -5660,7 +5694,7 @@ __decorateClass([
|
|
|
5660
5694
|
IsString28()
|
|
5661
5695
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
5662
5696
|
__decorateClass([
|
|
5663
|
-
|
|
5697
|
+
IsOptional27(),
|
|
5664
5698
|
IsString28()
|
|
5665
5699
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
5666
5700
|
|
|
@@ -5678,7 +5712,7 @@ import { Transform as Transform3 } from "class-transformer";
|
|
|
5678
5712
|
import {
|
|
5679
5713
|
IsNotEmpty as IsNotEmpty48,
|
|
5680
5714
|
IsEmail as IsEmail13,
|
|
5681
|
-
IsOptional as
|
|
5715
|
+
IsOptional as IsOptional28,
|
|
5682
5716
|
IsString as IsString30,
|
|
5683
5717
|
IsArray as IsArray10,
|
|
5684
5718
|
MinLength as MinLength15,
|
|
@@ -5713,7 +5747,7 @@ __decorateClass([
|
|
|
5713
5747
|
IsEmail13()
|
|
5714
5748
|
], UpdateClientDto.prototype, "email", 2);
|
|
5715
5749
|
__decorateClass([
|
|
5716
|
-
|
|
5750
|
+
IsOptional28(),
|
|
5717
5751
|
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
5718
5752
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
5719
5753
|
MaxLength18(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -5746,7 +5780,7 @@ __decorateClass([
|
|
|
5746
5780
|
IsString30()
|
|
5747
5781
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
5748
5782
|
__decorateClass([
|
|
5749
|
-
|
|
5783
|
+
IsOptional28(),
|
|
5750
5784
|
IsString30()
|
|
5751
5785
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
5752
5786
|
|
|
@@ -5757,7 +5791,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
5757
5791
|
};
|
|
5758
5792
|
|
|
5759
5793
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
5760
|
-
import { IsOptional as
|
|
5794
|
+
import { IsOptional as IsOptional29, IsEnum as IsEnum20, IsString as IsString31, IsNotEmpty as IsNotEmpty49, IsIn as IsIn3 } from "class-validator";
|
|
5761
5795
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
5762
5796
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
5763
5797
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -5768,7 +5802,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
5768
5802
|
var FreelancerDeclarationDto = class {
|
|
5769
5803
|
};
|
|
5770
5804
|
__decorateClass([
|
|
5771
|
-
|
|
5805
|
+
IsOptional29(),
|
|
5772
5806
|
IsString31({ message: "UUID must be a string" })
|
|
5773
5807
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
5774
5808
|
__decorateClass([
|
|
@@ -5792,35 +5826,35 @@ var CMS_PATTERNS = {
|
|
|
5792
5826
|
};
|
|
5793
5827
|
|
|
5794
5828
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
5795
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty50, IsOptional as
|
|
5829
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty50, IsOptional as IsOptional30 } from "class-validator";
|
|
5796
5830
|
var CreateCmsDto = class {
|
|
5797
5831
|
};
|
|
5798
5832
|
__decorateClass([
|
|
5799
5833
|
IsNotEmpty50({ message: "Please enter name." })
|
|
5800
5834
|
], CreateCmsDto.prototype, "title", 2);
|
|
5801
5835
|
__decorateClass([
|
|
5802
|
-
|
|
5836
|
+
IsOptional30()
|
|
5803
5837
|
], CreateCmsDto.prototype, "content", 2);
|
|
5804
5838
|
__decorateClass([
|
|
5805
|
-
|
|
5839
|
+
IsOptional30(),
|
|
5806
5840
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
5807
5841
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
5808
5842
|
|
|
5809
5843
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
5810
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty51, IsOptional as
|
|
5844
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty51, IsOptional as IsOptional31 } from "class-validator";
|
|
5811
5845
|
var UpdateCmsDto = class {
|
|
5812
5846
|
};
|
|
5813
5847
|
__decorateClass([
|
|
5814
|
-
|
|
5848
|
+
IsOptional31()
|
|
5815
5849
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
5816
5850
|
__decorateClass([
|
|
5817
5851
|
IsNotEmpty51({ message: "Please enter name." })
|
|
5818
5852
|
], UpdateCmsDto.prototype, "title", 2);
|
|
5819
5853
|
__decorateClass([
|
|
5820
|
-
|
|
5854
|
+
IsOptional31()
|
|
5821
5855
|
], UpdateCmsDto.prototype, "content", 2);
|
|
5822
5856
|
__decorateClass([
|
|
5823
|
-
|
|
5857
|
+
IsOptional31(),
|
|
5824
5858
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
5825
5859
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
5826
5860
|
|
|
@@ -5853,7 +5887,7 @@ import {
|
|
|
5853
5887
|
IsString as IsString32,
|
|
5854
5888
|
IsEnum as IsEnum21,
|
|
5855
5889
|
IsInt as IsInt6,
|
|
5856
|
-
IsOptional as
|
|
5890
|
+
IsOptional as IsOptional32,
|
|
5857
5891
|
IsArray as IsArray11,
|
|
5858
5892
|
IsDateString as IsDateString4,
|
|
5859
5893
|
IsNotEmpty as IsNotEmpty52,
|
|
@@ -5880,7 +5914,7 @@ __decorateClass([
|
|
|
5880
5914
|
IsNotEmpty52({ message: "Job role is required." })
|
|
5881
5915
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
5882
5916
|
__decorateClass([
|
|
5883
|
-
|
|
5917
|
+
IsOptional32(),
|
|
5884
5918
|
IsString32({ message: "Note must be a string." })
|
|
5885
5919
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
5886
5920
|
__decorateClass([
|
|
@@ -5939,7 +5973,7 @@ __decorateClass([
|
|
|
5939
5973
|
)
|
|
5940
5974
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5941
5975
|
__decorateClass([
|
|
5942
|
-
|
|
5976
|
+
IsOptional32(),
|
|
5943
5977
|
IsString32({ message: "Additional comment must be a string." })
|
|
5944
5978
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
5945
5979
|
__decorateClass([
|
|
@@ -5961,7 +5995,7 @@ import {
|
|
|
5961
5995
|
IsString as IsString33,
|
|
5962
5996
|
IsEnum as IsEnum22,
|
|
5963
5997
|
IsInt as IsInt7,
|
|
5964
|
-
IsOptional as
|
|
5998
|
+
IsOptional as IsOptional33,
|
|
5965
5999
|
IsArray as IsArray12,
|
|
5966
6000
|
IsDateString as IsDateString5,
|
|
5967
6001
|
IsNotEmpty as IsNotEmpty53,
|
|
@@ -5988,7 +6022,7 @@ __decorateClass([
|
|
|
5988
6022
|
IsNotEmpty53({ message: "Job role is required." })
|
|
5989
6023
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
5990
6024
|
__decorateClass([
|
|
5991
|
-
|
|
6025
|
+
IsOptional33(),
|
|
5992
6026
|
IsString33({ message: "Note must be a string." })
|
|
5993
6027
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
5994
6028
|
__decorateClass([
|
|
@@ -6047,7 +6081,7 @@ __decorateClass([
|
|
|
6047
6081
|
)
|
|
6048
6082
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
6049
6083
|
__decorateClass([
|
|
6050
|
-
|
|
6084
|
+
IsOptional33(),
|
|
6051
6085
|
IsString33({ message: "Additional comment must be a string." })
|
|
6052
6086
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
6053
6087
|
__decorateClass([
|
|
@@ -6070,7 +6104,7 @@ var LEAD_PATTERN = {
|
|
|
6070
6104
|
};
|
|
6071
6105
|
|
|
6072
6106
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
6073
|
-
import { IsString as IsString34, IsEmail as IsEmail14, IsOptional as
|
|
6107
|
+
import { IsString as IsString34, IsEmail as IsEmail14, IsOptional as IsOptional34, IsEnum as IsEnum23 } from "class-validator";
|
|
6074
6108
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
6075
6109
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
6076
6110
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -6091,7 +6125,7 @@ __decorateClass([
|
|
|
6091
6125
|
IsString34({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
6092
6126
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
6093
6127
|
__decorateClass([
|
|
6094
|
-
|
|
6128
|
+
IsOptional34(),
|
|
6095
6129
|
IsString34({ message: "Description must be a string" })
|
|
6096
6130
|
], CreateLeadDto.prototype, "description", 2);
|
|
6097
6131
|
__decorateClass([
|
|
@@ -6115,7 +6149,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
6115
6149
|
};
|
|
6116
6150
|
|
|
6117
6151
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
6118
|
-
import { IsNotEmpty as IsNotEmpty54, IsOptional as
|
|
6152
|
+
import { IsNotEmpty as IsNotEmpty54, IsOptional as IsOptional35, IsString as IsString35 } from "class-validator";
|
|
6119
6153
|
var CreateAdminRoleDto = class {
|
|
6120
6154
|
};
|
|
6121
6155
|
__decorateClass([
|
|
@@ -6123,12 +6157,12 @@ __decorateClass([
|
|
|
6123
6157
|
IsString35({ message: "Role name must be a string." })
|
|
6124
6158
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
6125
6159
|
__decorateClass([
|
|
6126
|
-
|
|
6160
|
+
IsOptional35(),
|
|
6127
6161
|
IsString35({ message: "Role description must be a string." })
|
|
6128
6162
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
6129
6163
|
|
|
6130
6164
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
6131
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty55, IsOptional as
|
|
6165
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty55, IsOptional as IsOptional36, IsString as IsString36 } from "class-validator";
|
|
6132
6166
|
var UpdateAdminRoleDto = class {
|
|
6133
6167
|
};
|
|
6134
6168
|
__decorateClass([
|
|
@@ -6136,11 +6170,11 @@ __decorateClass([
|
|
|
6136
6170
|
IsString36({ message: "Role name must be a string." })
|
|
6137
6171
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
6138
6172
|
__decorateClass([
|
|
6139
|
-
|
|
6173
|
+
IsOptional36(),
|
|
6140
6174
|
IsString36({ message: "Role description must be a string." })
|
|
6141
6175
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
6142
6176
|
__decorateClass([
|
|
6143
|
-
|
|
6177
|
+
IsOptional36(),
|
|
6144
6178
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
6145
6179
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
6146
6180
|
|
|
@@ -6399,7 +6433,7 @@ import {
|
|
|
6399
6433
|
IsDateString as IsDateString6,
|
|
6400
6434
|
IsInt as IsInt8,
|
|
6401
6435
|
IsNotEmpty as IsNotEmpty63,
|
|
6402
|
-
IsOptional as
|
|
6436
|
+
IsOptional as IsOptional39,
|
|
6403
6437
|
IsString as IsString41,
|
|
6404
6438
|
Matches as Matches13,
|
|
6405
6439
|
IsNumber as IsNumber10
|
|
@@ -6431,19 +6465,19 @@ __decorateClass([
|
|
|
6431
6465
|
})
|
|
6432
6466
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
6433
6467
|
__decorateClass([
|
|
6434
|
-
|
|
6468
|
+
IsOptional39(),
|
|
6435
6469
|
IsInt8()
|
|
6436
6470
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
6437
6471
|
__decorateClass([
|
|
6438
|
-
|
|
6472
|
+
IsOptional39(),
|
|
6439
6473
|
IsString41()
|
|
6440
6474
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
6441
6475
|
__decorateClass([
|
|
6442
|
-
|
|
6476
|
+
IsOptional39(),
|
|
6443
6477
|
IsString41()
|
|
6444
6478
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
6445
6479
|
__decorateClass([
|
|
6446
|
-
|
|
6480
|
+
IsOptional39(),
|
|
6447
6481
|
IsString41()
|
|
6448
6482
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
6449
6483
|
__decorateClass([
|
|
@@ -6455,7 +6489,7 @@ import {
|
|
|
6455
6489
|
IsDateString as IsDateString7,
|
|
6456
6490
|
IsInt as IsInt9,
|
|
6457
6491
|
IsNotEmpty as IsNotEmpty64,
|
|
6458
|
-
IsOptional as
|
|
6492
|
+
IsOptional as IsOptional40,
|
|
6459
6493
|
IsString as IsString42,
|
|
6460
6494
|
Matches as Matches14,
|
|
6461
6495
|
IsNumber as IsNumber11
|
|
@@ -6487,19 +6521,19 @@ __decorateClass([
|
|
|
6487
6521
|
})
|
|
6488
6522
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
6489
6523
|
__decorateClass([
|
|
6490
|
-
|
|
6524
|
+
IsOptional40(),
|
|
6491
6525
|
IsInt9()
|
|
6492
6526
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
6493
6527
|
__decorateClass([
|
|
6494
|
-
|
|
6528
|
+
IsOptional40(),
|
|
6495
6529
|
IsString42()
|
|
6496
6530
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
6497
6531
|
__decorateClass([
|
|
6498
|
-
|
|
6532
|
+
IsOptional40(),
|
|
6499
6533
|
IsString42()
|
|
6500
6534
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
6501
6535
|
__decorateClass([
|
|
6502
|
-
|
|
6536
|
+
IsOptional40(),
|
|
6503
6537
|
IsString42()
|
|
6504
6538
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
6505
6539
|
__decorateClass([
|