@goweekdays/core 2.11.19 → 2.12.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @goweekdays/core
2
2
 
3
+ ## 2.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ecbc875: Jobs profile management initial release
8
+
3
9
  ## 2.11.19
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1333,6 +1333,241 @@ declare function useJobApplicationController(): {
1333
1333
  updateStatusById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1334
1334
  };
1335
1335
 
1336
+ type TJobProfileWorkExp = {
1337
+ id: ObjectId | string;
1338
+ jobTitle: string;
1339
+ company: string;
1340
+ country: string;
1341
+ cityState?: string;
1342
+ fromMonth: string;
1343
+ fromYear: string;
1344
+ toMonth?: string;
1345
+ toYear?: string;
1346
+ currentlyWorking?: boolean;
1347
+ description?: string;
1348
+ additionalInfo?: string;
1349
+ };
1350
+ type TJobProfileEdu = {
1351
+ id: ObjectId | string;
1352
+ levelOfEducation: string;
1353
+ fieldOfStudy: string;
1354
+ schoolName: string;
1355
+ country: string;
1356
+ location?: string;
1357
+ currentlyEnrolled?: boolean;
1358
+ fromMonth: string;
1359
+ fromYear: string;
1360
+ toMonth?: string;
1361
+ toYear?: string;
1362
+ additionalInfo?: string;
1363
+ };
1364
+ type TJobProfileSkill = {
1365
+ id: ObjectId | string;
1366
+ name: string;
1367
+ proficiency?: string;
1368
+ };
1369
+ type TJobProfileCert = {
1370
+ id: ObjectId | string;
1371
+ title: string;
1372
+ noExpiry: boolean;
1373
+ fromMonth: string;
1374
+ fromYear: string;
1375
+ toMonth?: string;
1376
+ toYear?: string;
1377
+ description?: string;
1378
+ };
1379
+ type TJobProfileAward = {
1380
+ id: ObjectId | string;
1381
+ title: string;
1382
+ fromMonth: string;
1383
+ fromYear: string;
1384
+ description?: string;
1385
+ };
1386
+ type TJobProfileGroup = {
1387
+ id: ObjectId | string;
1388
+ title: string;
1389
+ active: boolean;
1390
+ fromMonth: string;
1391
+ fromYear: string;
1392
+ toMonth?: string;
1393
+ toYear?: string;
1394
+ description?: string;
1395
+ };
1396
+ type TJobProfileLang = {
1397
+ id: ObjectId | string;
1398
+ language: string;
1399
+ proficiency: string;
1400
+ };
1401
+ type TJobProfileMilitaryExp = {
1402
+ country: string;
1403
+ branch: string;
1404
+ rank: string;
1405
+ serving: boolean;
1406
+ fromMonth: string;
1407
+ fromYear: string;
1408
+ toMonth?: string;
1409
+ toYear?: string;
1410
+ description?: string;
1411
+ commendations?: string;
1412
+ };
1413
+ type TJobProfilePatent = {
1414
+ id: ObjectId | string;
1415
+ title: string;
1416
+ patentNumber: string;
1417
+ url?: string;
1418
+ fromMonth: string;
1419
+ fromYear: string;
1420
+ description?: string;
1421
+ };
1422
+ type TJobProfilePublication = {
1423
+ id: ObjectId | string;
1424
+ title: string;
1425
+ url?: string;
1426
+ fromMonth: string;
1427
+ fromYear: string;
1428
+ description?: string;
1429
+ };
1430
+ type TJobProfile = {
1431
+ _id?: ObjectId;
1432
+ user: ObjectId;
1433
+ firstName: string;
1434
+ lastName: string;
1435
+ headline?: string;
1436
+ contact?: string;
1437
+ showContact?: boolean;
1438
+ email: string;
1439
+ verifiedEmail?: boolean;
1440
+ country: string;
1441
+ streetAddress?: string;
1442
+ cityState: string;
1443
+ postalCode?: string;
1444
+ relocate: boolean;
1445
+ summary?: string;
1446
+ citizenship?: string;
1447
+ workExperience?: TJobProfileWorkExp[];
1448
+ education: TJobProfileEdu[];
1449
+ skills?: TJobProfileSkill[];
1450
+ certifications?: TJobProfileCert[];
1451
+ additionalInfo?: string;
1452
+ awards?: TJobProfileAward[];
1453
+ groups?: TJobProfileGroup[];
1454
+ languages?: TJobProfileLang[];
1455
+ links?: string[];
1456
+ militaryExperience?: TJobProfileMilitaryExp;
1457
+ patents?: TJobProfilePatent[];
1458
+ publications?: TJobProfilePublication[];
1459
+ createdAt?: Date | String;
1460
+ updatedAt?: Date | String;
1461
+ deletedAt?: Date | String;
1462
+ };
1463
+ declare const schemaWorkExp: Joi.ObjectSchema<any>;
1464
+ declare const schemaEducation: Joi.ObjectSchema<any>;
1465
+ declare const schemaCertification: Joi.ObjectSchema<any>;
1466
+ declare const schemaJobProfileCert: Joi.ObjectSchema<any>;
1467
+ declare const schemaJobProfileCertDel: Joi.ObjectSchema<any>;
1468
+ declare const schemaSkill: Joi.ObjectSchema<any>;
1469
+ declare const schemaAward: Joi.ObjectSchema<any>;
1470
+ declare const schemaGroup: Joi.ObjectSchema<any>;
1471
+ declare const schemaLanguage: Joi.ObjectSchema<any>;
1472
+ declare const schemaMilitaryExp: Joi.ObjectSchema<any>;
1473
+ declare const schemaPatent: Joi.ObjectSchema<any>;
1474
+ declare const schemaPublication: Joi.ObjectSchema<any>;
1475
+ declare const schemaJobProfile: Joi.ObjectSchema<any>;
1476
+ declare const schemaJobProfileContactInfo: Joi.ObjectSchema<any>;
1477
+ declare const schemaJobProfileWorkExp: Joi.ObjectSchema<any>;
1478
+ declare const schemaJobProfilePersonalInfo: Joi.ObjectSchema<any>;
1479
+ declare const schemaJobProfileSummary: Joi.ObjectSchema<any>;
1480
+ declare const schemaJobProfileWorkExpDel: Joi.ObjectSchema<any>;
1481
+ declare const schemaJobProfileEdu: Joi.ObjectSchema<any>;
1482
+ declare const schemaJobProfileEduDel: Joi.ObjectSchema<any>;
1483
+ declare const schemaJobProfileSkill: Joi.ObjectSchema<any>;
1484
+ declare const schemaJobProfileSkillDel: Joi.ObjectSchema<any>;
1485
+ declare const schemaJobProfileLang: Joi.ObjectSchema<any>;
1486
+ declare const schemaJobProfileLangDel: Joi.ObjectSchema<any>;
1487
+ declare const schemaJobProfileAdditionalInfo: Joi.ObjectSchema<any>;
1488
+ declare function modelJobProfile(data: TJobProfile): TJobProfile;
1489
+ declare function modelJobProfileWorkExp(data: TJobProfileWorkExp): TJobProfileWorkExp;
1490
+ declare function modelJobProfileEdu(data: TJobProfileEdu): TJobProfileEdu;
1491
+ declare function modelJobProfileSkill(data: TJobProfileSkill): TJobProfileSkill;
1492
+ declare function modelJobProfileLang(data: TJobProfileLang): TJobProfileLang;
1493
+ declare function modelJobProfileCert(data: TJobProfileCert): TJobProfileCert;
1494
+
1495
+ declare function useJobProfileRepo(): {
1496
+ createIndexes: () => Promise<string>;
1497
+ delCachedData: () => void;
1498
+ add: (data: TJobProfile) => Promise<ObjectId>;
1499
+ getAll: ({ page, limit, search, status, }?: {
1500
+ page?: number | undefined;
1501
+ limit?: number | undefined;
1502
+ search?: string | undefined;
1503
+ status?: string | undefined;
1504
+ }) => Promise<{
1505
+ items: any[];
1506
+ pages: number;
1507
+ pageRange: string;
1508
+ } | {
1509
+ data: TJobProfile[];
1510
+ total: number;
1511
+ }>;
1512
+ getByUser: (user: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | TJobProfile | null>;
1513
+ updateContactInfoById: (_id: string | ObjectId, options: {
1514
+ firstName?: string;
1515
+ lastName?: string;
1516
+ contact?: string;
1517
+ showContact?: boolean;
1518
+ country?: string;
1519
+ cityState?: string;
1520
+ streetAddress?: string;
1521
+ postalCode?: string;
1522
+ relocate?: boolean;
1523
+ }) => Promise<string>;
1524
+ updateSummaryById: (_id: string | ObjectId, summary: string) => Promise<string>;
1525
+ updatePersonalInfoById: (_id: string | ObjectId, options: {
1526
+ citizenship?: string;
1527
+ }) => Promise<string>;
1528
+ addWorkExpById: (_id: string | ObjectId, workExp: TJobProfileWorkExp) => Promise<string>;
1529
+ updateWorkExpById: (_id: string | ObjectId, workExp: TJobProfileWorkExp) => Promise<string>;
1530
+ deleteWorkExpById: (_id: string | ObjectId, workExpId: string | ObjectId) => Promise<string>;
1531
+ addEduById: (_id: string | ObjectId, edu: TJobProfileEdu) => Promise<string>;
1532
+ updateEduById: (_id: string | ObjectId, edu: TJobProfileEdu) => Promise<string>;
1533
+ deleteEduById: (_id: string | ObjectId, eduId: string | ObjectId) => Promise<string>;
1534
+ addSkillById: (_id: string | ObjectId, skill: TJobProfileSkill) => Promise<string>;
1535
+ updateSkillById: (_id: string | ObjectId, skill: TJobProfileSkill) => Promise<string>;
1536
+ deleteSkillById: (_id: string | ObjectId, skillId: string | ObjectId) => Promise<string>;
1537
+ addLangById: (_id: string | ObjectId, lang: TJobProfileLang) => Promise<string>;
1538
+ updateLangById: (_id: string | ObjectId, lang: TJobProfileLang) => Promise<string>;
1539
+ deleteLangById: (_id: string | ObjectId, langId: string | ObjectId) => Promise<string>;
1540
+ addCertById: (_id: string | ObjectId, cert: TJobProfileCert) => Promise<string>;
1541
+ updateCertById: (_id: string | ObjectId, cert: TJobProfileCert) => Promise<string>;
1542
+ deleteCertById: (_id: string | ObjectId, certId: string | ObjectId) => Promise<string>;
1543
+ updateAdditionalInfoById: (_id: string | ObjectId, additionalInfo: string) => Promise<string>;
1544
+ };
1545
+
1546
+ declare function useJobProfileCtrl(): {
1547
+ add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1548
+ getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1549
+ getByUser: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1550
+ updateContactInfoById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1551
+ updateSummaryById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1552
+ updatePersonalInfoById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1553
+ addWorkExpById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1554
+ updateWorkExpById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1555
+ deleteWorkExpById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1556
+ addEduById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1557
+ updateEduById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1558
+ deleteEduById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1559
+ addSkillById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1560
+ updateSkillById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1561
+ deleteSkillById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1562
+ addLangById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1563
+ updateLangById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1564
+ deleteLangById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1565
+ addCertById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1566
+ updateCertById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1567
+ deleteCertById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1568
+ updateAdditionalInfoById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1569
+ };
1570
+
1336
1571
  declare const MONGO_URI: string;
1337
1572
  declare const MONGO_DB: string;
1338
1573
  declare const PORT: number;
@@ -1372,4 +1607,4 @@ declare const XENDIT_BASE_URL: string;
1372
1607
  declare const DOMAIN: string;
1373
1608
  declare const APP_ORG: string;
1374
1609
 
1375
- export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, APP_ORG, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DOMAIN, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MBuilding, MBuildingUnit, MFile, MONGO_DB, MONGO_URI, PAYPAL_API_URL, PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PAYPAL_WEBHOOK_ID, PORT, PaypalWebhookHeaders, REDIS_HOST, REDIS_PASSWORD, REDIS_PORT, REFRESH_TOKEN_EXPIRY, REFRESH_TOKEN_SECRET, SECRET_KEY, SPACES_ACCESS_KEY, SPACES_BUCKET, SPACES_ENDPOINT, SPACES_REGION, SPACES_SECRET_KEY, TApp, TBuilding, TBuildingUnit, TCounter, TFile, TJobApplication, TJobApplicationMetadata, TJobPost, TLedgerBill, TMember, TOrg, TPermission, TPermissionGroup, TPlan, TPromo, TRole, TSubscribe, TSubscription, TSubscriptionTransaction, TUser, TVerification, TVerificationMetadata, VERIFICATION_FORGET_PASSWORD_DURATION, VERIFICATION_USER_INVITE_DURATION, XENDIT_BASE_URL, XENDIT_SECRET_KEY, currencies, isDev, jobApplicationStatuses, ledgerBillStatuses, ledgerBillTypes, modelApp, modelJobApplication, modelJobPost, modelLedgerBill, modelMember, modelOrg, modelPermission, modelPermissionGroup, modelPlan, modelPromo, modelRole, modelSubscription, modelSubscriptionTransaction, modelUser, modelVerification, schemaApp, schemaAppUpdate, schemaBuilding, schemaBuildingUnit, schemaInviteMember, schemaJobApplication, schemaJobPost, schemaJobPostUpdate, schemaLedgerBill, schemaLedgerBillingSummary, schemaMember, schemaMemberRole, schemaMemberStatus, schemaOrg, schemaOrgAdd, schemaOrgPilot, schemaOrgUpdate, schemaPermission, schemaPermissionGroup, schemaPermissionGroupUpdate, schemaPermissionUpdate, schemaPlan, schemaPromo, schemaRole, schemaRoleUpdate, schemaSubscribe, schemaSubscription, schemaSubscriptionCompute, schemaSubscriptionPromoCode, schemaSubscriptionSeats, schemaSubscriptionTransaction, schemaSubscriptionUpdate, schemaUpdateOptions, schemaUser, schemaVerification, schemaVerificationOrgInvite, transactionSchema, useAppController, useAppRepo, useAppService, useAuthController, useAuthService, useBuildingController, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useCounterModel, useCounterRepo, useFileController, useFileRepo, useFileService, useGitHubService, useJobApplicationController, useJobApplicationRepo, useJobPostController, useJobPostRepo, useJobPostService, useLedgerBillingController, useLedgerBillingRepo, useMemberController, useMemberRepo, useOrgController, useOrgRepo, useOrgService, usePaypalService, usePermissionController, usePermissionGroupController, usePermissionGroupRepo, usePermissionGroupService, usePermissionRepo, usePermissionService, usePlanController, usePlanRepo, usePlanService, usePromoController, usePromoRepo, usePromoUsageRepo, useRoleController, useRoleRepo, useRoleService, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useSubscriptionTransactionController, useSubscriptionTransactionRepo, useUserController, useUserRepo, useUserService, useUtilController, useVerificationController, useVerificationRepo, useVerificationService };
1610
+ export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, APP_ORG, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DOMAIN, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MBuilding, MBuildingUnit, MFile, MONGO_DB, MONGO_URI, PAYPAL_API_URL, PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PAYPAL_WEBHOOK_ID, PORT, PaypalWebhookHeaders, REDIS_HOST, REDIS_PASSWORD, REDIS_PORT, REFRESH_TOKEN_EXPIRY, REFRESH_TOKEN_SECRET, SECRET_KEY, SPACES_ACCESS_KEY, SPACES_BUCKET, SPACES_ENDPOINT, SPACES_REGION, SPACES_SECRET_KEY, TApp, TBuilding, TBuildingUnit, TCounter, TFile, TJobApplication, TJobApplicationMetadata, TJobPost, TJobProfile, TJobProfileAward, TJobProfileCert, TJobProfileEdu, TJobProfileGroup, TJobProfileLang, TJobProfileMilitaryExp, TJobProfilePatent, TJobProfilePublication, TJobProfileSkill, TJobProfileWorkExp, TLedgerBill, TMember, TOrg, TPermission, TPermissionGroup, TPlan, TPromo, TRole, TSubscribe, TSubscription, TSubscriptionTransaction, TUser, TVerification, TVerificationMetadata, VERIFICATION_FORGET_PASSWORD_DURATION, VERIFICATION_USER_INVITE_DURATION, XENDIT_BASE_URL, XENDIT_SECRET_KEY, currencies, isDev, jobApplicationStatuses, ledgerBillStatuses, ledgerBillTypes, modelApp, modelJobApplication, modelJobPost, modelJobProfile, modelJobProfileCert, modelJobProfileEdu, modelJobProfileLang, modelJobProfileSkill, modelJobProfileWorkExp, modelLedgerBill, modelMember, modelOrg, modelPermission, modelPermissionGroup, modelPlan, modelPromo, modelRole, modelSubscription, modelSubscriptionTransaction, modelUser, modelVerification, schemaApp, schemaAppUpdate, schemaAward, schemaBuilding, schemaBuildingUnit, schemaCertification, schemaEducation, schemaGroup, schemaInviteMember, schemaJobApplication, schemaJobPost, schemaJobPostUpdate, schemaJobProfile, schemaJobProfileAdditionalInfo, schemaJobProfileCert, schemaJobProfileCertDel, schemaJobProfileContactInfo, schemaJobProfileEdu, schemaJobProfileEduDel, schemaJobProfileLang, schemaJobProfileLangDel, schemaJobProfilePersonalInfo, schemaJobProfileSkill, schemaJobProfileSkillDel, schemaJobProfileSummary, schemaJobProfileWorkExp, schemaJobProfileWorkExpDel, schemaLanguage, schemaLedgerBill, schemaLedgerBillingSummary, schemaMember, schemaMemberRole, schemaMemberStatus, schemaMilitaryExp, schemaOrg, schemaOrgAdd, schemaOrgPilot, schemaOrgUpdate, schemaPatent, schemaPermission, schemaPermissionGroup, schemaPermissionGroupUpdate, schemaPermissionUpdate, schemaPlan, schemaPromo, schemaPublication, schemaRole, schemaRoleUpdate, schemaSkill, schemaSubscribe, schemaSubscription, schemaSubscriptionCompute, schemaSubscriptionPromoCode, schemaSubscriptionSeats, schemaSubscriptionTransaction, schemaSubscriptionUpdate, schemaUpdateOptions, schemaUser, schemaVerification, schemaVerificationOrgInvite, schemaWorkExp, transactionSchema, useAppController, useAppRepo, useAppService, useAuthController, useAuthService, useBuildingController, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useCounterModel, useCounterRepo, useFileController, useFileRepo, useFileService, useGitHubService, useJobApplicationController, useJobApplicationRepo, useJobPostController, useJobPostRepo, useJobPostService, useJobProfileCtrl, useJobProfileRepo, useLedgerBillingController, useLedgerBillingRepo, useMemberController, useMemberRepo, useOrgController, useOrgRepo, useOrgService, usePaypalService, usePermissionController, usePermissionGroupController, usePermissionGroupRepo, usePermissionGroupService, usePermissionRepo, usePermissionService, usePlanController, usePlanRepo, usePlanService, usePromoController, usePromoRepo, usePromoUsageRepo, useRoleController, useRoleRepo, useRoleService, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useSubscriptionTransactionController, useSubscriptionTransactionRepo, useUserController, useUserRepo, useUserService, useUtilController, useVerificationController, useVerificationRepo, useVerificationService };