@7365admin1/core 2.18.0 → 2.20.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 +209 -48
- package/dist/index.js +7866 -6812
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8998 -7947
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @iservice365/core
|
|
2
2
|
|
|
3
|
+
## 2.20.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4628d44: get latest changes for incident report, access management, and people management
|
|
8
|
+
|
|
9
|
+
## 2.19.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 89ff358: get latest changes for people, virtual patrol, M&E mobile, soa, and billing
|
|
14
|
+
|
|
3
15
|
## 2.17.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -26,9 +26,11 @@ declare function useSessionRepo(): {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
declare function useAuthService(): {
|
|
29
|
-
login: ({ email, password, }: {
|
|
29
|
+
login: ({ email, password, isMobile, type, }: {
|
|
30
30
|
email: string;
|
|
31
31
|
password: string;
|
|
32
|
+
isMobile?: boolean | undefined;
|
|
33
|
+
type?: string | undefined;
|
|
32
34
|
}) => Promise<{
|
|
33
35
|
sid: string;
|
|
34
36
|
user: string;
|
|
@@ -1475,7 +1477,6 @@ declare function useCustomerController(): {
|
|
|
1475
1477
|
deleteCustomer: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1476
1478
|
};
|
|
1477
1479
|
|
|
1478
|
-
declare const updateSiteSchema: Joi.ObjectSchema<any>;
|
|
1479
1480
|
declare enum SiteStatus {
|
|
1480
1481
|
ACTIVE = "active",
|
|
1481
1482
|
PENDING = "pending"
|
|
@@ -1513,6 +1514,9 @@ type TSite = {
|
|
|
1513
1514
|
status?: string;
|
|
1514
1515
|
address?: SiteAddress;
|
|
1515
1516
|
category?: SiteCategories;
|
|
1517
|
+
deliveryCompanyList?: string[];
|
|
1518
|
+
isOpenGate?: Boolean | null;
|
|
1519
|
+
dahuaTimeExpiration?: number | null;
|
|
1516
1520
|
createdAt?: Date;
|
|
1517
1521
|
updatedAt?: string | Date;
|
|
1518
1522
|
deletedAt?: string | Date;
|
|
@@ -1520,6 +1524,7 @@ type TSite = {
|
|
|
1520
1524
|
type TSiteUpdateBlock = NonNullable<TSiteMetadata["block"]>;
|
|
1521
1525
|
declare const allowedFieldsSite: string[];
|
|
1522
1526
|
declare const siteSchema: Joi.ObjectSchema<any>;
|
|
1527
|
+
declare const updateSiteSchema: Joi.ObjectSchema<any>;
|
|
1523
1528
|
declare function MSite(value: TSite): {
|
|
1524
1529
|
name: string;
|
|
1525
1530
|
description: string;
|
|
@@ -1529,6 +1534,9 @@ declare function MSite(value: TSite): {
|
|
|
1529
1534
|
createdAt: Date;
|
|
1530
1535
|
address: SiteAddress | undefined;
|
|
1531
1536
|
category: SiteCategories | undefined;
|
|
1537
|
+
deliveryCompanyList: string[];
|
|
1538
|
+
isOpenGate: Boolean | null | undefined;
|
|
1539
|
+
dahuaTimeExpiration: number | null | undefined;
|
|
1532
1540
|
updatedAt: string | Date;
|
|
1533
1541
|
deletedAt: string | Date;
|
|
1534
1542
|
};
|
|
@@ -1809,6 +1817,7 @@ declare function useDahuaService(): {
|
|
|
1809
1817
|
start?: string;
|
|
1810
1818
|
end?: string;
|
|
1811
1819
|
owner?: string;
|
|
1820
|
+
openGate?: boolean;
|
|
1812
1821
|
}) => Promise<urllib.HttpClientResponse<any>>;
|
|
1813
1822
|
removePlateNumber: (value: {
|
|
1814
1823
|
host: string;
|
|
@@ -1827,29 +1836,31 @@ declare function useDahuaService(): {
|
|
|
1827
1836
|
start?: string;
|
|
1828
1837
|
end?: string;
|
|
1829
1838
|
owner?: string;
|
|
1839
|
+
isOpenGate?: Boolean;
|
|
1830
1840
|
}) => Promise<urllib.HttpClientResponse<any>>;
|
|
1831
1841
|
};
|
|
1832
1842
|
|
|
1833
1843
|
type TVehicle = {
|
|
1834
1844
|
_id?: ObjectId;
|
|
1835
|
-
plateNumber: string | string[];
|
|
1836
|
-
type: string;
|
|
1837
|
-
category: string;
|
|
1838
1845
|
name: string;
|
|
1839
1846
|
phoneNumber?: string;
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
site: string | ObjectId;
|
|
1847
|
+
type: string;
|
|
1848
|
+
email?: string;
|
|
1843
1849
|
block?: number;
|
|
1844
1850
|
level?: string;
|
|
1845
1851
|
unit?: string | ObjectId;
|
|
1846
|
-
nric?: string;
|
|
1847
|
-
remarks?: string;
|
|
1848
|
-
seasonPassType?: string;
|
|
1849
1852
|
start?: Date | string;
|
|
1850
1853
|
end?: Date | string;
|
|
1851
1854
|
status?: string;
|
|
1855
|
+
nric?: string;
|
|
1856
|
+
remarks?: string;
|
|
1857
|
+
org: string | ObjectId;
|
|
1858
|
+
site: string | ObjectId;
|
|
1859
|
+
plateNumber: string | string[];
|
|
1852
1860
|
unitName?: string;
|
|
1861
|
+
category: string;
|
|
1862
|
+
recNo?: string;
|
|
1863
|
+
seasonPassType?: string;
|
|
1853
1864
|
createdAt?: Date | string;
|
|
1854
1865
|
updatedAt?: Date | string;
|
|
1855
1866
|
deletedAt?: Date | string;
|
|
@@ -1971,6 +1982,7 @@ declare function useVehicleRepo(): {
|
|
|
1971
1982
|
}) => Promise<{}>;
|
|
1972
1983
|
};
|
|
1973
1984
|
|
|
1985
|
+
declare function formatDahuaDate(date: Date): string;
|
|
1974
1986
|
declare function useVehicleService(): {
|
|
1975
1987
|
add: (value: TVehicle) => Promise<string>;
|
|
1976
1988
|
deleteVehicle: (_id: string, recno: string, site: string, type: string, bypass?: boolean) => Promise<string>;
|
|
@@ -1993,6 +2005,10 @@ declare function useVehicleController(): {
|
|
|
1993
2005
|
getAllVehiclesByUnitId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1994
2006
|
};
|
|
1995
2007
|
|
|
2008
|
+
declare enum CameraType {
|
|
2009
|
+
IP = "ip",
|
|
2010
|
+
ANPR = "anpr"
|
|
2011
|
+
}
|
|
1996
2012
|
type TCamera = {
|
|
1997
2013
|
host: string;
|
|
1998
2014
|
username: string;
|
|
@@ -2251,6 +2267,16 @@ type TPlates = {
|
|
|
2251
2267
|
plateNumber: string;
|
|
2252
2268
|
recNo: string;
|
|
2253
2269
|
};
|
|
2270
|
+
declare enum PersonTypes {
|
|
2271
|
+
WALK_IN = "walk-in",
|
|
2272
|
+
DROP_OFF = "drop-off",
|
|
2273
|
+
CONTRACTOR = "contractor",
|
|
2274
|
+
DELIVERY = "delivery",
|
|
2275
|
+
PICK_UP = "pick-up",
|
|
2276
|
+
GUEST = "guest",
|
|
2277
|
+
TENANT = "tenant",
|
|
2278
|
+
RESIDENT = "resident"
|
|
2279
|
+
}
|
|
2254
2280
|
type TFiles = {
|
|
2255
2281
|
id: string | ObjectId;
|
|
2256
2282
|
name: string;
|
|
@@ -2313,26 +2339,39 @@ declare function MPerson(value: TPerson): {
|
|
|
2313
2339
|
deletedAt: string | Date | undefined;
|
|
2314
2340
|
};
|
|
2315
2341
|
|
|
2316
|
-
|
|
2342
|
+
declare enum VisitorSort {
|
|
2343
|
+
CREATED_AT = "createdAt",
|
|
2344
|
+
NAME = "name",
|
|
2345
|
+
ID = "_id"
|
|
2346
|
+
}
|
|
2347
|
+
declare enum VisitorStatus {
|
|
2348
|
+
REGISTERED = "registered",
|
|
2349
|
+
UNREGISTERED = "unregistered",
|
|
2350
|
+
PENDING = "pending"
|
|
2351
|
+
}
|
|
2317
2352
|
type TVisitorTransaction = {
|
|
2318
2353
|
_id?: ObjectId;
|
|
2319
2354
|
name?: string;
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
org?: string | ObjectId;
|
|
2323
|
-
site?: string | ObjectId;
|
|
2355
|
+
contact?: string;
|
|
2356
|
+
type?: PersonTypes;
|
|
2324
2357
|
block?: number;
|
|
2325
2358
|
level?: string;
|
|
2326
2359
|
unit?: string | ObjectId;
|
|
2327
|
-
contact?: string;
|
|
2328
|
-
plateNumber?: string;
|
|
2329
2360
|
checkIn?: string | Date;
|
|
2330
2361
|
checkOut?: string | Date;
|
|
2331
2362
|
status?: string;
|
|
2363
|
+
nric?: string;
|
|
2332
2364
|
remarks?: string;
|
|
2365
|
+
org?: string | ObjectId;
|
|
2366
|
+
site?: string | ObjectId;
|
|
2367
|
+
plateNumber?: string;
|
|
2368
|
+
recNo?: string;
|
|
2369
|
+
unitName?: string;
|
|
2370
|
+
company?: string;
|
|
2333
2371
|
deliveryType?: string;
|
|
2334
2372
|
attachments?: string[];
|
|
2335
|
-
|
|
2373
|
+
snapshotEntryImage?: string;
|
|
2374
|
+
snapshotExitImage?: string;
|
|
2336
2375
|
contractorType?: string;
|
|
2337
2376
|
manualCheckout?: boolean;
|
|
2338
2377
|
direction?: string;
|
|
@@ -2343,7 +2382,8 @@ type TVisitorTransaction = {
|
|
|
2343
2382
|
contact: string;
|
|
2344
2383
|
}[];
|
|
2345
2384
|
visitorPass?: string | null;
|
|
2346
|
-
|
|
2385
|
+
visitorId?: string | ObjectId;
|
|
2386
|
+
expiredAt?: string | Date | null;
|
|
2347
2387
|
createdAt?: string | Date;
|
|
2348
2388
|
updatedAt?: string | Date;
|
|
2349
2389
|
deletedAt?: string | Date;
|
|
@@ -2353,7 +2393,7 @@ declare const schemaUpdateVisTrans: Joi.ObjectSchema<any>;
|
|
|
2353
2393
|
declare function MVisitorTransaction(value: TVisitorTransaction): {
|
|
2354
2394
|
_id: ObjectId | undefined;
|
|
2355
2395
|
name: string | undefined;
|
|
2356
|
-
type:
|
|
2396
|
+
type: PersonTypes | undefined;
|
|
2357
2397
|
org: string | ObjectId | undefined;
|
|
2358
2398
|
site: string | ObjectId | undefined;
|
|
2359
2399
|
company: string | undefined;
|
|
@@ -2362,18 +2402,23 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
|
|
|
2362
2402
|
unit: string | ObjectId | undefined;
|
|
2363
2403
|
contact: string | undefined;
|
|
2364
2404
|
plateNumber: string | undefined;
|
|
2405
|
+
recNo: string | undefined;
|
|
2365
2406
|
checkIn: string | Date;
|
|
2366
2407
|
checkOut: string | Date | undefined;
|
|
2367
|
-
status: string;
|
|
2408
|
+
status: string | undefined;
|
|
2368
2409
|
remarks: string | undefined;
|
|
2369
2410
|
deliveryType: string | undefined;
|
|
2370
2411
|
attachments: string[] | undefined;
|
|
2412
|
+
snapshotEntryImage: string | undefined;
|
|
2413
|
+
snapshotExitImage: string | undefined;
|
|
2371
2414
|
nric: string | undefined;
|
|
2372
2415
|
contractorType: string | undefined;
|
|
2373
2416
|
manualCheckout: boolean;
|
|
2374
2417
|
direction: string | undefined;
|
|
2375
2418
|
visitorPass: string | null | undefined;
|
|
2376
2419
|
unitName: string | undefined;
|
|
2420
|
+
expiredAt: string | Date | null;
|
|
2421
|
+
visitorId: string | ObjectId;
|
|
2377
2422
|
createdAt: string | Date;
|
|
2378
2423
|
updatedAt: string | Date;
|
|
2379
2424
|
deletedAt: string | Date;
|
|
@@ -2381,7 +2426,7 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
|
|
|
2381
2426
|
|
|
2382
2427
|
declare function useVisitorTransactionRepo(): {
|
|
2383
2428
|
add: (value: TVisitorTransaction, session?: ClientSession) => Promise<ObjectId>;
|
|
2384
|
-
getAll: ({ search, page, limit, sort, status, org, site, dateTo, dateFrom, type, checkedOut, }: {
|
|
2429
|
+
getAll: ({ search, page, limit, sort, status, org, site, dateTo, dateFrom, type, checkedOut, plateNumber, }: {
|
|
2385
2430
|
search?: string | undefined;
|
|
2386
2431
|
page?: number | undefined;
|
|
2387
2432
|
limit?: number | undefined;
|
|
@@ -2392,17 +2437,22 @@ declare function useVisitorTransactionRepo(): {
|
|
|
2392
2437
|
dateTo?: string | undefined;
|
|
2393
2438
|
dateFrom?: string | undefined;
|
|
2394
2439
|
type?: string | undefined;
|
|
2395
|
-
checkedOut?:
|
|
2440
|
+
checkedOut?: Boolean | undefined;
|
|
2441
|
+
plateNumber?: string | undefined;
|
|
2396
2442
|
}, session?: ClientSession) => Promise<{}>;
|
|
2397
|
-
getOpenByPlateNumber: (plateNumber: string) => Promise<TVisitorTransaction | null>;
|
|
2443
|
+
getOpenByPlateNumber: (plateNumber: string, site: string | ObjectId) => Promise<TVisitorTransaction | null>;
|
|
2398
2444
|
updateById: (_id: string | ObjectId, value: Partial<TVisitorTransaction>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2399
2445
|
deleteVisitorTransaction: (_id: string | ObjectId) => Promise<number>;
|
|
2400
2446
|
createTextIndex: () => Promise<void>;
|
|
2447
|
+
getDeliveryPickupTransactions: () => Promise<mongodb.WithId<bson.Document>[]>;
|
|
2448
|
+
getExpiredCheckedOutTransactionsBySite: (siteId: string | ObjectId) => Promise<mongodb.WithId<bson.Document>[]>;
|
|
2449
|
+
updateManyDahuaSyncStatus: (ids: (string | ObjectId)[], dahuaSyncStatus: "removed", session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2401
2450
|
};
|
|
2402
2451
|
|
|
2403
2452
|
declare function useVisitorTransactionService(): {
|
|
2404
2453
|
add: (value: TVisitorTransaction) => Promise<string>;
|
|
2405
2454
|
updateById: (id: string | ObjectId, value: TVisitorTransaction) => Promise<string>;
|
|
2455
|
+
processTransactionDahuaStatus: () => Promise<void>;
|
|
2406
2456
|
};
|
|
2407
2457
|
|
|
2408
2458
|
declare function useVisitorTransactionController(): {
|
|
@@ -2412,11 +2462,19 @@ declare function useVisitorTransactionController(): {
|
|
|
2412
2462
|
deleteVisitorTransaction: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2413
2463
|
};
|
|
2414
2464
|
|
|
2465
|
+
declare enum GuestStatus {
|
|
2466
|
+
PENDING = "pending",
|
|
2467
|
+
ACTIVE = "active"
|
|
2468
|
+
}
|
|
2469
|
+
declare enum GuestSort {
|
|
2470
|
+
CREATED_AT = "createdAt",
|
|
2471
|
+
NAME = "name",
|
|
2472
|
+
ID = "_id"
|
|
2473
|
+
}
|
|
2415
2474
|
type TGuestManagement = {
|
|
2416
2475
|
_id?: ObjectId;
|
|
2417
2476
|
name: string;
|
|
2418
2477
|
contact?: string;
|
|
2419
|
-
nirc?: string;
|
|
2420
2478
|
type?: string;
|
|
2421
2479
|
email?: string;
|
|
2422
2480
|
block: string;
|
|
@@ -2768,6 +2826,10 @@ type logCamera = {
|
|
|
2768
2826
|
video: Array<string>;
|
|
2769
2827
|
}>;
|
|
2770
2828
|
};
|
|
2829
|
+
type incidentReport = {
|
|
2830
|
+
reportId: string;
|
|
2831
|
+
id: string | ObjectId;
|
|
2832
|
+
};
|
|
2771
2833
|
type TPatrolLog = {
|
|
2772
2834
|
_id?: ObjectId;
|
|
2773
2835
|
route?: string | ObjectId;
|
|
@@ -2778,11 +2840,13 @@ type TPatrolLog = {
|
|
|
2778
2840
|
end: string;
|
|
2779
2841
|
cameras: Array<logCamera>;
|
|
2780
2842
|
status: Array<string>;
|
|
2843
|
+
incidentReport: incidentReport;
|
|
2781
2844
|
createdAt?: Date | string;
|
|
2782
2845
|
updatedAt?: Date | string;
|
|
2783
2846
|
deletedAt?: Date | string;
|
|
2784
2847
|
};
|
|
2785
2848
|
declare const schemeLogCamera: Joi.ObjectSchema<any>;
|
|
2849
|
+
declare const incidentReportLog: Joi.ObjectSchema<any>;
|
|
2786
2850
|
declare const schemaPatrolLog: Joi.ObjectSchema<any>;
|
|
2787
2851
|
declare const schemaUpdatePatrolLog: Joi.ObjectSchema<any>;
|
|
2788
2852
|
declare function MPatrolLog(value: TPatrolLog): {
|
|
@@ -2795,6 +2859,7 @@ declare function MPatrolLog(value: TPatrolLog): {
|
|
|
2795
2859
|
cameras: logCamera[];
|
|
2796
2860
|
status: string[];
|
|
2797
2861
|
route: string | ObjectId | undefined;
|
|
2862
|
+
incidentReport: incidentReport;
|
|
2798
2863
|
createdAt: string | Date;
|
|
2799
2864
|
updatedAt: string | Date;
|
|
2800
2865
|
deletedAt: string | Date;
|
|
@@ -3066,6 +3131,15 @@ declare function useServiceProviderBillingController(): {
|
|
|
3066
3131
|
deleteServiceProviderBillingById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
3067
3132
|
};
|
|
3068
3133
|
|
|
3134
|
+
declare enum FacilitySort {
|
|
3135
|
+
CREATED_AT = "createdAt",
|
|
3136
|
+
NAME = "name",
|
|
3137
|
+
ID = "_id"
|
|
3138
|
+
}
|
|
3139
|
+
declare enum FacilityStatus {
|
|
3140
|
+
PENDING = "pending",
|
|
3141
|
+
ACTIVE = "active"
|
|
3142
|
+
}
|
|
3069
3143
|
type TSiteFacilityBooking = {
|
|
3070
3144
|
_id?: ObjectId;
|
|
3071
3145
|
facility?: string;
|
|
@@ -3154,6 +3228,7 @@ type TSiteFacilityBooking = {
|
|
|
3154
3228
|
deletedAt?: Date | string;
|
|
3155
3229
|
};
|
|
3156
3230
|
declare const schemaSiteFacilityBooking: Joi.ObjectSchema<any>;
|
|
3231
|
+
declare const schemaUpdateSiteFacilityBooking: Joi.ObjectSchema<any>;
|
|
3157
3232
|
declare function MSiteFacilityBooking(value: TSiteFacilityBooking): {
|
|
3158
3233
|
_id: ObjectId;
|
|
3159
3234
|
facility: string;
|
|
@@ -3256,8 +3331,8 @@ declare function useSiteFacilityBookingRepo(): {
|
|
|
3256
3331
|
pages: number;
|
|
3257
3332
|
pageRange: string;
|
|
3258
3333
|
} | TSiteFacilityBooking>;
|
|
3259
|
-
getSiteFacilityBookingById: (
|
|
3260
|
-
updateSiteFacilityBookingById: (
|
|
3334
|
+
getSiteFacilityBookingById: (id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document> | TSiteFacilityBooking>;
|
|
3335
|
+
updateSiteFacilityBookingById: (id: ObjectId | string, value: Partial<TSiteFacilityBooking>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
3261
3336
|
deleteSiteFacilityBookingById: (_id: string | ObjectId) => Promise<number>;
|
|
3262
3337
|
createIndexes: () => Promise<void>;
|
|
3263
3338
|
};
|
|
@@ -3352,10 +3427,26 @@ declare function useDocumentManagementController(): {
|
|
|
3352
3427
|
getDocumentsBySiteId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
3353
3428
|
};
|
|
3354
3429
|
|
|
3355
|
-
declare
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3430
|
+
declare enum BulletinRecipient {
|
|
3431
|
+
RESIDENT = "resident",
|
|
3432
|
+
SECURITY_AGENCY = "security_agency",
|
|
3433
|
+
CLEANING_SERVICES = "cleaning_services",
|
|
3434
|
+
MECHANICAL_ELECTRICAL = "mechanical_electrical",
|
|
3435
|
+
PROPERTY_MANAGEMENT_AGENCY = "property_management_agency",
|
|
3436
|
+
PEST_CONTROL_SERVICES = "pest_control_services",
|
|
3437
|
+
LANDSCAPING_SERVICES = "landscaping_services",
|
|
3438
|
+
POOL_MAINTENANCE_SERVICES = "pool_maintenance_services"
|
|
3439
|
+
}
|
|
3440
|
+
declare enum BulletinStatus {
|
|
3441
|
+
ACTIVE = "active",
|
|
3442
|
+
EXPIRED = "expired",
|
|
3443
|
+
DELETED = "deleted"
|
|
3444
|
+
}
|
|
3445
|
+
declare enum BulletinSort {
|
|
3446
|
+
CREATED_AT = "createdAt",
|
|
3447
|
+
NAME = "name",
|
|
3448
|
+
ID = "_id"
|
|
3449
|
+
}
|
|
3359
3450
|
type TBulletinBoard = {
|
|
3360
3451
|
_id?: ObjectId;
|
|
3361
3452
|
site?: string | ObjectId;
|
|
@@ -3371,7 +3462,7 @@ type TBulletinBoard = {
|
|
|
3371
3462
|
noExpiration?: boolean;
|
|
3372
3463
|
startDate?: string | Date;
|
|
3373
3464
|
endDate?: string | Date;
|
|
3374
|
-
status?:
|
|
3465
|
+
status?: BulletinStatus | undefined;
|
|
3375
3466
|
createdAt?: Date | string;
|
|
3376
3467
|
updatedAt?: Date | string;
|
|
3377
3468
|
deletedAt?: Date | string;
|
|
@@ -3382,7 +3473,7 @@ declare function MBulletinBoard(value: TBulletinBoard): {
|
|
|
3382
3473
|
_id: ObjectId;
|
|
3383
3474
|
site: string | ObjectId;
|
|
3384
3475
|
orgId: string | ObjectId;
|
|
3385
|
-
recipients:
|
|
3476
|
+
recipients: BulletinRecipient[];
|
|
3386
3477
|
title: string;
|
|
3387
3478
|
content: string;
|
|
3388
3479
|
file: {
|
|
@@ -3392,8 +3483,8 @@ declare function MBulletinBoard(value: TBulletinBoard): {
|
|
|
3392
3483
|
}[];
|
|
3393
3484
|
noExpiration: boolean;
|
|
3394
3485
|
startDate: string;
|
|
3395
|
-
endDate: string
|
|
3396
|
-
status:
|
|
3486
|
+
endDate: string;
|
|
3487
|
+
status: BulletinStatus | undefined;
|
|
3397
3488
|
createdAt: string | Date;
|
|
3398
3489
|
updatedAt: string | Date | undefined;
|
|
3399
3490
|
deletedAt: string | Date | undefined;
|
|
@@ -3825,6 +3916,9 @@ interface IAccessCard {
|
|
|
3825
3916
|
requestDate?: Date;
|
|
3826
3917
|
vmsRemarks?: string;
|
|
3827
3918
|
isWinsland?: boolean;
|
|
3919
|
+
one_time?: boolean;
|
|
3920
|
+
purpose?: string;
|
|
3921
|
+
status?: string;
|
|
3828
3922
|
}
|
|
3829
3923
|
declare enum AccessTypeProps {
|
|
3830
3924
|
NORMAL = "Normal",
|
|
@@ -4129,6 +4223,44 @@ declare function UseAccessManagementRepo(): {
|
|
|
4129
4223
|
items: any;
|
|
4130
4224
|
length: any;
|
|
4131
4225
|
}>;
|
|
4226
|
+
availableCardContractorsRepo: (params: {
|
|
4227
|
+
siteId: string;
|
|
4228
|
+
unitId: string;
|
|
4229
|
+
page: number;
|
|
4230
|
+
limit: number;
|
|
4231
|
+
type: string;
|
|
4232
|
+
}) => Promise<bson.Document[]>;
|
|
4233
|
+
vmsgenerateQrCodesRepo: (params: {
|
|
4234
|
+
site: string;
|
|
4235
|
+
unitId: string;
|
|
4236
|
+
quantity: number;
|
|
4237
|
+
normalizedUnitId: string[];
|
|
4238
|
+
}) => Promise<{
|
|
4239
|
+
acknowledged: boolean;
|
|
4240
|
+
insertedCount: number;
|
|
4241
|
+
insertedIds: Record<number, ObjectId>;
|
|
4242
|
+
}>;
|
|
4243
|
+
addVisitorAccessCardRepo: (params: {
|
|
4244
|
+
site: string;
|
|
4245
|
+
unitId: string;
|
|
4246
|
+
quantity: number;
|
|
4247
|
+
type: string;
|
|
4248
|
+
nfcCards: {
|
|
4249
|
+
_id: string;
|
|
4250
|
+
cardNo: string;
|
|
4251
|
+
}[];
|
|
4252
|
+
visitorId: string;
|
|
4253
|
+
acm_url: string;
|
|
4254
|
+
}) => Promise<{
|
|
4255
|
+
visitorId: ObjectId | undefined;
|
|
4256
|
+
registeredAt: Date;
|
|
4257
|
+
accessCards: any;
|
|
4258
|
+
code: any;
|
|
4259
|
+
}>;
|
|
4260
|
+
signQrCodeRepo: (params: {
|
|
4261
|
+
cardId: string;
|
|
4262
|
+
purpose: string;
|
|
4263
|
+
}) => Promise<string>;
|
|
4132
4264
|
};
|
|
4133
4265
|
|
|
4134
4266
|
declare function useAccessManagementController(): {
|
|
@@ -4157,6 +4289,10 @@ declare function useAccessManagementController(): {
|
|
|
4157
4289
|
getCardDetails: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4158
4290
|
addQrTag: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4159
4291
|
allQrTag: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4292
|
+
availableCardContractors: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4293
|
+
vmsgenerateQrCodes: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4294
|
+
addVisitorAccessCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4295
|
+
signQrCode: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4160
4296
|
};
|
|
4161
4297
|
|
|
4162
4298
|
declare const DEVICE_STATUS: {
|
|
@@ -4631,6 +4767,7 @@ type TIncidentTypeAndTime = {
|
|
|
4631
4767
|
incidentEnd?: string;
|
|
4632
4768
|
typeOfIncident: string;
|
|
4633
4769
|
dateOfIncident?: string | Date;
|
|
4770
|
+
timeOfResponse?: string;
|
|
4634
4771
|
};
|
|
4635
4772
|
type TAuthoritiesCalled = {
|
|
4636
4773
|
type: string;
|
|
@@ -4642,8 +4779,6 @@ type TAuthoritiesCalled = {
|
|
|
4642
4779
|
type TSubmissionForm = {
|
|
4643
4780
|
dateOfReport: string | Date;
|
|
4644
4781
|
time?: string;
|
|
4645
|
-
timeOfResponse?: string;
|
|
4646
|
-
dateOfIncident?: string | Date;
|
|
4647
4782
|
};
|
|
4648
4783
|
type TComplaintInfo = {
|
|
4649
4784
|
complainant?: string;
|
|
@@ -4669,10 +4804,22 @@ type TIncidentInformation = {
|
|
|
4669
4804
|
recipientOfComplaint?: TRecipientOfComplaint;
|
|
4670
4805
|
complaintReceivedTo: TComplaintReceivedTo;
|
|
4671
4806
|
};
|
|
4807
|
+
type TResident = {
|
|
4808
|
+
_id: ObjectId | string;
|
|
4809
|
+
name: string;
|
|
4810
|
+
};
|
|
4672
4811
|
type TAffectedInjured = {
|
|
4673
4812
|
name: string;
|
|
4674
4813
|
contact?: string;
|
|
4675
4814
|
nric?: string;
|
|
4815
|
+
block?: number;
|
|
4816
|
+
level?: string;
|
|
4817
|
+
unit?: string | ObjectId;
|
|
4818
|
+
other?: string | null;
|
|
4819
|
+
isOther: boolean;
|
|
4820
|
+
incidentLocation: string;
|
|
4821
|
+
remarks?: string;
|
|
4822
|
+
resident: TResident;
|
|
4676
4823
|
};
|
|
4677
4824
|
type TanyoneDamageToProperty = {
|
|
4678
4825
|
description: string;
|
|
@@ -4682,10 +4829,9 @@ type TanyoneDamageToProperty = {
|
|
|
4682
4829
|
blkLevelUnit: string;
|
|
4683
4830
|
name: string;
|
|
4684
4831
|
contact: string;
|
|
4832
|
+
resident: TResident;
|
|
4685
4833
|
};
|
|
4686
4834
|
type TAffectedEntities = {
|
|
4687
|
-
anyUnitAffectedValue: "yes" | "no";
|
|
4688
|
-
affectedUnit?: Record<string, any> | ObjectId;
|
|
4689
4835
|
anyoneAffectedValue: "yes" | "no";
|
|
4690
4836
|
affectedInjured: TAffectedInjured[];
|
|
4691
4837
|
anyPropertyAffectedValue: "yes" | "no";
|
|
@@ -4694,13 +4840,13 @@ type TAffectedEntities = {
|
|
|
4694
4840
|
type TAuthorities = {
|
|
4695
4841
|
authoritiesValue: "yes" | "no";
|
|
4696
4842
|
authoritiesCalled: TAuthoritiesCalled[];
|
|
4697
|
-
incidentThereAfter?:
|
|
4843
|
+
incidentThereAfter?: TActionStatus;
|
|
4698
4844
|
managementNotified?: TActionStatus;
|
|
4699
|
-
incidentResolved?:
|
|
4700
|
-
causeOfIncident?:
|
|
4701
|
-
systemUsed?:
|
|
4702
|
-
cctvRecord?:
|
|
4703
|
-
particularsOwner?:
|
|
4845
|
+
incidentResolved?: TActionStatus;
|
|
4846
|
+
causeOfIncident?: TActionStatus;
|
|
4847
|
+
systemUsed?: TActionStatus;
|
|
4848
|
+
cctvRecord?: TActionStatus;
|
|
4849
|
+
particularsOwner?: TActionStatus;
|
|
4704
4850
|
whenIncidentResolve?: TActionStatus;
|
|
4705
4851
|
nameOfShiftIncharge?: {
|
|
4706
4852
|
personInCharge?: string;
|
|
@@ -4708,8 +4854,9 @@ type TAuthorities = {
|
|
|
4708
4854
|
shiftStart?: string;
|
|
4709
4855
|
shiftEnd?: string;
|
|
4710
4856
|
time?: string;
|
|
4857
|
+
status: string;
|
|
4711
4858
|
};
|
|
4712
|
-
securityImplication?:
|
|
4859
|
+
securityImplication?: TActionStatus;
|
|
4713
4860
|
};
|
|
4714
4861
|
type TIncidentReport = {
|
|
4715
4862
|
_id?: ObjectId;
|
|
@@ -4766,6 +4913,7 @@ declare function useIncidentReportController(): {
|
|
|
4766
4913
|
deleteIncidentReportById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
4767
4914
|
createIncidentSummary: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
4768
4915
|
reviewIncidentReport: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
4916
|
+
getAllForVirtualPatrolLogs: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
4769
4917
|
};
|
|
4770
4918
|
|
|
4771
4919
|
declare function useIncidentReportRepo(): {
|
|
@@ -4789,6 +4937,19 @@ declare function useIncidentReportRepo(): {
|
|
|
4789
4937
|
createIndexes: () => Promise<void>;
|
|
4790
4938
|
createTextIndex: () => Promise<void>;
|
|
4791
4939
|
reviewIncidentReport: (_id: ObjectId | string, value: Partial<TIncidentReport>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
4940
|
+
getAllForVirtualPatrolLogs: ({ search, page, limit, sort, site, status, dateFrom, }: {
|
|
4941
|
+
search?: string | undefined;
|
|
4942
|
+
page?: number | undefined;
|
|
4943
|
+
limit?: number | undefined;
|
|
4944
|
+
sort?: Record<string, any> | undefined;
|
|
4945
|
+
site: string | ObjectId;
|
|
4946
|
+
status?: string | undefined;
|
|
4947
|
+
dateFrom?: string | undefined;
|
|
4948
|
+
}, session?: ClientSession) => Promise<{
|
|
4949
|
+
items: any[];
|
|
4950
|
+
pages: number;
|
|
4951
|
+
pageRange: string;
|
|
4952
|
+
}>;
|
|
4792
4953
|
};
|
|
4793
4954
|
|
|
4794
4955
|
type TNfcPatrolSettings = {
|
|
@@ -5121,4 +5282,4 @@ declare function useAddressRepo(): {
|
|
|
5121
5282
|
getByUserId: (user: string | ObjectId) => Promise<TAddress | null>;
|
|
5122
5283
|
};
|
|
5123
5284
|
|
|
5124
|
-
export { ANPRMode, AccessTypeProps, AssignCardConfig,
|
|
5285
|
+
export { ANPRMode, AccessTypeProps, AssignCardConfig, BuildingStatus, BulkCardUpdate, BulletinRecipient, BulletinSort, BulletinStatus, Camera, CameraType, DEVICE_STATUS, 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, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPromoCode, MRobot, MRole, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVisitorTransaction, MWorkOrder, OrgNature, PERSON_TYPES, PersonType, PersonTypes, QrTagProps, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, 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, TDefaultAccessCard, TDocs, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TMember, TMemberUpdateStatus, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TResident, TRobot, TRobotMetadata, TRole, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, 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, allowedFieldsSite, allowedNatures, attendanceSchema, attendanceSettingsSchema, chatSchema, customerSchema, feedbackSchema, formatDahuaDate, incidentReport, incidentReportLog, logCamera, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, orgSchema, promoCodeSchema, 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, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaServiceProvider, schemaServiceProviderBilling, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaUnitBilling, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateGuestManagement, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, siteSchema, tokenSchema, 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, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useMemberController, useMemberRepo, 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, 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, workOrderSchema };
|