@eeplatform/core 1.4.3 → 1.4.5
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 +88 -11
- package/dist/index.js +1557 -216
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1565 -216
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eeplatform/core
|
|
2
2
|
|
|
3
|
+
## 1.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8be695c: School Mgmt - Implement add school and bulk school upload
|
|
8
|
+
|
|
9
|
+
## 1.4.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 43433db: Revision - change basic education region and division default role type
|
|
14
|
+
|
|
3
15
|
## 1.4.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2364,16 +2364,17 @@ type TSchool = {
|
|
|
2364
2364
|
_id?: ObjectId;
|
|
2365
2365
|
id: string;
|
|
2366
2366
|
name: string;
|
|
2367
|
-
country
|
|
2368
|
-
address
|
|
2369
|
-
continuedAddress
|
|
2370
|
-
city
|
|
2371
|
-
province
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2367
|
+
country?: string;
|
|
2368
|
+
address?: string;
|
|
2369
|
+
continuedAddress?: string;
|
|
2370
|
+
city?: string;
|
|
2371
|
+
province?: string;
|
|
2372
|
+
district?: string;
|
|
2373
|
+
postalCode?: string;
|
|
2374
|
+
courses?: Array<string>;
|
|
2375
|
+
principalName?: string;
|
|
2376
|
+
principalEmail?: string;
|
|
2377
|
+
principalNumber?: string;
|
|
2377
2378
|
region: string | ObjectId;
|
|
2378
2379
|
regionName?: string;
|
|
2379
2380
|
division: string | ObjectId;
|
|
@@ -2411,6 +2412,17 @@ declare function useSchoolRepo(): {
|
|
|
2411
2412
|
declare function useSchoolService(): {
|
|
2412
2413
|
register: (value: TSchool) => Promise<string>;
|
|
2413
2414
|
approve: (id: string) => Promise<string>;
|
|
2415
|
+
add: (value: TSchool) => Promise<string>;
|
|
2416
|
+
addBulk: (file: Express.Multer.File, region: string, division: string) => Promise<{
|
|
2417
|
+
message: string;
|
|
2418
|
+
details: {
|
|
2419
|
+
successful: number;
|
|
2420
|
+
failed: number;
|
|
2421
|
+
total: number;
|
|
2422
|
+
totalSizeMB: number;
|
|
2423
|
+
errors: string[];
|
|
2424
|
+
};
|
|
2425
|
+
}>;
|
|
2414
2426
|
};
|
|
2415
2427
|
|
|
2416
2428
|
declare function useSchoolController(): {
|
|
@@ -2420,6 +2432,7 @@ declare function useSchoolController(): {
|
|
|
2420
2432
|
updateStatusById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2421
2433
|
registerSchool: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2422
2434
|
approveSchool: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2435
|
+
addBulk: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2423
2436
|
};
|
|
2424
2437
|
|
|
2425
2438
|
type TBuilding = {
|
|
@@ -2660,6 +2673,70 @@ declare function useStockCardController(): {
|
|
|
2660
2673
|
getSuppliers: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2661
2674
|
};
|
|
2662
2675
|
|
|
2676
|
+
declare function useGitHubService(): {
|
|
2677
|
+
setVariables: (params: {
|
|
2678
|
+
githubToken: string;
|
|
2679
|
+
repoUrl: string;
|
|
2680
|
+
environment: string;
|
|
2681
|
+
type: "env" | "secret";
|
|
2682
|
+
keyValues: string;
|
|
2683
|
+
}) => Promise<string>;
|
|
2684
|
+
};
|
|
2685
|
+
|
|
2686
|
+
declare function useUtilController(): {
|
|
2687
|
+
healthCheck: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2688
|
+
setGitHubVariables: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2689
|
+
};
|
|
2690
|
+
|
|
2691
|
+
type TPlantilla = {
|
|
2692
|
+
_id?: ObjectId;
|
|
2693
|
+
itemNumber: string;
|
|
2694
|
+
positionTitle: string;
|
|
2695
|
+
positionCategory: string;
|
|
2696
|
+
salaryGrade: number;
|
|
2697
|
+
step?: number;
|
|
2698
|
+
region?: ObjectId | string;
|
|
2699
|
+
regionName?: string;
|
|
2700
|
+
division?: ObjectId | string;
|
|
2701
|
+
divisionName?: string;
|
|
2702
|
+
incumbent?: string;
|
|
2703
|
+
employee?: string | ObjectId;
|
|
2704
|
+
annualSalary?: number;
|
|
2705
|
+
monthlySalary?: number;
|
|
2706
|
+
status?: string;
|
|
2707
|
+
createdAt?: Date | string;
|
|
2708
|
+
updatedAt?: Date | string;
|
|
2709
|
+
deletedAt?: Date | string;
|
|
2710
|
+
};
|
|
2711
|
+
declare const schemaPlantilla: Joi.ObjectSchema<TPlantilla>;
|
|
2712
|
+
declare function MPlantilla(data: Partial<TPlantilla>): TPlantilla;
|
|
2713
|
+
|
|
2714
|
+
declare function usePlantillaRepo(): {
|
|
2715
|
+
createIndexes: () => Promise<void>;
|
|
2716
|
+
add: (value: TPlantilla, session?: ClientSession, clearCache?: boolean) => Promise<ObjectId>;
|
|
2717
|
+
getAll: ({ search, page, limit, sort, org, status, }?: {
|
|
2718
|
+
search?: string | undefined;
|
|
2719
|
+
page?: number | undefined;
|
|
2720
|
+
limit?: number | undefined;
|
|
2721
|
+
sort?: {} | undefined;
|
|
2722
|
+
org?: string | undefined;
|
|
2723
|
+
status?: string | undefined;
|
|
2724
|
+
}) => Promise<Record<string, any>>;
|
|
2725
|
+
getById: (_id: string | ObjectId) => Promise<TPlantilla | null>;
|
|
2726
|
+
updateById: (_id: ObjectId | string, value: Partial<Pick<TPlantilla, "status" | "positionTitle" | "updatedAt">>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2727
|
+
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2728
|
+
delCachedData: () => void;
|
|
2729
|
+
};
|
|
2730
|
+
|
|
2731
|
+
declare function usePlantillaController(): {
|
|
2732
|
+
createPlantilla: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2733
|
+
getAllPlantillas: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2734
|
+
getPlantillaById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2735
|
+
updatePlantilla: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2736
|
+
deletePlantilla: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2737
|
+
bulkAddPlantillas: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2738
|
+
};
|
|
2739
|
+
|
|
2663
2740
|
declare const MONGO_URI: string;
|
|
2664
2741
|
declare const MONGO_DB: string;
|
|
2665
2742
|
declare const PORT: number;
|
|
@@ -2696,4 +2773,4 @@ declare const PAYPAL_API_URL: string;
|
|
|
2696
2773
|
declare const XENDIT_SECRET_KEY: string;
|
|
2697
2774
|
declare const XENDIT_BASE_URL: string;
|
|
2698
2775
|
|
|
2699
|
-
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, 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, 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, schemaRegion, schemaSchool, schemaStockCard, schemaUpdateOptions, useAddressController, useAddressRepo, useAssetController, useAssetRepo, useAuthController, useAuthService, useBuildingController, useBuildingRepo, useBuildingUnitController, useBuildingUnitRepo, useCounterModel, useCounterRepo, useDivisionController, useDivisionRepo, useDivisionService, useEntityController, useEntityRepo, useFileController, useFileRepo, useFileService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useInvoiceService, useMemberController, useMemberRepo, useOrderController, useOrderRepo, useOrgController, useOrgRepo, useOrgService, usePaymentController, usePaymentMethodController, usePaymentMethodRepo, usePaymentMethodService, usePaymentModel, usePaymentRepo, usePaypalService, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRegionController, useRegionRepo, useRegionService, useRoleController, useRoleRepo, useSchoolController, useSchoolRepo, useSchoolService, useStockCardController, useStockCardRepository, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useTokenRepo, useUserController, useUserRepo, useUserService, useVerificationController, useVerificationRepo, useVerificationService, useXenditService, validateCardPayment, validateDirectDebit, validateEWalletPayment };
|
|
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 };
|