@eeplatform/core 1.5.0 → 1.5.1
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 +87 -25
- package/dist/index.js +666 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +671 -63
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2791,10 +2791,7 @@ declare function useOfficeController(): {
|
|
|
2791
2791
|
bulkAddOffices: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2792
2792
|
};
|
|
2793
2793
|
|
|
2794
|
-
type
|
|
2795
|
-
_id?: ObjectId;
|
|
2796
|
-
school: ObjectId | string;
|
|
2797
|
-
code: string;
|
|
2794
|
+
type TCurriculumSubject = {
|
|
2798
2795
|
educationLevel: string;
|
|
2799
2796
|
gradeLevel: string;
|
|
2800
2797
|
subjectCode: string;
|
|
@@ -2803,6 +2800,14 @@ type TCurriculum = {
|
|
|
2803
2800
|
sessionFrequency: number;
|
|
2804
2801
|
sessionDuration: number;
|
|
2805
2802
|
totalMinutesPerWeek: number;
|
|
2803
|
+
};
|
|
2804
|
+
type TCurriculum = {
|
|
2805
|
+
_id?: ObjectId;
|
|
2806
|
+
school: ObjectId | string;
|
|
2807
|
+
code: string;
|
|
2808
|
+
effectiveSchoolYear: string;
|
|
2809
|
+
maxTeachingHoursPerDay: number;
|
|
2810
|
+
subjects?: TCurriculumSubject[];
|
|
2806
2811
|
curriculumMemoRef?: string;
|
|
2807
2812
|
status?: string;
|
|
2808
2813
|
createdAt?: Date | string;
|
|
@@ -2817,14 +2822,9 @@ declare function MCurriculum(value: TCurriculum): {
|
|
|
2817
2822
|
_id: ObjectId | undefined;
|
|
2818
2823
|
school: string | ObjectId;
|
|
2819
2824
|
code: string;
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
subjectName: string;
|
|
2824
|
-
subjectType: string;
|
|
2825
|
-
sessionFrequency: number;
|
|
2826
|
-
sessionDuration: number;
|
|
2827
|
-
totalMinutesPerWeek: number;
|
|
2825
|
+
effectiveSchoolYear: string;
|
|
2826
|
+
maxTeachingHoursPerDay: number;
|
|
2827
|
+
subjects: TCurriculumSubject[];
|
|
2828
2828
|
curriculumMemoRef: string;
|
|
2829
2829
|
status: string;
|
|
2830
2830
|
createdAt: string | Date;
|
|
@@ -2838,27 +2838,17 @@ declare function MCurriculum(value: TCurriculum): {
|
|
|
2838
2838
|
declare function useCurriculumRepo(): {
|
|
2839
2839
|
createIndexes: () => Promise<void>;
|
|
2840
2840
|
add: (value: TCurriculum, session?: ClientSession) => Promise<ObjectId>;
|
|
2841
|
-
getAll: ({ search, page, limit, sort,
|
|
2841
|
+
getAll: ({ search, page, limit, sort, status, }?: {
|
|
2842
2842
|
search?: string | undefined;
|
|
2843
2843
|
page?: number | undefined;
|
|
2844
2844
|
limit?: number | undefined;
|
|
2845
2845
|
sort?: {} | undefined;
|
|
2846
|
-
educationLevel?: string | undefined;
|
|
2847
|
-
gradeLevel?: string | undefined;
|
|
2848
|
-
subjectCode?: string | undefined;
|
|
2849
2846
|
status?: string | undefined;
|
|
2850
2847
|
}) => Promise<Record<string, any>>;
|
|
2851
2848
|
getById: (_id: string | ObjectId) => Promise<TCurriculum | null>;
|
|
2852
2849
|
updateById: (_id: ObjectId | string, value: {
|
|
2853
2850
|
code?: string;
|
|
2854
|
-
|
|
2855
|
-
gradeLevel?: string;
|
|
2856
|
-
subjectCode?: string;
|
|
2857
|
-
subjectName?: string;
|
|
2858
|
-
subjectType?: string;
|
|
2859
|
-
sessionFrequency?: number;
|
|
2860
|
-
sessionDuration?: number;
|
|
2861
|
-
totalMinutesPerWeek?: number;
|
|
2851
|
+
maxTeachingHoursPerDay?: number;
|
|
2862
2852
|
curriculumMemoRef?: string;
|
|
2863
2853
|
}, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2864
2854
|
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
@@ -2872,6 +2862,78 @@ declare function useCurriculumController(): {
|
|
|
2872
2862
|
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2873
2863
|
};
|
|
2874
2864
|
|
|
2865
|
+
type TGradeLevel = {
|
|
2866
|
+
_id?: ObjectId;
|
|
2867
|
+
school?: ObjectId | string;
|
|
2868
|
+
educationLevel: string;
|
|
2869
|
+
gradeLevel: string;
|
|
2870
|
+
teachingStyle: string;
|
|
2871
|
+
defaultStartTime?: string;
|
|
2872
|
+
defaultEndTime?: string;
|
|
2873
|
+
status?: string;
|
|
2874
|
+
createdAt?: Date | string;
|
|
2875
|
+
updatedAt?: Date | string;
|
|
2876
|
+
deletedAt?: Date | string;
|
|
2877
|
+
createdBy?: string;
|
|
2878
|
+
updatedBy?: string;
|
|
2879
|
+
deletedBy?: string;
|
|
2880
|
+
};
|
|
2881
|
+
declare const schemaGradeLevel: Joi.ObjectSchema<any>;
|
|
2882
|
+
declare function MGradeLevel(value: TGradeLevel): {
|
|
2883
|
+
_id: ObjectId | undefined;
|
|
2884
|
+
school: string | ObjectId | undefined;
|
|
2885
|
+
educationLevel: string;
|
|
2886
|
+
gradeLevel: string;
|
|
2887
|
+
teachingStyle: string;
|
|
2888
|
+
defaultStartTime: string;
|
|
2889
|
+
defaultEndTime: string;
|
|
2890
|
+
status: string;
|
|
2891
|
+
createdAt: string | Date;
|
|
2892
|
+
updatedAt: string | Date;
|
|
2893
|
+
deletedAt: string | Date;
|
|
2894
|
+
createdBy: string;
|
|
2895
|
+
updatedBy: string;
|
|
2896
|
+
deletedBy: string;
|
|
2897
|
+
};
|
|
2898
|
+
|
|
2899
|
+
declare function useGradeLevelRepo(): {
|
|
2900
|
+
createIndexes: () => Promise<void>;
|
|
2901
|
+
add: (value: TGradeLevel, session?: ClientSession) => Promise<ObjectId>;
|
|
2902
|
+
getAll: ({ search, page, limit, sort, educationLevel, gradeLevel, teachingStyle, school, status, }?: {
|
|
2903
|
+
search?: string | undefined;
|
|
2904
|
+
page?: number | undefined;
|
|
2905
|
+
limit?: number | undefined;
|
|
2906
|
+
sort?: {} | undefined;
|
|
2907
|
+
educationLevel?: string | undefined;
|
|
2908
|
+
gradeLevel?: string | undefined;
|
|
2909
|
+
teachingStyle?: string | undefined;
|
|
2910
|
+
school?: string | undefined;
|
|
2911
|
+
status?: string | undefined;
|
|
2912
|
+
}) => Promise<Record<string, any>>;
|
|
2913
|
+
getById: (_id: string | ObjectId) => Promise<bson.Document>;
|
|
2914
|
+
updateById: (_id: ObjectId | string, value: {
|
|
2915
|
+
educationLevel?: string;
|
|
2916
|
+
gradeLevel?: string;
|
|
2917
|
+
teachingStyle?: string;
|
|
2918
|
+
maxTeachingHoursPerDay?: number;
|
|
2919
|
+
maxTeachingHoursPerWeek?: number;
|
|
2920
|
+
defaultStartTime?: string;
|
|
2921
|
+
defaultEndTime?: string;
|
|
2922
|
+
school?: ObjectId | string;
|
|
2923
|
+
}, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2924
|
+
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2925
|
+
getByEducationLevel: (educationLevel: string, school?: string) => Promise<mongodb.WithId<bson.Document>[] | TGradeLevel[]>;
|
|
2926
|
+
};
|
|
2927
|
+
|
|
2928
|
+
declare function useGradeLevelController(): {
|
|
2929
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2930
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2931
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2932
|
+
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2933
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2934
|
+
getByEducationLevel: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2935
|
+
};
|
|
2936
|
+
|
|
2875
2937
|
declare const MONGO_URI: string;
|
|
2876
2938
|
declare const MONGO_DB: string;
|
|
2877
2939
|
declare const PORT: number;
|
|
@@ -2908,4 +2970,4 @@ declare const PAYPAL_API_URL: string;
|
|
|
2908
2970
|
declare const XENDIT_SECRET_KEY: string;
|
|
2909
2971
|
declare const XENDIT_BASE_URL: string;
|
|
2910
2972
|
|
|
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 };
|
|
2973
|
+
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, MGradeLevel, 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, TCurriculumSubject, TDivision, TEntity, TFile, TGradeLevel, 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, schemaGradeLevel, 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, useGradeLevelController, useGradeLevelRepo, 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 };
|