@eeplatform/core 1.4.5 → 1.5.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 +6 -0
- package/dist/index.d.ts +138 -3
- package/dist/index.js +1167 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1176 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2690,17 +2690,20 @@ declare function useUtilController(): {
|
|
|
2690
2690
|
|
|
2691
2691
|
type TPlantilla = {
|
|
2692
2692
|
_id?: ObjectId;
|
|
2693
|
+
org: string;
|
|
2693
2694
|
itemNumber: string;
|
|
2695
|
+
orgUnitCode?: string;
|
|
2694
2696
|
positionTitle: string;
|
|
2695
2697
|
positionCategory: string;
|
|
2696
2698
|
salaryGrade: number;
|
|
2697
|
-
|
|
2699
|
+
employmentType?: string;
|
|
2700
|
+
personnelType: string;
|
|
2698
2701
|
region?: ObjectId | string;
|
|
2699
2702
|
regionName?: string;
|
|
2700
2703
|
division?: ObjectId | string;
|
|
2701
2704
|
divisionName?: string;
|
|
2702
|
-
incumbent?: string;
|
|
2703
2705
|
employee?: string | ObjectId;
|
|
2706
|
+
employeeName?: string;
|
|
2704
2707
|
annualSalary?: number;
|
|
2705
2708
|
monthlySalary?: number;
|
|
2706
2709
|
status?: string;
|
|
@@ -2737,6 +2740,138 @@ declare function usePlantillaController(): {
|
|
|
2737
2740
|
bulkAddPlantillas: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2738
2741
|
};
|
|
2739
2742
|
|
|
2743
|
+
type TOffice = {
|
|
2744
|
+
_id?: ObjectId;
|
|
2745
|
+
name: string;
|
|
2746
|
+
code: string;
|
|
2747
|
+
type: string;
|
|
2748
|
+
parent?: ObjectId | string;
|
|
2749
|
+
path: string;
|
|
2750
|
+
status: string;
|
|
2751
|
+
createdAt?: Date | string;
|
|
2752
|
+
updatedAt?: Date | string;
|
|
2753
|
+
deletedAt?: Date | string;
|
|
2754
|
+
};
|
|
2755
|
+
declare const schemaOffice: Joi.ObjectSchema<TOffice>;
|
|
2756
|
+
declare function MOffice(data: Partial<TOffice>): TOffice;
|
|
2757
|
+
|
|
2758
|
+
declare function useOfficeRepo(): {
|
|
2759
|
+
createIndexes: () => Promise<void>;
|
|
2760
|
+
add: (value: TOffice, session?: ClientSession, clearCache?: boolean) => Promise<ObjectId>;
|
|
2761
|
+
getAll: ({ search, page, limit, sort, type, parent, status, }?: {
|
|
2762
|
+
search?: string | undefined;
|
|
2763
|
+
page?: number | undefined;
|
|
2764
|
+
limit?: number | undefined;
|
|
2765
|
+
sort?: {} | undefined;
|
|
2766
|
+
type?: string | undefined;
|
|
2767
|
+
parent?: string | undefined;
|
|
2768
|
+
status?: string | undefined;
|
|
2769
|
+
}) => Promise<Record<string, any>>;
|
|
2770
|
+
getById: (_id: string | ObjectId) => Promise<TOffice | null>;
|
|
2771
|
+
updateById: (_id: ObjectId | string, value: Partial<Pick<TOffice, "status" | "name" | "code" | "type" | "parent" | "path" | "updatedAt">>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2772
|
+
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2773
|
+
delCachedData: () => void;
|
|
2774
|
+
};
|
|
2775
|
+
|
|
2776
|
+
declare function useOfficeService(): {
|
|
2777
|
+
addBulk: (file: Express.Multer.File) => Promise<{
|
|
2778
|
+
total: number;
|
|
2779
|
+
successful: number;
|
|
2780
|
+
failed: number;
|
|
2781
|
+
errors: string[];
|
|
2782
|
+
}>;
|
|
2783
|
+
};
|
|
2784
|
+
|
|
2785
|
+
declare function useOfficeController(): {
|
|
2786
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2787
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2788
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2789
|
+
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2790
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2791
|
+
bulkAddOffices: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2792
|
+
};
|
|
2793
|
+
|
|
2794
|
+
type TCurriculum = {
|
|
2795
|
+
_id?: ObjectId;
|
|
2796
|
+
school: ObjectId | string;
|
|
2797
|
+
code: string;
|
|
2798
|
+
educationLevel: string;
|
|
2799
|
+
gradeLevel: string;
|
|
2800
|
+
subjectCode: string;
|
|
2801
|
+
subjectName: string;
|
|
2802
|
+
subjectType: string;
|
|
2803
|
+
sessionFrequency: number;
|
|
2804
|
+
sessionDuration: number;
|
|
2805
|
+
totalMinutesPerWeek: number;
|
|
2806
|
+
curriculumMemoRef?: string;
|
|
2807
|
+
status?: string;
|
|
2808
|
+
createdAt?: Date | string;
|
|
2809
|
+
updatedAt?: Date | string;
|
|
2810
|
+
deletedAt?: Date | string;
|
|
2811
|
+
createdBy?: string;
|
|
2812
|
+
updatedBy?: string;
|
|
2813
|
+
deletedBy?: string;
|
|
2814
|
+
};
|
|
2815
|
+
declare const schemaCurriculum: Joi.ObjectSchema<any>;
|
|
2816
|
+
declare function MCurriculum(value: TCurriculum): {
|
|
2817
|
+
_id: ObjectId | undefined;
|
|
2818
|
+
school: string | ObjectId;
|
|
2819
|
+
code: string;
|
|
2820
|
+
educationLevel: string;
|
|
2821
|
+
gradeLevel: string;
|
|
2822
|
+
subjectCode: string;
|
|
2823
|
+
subjectName: string;
|
|
2824
|
+
subjectType: string;
|
|
2825
|
+
sessionFrequency: number;
|
|
2826
|
+
sessionDuration: number;
|
|
2827
|
+
totalMinutesPerWeek: number;
|
|
2828
|
+
curriculumMemoRef: string;
|
|
2829
|
+
status: string;
|
|
2830
|
+
createdAt: string | Date;
|
|
2831
|
+
updatedAt: string | Date;
|
|
2832
|
+
deletedAt: string | Date;
|
|
2833
|
+
createdBy: string;
|
|
2834
|
+
updatedBy: string;
|
|
2835
|
+
deletedBy: string;
|
|
2836
|
+
};
|
|
2837
|
+
|
|
2838
|
+
declare function useCurriculumRepo(): {
|
|
2839
|
+
createIndexes: () => Promise<void>;
|
|
2840
|
+
add: (value: TCurriculum, session?: ClientSession) => Promise<ObjectId>;
|
|
2841
|
+
getAll: ({ search, page, limit, sort, educationLevel, gradeLevel, subjectCode, status, }?: {
|
|
2842
|
+
search?: string | undefined;
|
|
2843
|
+
page?: number | undefined;
|
|
2844
|
+
limit?: number | undefined;
|
|
2845
|
+
sort?: {} | undefined;
|
|
2846
|
+
educationLevel?: string | undefined;
|
|
2847
|
+
gradeLevel?: string | undefined;
|
|
2848
|
+
subjectCode?: string | undefined;
|
|
2849
|
+
status?: string | undefined;
|
|
2850
|
+
}) => Promise<Record<string, any>>;
|
|
2851
|
+
getById: (_id: string | ObjectId) => Promise<TCurriculum | null>;
|
|
2852
|
+
updateById: (_id: ObjectId | string, value: {
|
|
2853
|
+
code?: string;
|
|
2854
|
+
educationLevel?: string;
|
|
2855
|
+
gradeLevel?: string;
|
|
2856
|
+
subjectCode?: string;
|
|
2857
|
+
subjectName?: string;
|
|
2858
|
+
subjectType?: string;
|
|
2859
|
+
sessionFrequency?: number;
|
|
2860
|
+
sessionDuration?: number;
|
|
2861
|
+
totalMinutesPerWeek?: number;
|
|
2862
|
+
curriculumMemoRef?: string;
|
|
2863
|
+
}, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2864
|
+
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2865
|
+
};
|
|
2866
|
+
|
|
2867
|
+
declare function useCurriculumController(): {
|
|
2868
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2869
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2870
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2871
|
+
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2872
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2873
|
+
};
|
|
2874
|
+
|
|
2740
2875
|
declare const MONGO_URI: string;
|
|
2741
2876
|
declare const MONGO_DB: string;
|
|
2742
2877
|
declare const PORT: number;
|
|
@@ -2773,4 +2908,4 @@ declare const PAYPAL_API_URL: string;
|
|
|
2773
2908
|
declare const XENDIT_SECRET_KEY: string;
|
|
2774
2909
|
declare const XENDIT_BASE_URL: string;
|
|
2775
2910
|
|
|
2776
|
-
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, CardPayment, CardPaymentSchema, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DirectDebit, DirectDebitSchema, EWalletPayment, EWalletPaymentSchema, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MAddress, MAsset, MBuilding, MBuildingUnit, MDivision, MEntity, MFile, MMember, MONGO_DB, MONGO_URI, MOrder, MOrg, MPaymentMethod, MPlantilla, MPromoCode, MRegion, MRole, MSchool, MStockCard, MSubscription, MToken, MUser, MUserRole, MVerification, PAYPAL_API_URL, PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PORT, 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, TAddress, TAsset, TBillingRecipient, TBuilding, TBuildingUnit, TCounter, TDivision, TEntity, TFile, TInvoice, TMember, TMiniRole, TOrder, TOrderMetadata, TOrg, TPayment, TPaymentMethod$1 as TPaymentMethod, TPaymentMethodType, TPlantilla, TPrice, TPriceType, TPromoCode, TPromoTier, TRegion, TRole, TSchool, TStockCard, TSubscription, TToken, TUser, TUserRole, TVerification, TVerificationMetadata, VERIFICATION_FORGET_PASSWORD_DURATION, VERIFICATION_USER_INVITE_DURATION, XENDIT_BASE_URL, XENDIT_SECRET_KEY, addressSchema, isDev, schema, schemaAsset, schemaAssetUpdateOption, schemaBuilding, schemaBuildingUnit, schemaDivision, schemaPlantilla, schemaRegion, schemaSchool, schemaStockCard, schemaUpdateOptions, useAddressController, useAddressRepo, useAssetController, useAssetRepo, useAuthController, useAuthService, useBuildingController, useBuildingRepo, useBuildingUnitController, useBuildingUnitRepo, useCounterModel, useCounterRepo, useDivisionController, useDivisionRepo, useDivisionService, useEntityController, useEntityRepo, useFileController, useFileRepo, useFileService, useGitHubService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useInvoiceService, useMemberController, useMemberRepo, useOrderController, useOrderRepo, useOrgController, useOrgRepo, useOrgService, usePaymentController, usePaymentMethodController, usePaymentMethodRepo, usePaymentMethodService, usePaymentModel, usePaymentRepo, usePaypalService, usePlantillaController, usePlantillaRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRegionController, useRegionRepo, useRegionService, useRoleController, useRoleRepo, useSchoolController, useSchoolRepo, useSchoolService, useStockCardController, useStockCardRepository, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useTokenRepo, useUserController, useUserRepo, useUserService, useUtilController, useVerificationController, useVerificationRepo, useVerificationService, useXenditService, validateCardPayment, validateDirectDebit, validateEWalletPayment };
|
|
2911
|
+
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, CardPayment, CardPaymentSchema, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DirectDebit, DirectDebitSchema, EWalletPayment, EWalletPaymentSchema, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MAddress, MAsset, MBuilding, MBuildingUnit, MCurriculum, MDivision, MEntity, MFile, MMember, MONGO_DB, MONGO_URI, MOffice, MOrder, MOrg, MPaymentMethod, MPlantilla, MPromoCode, MRegion, MRole, MSchool, MStockCard, MSubscription, MToken, MUser, MUserRole, MVerification, PAYPAL_API_URL, PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PORT, 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, TAddress, TAsset, TBillingRecipient, TBuilding, TBuildingUnit, TCounter, TCurriculum, TDivision, TEntity, TFile, TInvoice, TMember, TMiniRole, TOffice, TOrder, TOrderMetadata, TOrg, TPayment, TPaymentMethod$1 as TPaymentMethod, TPaymentMethodType, TPlantilla, TPrice, TPriceType, TPromoCode, TPromoTier, TRegion, TRole, TSchool, TStockCard, TSubscription, TToken, TUser, TUserRole, TVerification, TVerificationMetadata, VERIFICATION_FORGET_PASSWORD_DURATION, VERIFICATION_USER_INVITE_DURATION, XENDIT_BASE_URL, XENDIT_SECRET_KEY, addressSchema, isDev, schema, schemaAsset, schemaAssetUpdateOption, schemaBuilding, schemaBuildingUnit, schemaCurriculum, schemaDivision, schemaOffice, schemaPlantilla, schemaRegion, schemaSchool, schemaStockCard, schemaUpdateOptions, useAddressController, useAddressRepo, useAssetController, useAssetRepo, useAuthController, useAuthService, useBuildingController, useBuildingRepo, useBuildingUnitController, useBuildingUnitRepo, useCounterModel, useCounterRepo, useCurriculumController, useCurriculumRepo, useDivisionController, useDivisionRepo, useDivisionService, useEntityController, useEntityRepo, useFileController, useFileRepo, useFileService, useGitHubService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useInvoiceService, useMemberController, useMemberRepo, useOfficeController, useOfficeRepo, useOfficeService, useOrderController, useOrderRepo, useOrgController, useOrgRepo, useOrgService, usePaymentController, usePaymentMethodController, usePaymentMethodRepo, usePaymentMethodService, usePaymentModel, usePaymentRepo, usePaypalService, usePlantillaController, usePlantillaRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRegionController, useRegionRepo, useRegionService, useRoleController, useRoleRepo, useSchoolController, useSchoolRepo, useSchoolService, useStockCardController, useStockCardRepository, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useTokenRepo, useUserController, useUserRepo, useUserService, useUtilController, useVerificationController, useVerificationRepo, useVerificationService, useXenditService, validateCardPayment, validateDirectDebit, validateEWalletPayment };
|