@7365admin1/core 2.21.0 → 2.23.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 +399 -12
- package/dist/index.js +3187 -262
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3379 -454
- package/dist/index.mjs.map +1 -1
- package/dist/public/handlebars/alert-email.hbs +43 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @iservice365/core
|
|
2
2
|
|
|
3
|
+
## 2.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 233147a: get latest changes for overhauling updates like manpower api
|
|
8
|
+
|
|
9
|
+
## 2.22.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 901d37d: Update to latest features and enhancements
|
|
14
|
+
|
|
3
15
|
## 2.21.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Request, Response, NextFunction } from 'express';
|
|
|
5
5
|
import * as bson from 'bson';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import * as urllib from 'urllib';
|
|
8
|
+
import { Server } from 'socket.io';
|
|
8
9
|
|
|
9
10
|
type TSession = {
|
|
10
11
|
token: string;
|
|
@@ -475,6 +476,10 @@ declare function useOrgController(): {
|
|
|
475
476
|
getByEmail: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
476
477
|
};
|
|
477
478
|
|
|
479
|
+
declare enum SubscriptionType {
|
|
480
|
+
ORGANIZATION = "organization",
|
|
481
|
+
AFFILIATE = "affiliate"
|
|
482
|
+
}
|
|
478
483
|
type TSubscription = {
|
|
479
484
|
_id?: ObjectId;
|
|
480
485
|
user?: string | ObjectId;
|
|
@@ -1479,6 +1484,7 @@ declare function useCustomerController(): {
|
|
|
1479
1484
|
deleteCustomer: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1480
1485
|
};
|
|
1481
1486
|
|
|
1487
|
+
declare const addressSchema: Joi.ObjectSchema<any>;
|
|
1482
1488
|
declare enum SiteStatus {
|
|
1483
1489
|
ACTIVE = "active",
|
|
1484
1490
|
PENDING = "pending"
|
|
@@ -1577,6 +1583,7 @@ declare function useSiteRepo(): {
|
|
|
1577
1583
|
getByExactName: (name: string, orgId: string | ObjectId) => Promise<TSite[]>;
|
|
1578
1584
|
updateSiteIncidentCounter: (_id: string | ObjectId, incidentCounter: number, session?: ClientSession) => Promise<number>;
|
|
1579
1585
|
updateSiteById: (id: string | ObjectId, payload: TSite, session?: ClientSession) => Promise<number>;
|
|
1586
|
+
getAllSitesUnpaginated: () => Promise<bson.Document[]>;
|
|
1580
1587
|
};
|
|
1581
1588
|
|
|
1582
1589
|
declare function useSiteService(): {
|
|
@@ -1891,7 +1898,9 @@ declare enum VehicleOrder {
|
|
|
1891
1898
|
declare enum VehicleSort {
|
|
1892
1899
|
CREATED_AT = "createdAt",
|
|
1893
1900
|
ID = "_id",
|
|
1894
|
-
NAME = "name"
|
|
1901
|
+
NAME = "name",
|
|
1902
|
+
START = "start",
|
|
1903
|
+
END = "end"
|
|
1895
1904
|
}
|
|
1896
1905
|
declare enum OrgNature {
|
|
1897
1906
|
PROPERTY_MANAGEMENT_AGENCY = "property_management_agency",
|
|
@@ -2117,6 +2126,8 @@ type TCustomerSite = {
|
|
|
2117
2126
|
siteOrgName: string;
|
|
2118
2127
|
org: ObjectId | string;
|
|
2119
2128
|
status?: string;
|
|
2129
|
+
address?: SiteAddress;
|
|
2130
|
+
category?: SiteCategories;
|
|
2120
2131
|
createdAt?: string | Date;
|
|
2121
2132
|
updatedAt?: string | Date;
|
|
2122
2133
|
deletedAt?: string | Date;
|
|
@@ -2129,6 +2140,8 @@ declare function MCustomerSite(value: TCustomerSite): {
|
|
|
2129
2140
|
siteOrg: string | ObjectId;
|
|
2130
2141
|
siteOrgName: string;
|
|
2131
2142
|
org: string | ObjectId;
|
|
2143
|
+
address: SiteAddress | undefined;
|
|
2144
|
+
category: SiteCategories | undefined;
|
|
2132
2145
|
status: string;
|
|
2133
2146
|
createdAt: string | Date;
|
|
2134
2147
|
updatedAt: string | Date;
|
|
@@ -2290,6 +2303,7 @@ type TPerson = {
|
|
|
2290
2303
|
name: string;
|
|
2291
2304
|
nirc?: string;
|
|
2292
2305
|
type?: PersonType;
|
|
2306
|
+
password?: string;
|
|
2293
2307
|
email?: string;
|
|
2294
2308
|
block: number;
|
|
2295
2309
|
level: string;
|
|
@@ -2328,6 +2342,7 @@ declare function MPerson(value: TPerson): {
|
|
|
2328
2342
|
end: string | Date | undefined;
|
|
2329
2343
|
type: "resident" | "walk-in" | "drop-off" | "contractor" | "delivery" | "pick-up" | "guest" | "tenant" | undefined;
|
|
2330
2344
|
email: string | undefined;
|
|
2345
|
+
password: string;
|
|
2331
2346
|
status: string;
|
|
2332
2347
|
nric: string | undefined;
|
|
2333
2348
|
remarks: string | undefined;
|
|
@@ -4305,6 +4320,11 @@ declare function useAccessManagementController(): {
|
|
|
4305
4320
|
addVisitorAccessCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4306
4321
|
signQrCode: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4307
4322
|
checkoutVisitor: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4323
|
+
removeAccessCard: ({ cardNo, staffNo, url }: {
|
|
4324
|
+
cardNo: string;
|
|
4325
|
+
staffNo: string;
|
|
4326
|
+
url: string;
|
|
4327
|
+
}) => Promise<void>;
|
|
4308
4328
|
};
|
|
4309
4329
|
|
|
4310
4330
|
declare const DEVICE_STATUS: {
|
|
@@ -4426,6 +4446,7 @@ declare function MOccurrenceBook(value: TOccurrenceBook): {
|
|
|
4426
4446
|
deletedAt: string | Date | undefined;
|
|
4427
4447
|
};
|
|
4428
4448
|
|
|
4449
|
+
declare const occurrence_book_namespace_collection = "occurrence-books";
|
|
4429
4450
|
declare function useOccurrenceBookRepo(): {
|
|
4430
4451
|
add: (value: TOccurrenceBook, session?: ClientSession) => Promise<ObjectId>;
|
|
4431
4452
|
getAll: ({ search, page, limit, sort, site, date, status, }: {
|
|
@@ -4447,6 +4468,9 @@ declare function useOccurrenceBookRepo(): {
|
|
|
4447
4468
|
closeOccurrenceBooks: (session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
4448
4469
|
createIndexes: () => Promise<void>;
|
|
4449
4470
|
createTextIndex: () => Promise<void>;
|
|
4471
|
+
bulkCreate: (payloads: TOccurrenceBook[], session?: ClientSession) => Promise<{
|
|
4472
|
+
insertedCount: number;
|
|
4473
|
+
}>;
|
|
4450
4474
|
};
|
|
4451
4475
|
|
|
4452
4476
|
declare function useOccurrenceBookService(): {
|
|
@@ -5502,22 +5526,32 @@ declare function useManpowerDesignationCtrl(): {
|
|
|
5502
5526
|
updateManpowerDesignations: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5503
5527
|
};
|
|
5504
5528
|
|
|
5529
|
+
declare enum DayOfWeek {
|
|
5530
|
+
SUNDAY = "sunday",
|
|
5531
|
+
MONDAY = "monday",
|
|
5532
|
+
TUESDAY = "tuesday",
|
|
5533
|
+
WEDNESDAY = "wednesday",
|
|
5534
|
+
THURSDAY = "thursday",
|
|
5535
|
+
FRIDAY = "friday",
|
|
5536
|
+
SATURDAY = "saturday"
|
|
5537
|
+
}
|
|
5505
5538
|
declare const schemaOvernightParkingApprovalHours: Joi.ObjectSchema<any>;
|
|
5506
5539
|
type TDaySchedule = {
|
|
5507
5540
|
isEnabled: boolean;
|
|
5508
|
-
startTime: string;
|
|
5509
|
-
endTime: string;
|
|
5541
|
+
startTime: string | null;
|
|
5542
|
+
endTime: string | null;
|
|
5510
5543
|
};
|
|
5511
5544
|
type TOvernightParkingApprovalHours = {
|
|
5512
5545
|
_id?: ObjectId;
|
|
5513
5546
|
site: string | ObjectId;
|
|
5514
|
-
monday
|
|
5515
|
-
tuesday
|
|
5516
|
-
wednesday
|
|
5517
|
-
thursday
|
|
5518
|
-
friday
|
|
5519
|
-
saturday
|
|
5520
|
-
sunday
|
|
5547
|
+
monday?: TDaySchedule | null;
|
|
5548
|
+
tuesday?: TDaySchedule | null;
|
|
5549
|
+
wednesday?: TDaySchedule | null;
|
|
5550
|
+
thursday?: TDaySchedule | null;
|
|
5551
|
+
friday?: TDaySchedule | null;
|
|
5552
|
+
saturday?: TDaySchedule | null;
|
|
5553
|
+
sunday?: TDaySchedule | null;
|
|
5554
|
+
autoApproveOvernightParking?: Boolean;
|
|
5521
5555
|
createdAt?: Date | string;
|
|
5522
5556
|
updatedAt?: Date | string;
|
|
5523
5557
|
deletedAt?: Date | string;
|
|
@@ -5526,7 +5560,7 @@ declare function MOvernightParkingApprovalHours(value: TOvernightParkingApproval
|
|
|
5526
5560
|
|
|
5527
5561
|
declare function useOvernightParkingRepo(): {
|
|
5528
5562
|
upsert: (value: TOvernightParkingApprovalHours, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
5529
|
-
getSiteOvernightParking: (site: string | ObjectId) => Promise<
|
|
5563
|
+
getSiteOvernightParking: (site: string | ObjectId) => Promise<any>;
|
|
5530
5564
|
createIndexes: () => Promise<void>;
|
|
5531
5565
|
};
|
|
5532
5566
|
|
|
@@ -5535,4 +5569,357 @@ declare function useOvernightParkingController(): {
|
|
|
5535
5569
|
getSiteOvernightParking: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
5536
5570
|
};
|
|
5537
5571
|
|
|
5538
|
-
|
|
5572
|
+
declare enum OvernightParkingRequestStatus {
|
|
5573
|
+
PENDING = "pending",
|
|
5574
|
+
APPROVED = "approved",
|
|
5575
|
+
REJECTED = "rejected",
|
|
5576
|
+
DELETED = "deleted",
|
|
5577
|
+
EXPIRED = "expired"
|
|
5578
|
+
}
|
|
5579
|
+
declare enum OvernightParkingRequestSort {
|
|
5580
|
+
ID = "_id",
|
|
5581
|
+
CREATED_AT = "createdAt"
|
|
5582
|
+
}
|
|
5583
|
+
type TOvernightParkingRequest = {
|
|
5584
|
+
_id?: ObjectId;
|
|
5585
|
+
site: string | ObjectId;
|
|
5586
|
+
name: string;
|
|
5587
|
+
contact: string;
|
|
5588
|
+
email: string;
|
|
5589
|
+
isOvernightParking?: boolean;
|
|
5590
|
+
numberOfPassengers?: number;
|
|
5591
|
+
purposeOfVisit?: string;
|
|
5592
|
+
status?: OvernightParkingRequestStatus;
|
|
5593
|
+
remarks?: string | null;
|
|
5594
|
+
createdAt?: string | Date;
|
|
5595
|
+
updatedAt?: string | Date;
|
|
5596
|
+
deletedAt?: string | Date;
|
|
5597
|
+
};
|
|
5598
|
+
declare const schemaOvernightParkingRequest: Joi.ObjectSchema<any>;
|
|
5599
|
+
declare const schemaUpdateOvernightParkingRequest: Joi.ObjectSchema<any>;
|
|
5600
|
+
declare function MOvernightParkingRequest(value: TOvernightParkingRequest): {
|
|
5601
|
+
createdAt: string;
|
|
5602
|
+
updatedAt: string | Date | undefined;
|
|
5603
|
+
deletedAt: string | Date | undefined;
|
|
5604
|
+
_id?: ObjectId | undefined;
|
|
5605
|
+
site: string | ObjectId;
|
|
5606
|
+
name: string;
|
|
5607
|
+
contact: string;
|
|
5608
|
+
email: string;
|
|
5609
|
+
isOvernightParking?: boolean | undefined;
|
|
5610
|
+
numberOfPassengers?: number | undefined;
|
|
5611
|
+
purposeOfVisit?: string | undefined;
|
|
5612
|
+
status?: OvernightParkingRequestStatus | undefined;
|
|
5613
|
+
remarks?: string | null | undefined;
|
|
5614
|
+
};
|
|
5615
|
+
|
|
5616
|
+
declare const overnight_parking_requests_namespace_collection = "site.overnight-parking-requests";
|
|
5617
|
+
declare function useOvernightParkingRequestRepo(): {
|
|
5618
|
+
add: (value: TOvernightParkingRequest, session?: ClientSession) => Promise<ObjectId>;
|
|
5619
|
+
getAll: ({ site, page, limit, sort, status, }: {
|
|
5620
|
+
site: string | ObjectId;
|
|
5621
|
+
page: number;
|
|
5622
|
+
limit: number;
|
|
5623
|
+
sort: Record<string, 1 | -1>;
|
|
5624
|
+
status: string;
|
|
5625
|
+
}) => Promise<{}>;
|
|
5626
|
+
getOvernightParkingRequestById: (id: string | ObjectId) => Promise<{}>;
|
|
5627
|
+
updateOvernightParkingRequestById: (id: string | ObjectId, value: TOvernightParkingRequest, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
5628
|
+
deleteOvernightParkingRequestById: (id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
5629
|
+
updateExpiredRequests: (site: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
5630
|
+
createIndexes: () => Promise<void>;
|
|
5631
|
+
};
|
|
5632
|
+
|
|
5633
|
+
declare function useOvernightParkingRequestService(): {
|
|
5634
|
+
add: (value: TOvernightParkingRequest) => Promise<bson.ObjectId>;
|
|
5635
|
+
updateOvernightParkingRequestById: (id: string, value: TOvernightParkingRequest) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
5636
|
+
deleteOvernightParkingRequestById: (id: string) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
5637
|
+
processExpiredRequests: () => Promise<void>;
|
|
5638
|
+
};
|
|
5639
|
+
|
|
5640
|
+
declare function useOvernightParkingRequestController(): {
|
|
5641
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
5642
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
5643
|
+
getOvernightParkingRequestById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
5644
|
+
updateOvernightParkingRequestById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
5645
|
+
deleteOvernightParkingRequestById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
5646
|
+
};
|
|
5647
|
+
|
|
5648
|
+
declare function useHrmLabsAttendanceSrvc(): {
|
|
5649
|
+
getAttendanceData: (payload: any) => Promise<{
|
|
5650
|
+
success: boolean;
|
|
5651
|
+
message: string;
|
|
5652
|
+
items?: undefined;
|
|
5653
|
+
pages?: undefined;
|
|
5654
|
+
pageRange?: undefined;
|
|
5655
|
+
count?: undefined;
|
|
5656
|
+
} | {
|
|
5657
|
+
success: boolean;
|
|
5658
|
+
message: string;
|
|
5659
|
+
items: never[];
|
|
5660
|
+
pages: number;
|
|
5661
|
+
pageRange: string;
|
|
5662
|
+
count: {};
|
|
5663
|
+
} | {
|
|
5664
|
+
items: any[];
|
|
5665
|
+
pages: number;
|
|
5666
|
+
pageRange: string;
|
|
5667
|
+
success?: undefined;
|
|
5668
|
+
message?: undefined;
|
|
5669
|
+
count?: undefined;
|
|
5670
|
+
}>;
|
|
5671
|
+
getAttendanceDataCount: (payload: any) => Promise<{
|
|
5672
|
+
success: boolean;
|
|
5673
|
+
message: string;
|
|
5674
|
+
totalCount?: undefined;
|
|
5675
|
+
} | {
|
|
5676
|
+
totalCount: {
|
|
5677
|
+
dayShift: {
|
|
5678
|
+
actual: any;
|
|
5679
|
+
expected: any;
|
|
5680
|
+
};
|
|
5681
|
+
afternoonShift: {
|
|
5682
|
+
actual: any;
|
|
5683
|
+
expected: any;
|
|
5684
|
+
};
|
|
5685
|
+
nightShift: {
|
|
5686
|
+
actual: any;
|
|
5687
|
+
expected: any;
|
|
5688
|
+
};
|
|
5689
|
+
};
|
|
5690
|
+
success?: undefined;
|
|
5691
|
+
message?: undefined;
|
|
5692
|
+
}>;
|
|
5693
|
+
getAllAttendance: (payload: any) => Promise<{
|
|
5694
|
+
success: boolean;
|
|
5695
|
+
message: string;
|
|
5696
|
+
items?: undefined;
|
|
5697
|
+
count?: undefined;
|
|
5698
|
+
countPerJobTitle?: undefined;
|
|
5699
|
+
totalCount?: undefined;
|
|
5700
|
+
countPerStatus?: undefined;
|
|
5701
|
+
} | {
|
|
5702
|
+
success: boolean;
|
|
5703
|
+
message: string;
|
|
5704
|
+
items: never[];
|
|
5705
|
+
count: {};
|
|
5706
|
+
countPerJobTitle: {
|
|
5707
|
+
name: any;
|
|
5708
|
+
count: number;
|
|
5709
|
+
total: any;
|
|
5710
|
+
}[];
|
|
5711
|
+
totalCount: {
|
|
5712
|
+
dayShift: {
|
|
5713
|
+
actual: number;
|
|
5714
|
+
expected: any;
|
|
5715
|
+
};
|
|
5716
|
+
afternoonShift: {
|
|
5717
|
+
actual: number;
|
|
5718
|
+
expected: any;
|
|
5719
|
+
};
|
|
5720
|
+
nightShift: {
|
|
5721
|
+
actual: number;
|
|
5722
|
+
expected: any;
|
|
5723
|
+
};
|
|
5724
|
+
};
|
|
5725
|
+
countPerStatus: {
|
|
5726
|
+
onTime: number;
|
|
5727
|
+
late: number;
|
|
5728
|
+
noShow: number;
|
|
5729
|
+
earlyOut: number;
|
|
5730
|
+
totalCount: number;
|
|
5731
|
+
};
|
|
5732
|
+
} | {
|
|
5733
|
+
items: any;
|
|
5734
|
+
countPerJobTitle: {
|
|
5735
|
+
name: any;
|
|
5736
|
+
count: number;
|
|
5737
|
+
total: any;
|
|
5738
|
+
}[];
|
|
5739
|
+
totalCount: {
|
|
5740
|
+
dayShift: {
|
|
5741
|
+
actual: any;
|
|
5742
|
+
expected: any;
|
|
5743
|
+
};
|
|
5744
|
+
afternoonShift: {
|
|
5745
|
+
actual: any;
|
|
5746
|
+
expected: any;
|
|
5747
|
+
};
|
|
5748
|
+
nightShift: {
|
|
5749
|
+
actual: any;
|
|
5750
|
+
expected: any;
|
|
5751
|
+
};
|
|
5752
|
+
};
|
|
5753
|
+
countPerStatus: {
|
|
5754
|
+
onTime: number;
|
|
5755
|
+
late: number;
|
|
5756
|
+
noShow: number;
|
|
5757
|
+
earlyOut: number;
|
|
5758
|
+
totalCount: number;
|
|
5759
|
+
};
|
|
5760
|
+
success?: undefined;
|
|
5761
|
+
message?: undefined;
|
|
5762
|
+
count?: undefined;
|
|
5763
|
+
}>;
|
|
5764
|
+
getChartAttendanceData: (payload: any) => Promise<{
|
|
5765
|
+
success: boolean;
|
|
5766
|
+
message: string;
|
|
5767
|
+
items?: undefined;
|
|
5768
|
+
pages?: undefined;
|
|
5769
|
+
pageRange?: undefined;
|
|
5770
|
+
count?: undefined;
|
|
5771
|
+
chartCount?: undefined;
|
|
5772
|
+
} | {
|
|
5773
|
+
success: boolean;
|
|
5774
|
+
message: string;
|
|
5775
|
+
items: never[];
|
|
5776
|
+
pages: number;
|
|
5777
|
+
pageRange: string;
|
|
5778
|
+
count: {};
|
|
5779
|
+
chartCount?: undefined;
|
|
5780
|
+
} | {
|
|
5781
|
+
chartCount: {
|
|
5782
|
+
date: string;
|
|
5783
|
+
late: number;
|
|
5784
|
+
under: number;
|
|
5785
|
+
over: number;
|
|
5786
|
+
normal: number;
|
|
5787
|
+
}[];
|
|
5788
|
+
success?: undefined;
|
|
5789
|
+
message?: undefined;
|
|
5790
|
+
items?: undefined;
|
|
5791
|
+
pages?: undefined;
|
|
5792
|
+
pageRange?: undefined;
|
|
5793
|
+
count?: undefined;
|
|
5794
|
+
}>;
|
|
5795
|
+
};
|
|
5796
|
+
|
|
5797
|
+
declare function useHrmLabsAttendanceCtrl(): {
|
|
5798
|
+
getAttendanceData: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5799
|
+
getAttendanceDataCount: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5800
|
+
getAllAttendance: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5801
|
+
getChartAttendanceData: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5802
|
+
};
|
|
5803
|
+
|
|
5804
|
+
type TRemarks = {
|
|
5805
|
+
name: string;
|
|
5806
|
+
remark: {
|
|
5807
|
+
isAcknowledged: boolean;
|
|
5808
|
+
status: string;
|
|
5809
|
+
acknowledgementRemarks: string;
|
|
5810
|
+
acknowledgedAt: string;
|
|
5811
|
+
};
|
|
5812
|
+
};
|
|
5813
|
+
type TManpowerRemarks = {
|
|
5814
|
+
_id?: ObjectId;
|
|
5815
|
+
serviceProviderId?: string | ObjectId;
|
|
5816
|
+
siteId: string | ObjectId;
|
|
5817
|
+
siteName: string;
|
|
5818
|
+
remarks: TRemarks[];
|
|
5819
|
+
createdBy?: string | ObjectId;
|
|
5820
|
+
createdByName?: string;
|
|
5821
|
+
createdAt?: Date;
|
|
5822
|
+
createdAtSGT?: string;
|
|
5823
|
+
updatedAt?: string | Date;
|
|
5824
|
+
morningAlertTime?: string;
|
|
5825
|
+
afternoonAlertTime?: string;
|
|
5826
|
+
nightAlertTime?: string;
|
|
5827
|
+
status?: string;
|
|
5828
|
+
};
|
|
5829
|
+
type TManpowerRemarksUpdate = Partial<Pick<TManpowerRemarks, "remarks" | "updatedAt" | "createdBy" | "createdByName">>;
|
|
5830
|
+
type TManpowerRemarksStatusUpdate = Partial<Pick<TManpowerRemarks, "status">>;
|
|
5831
|
+
declare const remarksSchema: Joi.ObjectSchema<any>;
|
|
5832
|
+
declare const manpowerRemarksSchema: Joi.ObjectSchema<any>;
|
|
5833
|
+
declare class MManpowerRemarks implements Partial<TManpowerRemarks> {
|
|
5834
|
+
_id?: ObjectId;
|
|
5835
|
+
serviceProviderId: string | ObjectId;
|
|
5836
|
+
siteId: string | ObjectId;
|
|
5837
|
+
siteName: string;
|
|
5838
|
+
remarks: TRemarks[];
|
|
5839
|
+
createdBy?: string | ObjectId;
|
|
5840
|
+
createdByName?: string;
|
|
5841
|
+
createdAt?: Date;
|
|
5842
|
+
createdAtSGT?: string;
|
|
5843
|
+
updatedAt?: string | Date;
|
|
5844
|
+
morningAlertTime?: string;
|
|
5845
|
+
afternoonAlertTime?: string;
|
|
5846
|
+
nightAlertTime?: string;
|
|
5847
|
+
status?: string;
|
|
5848
|
+
constructor(data: Partial<TManpowerRemarks>);
|
|
5849
|
+
}
|
|
5850
|
+
|
|
5851
|
+
declare function useManpowerRemarksRepo(): {
|
|
5852
|
+
createManpowerRemarks: (value: TManpowerRemarks, session?: ClientSession) => Promise<mongodb.InsertOneResult<bson.Document>>;
|
|
5853
|
+
getManpowerRemarksAllSite: ({ page, limit, serviceProviderId, search, status, date, }: {
|
|
5854
|
+
page?: number | undefined;
|
|
5855
|
+
limit?: number | undefined;
|
|
5856
|
+
serviceProviderId?: string | undefined;
|
|
5857
|
+
search?: string | undefined;
|
|
5858
|
+
status?: string | undefined;
|
|
5859
|
+
date?: string | undefined;
|
|
5860
|
+
}) => Promise<{
|
|
5861
|
+
items: any[];
|
|
5862
|
+
pages: number;
|
|
5863
|
+
pageRange: string;
|
|
5864
|
+
}>;
|
|
5865
|
+
getManpowerRemarksBySiteId: (_id: string | ObjectId, date: string, serviceProviderId?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
|
|
5866
|
+
updateManpowerRemarks: (_id: string | ObjectId, value: TManpowerRemarksUpdate) => Promise<number>;
|
|
5867
|
+
updateRemarksStatus: (_id: string | ObjectId, value: TManpowerRemarksStatusUpdate) => Promise<number>;
|
|
5868
|
+
};
|
|
5869
|
+
|
|
5870
|
+
declare function useManpowerRemarkCtrl(): {
|
|
5871
|
+
createManpowerRemark: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5872
|
+
getManpowerRemarksAllSite: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5873
|
+
getManpowerRemarksBySiteId: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5874
|
+
updateManpowerMonitoringSettings: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5875
|
+
updateRemarksStatus: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5876
|
+
};
|
|
5877
|
+
|
|
5878
|
+
type TManpowerSites = {
|
|
5879
|
+
_id?: ObjectId;
|
|
5880
|
+
id: string;
|
|
5881
|
+
text: string;
|
|
5882
|
+
contractID: string;
|
|
5883
|
+
contractName: string;
|
|
5884
|
+
type: string;
|
|
5885
|
+
status: number | string;
|
|
5886
|
+
};
|
|
5887
|
+
declare const manpowerSitesSchema: Joi.ObjectSchema<any>;
|
|
5888
|
+
declare class MManpowerSites implements Partial<TManpowerSites> {
|
|
5889
|
+
_id?: ObjectId;
|
|
5890
|
+
id: string;
|
|
5891
|
+
text: string;
|
|
5892
|
+
contractID: string;
|
|
5893
|
+
contractName: string;
|
|
5894
|
+
type: string;
|
|
5895
|
+
status: number | string;
|
|
5896
|
+
constructor(data: Partial<TManpowerSites>);
|
|
5897
|
+
}
|
|
5898
|
+
|
|
5899
|
+
declare function useManpowerSitesRepo(): {
|
|
5900
|
+
createManpowerSites: (value: TManpowerSites) => Promise<mongodb.InsertOneResult<bson.Document>>;
|
|
5901
|
+
getAllManpowerSites: ({ page, limit, search, }: {
|
|
5902
|
+
page?: number | undefined;
|
|
5903
|
+
limit?: number | undefined;
|
|
5904
|
+
search?: string | undefined;
|
|
5905
|
+
}) => Promise<any>;
|
|
5906
|
+
deleteManpowerSites: (siteId: string | ObjectId) => Promise<mongodb.DeleteResult>;
|
|
5907
|
+
};
|
|
5908
|
+
|
|
5909
|
+
declare function useManpowerSitesSrvc(): {
|
|
5910
|
+
createManpowerSites: (payload: string) => Promise<string>;
|
|
5911
|
+
checkManpowerSites: () => Promise<string>;
|
|
5912
|
+
};
|
|
5913
|
+
|
|
5914
|
+
declare function useManpowerSitesCtrl(): {
|
|
5915
|
+
createManpowerSites: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5916
|
+
getAllManpowerSites: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
5917
|
+
};
|
|
5918
|
+
|
|
5919
|
+
declare const createManpowerRemarksDaily: () => Promise<void>;
|
|
5920
|
+
declare const updateRemarksisAcknowledged: () => Promise<void>;
|
|
5921
|
+
declare const updateRemarksStatusEod: () => Promise<void>;
|
|
5922
|
+
|
|
5923
|
+
declare function manpowerEvents(io: Server): Promise<void>;
|
|
5924
|
+
|
|
5925
|
+
export { ANPRMode, AccessTypeProps, AssignCardConfig, BuildingStatus, BulkCardUpdate, BulletinRecipient, BulletinSort, BulletinStatus, Camera, CameraType, DEVICE_STATUS, DayOfWeek, EAccessCardTypes, EAccessCardUserTypes, FacilitySort, FacilityStatus, GuestSort, GuestStatus, IAccessCard, IAccessCardTransaction, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBillingConfiguration, MBillingItem, MBuilding, MBuildingUnit, MBulletinBoard, MBulletinVideo, MChat, MCustomer, MCustomerSite, MDocumentManagement, MEntryPassSettings, MEventManagement, MFeedback, MFile, MGuestManagement, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPromoCode, MRobot, MRole, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVisitorTransaction, MWorkOrder, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PERSON_TYPES, PMDashboardCollection, Period, PersonType, PersonTypes, QrTagProps, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TChat, TCheckPoint$1 as TCheckPoint, TComplaintInfo, TComplaintReceivedTo, TCounter, TCustomer, TCustomerSite, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, TMember, TMemberUpdateStatus, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TRemarks, TResident, TRobot, TRobotMetadata, TRole, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSite, TSiteCamera, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubmissionForm, TSubscription, TUnitBilling, TUnits, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationMetadata, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UseAccessManagementRepo, VehicleCategory, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VisitorSort, VisitorStatus, addressSchema, allowedFieldsSite, allowedNatures, attendanceSchema, attendanceSettingsSchema, buildings_namespace_collection, bulletin_boards_namespace_collection, calculatePercentage, chatSchema, createManpowerRemarksDaily, customerSchema, designationsSchema, events_namespace_collection, facility_bookings_namespace_collection, feedbackSchema, feedbacks_namespace_collection, formatDahuaDate, getPeriodRangeWithPrevious, guests_namespace_collection, incidentReport, incidentReportLog, incidents_namespace_collection, landscapeDashboardCollection, logCamera, mAndEDashboardCollection, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, occurrence_book_namespace_collection, orgSchema, overnight_parking_requests_namespace_collection, pestDashboardCollection, poolDashboardCollection, promoCodeSchema, remarksSchema, robotSchema, schema, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCustomerSite, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaGuestManagement, schemaIncidentReport, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaOvernightParkingApprovalHours, schemaOvernightParkingRequest, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaServiceProvider, schemaServiceProviderBilling, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaUnitBilling, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateGuestManagement, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdateOvernightParkingRequest, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, securityDashboardCollection, shiftSchema, siteSchema, site_people_namespace_collection, tokenSchema, updateRemarksStatusEod, updateRemarksisAcknowledged, updateSiteSchema, useAccessManagementController, useAddressRepo, useAttendanceController, useAttendanceRepository, useAttendanceSettingsController, useAttendanceSettingsRepository, useAttendanceSettingsService, useAuthController, useAuthService, useBuildingController, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useBulletinBoardController, useBulletinBoardRepo, useBulletinBoardService, useBulletinVideoController, useBulletinVideoRepo, useBulletinVideoService, useChatController, useChatRepo, useCounterModel, useCounterRepo, useCustomerController, useCustomerRepo, useCustomerSiteController, useCustomerSiteRepo, useCustomerSiteService, useDahuaService, useDashboardController, useDashboardRepo, useDocumentManagementController, useDocumentManagementRepo, useDocumentManagementService, useEntryPassSettingsController, useEntryPassSettingsRepo, useEventManagementController, useEventManagementRepo, useEventManagementService, useFeedbackController, useFeedbackRepo, useFeedbackService, useFileController, useFileRepo, useFileService, useGuestManagementController, useGuestManagementRepo, useGuestManagementService, useHrmLabsAttendanceCtrl, useHrmLabsAttendanceSrvc, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useManpowerDesignationCtrl, useManpowerDesignationRepo, useManpowerMonitoringCtrl, useManpowerMonitoringRepo, useManpowerMonitoringSrvc, useManpowerRemarkCtrl, useManpowerRemarksRepo, useManpowerSitesCtrl, useManpowerSitesRepo, useManpowerSitesSrvc, useMemberController, useMemberRepo, useNewDashboardController, useNewDashboardRepo, useNfcPatrolLogController, useNfcPatrolLogRepo, useNfcPatrolLogService, useNfcPatrolRouteController, useNfcPatrolRouteRepo, useNfcPatrolRouteService, useNfcPatrolSettingsController, useNfcPatrolSettingsRepository, useNfcPatrolSettingsService, useNfcPatrolTagController, useNfcPatrolTagRepo, useNfcPatrolTagService, useOccurrenceBookController, useOccurrenceBookRepo, useOccurrenceBookService, useOccurrenceEntryController, useOccurrenceEntryRepo, useOccurrenceEntryService, useOccurrenceSubjectController, useOccurrenceSubjectRepo, useOccurrenceSubjectService, useOnlineFormController, useOnlineFormRepo, useOrgController, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolLogController, usePatrolLogRepo, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRobotController, useRobotRepo, useRobotService, useRoleController, useRoleRepo, useServiceProviderBillingController, useServiceProviderBillingRepo, useServiceProviderBillingService, useServiceProviderController, useServiceProviderRepo, useSessionRepo, useSiteBillingConfigurationController, useSiteBillingConfigurationRepo, useSiteBillingItemController, useSiteBillingItemRepo, useSiteCameraController, useSiteCameraRepo, useSiteCameraService, useSiteController, useSiteFacilityBookingController, useSiteFacilityBookingRepo, useSiteFacilityBookingService, useSiteFacilityController, useSiteFacilityRepo, useSiteFacilityService, useSiteRepo, useSiteService, useSiteUnitBillingController, useSiteUnitBillingRepo, useSiteUnitBillingService, useStatementOfAccountController, useStatementOfAccountRepo, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useUserController, useUserRepo, useUserService, useVehicleController, useVehicleRepo, useVehicleService, useVerificationController, useVerificationRepo, useVerificationService, useVisitorTransactionController, useVisitorTransactionRepo, useVisitorTransactionService, useWorkOrderController, useWorkOrderRepo, useWorkOrderService, userSchema, vehicleSchema, vehicles_namespace_collection, visitors_namespace_collection, workOrderSchema, work_orders_namespace_collection };
|