@7365admin1/core 2.12.0 → 2.13.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,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4e06be0: get core latest changes
8
+
3
9
  ## 2.12.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -2140,7 +2140,6 @@ type TPlates = {
2140
2140
  type TPerson = {
2141
2141
  _id?: ObjectId;
2142
2142
  name: string;
2143
- contact?: string;
2144
2143
  nirc?: string;
2145
2144
  type?: PersonType;
2146
2145
  email?: string;
@@ -2151,6 +2150,7 @@ type TPerson = {
2151
2150
  end?: string | Date;
2152
2151
  status?: string;
2153
2152
  nric?: string;
2153
+ contact?: string;
2154
2154
  remarks?: string;
2155
2155
  org: string | ObjectId;
2156
2156
  site: string | ObjectId;
@@ -2169,7 +2169,7 @@ declare const schemaUpdatePerson: Joi.ObjectSchema<any>;
2169
2169
  declare function MPerson(value: TPerson): {
2170
2170
  _id: ObjectId | undefined;
2171
2171
  name: string;
2172
- contact: string | undefined;
2172
+ contact: string;
2173
2173
  block: number;
2174
2174
  level: string;
2175
2175
  unit: string;
@@ -3175,7 +3175,7 @@ declare function useDocumentManagementRepo(): {
3175
3175
  sort?: Record<string, any> | undefined;
3176
3176
  status: string;
3177
3177
  org?: string | undefined;
3178
- site?: string | undefined;
3178
+ site?: string | ObjectId | undefined;
3179
3179
  }) => Promise<{
3180
3180
  items: any[];
3181
3181
  pages: number;
@@ -3852,6 +3852,40 @@ declare function UseAccessManagementRepo(): {
3852
3852
  cardId: string[];
3853
3853
  site: string;
3854
3854
  }) => Promise<mongodb.UpdateResult<bson.Document>>;
3855
+ accessandLiftCardsRepo: (params: {
3856
+ accessLevel: string | null;
3857
+ liftAccessLevel: string | null;
3858
+ site: string;
3859
+ userType: EAccessCardUserTypes;
3860
+ type: EAccessCardTypes;
3861
+ }) => Promise<bson.Document[]>;
3862
+ replaceCardRepo: (params: {
3863
+ userId: string;
3864
+ cardId: string;
3865
+ site: string;
3866
+ acm_url: string;
3867
+ }) => Promise<mongodb.InsertManyResult<bson.Document>>;
3868
+ updateNFCStatusRepo: (params: {
3869
+ nfcList: Array<{
3870
+ _id: string | ObjectId;
3871
+ status: string;
3872
+ vmsRemarks?: string;
3873
+ updatedAt?: Date;
3874
+ }>;
3875
+ visitorId: string;
3876
+ }) => Promise<{
3877
+ nfcId: string | ObjectId;
3878
+ modifiedCount?: number | undefined;
3879
+ }[]>;
3880
+ doorAndLiftDropdownRepo: (params: {
3881
+ site: string;
3882
+ type: string;
3883
+ userType: string;
3884
+ }) => Promise<bson.Document[]>;
3885
+ cardReplacementRepo: (params: {
3886
+ cardId: string;
3887
+ remarks: string;
3888
+ }) => Promise<mongodb.WithId<bson.Document> | null>;
3855
3889
  };
3856
3890
 
3857
3891
  declare function useAccessManagementController(): {
@@ -3866,6 +3900,11 @@ declare function useAccessManagementController(): {
3866
3900
  userTypeAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3867
3901
  assignedAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3868
3902
  acknowlegdeCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3903
+ accessandLiftCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3904
+ replaceCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3905
+ updateNFCStatus: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3906
+ doorAndLiftDropdown: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3907
+ cardReplacement: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3869
3908
  };
3870
3909
 
3871
3910
  declare const DEVICE_STATUS: {
@@ -4669,7 +4708,7 @@ declare function useOnlineFormRepo(): {
4669
4708
  sort?: Record<string, any> | undefined;
4670
4709
  status: string;
4671
4710
  org?: string | undefined;
4672
- site?: string | undefined;
4711
+ site?: string | ObjectId | undefined;
4673
4712
  }) => Promise<{
4674
4713
  items: any[];
4675
4714
  pages: number;