@7365admin1/core 2.49.0 → 2.51.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.51.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ab30f16: get latest changes for new onboarding process
8
+
9
+ ## 2.50.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 10d2dfd: get latest changes today 05/06/2026
14
+
3
15
  ## 2.49.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -337,6 +337,7 @@ declare function useMemberController(): {
337
337
  getOrgsByMembership: (req: Request, res: Response, next: NextFunction) => Promise<void>;
338
338
  updateMemberStatus: (req: Request, res: Response, next: NextFunction) => Promise<void>;
339
339
  updateRoleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
340
+ createMemberDirect: (req: Request, res: Response, next: NextFunction) => Promise<void>;
340
341
  };
341
342
 
342
343
  type TVerificationMetadata = {
@@ -390,6 +391,7 @@ declare function useVerificationRepo(): {
390
391
  getByIdByType: (type: string) => Promise<TVerification[]>;
391
392
  updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
392
393
  getByStatus: (status: string) => Promise<TVerification[]>;
394
+ findOne: (query: any) => Promise<mongodb.WithId<bson.Document> | null>;
393
395
  };
394
396
 
395
397
  type TKeyValuePair<K extends string | number | symbol = string, V = any> = {
@@ -2187,6 +2189,7 @@ declare function useVehicleRepo(): {
2187
2189
  [key: number]: any;
2188
2190
  };
2189
2191
  }>;
2192
+ getSpecificVehicleById: (_id: string | ObjectId) => Promise<mongodb.WithId<bson.Document>>;
2190
2193
  };
2191
2194
 
2192
2195
  declare function formatDahuaDate(date: Date): string;
@@ -2233,6 +2236,7 @@ declare function useVehicleController(): {
2233
2236
  reactivateVehicleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2234
2237
  getAllVehiclesByUnitId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2235
2238
  uploadSpreadsheetVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2239
+ getSpecificVehicleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2236
2240
  };
2237
2241
 
2238
2242
  declare function useSiteCameraRepo(): {
@@ -2701,7 +2705,7 @@ declare function useVisitorTransactionRepo(): {
2701
2705
  pageRange: string;
2702
2706
  }>;
2703
2707
  getOpenByPlateNumber: (plateNumber: string, site: string | ObjectId) => Promise<TVisitorTransaction | null>;
2704
- updateById: (_id: string | ObjectId, value: Partial<TVisitorTransaction>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
2708
+ updateById: (_id: string | ObjectId, value: Partial<TVisitorTransaction>, session?: ClientSession, isNotManualCheckOut?: boolean) => Promise<mongodb.UpdateResult<bson.Document>>;
2705
2709
  deleteVisitorTransaction: (_id: string | ObjectId) => Promise<number>;
2706
2710
  createTextIndex: () => Promise<void>;
2707
2711
  getDeliveryPickupTransactions: () => Promise<mongodb.WithId<bson.Document>[]>;
@@ -3114,6 +3118,7 @@ type TPatrolLog = {
3114
3118
  cameras: Array<logCamera>;
3115
3119
  status: Array<string>;
3116
3120
  incidentReport: incidentReport;
3121
+ platform?: string;
3117
3122
  createdAt?: Date | string;
3118
3123
  updatedAt?: Date | string;
3119
3124
  deletedAt?: Date | string;
@@ -3133,6 +3138,7 @@ declare function MPatrolLog(value: TPatrolLog): {
3133
3138
  status: string[];
3134
3139
  route: string | ObjectId | undefined;
3135
3140
  incidentReport: incidentReport;
3141
+ platForm: string;
3136
3142
  createdAt: string | Date;
3137
3143
  updatedAt: string | Date;
3138
3144
  deletedAt: string | Date;
@@ -5300,6 +5306,7 @@ type TIncidentReport = {
5300
5306
  approvedByName?: string;
5301
5307
  remarks?: string | null;
5302
5308
  status: "pending" | "approved" | "rejected";
5309
+ platform?: string;
5303
5310
  createdAt?: string | Date;
5304
5311
  updatedAt?: string | Date;
5305
5312
  deletedAt?: string | Date;
@@ -5321,6 +5328,7 @@ declare function MIncidentReport(value: TIncidentReport): {
5321
5328
  approvedByName: string;
5322
5329
  remarks: string | null;
5323
5330
  status: "pending" | "approved" | "rejected";
5331
+ platForm: string;
5324
5332
  createdAt: string | Date;
5325
5333
  updatedAt: string | Date | undefined;
5326
5334
  deletedAt: string | Date | undefined;
@@ -5502,7 +5510,7 @@ declare function useOccurrenceEntryRepo(): {
5502
5510
 
5503
5511
  declare function useOccurrenceEntryService(): {
5504
5512
  add: (value: TOccurrenceEntry) => Promise<string>;
5505
- updateOccurrenceEntryById: (id: string | ObjectId, value: TOccurrenceEntry) => Promise<string>;
5513
+ updateOccurrenceEntryById: (id: string | ObjectId, value: TOccurrenceEntry) => Promise<"Successfully updated occurrence entry (incident report)." | "Successfully updated daily occurrence entry.">;
5506
5514
  };
5507
5515
 
5508
5516
  declare function useOccurrenceEntryController(): {