@eeplatform/basic-edu 1.1.1 → 1.2.0
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 +49 -41
- package/dist/index.js +617 -600
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +539 -521
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -358,22 +358,25 @@ declare function useGradeLevelController(): {
|
|
|
358
358
|
type TRegion = {
|
|
359
359
|
_id?: ObjectId;
|
|
360
360
|
name?: string;
|
|
361
|
-
|
|
361
|
+
director?: ObjectId;
|
|
362
|
+
directorName?: string;
|
|
363
|
+
status: string;
|
|
362
364
|
createdAt?: string;
|
|
363
365
|
updatedAt?: string;
|
|
364
366
|
deletedAt?: string;
|
|
365
367
|
};
|
|
366
368
|
declare const schemaRegion: Joi.ObjectSchema<any>;
|
|
367
|
-
declare function
|
|
369
|
+
declare function modelRegion(value: TRegion): TRegion;
|
|
368
370
|
|
|
369
371
|
declare function useRegionRepo(): {
|
|
370
372
|
createIndexes: () => Promise<void>;
|
|
371
373
|
add: (value: TRegion, session?: ClientSession) => Promise<ObjectId>;
|
|
372
|
-
getAll: ({ search, page, limit, sort }?: {
|
|
374
|
+
getAll: ({ search, page, limit, sort, status, }?: {
|
|
373
375
|
search?: string | undefined;
|
|
374
376
|
page?: number | undefined;
|
|
375
377
|
limit?: number | undefined;
|
|
376
378
|
sort?: {} | undefined;
|
|
379
|
+
status?: string | undefined;
|
|
377
380
|
}) => Promise<Record<string, any> | {
|
|
378
381
|
items: any[];
|
|
379
382
|
pages: number;
|
|
@@ -401,28 +404,28 @@ declare function useRegionController(): {
|
|
|
401
404
|
type TDivision = {
|
|
402
405
|
_id?: ObjectId;
|
|
403
406
|
name?: string;
|
|
404
|
-
region?:
|
|
407
|
+
region?: ObjectId;
|
|
405
408
|
regionName?: string;
|
|
406
|
-
superintendent?:
|
|
409
|
+
superintendent?: ObjectId;
|
|
407
410
|
superintendentName?: string;
|
|
411
|
+
status: string;
|
|
408
412
|
createdAt?: string;
|
|
409
413
|
updatedAt?: string;
|
|
410
414
|
deletedAt?: string;
|
|
411
415
|
};
|
|
412
416
|
declare const schemaDivision: Joi.ObjectSchema<any>;
|
|
413
|
-
declare
|
|
417
|
+
declare const schemaDivisionUpdate: Joi.ObjectSchema<any>;
|
|
418
|
+
declare function modelDivision(value: TDivision): TDivision;
|
|
414
419
|
|
|
415
420
|
declare function useDivisionRepo(): {
|
|
416
|
-
|
|
417
|
-
createTextIndex: () => Promise<void>;
|
|
418
|
-
createUniqueIndex: () => Promise<void>;
|
|
421
|
+
createIndexes: () => Promise<void>;
|
|
419
422
|
add: (value: TDivision, session?: ClientSession) => Promise<ObjectId>;
|
|
420
|
-
getAll: ({ search, page, limit, sort,
|
|
423
|
+
getAll: ({ search, page, limit, sort, status, }?: {
|
|
421
424
|
search?: string | undefined;
|
|
422
425
|
page?: number | undefined;
|
|
423
426
|
limit?: number | undefined;
|
|
424
427
|
sort?: {} | undefined;
|
|
425
|
-
|
|
428
|
+
status?: string | undefined;
|
|
426
429
|
}) => Promise<Record<string, any> | {
|
|
427
430
|
items: any[];
|
|
428
431
|
pages: number;
|
|
@@ -434,6 +437,7 @@ declare function useDivisionRepo(): {
|
|
|
434
437
|
field: string;
|
|
435
438
|
value: string;
|
|
436
439
|
}, session?: ClientSession) => Promise<string>;
|
|
440
|
+
updateById: (_id: string | ObjectId, options: Pick<TDivision, "name" | "region" | "regionName" | "superintendent" | "superintendentName">, session?: ClientSession) => Promise<string>;
|
|
437
441
|
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
438
442
|
getByName: (name: string) => Promise<TDivision>;
|
|
439
443
|
};
|
|
@@ -443,61 +447,65 @@ declare function useDivisionService(): {
|
|
|
443
447
|
};
|
|
444
448
|
|
|
445
449
|
declare function useDivisionController(): {
|
|
446
|
-
|
|
450
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
447
451
|
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
448
452
|
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
449
453
|
getByName: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
450
454
|
updateField: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
451
|
-
|
|
455
|
+
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
456
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
452
457
|
};
|
|
453
458
|
|
|
454
459
|
type TSchool = {
|
|
455
460
|
_id?: ObjectId;
|
|
456
461
|
id: string;
|
|
457
|
-
name
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
462
|
+
name?: string;
|
|
463
|
+
region?: ObjectId | string;
|
|
464
|
+
regionName?: string;
|
|
465
|
+
division?: ObjectId | string;
|
|
466
|
+
divisionName?: string;
|
|
467
|
+
principal?: ObjectId;
|
|
468
|
+
principalName?: string;
|
|
469
|
+
street?: string;
|
|
470
|
+
barangay?: string;
|
|
461
471
|
city?: string;
|
|
462
472
|
province?: string;
|
|
463
|
-
district?: string;
|
|
464
473
|
postalCode?: string;
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
principalEmail?: string;
|
|
468
|
-
principalNumber?: string;
|
|
469
|
-
region: string | ObjectId;
|
|
470
|
-
regionName?: string;
|
|
471
|
-
division: string | ObjectId;
|
|
472
|
-
divisionName?: string;
|
|
474
|
+
contactNumber?: string;
|
|
475
|
+
email?: string;
|
|
473
476
|
status?: string;
|
|
477
|
+
createdBy?: string;
|
|
474
478
|
createdAt?: string;
|
|
475
479
|
updatedAt?: string;
|
|
476
|
-
|
|
480
|
+
deletedAt?: string;
|
|
477
481
|
};
|
|
478
482
|
declare const schemaSchool: Joi.ObjectSchema<any>;
|
|
479
|
-
declare function
|
|
483
|
+
declare function modelSchool(value: TSchool): TSchool;
|
|
480
484
|
|
|
481
485
|
declare function useSchoolRepo(): {
|
|
482
|
-
|
|
486
|
+
createIndexes: () => Promise<void>;
|
|
483
487
|
add: (value: TSchool, session?: ClientSession) => Promise<ObjectId>;
|
|
484
|
-
getAll: ({ page, limit, sort, status,
|
|
488
|
+
getAll: ({ search, page, limit, sort, status, }?: {
|
|
489
|
+
search?: string | undefined;
|
|
485
490
|
page?: number | undefined;
|
|
486
491
|
limit?: number | undefined;
|
|
487
|
-
sort?:
|
|
492
|
+
sort?: {} | undefined;
|
|
488
493
|
status?: string | undefined;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
+
}) => Promise<Record<string, any> | {
|
|
495
|
+
items: any[];
|
|
496
|
+
pages: number;
|
|
497
|
+
pageRange: string;
|
|
498
|
+
}>;
|
|
499
|
+
getById: (_id: string | ObjectId, status?: string) => Promise<TSchool>;
|
|
500
|
+
getPendingByCreatedBy: (createdBy: string | ObjectId) => Promise<TSchool>;
|
|
501
|
+
updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<string>;
|
|
494
502
|
updateFieldById: ({ _id, field, value }?: {
|
|
495
503
|
_id: string | ObjectId;
|
|
496
504
|
field: string;
|
|
497
|
-
value: string
|
|
498
|
-
}, session?: ClientSession) => Promise<
|
|
499
|
-
|
|
500
|
-
|
|
505
|
+
value: string;
|
|
506
|
+
}, session?: ClientSession) => Promise<string>;
|
|
507
|
+
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
508
|
+
getByName: (name: string) => Promise<TSchool>;
|
|
501
509
|
};
|
|
502
510
|
|
|
503
511
|
declare function useSchoolService(): {
|
|
@@ -708,4 +716,4 @@ declare function usePlantillaController(): {
|
|
|
708
716
|
bulkAddPlantillas: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
709
717
|
};
|
|
710
718
|
|
|
711
|
-
export { AddressInformation, BasicEducEnrForm, DisabilityType, EnrAddress, EnrCert, EnrLearnerInfo, EnrLearningModality, EnrParentGuardianInfo, EnrReturningLearnerInfo, EnrSeniorHighInformation, MAsset, MCurriculum,
|
|
719
|
+
export { AddressInformation, BasicEducEnrForm, DisabilityType, EnrAddress, EnrCert, EnrLearnerInfo, EnrLearningModality, EnrParentGuardianInfo, EnrReturningLearnerInfo, EnrSeniorHighInformation, MAsset, MCurriculum, MEnrollment, MGradeLevel, MPlantilla, MStockCard, PersonContact, TAsset, TCurriculum, TCurriculumSubject, TDivision, TGradeLevel, TPlantilla, TRegion, TSchool, TStockCard, modelDivision, modelRegion, modelSchool, schemaAsset, schemaAssetUpdateOption, schemaCurriculum, schemaDivision, schemaDivisionUpdate, schemaEnrollment, schemaGradeLevel, schemaPlantilla, schemaRegion, schemaSchool, schemaStockCard, useAssetController, useAssetRepo, useCurriculumController, useCurriculumRepo, useDivisionController, useDivisionRepo, useDivisionService, useEnrollmentController, useEnrollmentRepo, useEnrollmentService, useGradeLevelController, useGradeLevelRepo, usePlantillaController, usePlantillaRepo, usePlantillaService, useRegionController, useRegionRepo, useSchoolController, useSchoolRepo, useSchoolService, useStockCardController, useStockCardRepository, useStockCardService };
|