@goweekdays/core 2.12.1 → 2.12.3
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 +12 -0
- package/dist/index.d.ts +59 -5
- package/dist/index.js +4772 -4270
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2705 -2198
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @goweekdays/core
|
|
2
2
|
|
|
3
|
+
## 2.12.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 11f41b7: Add job-summary resource and org integration
|
|
8
|
+
|
|
9
|
+
## 2.12.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 62e9908: Job profile: add service and rename cityState→city
|
|
14
|
+
|
|
3
15
|
## 2.12.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1184,7 +1184,7 @@ declare function useOptionRepo(namespace_collection: string): {
|
|
|
1184
1184
|
};
|
|
1185
1185
|
|
|
1186
1186
|
declare function useOptionCtrl(): {
|
|
1187
|
-
|
|
1187
|
+
getCountries: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1188
1188
|
getJobTitles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1189
1189
|
getCurrencies: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1190
1190
|
getAllCities: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
@@ -1405,7 +1405,7 @@ type TJobProfileWorkExp = {
|
|
|
1405
1405
|
jobTitle: string;
|
|
1406
1406
|
company: string;
|
|
1407
1407
|
country: string;
|
|
1408
|
-
|
|
1408
|
+
city?: string;
|
|
1409
1409
|
fromMonth: string;
|
|
1410
1410
|
fromYear: string;
|
|
1411
1411
|
toMonth?: string;
|
|
@@ -1506,7 +1506,7 @@ type TJobProfile = {
|
|
|
1506
1506
|
verifiedEmail?: boolean;
|
|
1507
1507
|
country: string;
|
|
1508
1508
|
streetAddress?: string;
|
|
1509
|
-
|
|
1509
|
+
city: string;
|
|
1510
1510
|
postalCode?: string;
|
|
1511
1511
|
relocate: boolean;
|
|
1512
1512
|
summary?: string;
|
|
@@ -1583,7 +1583,7 @@ declare function useJobProfileRepo(): {
|
|
|
1583
1583
|
contact?: string;
|
|
1584
1584
|
showContact?: boolean;
|
|
1585
1585
|
country?: string;
|
|
1586
|
-
|
|
1586
|
+
city?: string;
|
|
1587
1587
|
streetAddress?: string;
|
|
1588
1588
|
postalCode?: string;
|
|
1589
1589
|
relocate?: boolean;
|
|
@@ -1635,6 +1635,60 @@ declare function useJobProfileCtrl(): {
|
|
|
1635
1635
|
updateAdditionalInfoById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1636
1636
|
};
|
|
1637
1637
|
|
|
1638
|
+
type TJobSummaryMetadata = {
|
|
1639
|
+
new?: number;
|
|
1640
|
+
shortlisted?: number;
|
|
1641
|
+
interviewScheduled?: number;
|
|
1642
|
+
interviewed?: number;
|
|
1643
|
+
offerExtended?: number;
|
|
1644
|
+
hired?: number;
|
|
1645
|
+
onHold?: number;
|
|
1646
|
+
withdrawn?: number;
|
|
1647
|
+
rejected?: number;
|
|
1648
|
+
contacted?: number;
|
|
1649
|
+
endorsed?: number;
|
|
1650
|
+
clientInterested?: number;
|
|
1651
|
+
pooled?: number;
|
|
1652
|
+
underReview?: number;
|
|
1653
|
+
forApproval?: number;
|
|
1654
|
+
};
|
|
1655
|
+
type TJobSummary = {
|
|
1656
|
+
_id?: ObjectId;
|
|
1657
|
+
org: ObjectId | string;
|
|
1658
|
+
metadata?: TJobSummaryMetadata;
|
|
1659
|
+
createdAt?: Date | string;
|
|
1660
|
+
updatedAt?: Date | string;
|
|
1661
|
+
};
|
|
1662
|
+
declare const schemaJobSummary: Joi.ObjectSchema<any>;
|
|
1663
|
+
declare const schemaJobSummaryInc: Joi.ObjectSchema<any>;
|
|
1664
|
+
declare function modelJobSummary(data: TJobSummary): {
|
|
1665
|
+
org: ObjectId;
|
|
1666
|
+
metadata: TJobSummaryMetadata;
|
|
1667
|
+
createdAt: string | Date;
|
|
1668
|
+
updatedAt: string | Date;
|
|
1669
|
+
};
|
|
1670
|
+
|
|
1671
|
+
declare function useJobSummaryRepo(): {
|
|
1672
|
+
createIndexes: () => Promise<string>;
|
|
1673
|
+
delCachedData: () => void;
|
|
1674
|
+
add: (value: TJobSummary, session?: ClientSession) => Promise<string>;
|
|
1675
|
+
getByOrg: (org: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | TJobSummary | null>;
|
|
1676
|
+
updateCountFieldByOrg: (data: {
|
|
1677
|
+
org: string | ObjectId;
|
|
1678
|
+
field: string;
|
|
1679
|
+
action: "increment" | "decrement";
|
|
1680
|
+
value?: number;
|
|
1681
|
+
}) => Promise<string>;
|
|
1682
|
+
};
|
|
1683
|
+
|
|
1684
|
+
declare function useJobSummarySvc(): {
|
|
1685
|
+
getByOrg: (org: string) => Promise<mongodb.WithId<bson.Document> | TJobSummary | null>;
|
|
1686
|
+
};
|
|
1687
|
+
|
|
1688
|
+
declare function useJobSummaryCtrl(): {
|
|
1689
|
+
getByOrg: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1638
1692
|
declare const MONGO_URI: string;
|
|
1639
1693
|
declare const MONGO_DB: string;
|
|
1640
1694
|
declare const PORT: number;
|
|
@@ -1674,4 +1728,4 @@ declare const XENDIT_BASE_URL: string;
|
|
|
1674
1728
|
declare const DOMAIN: string;
|
|
1675
1729
|
declare const APP_ORG: string;
|
|
1676
1730
|
|
|
1677
|
-
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, APP_ORG, DEFAULT_JOB_STATUS_SETUP, 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, TJobStatusSetup, TJobStatusTrans, TLedgerBill, TMember, TOption, 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, modelJobStatusSetup, modelJobStatusTrans, modelLedgerBill, modelMember, modelOption, 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, schemaJobStatusSetup, schemaJobStatusSetupUpdate, schemaJobStatusTrans, schemaLanguage, schemaLedgerBill, schemaLedgerBillingSummary, schemaMember, schemaMemberRole, schemaMemberStatus, schemaMilitaryExp, schemaOption, 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, useJobStatusConfigController, useJobStatusConfigRepo, useLedgerBillingController, useLedgerBillingRepo, useMemberController, useMemberRepo, useOptionCtrl, useOptionRepo, 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 };
|
|
1731
|
+
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, APP_ORG, DEFAULT_JOB_STATUS_SETUP, 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, TJobStatusSetup, TJobStatusTrans, TJobSummary, TJobSummaryMetadata, TLedgerBill, TMember, TOption, 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, modelJobStatusSetup, modelJobStatusTrans, modelJobSummary, modelLedgerBill, modelMember, modelOption, 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, schemaJobStatusSetup, schemaJobStatusSetupUpdate, schemaJobStatusTrans, schemaJobSummary, schemaJobSummaryInc, schemaLanguage, schemaLedgerBill, schemaLedgerBillingSummary, schemaMember, schemaMemberRole, schemaMemberStatus, schemaMilitaryExp, schemaOption, 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, useJobStatusConfigController, useJobStatusConfigRepo, useJobSummaryCtrl, useJobSummaryRepo, useJobSummarySvc, useLedgerBillingController, useLedgerBillingRepo, useMemberController, useMemberRepo, useOptionCtrl, useOptionRepo, 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 };
|