@7365admin1/core 3.26.0 → 3.28.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
+ ## 3.28.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 14c9b14: urgent release for nfc patrol api
8
+
9
+ ## 3.27.0
10
+
11
+ ### Minor Changes
12
+
13
+ - ad3a683: release changes today
14
+
3
15
  ## 3.26.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -174,6 +174,12 @@ declare function useUserRepo(): {
174
174
  sid: string;
175
175
  }, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
176
176
  updateUserOrgById: (id: string | ObjectId, org: string | ObjectId, session?: ClientSession) => Promise<string>;
177
+ updateUserUnitById: (id: string | ObjectId, value: {
178
+ block?: ObjectId | null;
179
+ level?: ObjectId | null;
180
+ unitId?: ObjectId | null;
181
+ unitName?: string;
182
+ }, session?: ClientSession) => Promise<"No user unit fields to update." | "Successfully updated user unit information.">;
177
183
  };
178
184
 
179
185
  declare function useUserController(): {
@@ -2874,6 +2880,7 @@ type TVisitorTransaction = {
2874
2880
  inviterId?: string | ObjectId;
2875
2881
  createdBy?: string | ObjectId;
2876
2882
  updatedBy?: string | ObjectId;
2883
+ isMembersAdded?: boolean;
2877
2884
  };
2878
2885
  declare const schemaVisitorTransaction: Joi.ObjectSchema<any>;
2879
2886
  declare const schemaUpdateVisTrans: Joi.ObjectSchema<any>;
@@ -4880,8 +4887,8 @@ declare function UseAccessManagementRepo(): {
4880
4887
  _id: string;
4881
4888
  cardNo: string;
4882
4889
  }[];
4883
- visitorId: string;
4884
4890
  acm_url: string;
4891
+ user: Record<string, unknown>;
4885
4892
  }) => Promise<{
4886
4893
  visitorId: ObjectId | undefined;
4887
4894
  registeredAt: Date;
@@ -5048,6 +5055,7 @@ declare function useNfcPatrolTagController(): {
5048
5055
  add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5049
5056
  getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5050
5057
  updateNfcPatrolTagBySite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5058
+ getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
5051
5059
  };
5052
5060
 
5053
5061
  declare function useNfcPatrolTagRepo(): {
@@ -5087,6 +5095,7 @@ declare function useNfcPatrolTagRepo(): {
5087
5095
  },
5088
5096
  ClientSession?
5089
5097
  ]) => Promise<mongodb.UpdateResult<bson.Document>>;
5098
+ getById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document>>;
5090
5099
  };
5091
5100
 
5092
5101
  declare enum DOBStatus {
@@ -6036,15 +6045,25 @@ declare function useNfcPatrolLogRepo(): {
6036
6045
  pages: number;
6037
6046
  pageRange: string;
6038
6047
  } | TNfcPatrolLog>;
6048
+ getById: (id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document> | null>;
6049
+ updateCheckpoint: (id: string | ObjectId, checkpointIndex: number, payload: any, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
6039
6050
  };
6040
6051
 
6041
6052
  declare function useNfcPatrolLogService(): {
6042
6053
  add: (value: TNfcPatrolLog) => Promise<string>;
6054
+ completeCheckpoint: (logId: string, payload: {
6055
+ checkpointIndex: number;
6056
+ uid: string;
6057
+ action: "complete" | "skip";
6058
+ skippedRemarks?: string;
6059
+ }) => Promise<string>;
6043
6060
  };
6044
6061
 
6045
6062
  declare function useNfcPatrolLogController(): {
6046
6063
  add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6047
6064
  getAllBySite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6065
+ completeCheckpoint: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6066
+ getLog: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6048
6067
  };
6049
6068
 
6050
6069
  declare function useAddressRepo(): {