@eeplatform/core 1.4.2 → 1.4.4
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 +62 -10
- package/dist/index.js +714 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +722 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eeplatform/core
|
|
2
2
|
|
|
3
|
+
## 1.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 43433db: Revision - change basic education region and division default role type
|
|
8
|
+
|
|
9
|
+
## 1.4.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1ae128a: Revise verification indexing
|
|
14
|
+
|
|
3
15
|
## 1.4.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ type TVerification = {
|
|
|
20
20
|
email: string;
|
|
21
21
|
metadata?: TVerificationMetadata;
|
|
22
22
|
status?: string;
|
|
23
|
-
createdAt: string;
|
|
24
|
-
updatedAt?: string | null;
|
|
25
|
-
expireAt: string;
|
|
23
|
+
createdAt: string | Date;
|
|
24
|
+
updatedAt?: string | Date | null;
|
|
25
|
+
expireAt: string | Date;
|
|
26
26
|
};
|
|
27
27
|
declare class MVerification implements TVerification {
|
|
28
28
|
_id?: ObjectId;
|
|
@@ -30,16 +30,14 @@ declare class MVerification implements TVerification {
|
|
|
30
30
|
email: string;
|
|
31
31
|
metadata?: TVerificationMetadata;
|
|
32
32
|
status?: string;
|
|
33
|
-
createdAt: string;
|
|
34
|
-
updatedAt?: string | null;
|
|
35
|
-
expireAt: string;
|
|
33
|
+
createdAt: string | Date;
|
|
34
|
+
updatedAt?: string | Date | null;
|
|
35
|
+
expireAt: string | Date;
|
|
36
36
|
constructor(value: TVerification);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
declare function useVerificationRepo(): {
|
|
40
|
-
|
|
41
|
-
createTextIndex: () => Promise<void>;
|
|
42
|
-
createUniqueIndex: () => Promise<void>;
|
|
40
|
+
createIndexes: () => Promise<void>;
|
|
43
41
|
add: (value: TVerification, session?: ClientSession) => Promise<ObjectId>;
|
|
44
42
|
getVerifications: ({ search, page, limit, sort, status, type, email, app, }?: {
|
|
45
43
|
search?: string | undefined;
|
|
@@ -2662,6 +2660,60 @@ declare function useStockCardController(): {
|
|
|
2662
2660
|
getSuppliers: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2663
2661
|
};
|
|
2664
2662
|
|
|
2663
|
+
declare function useGitHubService(): {
|
|
2664
|
+
setVariables: (params: {
|
|
2665
|
+
githubToken: string;
|
|
2666
|
+
repoUrl: string;
|
|
2667
|
+
environment: string;
|
|
2668
|
+
type: "env" | "secret";
|
|
2669
|
+
keyValues: string;
|
|
2670
|
+
}) => Promise<string>;
|
|
2671
|
+
};
|
|
2672
|
+
|
|
2673
|
+
declare function useUtilController(): {
|
|
2674
|
+
healthCheck: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2675
|
+
setGitHubVariables: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2676
|
+
};
|
|
2677
|
+
|
|
2678
|
+
type TPlantilla = {
|
|
2679
|
+
_id?: ObjectId;
|
|
2680
|
+
itemNumber: string;
|
|
2681
|
+
positionTitle: string;
|
|
2682
|
+
officeAssignmentType: string;
|
|
2683
|
+
officeAssignment: string;
|
|
2684
|
+
status: string;
|
|
2685
|
+
employeeId?: ObjectId;
|
|
2686
|
+
createdAt: Date | string;
|
|
2687
|
+
updatedAt?: Date | string;
|
|
2688
|
+
deletedAt?: Date | string;
|
|
2689
|
+
};
|
|
2690
|
+
declare const schemaPlantilla: Joi.ObjectSchema<any>;
|
|
2691
|
+
declare function MPlantilla(data: Partial<TPlantilla>): TPlantilla;
|
|
2692
|
+
|
|
2693
|
+
declare function usePlantillaRepo(): {
|
|
2694
|
+
createIndexes: () => Promise<void>;
|
|
2695
|
+
add: (value: TPlantilla, session?: ClientSession) => Promise<ObjectId>;
|
|
2696
|
+
getAll: ({ search, page, limit, sort, org, status, }?: {
|
|
2697
|
+
search?: string | undefined;
|
|
2698
|
+
page?: number | undefined;
|
|
2699
|
+
limit?: number | undefined;
|
|
2700
|
+
sort?: {} | undefined;
|
|
2701
|
+
org?: string | undefined;
|
|
2702
|
+
status?: string | undefined;
|
|
2703
|
+
}) => Promise<Record<string, any>>;
|
|
2704
|
+
getById: (_id: string | ObjectId) => Promise<TPlantilla | null>;
|
|
2705
|
+
updateById: (_id: ObjectId | string, value: Partial<Pick<TPlantilla, "employeeId" | "status" | "positionTitle" | "updatedAt">>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2706
|
+
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2707
|
+
};
|
|
2708
|
+
|
|
2709
|
+
declare function usePlantillaController(): {
|
|
2710
|
+
createPlantilla: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2711
|
+
getAllPlantillas: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2712
|
+
getPlantillaById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2713
|
+
updatePlantilla: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2714
|
+
deletePlantilla: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2715
|
+
};
|
|
2716
|
+
|
|
2665
2717
|
declare const MONGO_URI: string;
|
|
2666
2718
|
declare const MONGO_DB: string;
|
|
2667
2719
|
declare const PORT: number;
|
|
@@ -2698,4 +2750,4 @@ declare const PAYPAL_API_URL: string;
|
|
|
2698
2750
|
declare const XENDIT_SECRET_KEY: string;
|
|
2699
2751
|
declare const XENDIT_BASE_URL: string;
|
|
2700
2752
|
|
|
2701
|
-
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 };
|
|
2753
|
+
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 };
|