@eeplatform/core 1.8.3 → 1.8.6
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 +18 -0
- package/CONVENTION.md +632 -0
- package/dist/index.d.ts +2 -154
- package/dist/index.js +709 -1772
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +703 -1773
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -493,6 +493,7 @@ declare function useMemberRepo(): {
|
|
|
493
493
|
createTextIndex: () => Promise<void>;
|
|
494
494
|
add: (value: TMember, session?: ClientSession) => Promise<string>;
|
|
495
495
|
getById: (_id: string | ObjectId) => Promise<TMember | null>;
|
|
496
|
+
getByOrg: (org: string | ObjectId) => Promise<TMember | null>;
|
|
496
497
|
getAll: ({ search, limit, page, user, org, type, status }?: {
|
|
497
498
|
search: string;
|
|
498
499
|
limit: number;
|
|
@@ -550,159 +551,6 @@ declare function useMemberController(): {
|
|
|
550
551
|
getByUserType: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
551
552
|
};
|
|
552
553
|
|
|
553
|
-
type TBuilding = {
|
|
554
|
-
_id?: ObjectId;
|
|
555
|
-
school: ObjectId;
|
|
556
|
-
serial?: string;
|
|
557
|
-
name: string;
|
|
558
|
-
levels: number;
|
|
559
|
-
createdAt?: Date | string;
|
|
560
|
-
updatedAt?: Date | string;
|
|
561
|
-
deletedAt?: Date | string;
|
|
562
|
-
status?: string;
|
|
563
|
-
};
|
|
564
|
-
declare const schemaBuilding: Joi.ObjectSchema<any>;
|
|
565
|
-
type TBuildingUnit = {
|
|
566
|
-
_id?: ObjectId;
|
|
567
|
-
school: ObjectId | string;
|
|
568
|
-
name?: string;
|
|
569
|
-
building: ObjectId | string;
|
|
570
|
-
buildingName?: string;
|
|
571
|
-
level: number;
|
|
572
|
-
category: string;
|
|
573
|
-
type: string;
|
|
574
|
-
seating_capacity: number;
|
|
575
|
-
standing_capacity: number;
|
|
576
|
-
description?: string;
|
|
577
|
-
unit_of_measurement: string;
|
|
578
|
-
area: number;
|
|
579
|
-
status: string;
|
|
580
|
-
createdAt?: Date | string;
|
|
581
|
-
updatedAt?: Date | string;
|
|
582
|
-
deletedAt?: Date | string;
|
|
583
|
-
};
|
|
584
|
-
declare const schemaBuildingUnit: Joi.ObjectSchema<any>;
|
|
585
|
-
declare const schemaUpdateOptions: Joi.ObjectSchema<any>;
|
|
586
|
-
declare function MBuilding(value: TBuilding): {
|
|
587
|
-
_id: ObjectId | undefined;
|
|
588
|
-
school: ObjectId;
|
|
589
|
-
serial: string;
|
|
590
|
-
name: string;
|
|
591
|
-
levels: number;
|
|
592
|
-
status: string;
|
|
593
|
-
createdAt: string | Date;
|
|
594
|
-
updatedAt: string | Date;
|
|
595
|
-
deletedAt: string | Date;
|
|
596
|
-
};
|
|
597
|
-
declare function MBuildingUnit(value: TBuildingUnit): {
|
|
598
|
-
_id: ObjectId | undefined;
|
|
599
|
-
school: ObjectId;
|
|
600
|
-
name: string;
|
|
601
|
-
building: ObjectId;
|
|
602
|
-
buildingName: string;
|
|
603
|
-
level: number;
|
|
604
|
-
category: string;
|
|
605
|
-
type: string;
|
|
606
|
-
seating_capacity: number;
|
|
607
|
-
standing_capacity: number;
|
|
608
|
-
description: string;
|
|
609
|
-
unit_of_measurement: string;
|
|
610
|
-
area: number;
|
|
611
|
-
status: string;
|
|
612
|
-
createdAt: string | Date;
|
|
613
|
-
updatedAt: string | Date;
|
|
614
|
-
deletedAt: string | Date;
|
|
615
|
-
};
|
|
616
|
-
|
|
617
|
-
declare function useBuildingRepo(): {
|
|
618
|
-
createIndexes: () => Promise<void>;
|
|
619
|
-
add: (value: TBuilding, session?: ClientSession) => Promise<ObjectId>;
|
|
620
|
-
getAll: ({ search, page, limit, sort, school, status, }?: {
|
|
621
|
-
search?: string | undefined;
|
|
622
|
-
page?: number | undefined;
|
|
623
|
-
limit?: number | undefined;
|
|
624
|
-
sort?: {} | undefined;
|
|
625
|
-
school?: string | undefined;
|
|
626
|
-
status?: string | undefined;
|
|
627
|
-
}) => Promise<Record<string, any> | {
|
|
628
|
-
items: any[];
|
|
629
|
-
pages: number;
|
|
630
|
-
pageRange: string;
|
|
631
|
-
}>;
|
|
632
|
-
getById: (_id: string | ObjectId) => Promise<TBuilding | null>;
|
|
633
|
-
updateById: (_id: ObjectId | string, value: {
|
|
634
|
-
name: string;
|
|
635
|
-
serial: string;
|
|
636
|
-
levels: number;
|
|
637
|
-
}, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
638
|
-
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
639
|
-
};
|
|
640
|
-
|
|
641
|
-
declare function useBuildingService(): {
|
|
642
|
-
updateById: (id: string, data: {
|
|
643
|
-
name: string;
|
|
644
|
-
levels: number;
|
|
645
|
-
serial: string;
|
|
646
|
-
}) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
647
|
-
deleteById: (id: string) => Promise<string>;
|
|
648
|
-
};
|
|
649
|
-
|
|
650
|
-
declare function useBuildingController(): {
|
|
651
|
-
createBuilding: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
652
|
-
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
653
|
-
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
654
|
-
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
655
|
-
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
declare function useBuildingUnitRepo(): {
|
|
659
|
-
createIndexes: () => Promise<void>;
|
|
660
|
-
add: (value: TBuildingUnit, session?: ClientSession) => Promise<ObjectId>;
|
|
661
|
-
getAll: ({ search, page, limit, sort, school, building, status, }?: {
|
|
662
|
-
search?: string | undefined;
|
|
663
|
-
page?: number | undefined;
|
|
664
|
-
limit?: number | undefined;
|
|
665
|
-
sort?: {} | undefined;
|
|
666
|
-
school?: string | undefined;
|
|
667
|
-
building?: string | undefined;
|
|
668
|
-
status?: string | undefined;
|
|
669
|
-
}) => Promise<Record<string, any> | {
|
|
670
|
-
items: any[];
|
|
671
|
-
pages: number;
|
|
672
|
-
pageRange: string;
|
|
673
|
-
}>;
|
|
674
|
-
getById: (_id: string | ObjectId) => Promise<TBuildingUnit>;
|
|
675
|
-
getByBuildingLevel: (building: string | ObjectId, level: number) => Promise<TBuildingUnit | null>;
|
|
676
|
-
updateById: (_id: string | ObjectId, value: {
|
|
677
|
-
name?: string;
|
|
678
|
-
building?: string;
|
|
679
|
-
level?: number;
|
|
680
|
-
category?: string;
|
|
681
|
-
type?: string;
|
|
682
|
-
seating_capacity?: number;
|
|
683
|
-
standing_capacity?: number;
|
|
684
|
-
area?: number;
|
|
685
|
-
}, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
686
|
-
getByBuilding: (building: string | ObjectId) => Promise<TBuildingUnit | null>;
|
|
687
|
-
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
|
|
688
|
-
updateByBuildingId: (building: string | ObjectId, value: Partial<Pick<TBuildingUnit, "buildingName">>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
689
|
-
};
|
|
690
|
-
|
|
691
|
-
declare function useBuildingUnitService(): {
|
|
692
|
-
add: (value: {
|
|
693
|
-
building: TBuildingUnit;
|
|
694
|
-
qty: number;
|
|
695
|
-
}) => Promise<string>;
|
|
696
|
-
};
|
|
697
|
-
|
|
698
|
-
declare function useBuildingUnitController(): {
|
|
699
|
-
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
700
|
-
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
701
|
-
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
702
|
-
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
703
|
-
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
704
|
-
};
|
|
705
|
-
|
|
706
554
|
type TToken = {
|
|
707
555
|
token: string;
|
|
708
556
|
user: ObjectId;
|
|
@@ -964,4 +812,4 @@ declare const GEMINI_API_KEY: string;
|
|
|
964
812
|
declare const ASSEMBLY_AI_API_KEY: string;
|
|
965
813
|
declare const DOMAIN: string;
|
|
966
814
|
|
|
967
|
-
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, ASSEMBLY_AI_API_KEY, AudioFileData, AudioTranscriptionOptions, AudioTranscriptionResult, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DOMAIN, GEMINI_API_KEY, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MAddress,
|
|
815
|
+
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, ASSEMBLY_AI_API_KEY, AudioFileData, AudioTranscriptionOptions, AudioTranscriptionResult, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DOMAIN, GEMINI_API_KEY, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MAddress, MFile, MMember, MONGO_DB, MONGO_URI, MOrg, MRole, MToken, MUser, MUserRole, MVerification, PAYPAL_API_URL, PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PORT, 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, TCounter, TFile, TMember, TMiniRole, TOrg, TPSGC, TRole, TToken, TUser, TUserRole, TVerification, TVerificationMetadata, VERIFICATION_FORGET_PASSWORD_DURATION, VERIFICATION_USER_INVITE_DURATION, XENDIT_BASE_URL, XENDIT_SECRET_KEY, addressSchema, isDev, modelPSGC, schemaOrg, schemaPSGC, transactionSchema, useAddressController, useAddressRepo, useAudioTranscriptionController, useAuthController, useAuthService, useCounterModel, useCounterRepo, useFileController, useFileRepo, useFileService, useGeminiAiService, useGitHubService, useMemberController, useMemberRepo, useOrgController, useOrgRepo, useOrgService, usePSGCController, usePSGCRepo, useRoleController, useRoleRepo, useTokenRepo, useTranscribeService, useUserController, useUserRepo, useUserService, useUtilController, useVerificationController, useVerificationRepo, useVerificationService };
|