@7365admin1/core 2.76.0 → 2.77.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.77.0
4
+
5
+ ### Minor Changes
6
+
7
+ - de47b20: release changes for preloved api, org api, member api, online forms api, etc
8
+
3
9
  ## 2.76.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -313,17 +313,13 @@ declare function useMemberRepo(): {
313
313
  pages: number;
314
314
  pageRange: string;
315
315
  } | TMember>;
316
- getOrgsByMembership: ({ search, page, limit, user, type, }: {
316
+ getOrgsByMembership: ({ search, page, limit, user, type }: {
317
317
  search?: string | undefined;
318
318
  page?: number | undefined;
319
319
  limit?: number | undefined;
320
320
  user?: string | ObjectId | undefined;
321
321
  type?: string | undefined;
322
- }) => Promise<{
323
- items: any[];
324
- pages: number;
325
- pageRange: string;
326
- } | TMember>;
322
+ }) => Promise<any>;
327
323
  getOrgsByUserId: ({ search, page, limit, sort, user, status, }: {
328
324
  search?: string | undefined;
329
325
  page?: number | undefined;
@@ -524,6 +520,9 @@ type TOrg = {
524
520
  busInst?: string;
525
521
  status?: string;
526
522
  defaultSite?: string;
523
+ onboardingRequired?: boolean;
524
+ onboardingCompleted?: boolean;
525
+ onboardingCompletedAt?: string | Date | null;
527
526
  terms?: string;
528
527
  policies?: string;
529
528
  createdAt?: string | Date;
@@ -2124,6 +2123,17 @@ declare function useDahuaService(): {
2124
2123
  vehicleType?: string;
2125
2124
  vehicleColor?: string;
2126
2125
  }) => Promise<urllib.HttpClientResponse<any>>;
2126
+ openBarrier: (value: {
2127
+ host: string;
2128
+ username: string;
2129
+ password: string;
2130
+ plateNumber: string;
2131
+ channel?: number;
2132
+ }) => Promise<{
2133
+ success: boolean;
2134
+ message: string;
2135
+ raw: any;
2136
+ }>;
2127
2137
  };
2128
2138
 
2129
2139
  type TVehicleUpdate = Partial<Pick<TVehicle, "name" | "phoneNumber" | "block" | "level" | "unit" | "plateNumber" | "recNo" | "type">>;
@@ -2392,6 +2402,7 @@ declare function useSiteCameraRepo(): {
2392
2402
  category?: string;
2393
2403
  guardPost?: number;
2394
2404
  }) => Promise<{} | null>;
2405
+ getVisitorsInBySite: (site: string | ObjectId) => Promise<Document | undefined>;
2395
2406
  getBySites: (site: string | ObjectId, options?: {
2396
2407
  type?: string;
2397
2408
  category?: string;
@@ -4447,6 +4458,7 @@ interface AdditionalSettings {
4447
4458
  subText: string | null;
4448
4459
  date: string | null;
4449
4460
  };
4461
+ validityMinutes: number;
4450
4462
  url: string | null;
4451
4463
  }
4452
4464
  type TAccessMngmntSettings = {
@@ -6994,6 +7006,7 @@ declare function MPostFavorite(value: TPostFavorite): {
6994
7006
  declare function usePostFavoriteRepo(): {
6995
7007
  addFavorite: (value: TPostFavorite, session?: any) => Promise<string | ObjectId>;
6996
7008
  getById: (_id: string | ObjectId) => Promise<mongodb.WithId<TPostFavorite>>;
7009
+ getByPostId: (postId: string | ObjectId) => Promise<mongodb.WithId<TPostFavorite>>;
6997
7010
  updateById: (_id: string | ObjectId, userId: string | ObjectId, session?: any) => Promise<"removed" | "added">;
6998
7011
  };
6999
7012
 
@@ -7005,6 +7018,7 @@ declare function usePostFavoriteService(): {
7005
7018
  declare function usePostFavoriteController(): {
7006
7019
  addFavorite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7007
7020
  getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7021
+ getByPostId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7008
7022
  updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7009
7023
  };
7010
7024
 
@@ -7069,12 +7083,16 @@ declare function useSubcategoryPrelovedRepo(): {
7069
7083
  }) => Promise<mongodb.WithId<bson.Document>[]>;
7070
7084
  getById: (_id: string | ObjectId) => Promise<mongodb.WithId<bson.Document>>;
7071
7085
  addSubcategory: (item: TSubcategoryPreloved, session?: any) => Promise<ObjectId>;
7086
+ updateById: (_id: string | ObjectId, value: Partial<TSubcategoryPreloved>, session?: any) => Promise<mongodb.UpdateResult<bson.Document>>;
7087
+ deleteById: (_id: string | ObjectId, session?: any) => Promise<number>;
7072
7088
  };
7073
7089
 
7074
7090
  declare function useSubcategoryPrelovedController(): {
7075
7091
  getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7076
7092
  getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7077
7093
  addSubcategory: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7094
+ updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7095
+ deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7078
7096
  };
7079
7097
 
7080
7098
  declare enum FormEntryStatus {
@@ -7110,11 +7128,27 @@ declare function MFormEntry(value: TFormEntry): {
7110
7128
  declare const online_forms_namespace_collection = "online-forms";
7111
7129
  declare function useFormEntryRepo(): {
7112
7130
  add: (value: TFormEntry, session?: ClientSession) => Promise<ObjectId>;
7131
+ getAll: ({ search, page, limit, sort, status, org, site, }: {
7132
+ search?: string | undefined;
7133
+ page?: number | undefined;
7134
+ limit?: number | undefined;
7135
+ sort?: Record<string, any> | undefined;
7136
+ status: string;
7137
+ org?: string | undefined;
7138
+ site?: string | ObjectId | undefined;
7139
+ }) => Promise<{
7140
+ items: any[];
7141
+ pages: number;
7142
+ pageRange: string;
7143
+ } | TFormEntry>;
7144
+ getFormEntryById: (_id: string | ObjectId) => Promise<bson.Document>;
7113
7145
  createTextIndex: () => Promise<void>;
7114
7146
  };
7115
7147
 
7116
7148
  declare function useFormEntryController(): {
7117
7149
  uploadFormEntrys: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7150
+ getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7151
+ getFormEntryById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7118
7152
  };
7119
7153
 
7120
7154
  declare enum BuildingLevelStatus {