@eeplatform/core 1.4.3 → 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 +6 -0
- package/dist/index.d.ts +55 -1
- package/dist/index.js +694 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +702 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2660,6 +2660,60 @@ declare function useStockCardController(): {
|
|
|
2660
2660
|
getSuppliers: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2661
2661
|
};
|
|
2662
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
|
+
|
|
2663
2717
|
declare const MONGO_URI: string;
|
|
2664
2718
|
declare const MONGO_DB: string;
|
|
2665
2719
|
declare const PORT: number;
|
|
@@ -2696,4 +2750,4 @@ declare const PAYPAL_API_URL: string;
|
|
|
2696
2750
|
declare const XENDIT_SECRET_KEY: string;
|
|
2697
2751
|
declare const XENDIT_BASE_URL: string;
|
|
2698
2752
|
|
|
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 };
|
|
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 };
|