@experts_hub/shared 1.0.93 → 1.0.95
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
CHANGED
|
@@ -10,9 +10,15 @@ declare const AUTHENTICATION_PATTERN: {
|
|
|
10
10
|
revokeSession: string;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
+
declare enum ScopeEnum {
|
|
14
|
+
ADMIN = "ADMIN",
|
|
15
|
+
CLIENT = "CLIENT",
|
|
16
|
+
FREELANCER = "FREELANCER"
|
|
17
|
+
}
|
|
13
18
|
declare class LoginDto {
|
|
14
19
|
email: string;
|
|
15
20
|
password: string;
|
|
21
|
+
scope: ScopeEnum;
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
declare class RefreshDto {
|
|
@@ -293,7 +299,7 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
293
299
|
githubProfileLink: string;
|
|
294
300
|
stackOverflowProfileLink: string;
|
|
295
301
|
portfolioLink: string;
|
|
296
|
-
|
|
302
|
+
onboardingStepCompleted: OnboardingStepEnum;
|
|
297
303
|
}
|
|
298
304
|
|
|
299
305
|
declare class Skill extends BaseEntity {
|
|
@@ -680,4 +686,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
680
686
|
isActive: boolean;
|
|
681
687
|
}
|
|
682
688
|
|
|
683
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetails, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
689
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetails, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,9 +10,15 @@ declare const AUTHENTICATION_PATTERN: {
|
|
|
10
10
|
revokeSession: string;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
+
declare enum ScopeEnum {
|
|
14
|
+
ADMIN = "ADMIN",
|
|
15
|
+
CLIENT = "CLIENT",
|
|
16
|
+
FREELANCER = "FREELANCER"
|
|
17
|
+
}
|
|
13
18
|
declare class LoginDto {
|
|
14
19
|
email: string;
|
|
15
20
|
password: string;
|
|
21
|
+
scope: ScopeEnum;
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
declare class RefreshDto {
|
|
@@ -293,7 +299,7 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
293
299
|
githubProfileLink: string;
|
|
294
300
|
stackOverflowProfileLink: string;
|
|
295
301
|
portfolioLink: string;
|
|
296
|
-
|
|
302
|
+
onboardingStepCompleted: OnboardingStepEnum;
|
|
297
303
|
}
|
|
298
304
|
|
|
299
305
|
declare class Skill extends BaseEntity {
|
|
@@ -680,4 +686,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
680
686
|
isActive: boolean;
|
|
681
687
|
}
|
|
682
688
|
|
|
683
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetails, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
689
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetails, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -87,6 +87,7 @@ __export(index_exports, {
|
|
|
87
87
|
RefreshToken: () => RefreshToken,
|
|
88
88
|
ResumeParserLog: () => ResumeParserLog,
|
|
89
89
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
90
|
+
ScopeEnum: () => ScopeEnum,
|
|
90
91
|
Skill: () => Skill,
|
|
91
92
|
Step: () => Step,
|
|
92
93
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
@@ -112,6 +113,12 @@ var AUTHENTICATION_PATTERN = {
|
|
|
112
113
|
|
|
113
114
|
// src/modules/authentication/dto/login.dto.ts
|
|
114
115
|
var import_class_validator = require("class-validator");
|
|
116
|
+
var ScopeEnum = /* @__PURE__ */ ((ScopeEnum2) => {
|
|
117
|
+
ScopeEnum2["ADMIN"] = "ADMIN";
|
|
118
|
+
ScopeEnum2["CLIENT"] = "CLIENT";
|
|
119
|
+
ScopeEnum2["FREELANCER"] = "FREELANCER";
|
|
120
|
+
return ScopeEnum2;
|
|
121
|
+
})(ScopeEnum || {});
|
|
115
122
|
var LoginDto = class {
|
|
116
123
|
};
|
|
117
124
|
__decorateClass([
|
|
@@ -120,6 +127,11 @@ __decorateClass([
|
|
|
120
127
|
__decorateClass([
|
|
121
128
|
(0, import_class_validator.IsNotEmpty)({ message: "Please enter password." })
|
|
122
129
|
], LoginDto.prototype, "password", 2);
|
|
130
|
+
__decorateClass([
|
|
131
|
+
(0, import_class_validator.IsEnum)(ScopeEnum, {
|
|
132
|
+
message: `Scope must be one of: ${Object.values(ScopeEnum).join(", ")}`
|
|
133
|
+
})
|
|
134
|
+
], LoginDto.prototype, "scope", 2);
|
|
123
135
|
|
|
124
136
|
// src/modules/authentication/dto/refresh.dto.ts
|
|
125
137
|
var import_class_validator2 = require("class-validator");
|
|
@@ -723,7 +735,7 @@ __decorateClass([
|
|
|
723
735
|
enum: OnboardingStepEnum,
|
|
724
736
|
nullable: true
|
|
725
737
|
})
|
|
726
|
-
], FreelancerProfile.prototype, "
|
|
738
|
+
], FreelancerProfile.prototype, "onboardingStepCompleted", 2);
|
|
727
739
|
FreelancerProfile = __decorateClass([
|
|
728
740
|
(0, import_typeorm5.Entity)("freelancer_profiles")
|
|
729
741
|
], FreelancerProfile);
|
|
@@ -1736,6 +1748,7 @@ JobRoles = __decorateClass([
|
|
|
1736
1748
|
RefreshToken,
|
|
1737
1749
|
ResumeParserLog,
|
|
1738
1750
|
SUBADMIN_PATTERN,
|
|
1751
|
+
ScopeEnum,
|
|
1739
1752
|
Skill,
|
|
1740
1753
|
Step,
|
|
1741
1754
|
TypeOfEmploymentEnum,
|
package/dist/index.mjs
CHANGED
|
@@ -21,9 +21,13 @@ var AUTHENTICATION_PATTERN = {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
// src/modules/authentication/dto/login.dto.ts
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
import { IsEnum, IsNotEmpty } from "class-validator";
|
|
25
|
+
var ScopeEnum = /* @__PURE__ */ ((ScopeEnum2) => {
|
|
26
|
+
ScopeEnum2["ADMIN"] = "ADMIN";
|
|
27
|
+
ScopeEnum2["CLIENT"] = "CLIENT";
|
|
28
|
+
ScopeEnum2["FREELANCER"] = "FREELANCER";
|
|
29
|
+
return ScopeEnum2;
|
|
30
|
+
})(ScopeEnum || {});
|
|
27
31
|
var LoginDto = class {
|
|
28
32
|
};
|
|
29
33
|
__decorateClass([
|
|
@@ -32,6 +36,11 @@ __decorateClass([
|
|
|
32
36
|
__decorateClass([
|
|
33
37
|
IsNotEmpty({ message: "Please enter password." })
|
|
34
38
|
], LoginDto.prototype, "password", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
IsEnum(ScopeEnum, {
|
|
41
|
+
message: `Scope must be one of: ${Object.values(ScopeEnum).join(", ")}`
|
|
42
|
+
})
|
|
43
|
+
], LoginDto.prototype, "scope", 2);
|
|
35
44
|
|
|
36
45
|
// src/modules/authentication/dto/refresh.dto.ts
|
|
37
46
|
import {
|
|
@@ -410,7 +419,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
410
419
|
|
|
411
420
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
412
421
|
import {
|
|
413
|
-
IsEnum,
|
|
422
|
+
IsEnum as IsEnum2,
|
|
414
423
|
IsOptional as IsOptional4,
|
|
415
424
|
IsString as IsString8,
|
|
416
425
|
IsArray,
|
|
@@ -722,7 +731,7 @@ __decorateClass([
|
|
|
722
731
|
enum: OnboardingStepEnum,
|
|
723
732
|
nullable: true
|
|
724
733
|
})
|
|
725
|
-
], FreelancerProfile.prototype, "
|
|
734
|
+
], FreelancerProfile.prototype, "onboardingStepCompleted", 2);
|
|
726
735
|
FreelancerProfile = __decorateClass([
|
|
727
736
|
Entity4("freelancer_profiles")
|
|
728
737
|
], FreelancerProfile);
|
|
@@ -1211,19 +1220,19 @@ __decorateClass([
|
|
|
1211
1220
|
], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
|
|
1212
1221
|
__decorateClass([
|
|
1213
1222
|
IsOptional4(),
|
|
1214
|
-
|
|
1223
|
+
IsEnum2(KindOfHire, {
|
|
1215
1224
|
message: `Kind of hiring must be one of: ${Object.values(KindOfHire).join(", ")}`
|
|
1216
1225
|
})
|
|
1217
1226
|
], UpdateCompanyProfileDto.prototype, "kindOfHiring", 2);
|
|
1218
1227
|
__decorateClass([
|
|
1219
1228
|
IsOptional4(),
|
|
1220
|
-
|
|
1229
|
+
IsEnum2(ModeOfHire, {
|
|
1221
1230
|
message: `Mode of hire must be one of: ${Object.values(ModeOfHire).join(", ")}`
|
|
1222
1231
|
})
|
|
1223
1232
|
], UpdateCompanyProfileDto.prototype, "modeOfHire", 2);
|
|
1224
1233
|
__decorateClass([
|
|
1225
1234
|
IsOptional4(),
|
|
1226
|
-
|
|
1235
|
+
IsEnum2(FromUsOn, {
|
|
1227
1236
|
message: `Found us on must be one of: ${Object.values(FromUsOn).join(", ")}`
|
|
1228
1237
|
})
|
|
1229
1238
|
], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
|
|
@@ -1309,7 +1318,7 @@ import {
|
|
|
1309
1318
|
ArrayNotEmpty,
|
|
1310
1319
|
IsNumber as IsNumber2,
|
|
1311
1320
|
IsOptional as IsOptional6,
|
|
1312
|
-
IsEnum as
|
|
1321
|
+
IsEnum as IsEnum3,
|
|
1313
1322
|
Min
|
|
1314
1323
|
} from "class-validator";
|
|
1315
1324
|
import { Type } from "class-transformer";
|
|
@@ -1347,14 +1356,14 @@ __decorateClass([
|
|
|
1347
1356
|
Type(() => Number)
|
|
1348
1357
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1349
1358
|
__decorateClass([
|
|
1350
|
-
|
|
1359
|
+
IsEnum3(JobLocation, {
|
|
1351
1360
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
1352
1361
|
", "
|
|
1353
1362
|
)}`
|
|
1354
1363
|
})
|
|
1355
1364
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
1356
1365
|
__decorateClass([
|
|
1357
|
-
|
|
1366
|
+
IsEnum3(EmploymentType, {
|
|
1358
1367
|
message: `Type of employment must be one of: ${Object.values(
|
|
1359
1368
|
EmploymentType
|
|
1360
1369
|
).join(", ")}`
|
|
@@ -1400,7 +1409,7 @@ __decorateClass([
|
|
|
1400
1409
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1401
1410
|
|
|
1402
1411
|
// src/modules/job/dto/job-status.dto.ts
|
|
1403
|
-
import { IsEnum as
|
|
1412
|
+
import { IsEnum as IsEnum4, IsNotEmpty as IsNotEmpty17 } from "class-validator";
|
|
1404
1413
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1405
1414
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1406
1415
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1413,7 +1422,7 @@ var JobStatusDto = class {
|
|
|
1413
1422
|
};
|
|
1414
1423
|
__decorateClass([
|
|
1415
1424
|
IsNotEmpty17({ message: "Please provide a job status" }),
|
|
1416
|
-
|
|
1425
|
+
IsEnum4(JobStatus, {
|
|
1417
1426
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1418
1427
|
})
|
|
1419
1428
|
], JobStatusDto.prototype, "status", 2);
|
|
@@ -1776,6 +1785,7 @@ export {
|
|
|
1776
1785
|
RefreshToken,
|
|
1777
1786
|
ResumeParserLog,
|
|
1778
1787
|
SUBADMIN_PATTERN,
|
|
1788
|
+
ScopeEnum,
|
|
1779
1789
|
Skill,
|
|
1780
1790
|
Step,
|
|
1781
1791
|
TypeOfEmploymentEnum,
|