@7365admin1/core 3.79.1-staging.337 → 3.80.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/dist/index.d.ts +53 -267
  3. package/dist/index.js +555 -1993
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +555 -1988
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +68 -68
  8. package/test/guard-invite-wiring.test.mjs +0 -48
  9. package/test/notification-category.util.test.mjs +0 -21
  10. package/.changeset/cctv-live-view-signed.md +0 -12
  11. package/.changeset/cctv-recorded-footage.md +0 -5
  12. package/.changeset/client-invite-owner-role-permissions.md +0 -5
  13. package/.changeset/client-invite-service365.md +0 -5
  14. package/.changeset/customer-sites-one-row-per-site.md +0 -19
  15. package/.changeset/hid-duplicate-enrollment.md +0 -22
  16. package/.changeset/hid-facial-error-wording.md +0 -20
  17. package/.changeset/hid-identity-user-link.md +0 -26
  18. package/.changeset/hid-objectid-across-driver-copies.md +0 -26
  19. package/.changeset/hid-profile-qr-backend.md +0 -31
  20. package/.changeset/hid-reader-user-search.md +0 -22
  21. package/.changeset/inventory-notification-category.md +0 -5
  22. package/.changeset/manpower-authenticated-namespace.md +0 -27
  23. package/.changeset/member-direct-role-org.md +0 -5
  24. package/.changeset/member-direct-self-enrol-role.md +0 -5
  25. package/.changeset/member-list-site-scope.md +0 -5
  26. package/.changeset/member-lookup-follows-site.md +0 -16
  27. package/.changeset/members-by-user-reach.md +0 -5
  28. package/.changeset/module-ceiling-site-owner.md +0 -5
  29. package/.changeset/module-gate-foundation.md +0 -20
  30. package/.changeset/module-gate-kill-switch-and-read.md +0 -26
  31. package/.changeset/module-gate-server.md +0 -35
  32. package/.changeset/notify-access-filter-on.md +0 -24
  33. package/.changeset/org-owner-membership-repair.md +0 -15
  34. package/.changeset/org-read-reach.md +0 -5
  35. package/.changeset/org-update-diagnosable-error.md +0 -14
  36. package/.changeset/patrol-email-scope-restore.md +0 -16
  37. package/.changeset/people-create-reach-enforce.md +0 -5
  38. package/.changeset/people-create-reach-gate.md +0 -31
  39. package/.changeset/people-occupied-structure.md +0 -5
  40. package/.changeset/real-estate-developer-app-type.md +0 -5
  41. package/.changeset/real-estate-developer-lookup-both-types.md +0 -5
  42. package/.changeset/resident-app-module-ceiling.md +0 -18
  43. package/.changeset/role-module-ceiling.md +0 -16
  44. package/.changeset/role-read-self-arm.md +0 -5
  45. package/.changeset/role-v2-platform-grant.md +0 -14
  46. package/.changeset/site-module-allowlist.md +0 -5
  47. package/.changeset/site-modules-client-admin.md +0 -5
  48. package/.changeset/site-save-resident-ceiling.md +0 -7
  49. package/.changeset/staff-platform-notifications.md +0 -5
  50. package/.changeset/user-email-allowlist-subscription-authz.md +0 -21
  51. package/.changeset/user-field-self-allowlist.md +0 -5
  52. package/.changeset/user-invite-dedupe.md +0 -5
  53. package/.changeset/vehicle-one-plate-per-site.md +0 -58
  54. package/scripts/hid-backfill-enrolment-access.mjs +0 -198
  55. package/test/document-expiry-event.test.mjs +0 -146
  56. package/test/document-expiry-filter.test.mjs +0 -167
  57. package/test/document-expiry-reminder.test.mjs +0 -161
  58. package/test/document-type-resolution.test.mjs +0 -62
  59. package/test/e2e/document-expiry-event-link.e2e.test.mjs +0 -323
  60. package/test/hid-enrolment-grants-access.test.mjs +0 -162
  61. package/test/occupancy-tree.test.mjs +0 -128
  62. package/test/resident-login-account.test.mjs +0 -126
package/CHANGELOG.md CHANGED
@@ -1,5 +1,64 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 3.80.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a267a47: Vehicle statuses say which list a vehicle is on, a site holds a plate once
8
+ whatever its status, and every vehicle keeps a history.
9
+
10
+ **Statuses.** A whitelist vehicle is `active`, a season pass `temporary`, a
11
+ blocked vehicle `blocked`. Blocking a resident or season pass puts its plate on
12
+ the blocklist of every active camera except Exit for ten years (whatever the
13
+ pass's own dates) and takes it OFF every camera's allowed list, so no camera
14
+ holds a plate on both lists; approving a pending blocklist vehicle uses the
15
+ same ten years, and a new camera is filled the same way. Unblocking sets `unblocked` and takes the plate off every active camera's
16
+ blocklist by plate number - and off the allowed list too, so an unblocked car
17
+ is on no list rather than quietly whitelisted again. A blocked, unblocked,
18
+ deleted or inactive vehicle can be blocked again in place. Everything that
19
+ writes, syncs, revokes or recognises a plate at the gate now treats `active`,
20
+ `temporary` and `blocked` as live; the gate still recognises a season pass as a
21
+ registered resident until its expiry, and an unblocked plate no longer counts
22
+ as blocked at visitor check-in.
23
+
24
+ **Categories and tabs.** A whitelist vehicle is filed `resident`, a season
25
+ pass `season_pass` (new), and a vehicle added to the blocklist `visitor` or
26
+ `contractor` (new in the vehicle enum; default `visitor`); blocked from a visitor transaction it keeps that type - `delivery`, `pick-up` or `drop-off` (new), a guest as `visitor`. A season pass seen at the gate is logged as a `resident` transaction. Blocking keeps the
27
+ category, so a blocked resident is still `resident`; editing a season pass type
28
+ on or off moves a whitelist vehicle between `resident` and `season_pass`. The
29
+ vehicle list takes `view` - `residents`, `season-passes` or `block-listed` -
30
+ for the three tabs; older season passes saved as `resident` show under Season
31
+ Passes. The gate counts `resident` and `season_pass` as registered.
32
+
33
+ **Update an existing plate from the add form.** `existingPlatesAtSite`
34
+ answers which of the plates being added the site already holds, with each
35
+ record's tab and status; `moveVehicle` saves the form's details on that record
36
+ and moves it to the form's tab (off every camera list, onto the list of its new
37
+ kind; pending for a security agency without the approve permission). Its
38
+ history records "moved".
39
+
40
+ **Sync.** `syncVehicleToCameras` puts a live vehicle's plate on every active
41
+ camera of its list that lacks it (a plate saved while its cameras were
42
+ inactive), camera by camera, and records the cameras that took it;
43
+ `activeCameraCounts` gives the active cameras per list so the screens can offer
44
+ it.
45
+
46
+ **One plate per site.** Adding a plate the site already has - deleted,
47
+ pending, temporary, blocked or unblocked included - is refused with its status
48
+ and "edit the existing vehicle instead" (restore, for a deleted one). The same
49
+ check guards approve, restore and plate edits. Matching ignores case and
50
+ spacing.
51
+
52
+ **History.** `history` holds the last 20 changes - created, updated,
53
+ approved, restored, blocked, unblocked, deleted - each with the user's id, the
54
+ time and the fields that changed. `getSpecificVehicleById` adds each user's
55
+ name.
56
+
57
+ **Also:** the vehicle list returns every status unless one is asked for; the
58
+ camera's record id (`recNo`) is no longer stored; `processDeletingExpiredVehicles`
59
+ is no longer needed (the camera enforces each pass's own expiry) and should be
60
+ unscheduled by the API.
61
+
3
62
  ## 3.79.0
4
63
 
5
64
  ### Minor Changes