@7365admin1/core 2.19.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 +6 -0
- package/dist/index.d.ts +167 -46
- package/dist/index.js +5348 -4547
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6453 -5654
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1477,7 +1477,6 @@ declare function useCustomerController(): {
|
|
|
1477
1477
|
deleteCustomer: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1478
1478
|
};
|
|
1479
1479
|
|
|
1480
|
-
declare const updateSiteSchema: Joi.ObjectSchema<any>;
|
|
1481
1480
|
declare enum SiteStatus {
|
|
1482
1481
|
ACTIVE = "active",
|
|
1483
1482
|
PENDING = "pending"
|
|
@@ -1515,6 +1514,9 @@ type TSite = {
|
|
|
1515
1514
|
status?: string;
|
|
1516
1515
|
address?: SiteAddress;
|
|
1517
1516
|
category?: SiteCategories;
|
|
1517
|
+
deliveryCompanyList?: string[];
|
|
1518
|
+
isOpenGate?: Boolean | null;
|
|
1519
|
+
dahuaTimeExpiration?: number | null;
|
|
1518
1520
|
createdAt?: Date;
|
|
1519
1521
|
updatedAt?: string | Date;
|
|
1520
1522
|
deletedAt?: string | Date;
|
|
@@ -1522,6 +1524,7 @@ type TSite = {
|
|
|
1522
1524
|
type TSiteUpdateBlock = NonNullable<TSiteMetadata["block"]>;
|
|
1523
1525
|
declare const allowedFieldsSite: string[];
|
|
1524
1526
|
declare const siteSchema: Joi.ObjectSchema<any>;
|
|
1527
|
+
declare const updateSiteSchema: Joi.ObjectSchema<any>;
|
|
1525
1528
|
declare function MSite(value: TSite): {
|
|
1526
1529
|
name: string;
|
|
1527
1530
|
description: string;
|
|
@@ -1531,6 +1534,9 @@ declare function MSite(value: TSite): {
|
|
|
1531
1534
|
createdAt: Date;
|
|
1532
1535
|
address: SiteAddress | undefined;
|
|
1533
1536
|
category: SiteCategories | undefined;
|
|
1537
|
+
deliveryCompanyList: string[];
|
|
1538
|
+
isOpenGate: Boolean | null | undefined;
|
|
1539
|
+
dahuaTimeExpiration: number | null | undefined;
|
|
1534
1540
|
updatedAt: string | Date;
|
|
1535
1541
|
deletedAt: string | Date;
|
|
1536
1542
|
};
|
|
@@ -1811,6 +1817,7 @@ declare function useDahuaService(): {
|
|
|
1811
1817
|
start?: string;
|
|
1812
1818
|
end?: string;
|
|
1813
1819
|
owner?: string;
|
|
1820
|
+
openGate?: boolean;
|
|
1814
1821
|
}) => Promise<urllib.HttpClientResponse<any>>;
|
|
1815
1822
|
removePlateNumber: (value: {
|
|
1816
1823
|
host: string;
|
|
@@ -1829,29 +1836,31 @@ declare function useDahuaService(): {
|
|
|
1829
1836
|
start?: string;
|
|
1830
1837
|
end?: string;
|
|
1831
1838
|
owner?: string;
|
|
1839
|
+
isOpenGate?: Boolean;
|
|
1832
1840
|
}) => Promise<urllib.HttpClientResponse<any>>;
|
|
1833
1841
|
};
|
|
1834
1842
|
|
|
1835
1843
|
type TVehicle = {
|
|
1836
1844
|
_id?: ObjectId;
|
|
1837
|
-
plateNumber: string | string[];
|
|
1838
|
-
type: string;
|
|
1839
|
-
category: string;
|
|
1840
1845
|
name: string;
|
|
1841
1846
|
phoneNumber?: string;
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
site: string | ObjectId;
|
|
1847
|
+
type: string;
|
|
1848
|
+
email?: string;
|
|
1845
1849
|
block?: number;
|
|
1846
1850
|
level?: string;
|
|
1847
1851
|
unit?: string | ObjectId;
|
|
1848
|
-
nric?: string;
|
|
1849
|
-
remarks?: string;
|
|
1850
|
-
seasonPassType?: string;
|
|
1851
1852
|
start?: Date | string;
|
|
1852
1853
|
end?: Date | string;
|
|
1853
1854
|
status?: string;
|
|
1855
|
+
nric?: string;
|
|
1856
|
+
remarks?: string;
|
|
1857
|
+
org: string | ObjectId;
|
|
1858
|
+
site: string | ObjectId;
|
|
1859
|
+
plateNumber: string | string[];
|
|
1854
1860
|
unitName?: string;
|
|
1861
|
+
category: string;
|
|
1862
|
+
recNo?: string;
|
|
1863
|
+
seasonPassType?: string;
|
|
1855
1864
|
createdAt?: Date | string;
|
|
1856
1865
|
updatedAt?: Date | string;
|
|
1857
1866
|
deletedAt?: Date | string;
|
|
@@ -1973,6 +1982,7 @@ declare function useVehicleRepo(): {
|
|
|
1973
1982
|
}) => Promise<{}>;
|
|
1974
1983
|
};
|
|
1975
1984
|
|
|
1985
|
+
declare function formatDahuaDate(date: Date): string;
|
|
1976
1986
|
declare function useVehicleService(): {
|
|
1977
1987
|
add: (value: TVehicle) => Promise<string>;
|
|
1978
1988
|
deleteVehicle: (_id: string, recno: string, site: string, type: string, bypass?: boolean) => Promise<string>;
|
|
@@ -1995,6 +2005,10 @@ declare function useVehicleController(): {
|
|
|
1995
2005
|
getAllVehiclesByUnitId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1996
2006
|
};
|
|
1997
2007
|
|
|
2008
|
+
declare enum CameraType {
|
|
2009
|
+
IP = "ip",
|
|
2010
|
+
ANPR = "anpr"
|
|
2011
|
+
}
|
|
1998
2012
|
type TCamera = {
|
|
1999
2013
|
host: string;
|
|
2000
2014
|
username: string;
|
|
@@ -2253,6 +2267,16 @@ type TPlates = {
|
|
|
2253
2267
|
plateNumber: string;
|
|
2254
2268
|
recNo: string;
|
|
2255
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
|
+
}
|
|
2256
2280
|
type TFiles = {
|
|
2257
2281
|
id: string | ObjectId;
|
|
2258
2282
|
name: string;
|
|
@@ -2315,27 +2339,39 @@ declare function MPerson(value: TPerson): {
|
|
|
2315
2339
|
deletedAt: string | Date | undefined;
|
|
2316
2340
|
};
|
|
2317
2341
|
|
|
2318
|
-
|
|
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
|
+
}
|
|
2319
2352
|
type TVisitorTransaction = {
|
|
2320
2353
|
_id?: ObjectId;
|
|
2321
2354
|
name?: string;
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
org?: string | ObjectId;
|
|
2325
|
-
site?: string | ObjectId;
|
|
2355
|
+
contact?: string;
|
|
2356
|
+
type?: PersonTypes;
|
|
2326
2357
|
block?: number;
|
|
2327
2358
|
level?: string;
|
|
2328
2359
|
unit?: string | ObjectId;
|
|
2329
|
-
contact?: string;
|
|
2330
|
-
plateNumber?: string;
|
|
2331
2360
|
checkIn?: string | Date;
|
|
2332
2361
|
checkOut?: string | Date;
|
|
2333
2362
|
status?: string;
|
|
2363
|
+
nric?: string;
|
|
2334
2364
|
remarks?: string;
|
|
2365
|
+
org?: string | ObjectId;
|
|
2366
|
+
site?: string | ObjectId;
|
|
2367
|
+
plateNumber?: string;
|
|
2368
|
+
recNo?: string;
|
|
2369
|
+
unitName?: string;
|
|
2370
|
+
company?: string;
|
|
2335
2371
|
deliveryType?: string;
|
|
2336
2372
|
attachments?: string[];
|
|
2337
|
-
|
|
2338
|
-
|
|
2373
|
+
snapshotEntryImage?: string;
|
|
2374
|
+
snapshotExitImage?: string;
|
|
2339
2375
|
contractorType?: string;
|
|
2340
2376
|
manualCheckout?: boolean;
|
|
2341
2377
|
direction?: string;
|
|
@@ -2346,7 +2382,8 @@ type TVisitorTransaction = {
|
|
|
2346
2382
|
contact: string;
|
|
2347
2383
|
}[];
|
|
2348
2384
|
visitorPass?: string | null;
|
|
2349
|
-
|
|
2385
|
+
visitorId?: string | ObjectId;
|
|
2386
|
+
expiredAt?: string | Date | null;
|
|
2350
2387
|
createdAt?: string | Date;
|
|
2351
2388
|
updatedAt?: string | Date;
|
|
2352
2389
|
deletedAt?: string | Date;
|
|
@@ -2356,7 +2393,7 @@ declare const schemaUpdateVisTrans: Joi.ObjectSchema<any>;
|
|
|
2356
2393
|
declare function MVisitorTransaction(value: TVisitorTransaction): {
|
|
2357
2394
|
_id: ObjectId | undefined;
|
|
2358
2395
|
name: string | undefined;
|
|
2359
|
-
type:
|
|
2396
|
+
type: PersonTypes | undefined;
|
|
2360
2397
|
org: string | ObjectId | undefined;
|
|
2361
2398
|
site: string | ObjectId | undefined;
|
|
2362
2399
|
company: string | undefined;
|
|
@@ -2365,19 +2402,23 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
|
|
|
2365
2402
|
unit: string | ObjectId | undefined;
|
|
2366
2403
|
contact: string | undefined;
|
|
2367
2404
|
plateNumber: string | undefined;
|
|
2405
|
+
recNo: string | undefined;
|
|
2368
2406
|
checkIn: string | Date;
|
|
2369
2407
|
checkOut: string | Date | undefined;
|
|
2370
|
-
status: string;
|
|
2408
|
+
status: string | undefined;
|
|
2371
2409
|
remarks: string | undefined;
|
|
2372
2410
|
deliveryType: string | undefined;
|
|
2373
2411
|
attachments: string[] | undefined;
|
|
2374
|
-
|
|
2412
|
+
snapshotEntryImage: string | undefined;
|
|
2413
|
+
snapshotExitImage: string | undefined;
|
|
2375
2414
|
nric: string | undefined;
|
|
2376
2415
|
contractorType: string | undefined;
|
|
2377
2416
|
manualCheckout: boolean;
|
|
2378
2417
|
direction: string | undefined;
|
|
2379
2418
|
visitorPass: string | null | undefined;
|
|
2380
2419
|
unitName: string | undefined;
|
|
2420
|
+
expiredAt: string | Date | null;
|
|
2421
|
+
visitorId: string | ObjectId;
|
|
2381
2422
|
createdAt: string | Date;
|
|
2382
2423
|
updatedAt: string | Date;
|
|
2383
2424
|
deletedAt: string | Date;
|
|
@@ -2385,7 +2426,7 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
|
|
|
2385
2426
|
|
|
2386
2427
|
declare function useVisitorTransactionRepo(): {
|
|
2387
2428
|
add: (value: TVisitorTransaction, session?: ClientSession) => Promise<ObjectId>;
|
|
2388
|
-
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, }: {
|
|
2389
2430
|
search?: string | undefined;
|
|
2390
2431
|
page?: number | undefined;
|
|
2391
2432
|
limit?: number | undefined;
|
|
@@ -2396,17 +2437,22 @@ declare function useVisitorTransactionRepo(): {
|
|
|
2396
2437
|
dateTo?: string | undefined;
|
|
2397
2438
|
dateFrom?: string | undefined;
|
|
2398
2439
|
type?: string | undefined;
|
|
2399
|
-
checkedOut?:
|
|
2440
|
+
checkedOut?: Boolean | undefined;
|
|
2441
|
+
plateNumber?: string | undefined;
|
|
2400
2442
|
}, session?: ClientSession) => Promise<{}>;
|
|
2401
2443
|
getOpenByPlateNumber: (plateNumber: string, site: string | ObjectId) => Promise<TVisitorTransaction | null>;
|
|
2402
2444
|
updateById: (_id: string | ObjectId, value: Partial<TVisitorTransaction>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2403
2445
|
deleteVisitorTransaction: (_id: string | ObjectId) => Promise<number>;
|
|
2404
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>>;
|
|
2405
2450
|
};
|
|
2406
2451
|
|
|
2407
2452
|
declare function useVisitorTransactionService(): {
|
|
2408
2453
|
add: (value: TVisitorTransaction) => Promise<string>;
|
|
2409
2454
|
updateById: (id: string | ObjectId, value: TVisitorTransaction) => Promise<string>;
|
|
2455
|
+
processTransactionDahuaStatus: () => Promise<void>;
|
|
2410
2456
|
};
|
|
2411
2457
|
|
|
2412
2458
|
declare function useVisitorTransactionController(): {
|
|
@@ -2416,11 +2462,19 @@ declare function useVisitorTransactionController(): {
|
|
|
2416
2462
|
deleteVisitorTransaction: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2417
2463
|
};
|
|
2418
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
|
+
}
|
|
2419
2474
|
type TGuestManagement = {
|
|
2420
2475
|
_id?: ObjectId;
|
|
2421
2476
|
name: string;
|
|
2422
2477
|
contact?: string;
|
|
2423
|
-
nirc?: string;
|
|
2424
2478
|
type?: string;
|
|
2425
2479
|
email?: string;
|
|
2426
2480
|
block: string;
|
|
@@ -3373,10 +3427,26 @@ declare function useDocumentManagementController(): {
|
|
|
3373
3427
|
getDocumentsBySiteId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
3374
3428
|
};
|
|
3375
3429
|
|
|
3376
|
-
declare
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
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
|
+
}
|
|
3380
3450
|
type TBulletinBoard = {
|
|
3381
3451
|
_id?: ObjectId;
|
|
3382
3452
|
site?: string | ObjectId;
|
|
@@ -3392,7 +3462,7 @@ type TBulletinBoard = {
|
|
|
3392
3462
|
noExpiration?: boolean;
|
|
3393
3463
|
startDate?: string | Date;
|
|
3394
3464
|
endDate?: string | Date;
|
|
3395
|
-
status?:
|
|
3465
|
+
status?: BulletinStatus | undefined;
|
|
3396
3466
|
createdAt?: Date | string;
|
|
3397
3467
|
updatedAt?: Date | string;
|
|
3398
3468
|
deletedAt?: Date | string;
|
|
@@ -3403,7 +3473,7 @@ declare function MBulletinBoard(value: TBulletinBoard): {
|
|
|
3403
3473
|
_id: ObjectId;
|
|
3404
3474
|
site: string | ObjectId;
|
|
3405
3475
|
orgId: string | ObjectId;
|
|
3406
|
-
recipients:
|
|
3476
|
+
recipients: BulletinRecipient[];
|
|
3407
3477
|
title: string;
|
|
3408
3478
|
content: string;
|
|
3409
3479
|
file: {
|
|
@@ -3413,8 +3483,8 @@ declare function MBulletinBoard(value: TBulletinBoard): {
|
|
|
3413
3483
|
}[];
|
|
3414
3484
|
noExpiration: boolean;
|
|
3415
3485
|
startDate: string;
|
|
3416
|
-
endDate: string
|
|
3417
|
-
status:
|
|
3486
|
+
endDate: string;
|
|
3487
|
+
status: BulletinStatus | undefined;
|
|
3418
3488
|
createdAt: string | Date;
|
|
3419
3489
|
updatedAt: string | Date | undefined;
|
|
3420
3490
|
deletedAt: string | Date | undefined;
|
|
@@ -3846,6 +3916,9 @@ interface IAccessCard {
|
|
|
3846
3916
|
requestDate?: Date;
|
|
3847
3917
|
vmsRemarks?: string;
|
|
3848
3918
|
isWinsland?: boolean;
|
|
3919
|
+
one_time?: boolean;
|
|
3920
|
+
purpose?: string;
|
|
3921
|
+
status?: string;
|
|
3849
3922
|
}
|
|
3850
3923
|
declare enum AccessTypeProps {
|
|
3851
3924
|
NORMAL = "Normal",
|
|
@@ -4167,6 +4240,27 @@ declare function UseAccessManagementRepo(): {
|
|
|
4167
4240
|
insertedCount: number;
|
|
4168
4241
|
insertedIds: Record<number, ObjectId>;
|
|
4169
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>;
|
|
4170
4264
|
};
|
|
4171
4265
|
|
|
4172
4266
|
declare function useAccessManagementController(): {
|
|
@@ -4197,6 +4291,8 @@ declare function useAccessManagementController(): {
|
|
|
4197
4291
|
allQrTag: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4198
4292
|
availableCardContractors: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4199
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>>>;
|
|
4200
4296
|
};
|
|
4201
4297
|
|
|
4202
4298
|
declare const DEVICE_STATUS: {
|
|
@@ -4671,6 +4767,7 @@ type TIncidentTypeAndTime = {
|
|
|
4671
4767
|
incidentEnd?: string;
|
|
4672
4768
|
typeOfIncident: string;
|
|
4673
4769
|
dateOfIncident?: string | Date;
|
|
4770
|
+
timeOfResponse?: string;
|
|
4674
4771
|
};
|
|
4675
4772
|
type TAuthoritiesCalled = {
|
|
4676
4773
|
type: string;
|
|
@@ -4682,8 +4779,6 @@ type TAuthoritiesCalled = {
|
|
|
4682
4779
|
type TSubmissionForm = {
|
|
4683
4780
|
dateOfReport: string | Date;
|
|
4684
4781
|
time?: string;
|
|
4685
|
-
timeOfResponse?: string;
|
|
4686
|
-
dateOfIncident?: string | Date;
|
|
4687
4782
|
};
|
|
4688
4783
|
type TComplaintInfo = {
|
|
4689
4784
|
complainant?: string;
|
|
@@ -4709,10 +4804,22 @@ type TIncidentInformation = {
|
|
|
4709
4804
|
recipientOfComplaint?: TRecipientOfComplaint;
|
|
4710
4805
|
complaintReceivedTo: TComplaintReceivedTo;
|
|
4711
4806
|
};
|
|
4807
|
+
type TResident = {
|
|
4808
|
+
_id: ObjectId | string;
|
|
4809
|
+
name: string;
|
|
4810
|
+
};
|
|
4712
4811
|
type TAffectedInjured = {
|
|
4713
4812
|
name: string;
|
|
4714
4813
|
contact?: string;
|
|
4715
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;
|
|
4716
4823
|
};
|
|
4717
4824
|
type TanyoneDamageToProperty = {
|
|
4718
4825
|
description: string;
|
|
@@ -4722,10 +4829,9 @@ type TanyoneDamageToProperty = {
|
|
|
4722
4829
|
blkLevelUnit: string;
|
|
4723
4830
|
name: string;
|
|
4724
4831
|
contact: string;
|
|
4832
|
+
resident: TResident;
|
|
4725
4833
|
};
|
|
4726
4834
|
type TAffectedEntities = {
|
|
4727
|
-
anyUnitAffectedValue: "yes" | "no";
|
|
4728
|
-
affectedUnit?: Record<string, any> | ObjectId;
|
|
4729
4835
|
anyoneAffectedValue: "yes" | "no";
|
|
4730
4836
|
affectedInjured: TAffectedInjured[];
|
|
4731
4837
|
anyPropertyAffectedValue: "yes" | "no";
|
|
@@ -4734,13 +4840,13 @@ type TAffectedEntities = {
|
|
|
4734
4840
|
type TAuthorities = {
|
|
4735
4841
|
authoritiesValue: "yes" | "no";
|
|
4736
4842
|
authoritiesCalled: TAuthoritiesCalled[];
|
|
4737
|
-
incidentThereAfter?:
|
|
4843
|
+
incidentThereAfter?: TActionStatus;
|
|
4738
4844
|
managementNotified?: TActionStatus;
|
|
4739
|
-
incidentResolved?:
|
|
4740
|
-
causeOfIncident?:
|
|
4741
|
-
systemUsed?:
|
|
4742
|
-
cctvRecord?:
|
|
4743
|
-
particularsOwner?:
|
|
4845
|
+
incidentResolved?: TActionStatus;
|
|
4846
|
+
causeOfIncident?: TActionStatus;
|
|
4847
|
+
systemUsed?: TActionStatus;
|
|
4848
|
+
cctvRecord?: TActionStatus;
|
|
4849
|
+
particularsOwner?: TActionStatus;
|
|
4744
4850
|
whenIncidentResolve?: TActionStatus;
|
|
4745
4851
|
nameOfShiftIncharge?: {
|
|
4746
4852
|
personInCharge?: string;
|
|
@@ -4748,8 +4854,9 @@ type TAuthorities = {
|
|
|
4748
4854
|
shiftStart?: string;
|
|
4749
4855
|
shiftEnd?: string;
|
|
4750
4856
|
time?: string;
|
|
4857
|
+
status: string;
|
|
4751
4858
|
};
|
|
4752
|
-
securityImplication?:
|
|
4859
|
+
securityImplication?: TActionStatus;
|
|
4753
4860
|
};
|
|
4754
4861
|
type TIncidentReport = {
|
|
4755
4862
|
_id?: ObjectId;
|
|
@@ -4806,6 +4913,7 @@ declare function useIncidentReportController(): {
|
|
|
4806
4913
|
deleteIncidentReportById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
4807
4914
|
createIncidentSummary: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
4808
4915
|
reviewIncidentReport: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
4916
|
+
getAllForVirtualPatrolLogs: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
4809
4917
|
};
|
|
4810
4918
|
|
|
4811
4919
|
declare function useIncidentReportRepo(): {
|
|
@@ -4829,6 +4937,19 @@ declare function useIncidentReportRepo(): {
|
|
|
4829
4937
|
createIndexes: () => Promise<void>;
|
|
4830
4938
|
createTextIndex: () => Promise<void>;
|
|
4831
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
|
+
}>;
|
|
4832
4953
|
};
|
|
4833
4954
|
|
|
4834
4955
|
type TNfcPatrolSettings = {
|
|
@@ -5161,4 +5282,4 @@ declare function useAddressRepo(): {
|
|
|
5161
5282
|
getByUserId: (user: string | ObjectId) => Promise<TAddress | null>;
|
|
5162
5283
|
};
|
|
5163
5284
|
|
|
5164
|
-
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 };
|