@eeplatform/core 1.6.1 → 1.6.2
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 +85 -1
- package/dist/index.js +2583 -1673
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2643 -1724
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2201,6 +2201,90 @@ declare function usePaypalService(): {
|
|
|
2201
2201
|
getInvoiceById: (invoiceId: string) => Promise<any>;
|
|
2202
2202
|
};
|
|
2203
2203
|
|
|
2204
|
+
type TPSGC = {
|
|
2205
|
+
_id?: ObjectId;
|
|
2206
|
+
name?: string;
|
|
2207
|
+
code: string;
|
|
2208
|
+
type: string;
|
|
2209
|
+
createdAt?: string;
|
|
2210
|
+
updatedAt?: string;
|
|
2211
|
+
deletedAt?: string;
|
|
2212
|
+
};
|
|
2213
|
+
declare const schemaPSGC: Joi.ObjectSchema<any>;
|
|
2214
|
+
declare function modelPSGC(value: TPSGC): TPSGC;
|
|
2215
|
+
|
|
2216
|
+
declare function usePSGCRepo(): {
|
|
2217
|
+
createIndexes: () => Promise<void>;
|
|
2218
|
+
add: (value: TPSGC, session?: ClientSession) => Promise<ObjectId>;
|
|
2219
|
+
getAll: ({ search, page, limit, sort, type, }?: {
|
|
2220
|
+
search?: string | undefined;
|
|
2221
|
+
page?: number | undefined;
|
|
2222
|
+
limit?: number | undefined;
|
|
2223
|
+
sort?: {} | undefined;
|
|
2224
|
+
type?: string | undefined;
|
|
2225
|
+
}) => Promise<Record<string, any>>;
|
|
2226
|
+
getById: (_id: string | ObjectId) => Promise<TPSGC>;
|
|
2227
|
+
updateFieldById: ({ _id, field, value }?: {
|
|
2228
|
+
_id: string | ObjectId;
|
|
2229
|
+
field: string;
|
|
2230
|
+
value: string;
|
|
2231
|
+
}, session?: ClientSession) => Promise<string>;
|
|
2232
|
+
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
2233
|
+
getByName: (name: string) => Promise<TPSGC>;
|
|
2234
|
+
};
|
|
2235
|
+
|
|
2236
|
+
declare function usePSGCController(): {
|
|
2237
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2238
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2239
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2240
|
+
getByName: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2241
|
+
updateField: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2242
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2243
|
+
};
|
|
2244
|
+
|
|
2245
|
+
type TPGO = {
|
|
2246
|
+
_id?: ObjectId;
|
|
2247
|
+
name?: string;
|
|
2248
|
+
acronym: string;
|
|
2249
|
+
type: string;
|
|
2250
|
+
mandate: string;
|
|
2251
|
+
levels: string[];
|
|
2252
|
+
createdAt?: string;
|
|
2253
|
+
updatedAt?: string;
|
|
2254
|
+
deletedAt?: string;
|
|
2255
|
+
};
|
|
2256
|
+
declare const PGOTypes: string[];
|
|
2257
|
+
declare const schemaPGO: Joi.ObjectSchema<any>;
|
|
2258
|
+
declare function modelPGO(value: TPGO): TPGO;
|
|
2259
|
+
|
|
2260
|
+
declare function usePGORepo(): {
|
|
2261
|
+
createIndexes: () => Promise<void>;
|
|
2262
|
+
add: (value: TPGO, session?: ClientSession) => Promise<ObjectId>;
|
|
2263
|
+
getAll: ({ search, page, limit, sort }?: {
|
|
2264
|
+
search?: string | undefined;
|
|
2265
|
+
page?: number | undefined;
|
|
2266
|
+
limit?: number | undefined;
|
|
2267
|
+
sort?: {} | undefined;
|
|
2268
|
+
}) => Promise<Record<string, any>>;
|
|
2269
|
+
getById: (_id: string | ObjectId) => Promise<TPGO>;
|
|
2270
|
+
updateFieldById: ({ _id, field, value }?: {
|
|
2271
|
+
_id: string | ObjectId;
|
|
2272
|
+
field: string;
|
|
2273
|
+
value: string;
|
|
2274
|
+
}, session?: ClientSession) => Promise<string>;
|
|
2275
|
+
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
2276
|
+
getByName: (name: string) => Promise<TPGO>;
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2279
|
+
declare function usePGOController(): {
|
|
2280
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2281
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2282
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2283
|
+
getByName: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2284
|
+
updateField: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2285
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2286
|
+
};
|
|
2287
|
+
|
|
2204
2288
|
type TRegion = {
|
|
2205
2289
|
_id?: ObjectId;
|
|
2206
2290
|
name?: string;
|
|
@@ -3293,4 +3377,4 @@ declare const GEMINI_API_KEY: string;
|
|
|
3293
3377
|
declare const ASSEMBLY_AI_API_KEY: string;
|
|
3294
3378
|
declare const DOMAIN: string;
|
|
3295
3379
|
|
|
3296
|
-
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, ASSEMBLY_AI_API_KEY, AddressInformation, AudioFileData, AudioTranscriptionOptions, AudioTranscriptionResult, BasicEducEnrForm, CardPayment, CardPaymentSchema, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DOMAIN, DirectDebit, DirectDebitSchema, DisabilityType, EWalletPayment, EWalletPaymentSchema, EnrAddress, EnrCert, EnrLearnerInfo, EnrLearningModality, EnrParentGuardianInfo, EnrReturningLearnerInfo, EnrSeniorHighInformation, GEMINI_API_KEY, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MAddress, MAsset, MBarangay, MBuilding, MBuildingUnit, MCityMunicipality, MCurriculum, MDivision, MEnrollment, MEntity, MFile, MGradeLevel, MMember, MONGO_DB, MONGO_URI, MOffice, MOrder, MOrg, MPaymentMethod, MPlantilla, MPromoCode, MProvince, MRegion, MRole, MSchool, MStockCard, MSubscription, MToken, MUser, MUserRole, MVerification, PAYPAL_API_URL, PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PORT, PersonContact, PhonemeMatchOptions, PhonemeMatchResult, 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, TBarangay, TBillingRecipient, TBuilding, TBuildingUnit, TCityMunicipality, 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, TProvince, TRegion, TRole, TSchool, TSector, TStockCard, TSubscription, TToken, TUser, TUserRole, TVerification, TVerificationMetadata, VERIFICATION_FORGET_PASSWORD_DURATION, VERIFICATION_USER_INVITE_DURATION, XENDIT_BASE_URL, XENDIT_SECRET_KEY, addressSchema, isDev, modelSector, schema, schemaAsset, schemaAssetUpdateOption, schemaBarangay, schemaBuilding, schemaBuildingUnit, schemaCityMunicipality, schemaCurriculum, schemaDivision, schemaEnrollment, schemaGradeLevel, schemaOffice, schemaOrg, schemaPlantilla, schemaProvince, schemaRegion, schemaSchool, schemaSector, schemaStockCard, schemaUpdateOptions, useAddressController, useAddressRepo, useAssetController, useAssetRepo, useAudioTranscriptionController, useAuthController, useAuthService, useBarangayController, useBarangayRepo, useBuildingController, useBuildingRepo, useBuildingUnitController, useBuildingUnitRepo, useCityMunicipalityController, useCityMunicipalityRepo, useCounterModel, useCounterRepo, useCurriculumController, useCurriculumRepo, useDivisionController, useDivisionRepo, useDivisionService, useEnrollmentController, useEnrollmentRepo, useEnrollmentService, useEntityController, useEntityRepo, useFileController, useFileRepo, useFileService, useGeminiAiService, useGitHubService, useGradeLevelController, useGradeLevelRepo, useInvoiceModel, useInvoiceRepo, useMemberController, useMemberRepo, useOfficeController, useOfficeRepo, useOfficeService, useOrderController, useOrderRepo, useOrgController, useOrgRepo, useOrgService, usePaymentController, usePaymentMethodController, usePaymentMethodRepo, usePaymentMethodService, usePaymentModel, usePaymentRepo, usePaypalService, usePlantillaController, usePlantillaRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useProvinceController, useProvinceRepo, useRegionController, useRegionRepo, useRoleController, useRoleRepo, useSchoolController, useSchoolRepo, useSchoolService, useSectorController, useSectorRepo, useStockCardController, useStockCardRepository, useSubscriptionRepo, useTokenRepo, useUserController, useUserRepo, useUserService, useUtilController, useVerificationController, useVerificationRepo, useVerificationService, useXenditService, validateCardPayment, validateDirectDebit, validateEWalletPayment };
|
|
3380
|
+
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, ASSEMBLY_AI_API_KEY, AddressInformation, AudioFileData, AudioTranscriptionOptions, AudioTranscriptionResult, BasicEducEnrForm, CardPayment, CardPaymentSchema, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DOMAIN, DirectDebit, DirectDebitSchema, DisabilityType, EWalletPayment, EWalletPaymentSchema, EnrAddress, EnrCert, EnrLearnerInfo, EnrLearningModality, EnrParentGuardianInfo, EnrReturningLearnerInfo, EnrSeniorHighInformation, GEMINI_API_KEY, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MAddress, MAsset, MBarangay, MBuilding, MBuildingUnit, MCityMunicipality, MCurriculum, MDivision, MEnrollment, MEntity, MFile, MGradeLevel, MMember, MONGO_DB, MONGO_URI, MOffice, MOrder, MOrg, MPaymentMethod, MPlantilla, MPromoCode, MProvince, MRegion, MRole, MSchool, MStockCard, MSubscription, MToken, MUser, MUserRole, MVerification, PAYPAL_API_URL, PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PGOTypes, PORT, PersonContact, PhonemeMatchOptions, PhonemeMatchResult, 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, TBarangay, TBillingRecipient, TBuilding, TBuildingUnit, TCityMunicipality, TCounter, TCurriculum, TCurriculumSubject, TDivision, TEntity, TFile, TGradeLevel, TInvoice, TMember, TMiniRole, TOffice, TOrder, TOrderMetadata, TOrg, TPGO, TPSGC, TPayment, TPaymentMethod$1 as TPaymentMethod, TPaymentMethodType, TPlantilla, TPrice, TPriceType, TPromoCode, TPromoTier, TProvince, TRegion, TRole, TSchool, TSector, TStockCard, TSubscription, TToken, TUser, TUserRole, TVerification, TVerificationMetadata, VERIFICATION_FORGET_PASSWORD_DURATION, VERIFICATION_USER_INVITE_DURATION, XENDIT_BASE_URL, XENDIT_SECRET_KEY, addressSchema, isDev, modelPGO, modelPSGC, modelSector, schema, schemaAsset, schemaAssetUpdateOption, schemaBarangay, schemaBuilding, schemaBuildingUnit, schemaCityMunicipality, schemaCurriculum, schemaDivision, schemaEnrollment, schemaGradeLevel, schemaOffice, schemaOrg, schemaPGO, schemaPSGC, schemaPlantilla, schemaProvince, schemaRegion, schemaSchool, schemaSector, schemaStockCard, schemaUpdateOptions, useAddressController, useAddressRepo, useAssetController, useAssetRepo, useAudioTranscriptionController, useAuthController, useAuthService, useBarangayController, useBarangayRepo, useBuildingController, useBuildingRepo, useBuildingUnitController, useBuildingUnitRepo, useCityMunicipalityController, useCityMunicipalityRepo, useCounterModel, useCounterRepo, useCurriculumController, useCurriculumRepo, useDivisionController, useDivisionRepo, useDivisionService, useEnrollmentController, useEnrollmentRepo, useEnrollmentService, useEntityController, useEntityRepo, useFileController, useFileRepo, useFileService, useGeminiAiService, useGitHubService, useGradeLevelController, useGradeLevelRepo, useInvoiceModel, useInvoiceRepo, useMemberController, useMemberRepo, useOfficeController, useOfficeRepo, useOfficeService, useOrderController, useOrderRepo, useOrgController, useOrgRepo, useOrgService, usePGOController, usePGORepo, usePSGCController, usePSGCRepo, usePaymentController, usePaymentMethodController, usePaymentMethodRepo, usePaymentMethodService, usePaymentModel, usePaymentRepo, usePaypalService, usePlantillaController, usePlantillaRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useProvinceController, useProvinceRepo, useRegionController, useRegionRepo, useRoleController, useRoleRepo, useSchoolController, useSchoolRepo, useSchoolService, useSectorController, useSectorRepo, useStockCardController, useStockCardRepository, useSubscriptionRepo, useTokenRepo, useUserController, useUserRepo, useUserService, useUtilController, useVerificationController, useVerificationRepo, useVerificationService, useXenditService, validateCardPayment, validateDirectDebit, validateEWalletPayment };
|