@7365admin1/core 3.48.1-staging.172 → 3.48.1-staging.174

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.
@@ -0,0 +1,10 @@
1
+ ---
2
+ "@7365admin1/core": patch
3
+ ---
4
+
5
+ Let Seven365 staff switch a client's faulty camera off, and record it
6
+
7
+ `PATCH /api/site-cameras/id/:id` now falls back to a Seven365 staff check when
8
+ the ordinary site rule refuses. The fallback writes `status` only and is
9
+ recorded in the console audit trail. Reads, `add` and `deleteById` are
10
+ unchanged, so staff have gained no access to any organisation's camera list.
package/dist/index.d.ts CHANGED
@@ -10913,6 +10913,7 @@ declare function useHidAmicoService(): {
10913
10913
  includePassword?: boolean;
10914
10914
  }) => Promise<THidAmicoReader>;
10915
10915
  authorizeReaderUser: (readerId: string, hidUserIdValue: string | number, userId: string) => Promise<THidAmicoReader>;
10916
+ authorizeVisitorForMember: (readerId: string, visitorId: string, userId: string) => Promise<THidAmicoReader>;
10916
10917
  authorizeSiteForCaller: (siteId: string, userId: string) => Promise<{
10917
10918
  site: mongodb.WithId<bson.Document> | null;
10918
10919
  siteObjectId: bson.ObjectId;
@@ -10936,6 +10937,23 @@ declare function useHidAmicoService(): {
10936
10937
  pages: number;
10937
10938
  pageRange: string;
10938
10939
  }>;
10940
+ getMemberReaderInfo: (readerId: string, userId: string) => Promise<{
10941
+ _id: string;
10942
+ name: string;
10943
+ location: string | undefined;
10944
+ status: "deleted" | "active" | "inactive" | "offline" | undefined;
10945
+ portalId: number | undefined;
10946
+ portalName: string | undefined;
10947
+ readerModel: "unknown" | "VL35LF" | "VL70LF" | undefined;
10948
+ cardReadingMode: "unconfigured" | "pacs" | "csn" | "csn_for_mifare" | undefined;
10949
+ capabilities: {
10950
+ card: boolean;
10951
+ facial: boolean;
10952
+ qr: boolean;
10953
+ pin: boolean;
10954
+ intercom: boolean;
10955
+ };
10956
+ }>;
10939
10957
  discoverReader: (value: Pick<THidAmicoReader, "baseUrl" | "username" | "password"> & Partial<Pick<THidAmicoReader, "readerModel">>) => Promise<{
10940
10958
  deviceId: string;
10941
10959
  serial: string;
@@ -11084,7 +11102,7 @@ declare function useHidAmicoService(): {
11084
11102
  pages: number;
11085
11103
  pageRange: string;
11086
11104
  }>;
11087
- listReaderUsers: (readerId: string, page?: number, limit?: number, search?: string, status?: "mapped" | "unmapped" | "", includeVisitors?: boolean) => Promise<{
11105
+ listReaderUsers: (readerId: string, page?: number, limit?: number, search?: string, status?: "mapped" | "unmapped" | "", includeVisitors?: boolean, userType?: "all" | "user" | "visitor") => Promise<{
11088
11106
  items: {
11089
11107
  reader: string;
11090
11108
  hidUserId: string;
@@ -11096,7 +11114,6 @@ declare function useHidAmicoService(): {
11096
11114
  facialEnrolled: boolean;
11097
11115
  };
11098
11116
  isAdministrator: boolean;
11099
- _id?: bson.ObjectId | undefined;
11100
11117
  }[];
11101
11118
  page: number;
11102
11119
  limit: number;
@@ -11153,6 +11170,15 @@ declare function useHidAmicoService(): {
11153
11170
  validFrom: string;
11154
11171
  expiresAt: string;
11155
11172
  }>;
11173
+ getVisitorQrForMember: (readerId: string, visitorId: string, userId: string) => Promise<{
11174
+ readerId: string;
11175
+ visitorId: string;
11176
+ qrValue: string;
11177
+ expiresAt: string;
11178
+ portalId: number | undefined;
11179
+ portalName: string | undefined;
11180
+ readerName: string;
11181
+ } | null>;
11156
11182
  revokeVisitorQr: (readerId: string, visitorId: string) => Promise<{
11157
11183
  readerId: string;
11158
11184
  visitorId: string;
@@ -11365,6 +11391,7 @@ declare function useHidAmicoController(): {
11365
11391
  authorizeManage: (req: Request, _res: Response, next: NextFunction) => Promise<void>;
11366
11392
  authorizeVisitor: (req: Request, _res: Response, next: NextFunction) => Promise<void>;
11367
11393
  listReaders: (req: Request, res: Response, next: NextFunction) => Promise<void>;
11394
+ getMemberReaderInfo: (req: Request, res: Response, next: NextFunction) => Promise<void>;
11368
11395
  discoverReader: (req: Request, res: Response, next: NextFunction) => Promise<void>;
11369
11396
  createReader: (req: Request, res: Response, next: NextFunction) => Promise<void>;
11370
11397
  updateReader: (req: Request, res: Response, next: NextFunction) => Promise<void>;
@@ -11400,6 +11427,7 @@ declare function useHidAmicoController(): {
11400
11427
  setConfiguration: (req: Request, res: Response, next: NextFunction) => Promise<void>;
11401
11428
  runObjectOperation: (req: Request, res: Response, next: NextFunction) => Promise<void>;
11402
11429
  issueVisitorQr: (req: Request, res: Response, next: NextFunction) => Promise<void>;
11430
+ getVisitorQr: (req: Request, res: Response, next: NextFunction) => Promise<void>;
11403
11431
  revokeVisitorQr: (req: Request, res: Response, next: NextFunction) => Promise<void>;
11404
11432
  getProfileFacial: (req: Request, res: Response, next: NextFunction) => Promise<void>;
11405
11433
  setProfileFacial: (req: Request, res: Response, next: NextFunction) => Promise<void>;
@@ -11598,7 +11626,16 @@ declare enum ConsoleAuditAction {
11598
11626
  PLAN_CREATED = "plan.created",
11599
11627
  PLAN_UPDATED = "plan.updated",
11600
11628
  PLAN_STATUS_CHANGED = "plan.status-changed",
11601
- TERMS_PUBLISHED = "terms.published"
11629
+ TERMS_PUBLISHED = "terms.published",
11630
+ /**
11631
+ * Seven365 staff switching a client's camera on or off.
11632
+ *
11633
+ * The only tenant-owned object on this list, and it is here because it is the
11634
+ * only one staff may touch: a faulty camera at a client's site has to be
11635
+ * switchable off by us. See `updateById` in `site-camera.controller.ts` for
11636
+ * the boundary that allows it and nothing else.
11637
+ */
11638
+ CAMERA_STATUS_CHANGED = "camera.status-changed"
11602
11639
  }
11603
11640
  /**
11604
11641
  * The three actions that live in `organization.controller.ts`.
@@ -11618,7 +11655,8 @@ declare enum ConsoleAuditTarget {
11618
11655
  SUBSCRIPTION = "subscription",
11619
11656
  PROMO_CODE = "promo-code",
11620
11657
  PLAN = "plan",
11621
- TERMS = "terms"
11658
+ TERMS = "terms",
11659
+ CAMERA = "camera"
11622
11660
  }
11623
11661
  /** A stored value is a primitive or it is not stored. */
11624
11662
  declare const AUDIT_VALUE_MAX_LENGTH = 120;