@7365admin1/core 3.96.1-staging.370 → 3.98.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 (95) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/index.d.ts +78 -609
  3. package/dist/index.js +689 -3161
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +689 -3147
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/test/camera-view.util.test.mjs +0 -47
  9. package/test/e2e/harness.mjs +0 -5
  10. package/test/e2e/service-provider-invite-approval.e2e.test.mjs +2 -395
  11. package/test/guard-invite-wiring.test.mjs +0 -48
  12. package/test/hid-face-photo-retention.test.mjs +3 -6
  13. package/test/notification-category.util.test.mjs +0 -21
  14. package/test/resident-app-modules.test.mjs +0 -63
  15. package/test/service-provider-invite.test.mjs +1 -38
  16. package/.changeset/building-map.md +0 -23
  17. package/.changeset/cctv-live-view-signed.md +0 -12
  18. package/.changeset/cctv-recorded-footage.md +0 -5
  19. package/.changeset/cleaning-robot-cloud-connector.md +0 -39
  20. package/.changeset/client-invite-owner-role-permissions.md +0 -5
  21. package/.changeset/client-invite-service365.md +0 -5
  22. package/.changeset/customer-sites-one-row-per-site.md +0 -19
  23. package/.changeset/fleet-core-client-name.md +0 -5
  24. package/.changeset/fleet-core-plan-frame.md +0 -5
  25. package/.changeset/hid-duplicate-enrollment.md +0 -22
  26. package/.changeset/hid-facial-error-wording.md +0 -20
  27. package/.changeset/hid-identity-user-link.md +0 -26
  28. package/.changeset/hid-objectid-across-driver-copies.md +0 -26
  29. package/.changeset/hid-profile-qr-backend.md +0 -31
  30. package/.changeset/hid-reader-user-search.md +0 -22
  31. package/.changeset/hid-sip-account-list.md +0 -17
  32. package/.changeset/hid-sip-account-unit-label.md +0 -40
  33. package/.changeset/inventory-notification-category.md +0 -5
  34. package/.changeset/manpower-authenticated-namespace.md +0 -27
  35. package/.changeset/member-direct-role-org.md +0 -5
  36. package/.changeset/member-direct-self-enrol-role.md +0 -5
  37. package/.changeset/member-list-site-scope.md +0 -5
  38. package/.changeset/member-lookup-follows-site.md +0 -16
  39. package/.changeset/members-by-user-reach.md +0 -5
  40. package/.changeset/module-ceiling-site-owner.md +0 -5
  41. package/.changeset/module-gate-foundation.md +0 -20
  42. package/.changeset/module-gate-kill-switch-and-read.md +0 -26
  43. package/.changeset/module-gate-server.md +0 -35
  44. package/.changeset/notify-access-filter-on.md +0 -24
  45. package/.changeset/open-rmf-adapter.md +0 -5
  46. package/.changeset/org-owner-membership-repair.md +0 -15
  47. package/.changeset/org-read-reach.md +0 -5
  48. package/.changeset/org-update-diagnosable-error.md +0 -14
  49. package/.changeset/patrol-email-scope-restore.md +0 -16
  50. package/.changeset/people-create-reach-enforce.md +0 -5
  51. package/.changeset/people-create-reach-gate.md +0 -31
  52. package/.changeset/people-occupied-structure.md +0 -5
  53. package/.changeset/real-estate-developer-app-type.md +0 -5
  54. package/.changeset/real-estate-developer-lookup-both-types.md +0 -5
  55. package/.changeset/resident-app-access-submodules.md +0 -12
  56. package/.changeset/resident-app-module-ceiling.md +0 -18
  57. package/.changeset/robot-adapter-wiring-and-demo.md +0 -24
  58. package/.changeset/robot-alerts-activity.md +0 -5
  59. package/.changeset/robot-faults-network.md +0 -7
  60. package/.changeset/robot-fleet-endpoints.md +0 -26
  61. package/.changeset/robot-lift-recent.md +0 -5
  62. package/.changeset/robot-live-tracking.md +0 -18
  63. package/.changeset/robot-map-and-lift.md +0 -5
  64. package/.changeset/robot-multi-brand.md +0 -28
  65. package/.changeset/robot-network-view.md +0 -5
  66. package/.changeset/robot-remaining-gaps.md +0 -17
  67. package/.changeset/robot-site-fleet-patrol.md +0 -5
  68. package/.changeset/role-module-ceiling.md +0 -16
  69. package/.changeset/role-read-self-arm.md +0 -5
  70. package/.changeset/role-v2-platform-grant.md +0 -14
  71. package/.changeset/site-module-allowlist.md +0 -5
  72. package/.changeset/site-modules-client-admin.md +0 -5
  73. package/.changeset/site-save-resident-ceiling.md +0 -7
  74. package/.changeset/sp-invite-accept-flow.md +0 -5
  75. package/.changeset/sp-invite-accept-for-company.md +0 -5
  76. package/.changeset/sp-invite-site-link.md +0 -5
  77. package/.changeset/staff-platform-notifications.md +0 -5
  78. package/.changeset/user-email-allowlist-subscription-authz.md +0 -21
  79. package/.changeset/user-field-self-allowlist.md +0 -5
  80. package/.changeset/user-invite-dedupe.md +0 -5
  81. package/scripts/hid-backfill-enrolment-access.mjs +0 -198
  82. package/scripts/hid-duplicate-reader-report.mjs +0 -89
  83. package/test/document-expiry-event.test.mjs +0 -146
  84. package/test/document-expiry-filter.test.mjs +0 -167
  85. package/test/document-expiry-reminder.test.mjs +0 -161
  86. package/test/document-type-resolution.test.mjs +0 -62
  87. package/test/e2e/document-expiry-event-link.e2e.test.mjs +0 -323
  88. package/test/hid-duplicate-registration.test.mjs +0 -220
  89. package/test/hid-enrolment-grants-access.test.mjs +0 -162
  90. package/test/hid-facial-without-photo.test.mjs +0 -157
  91. package/test/hid-identification-drift.test.mjs +0 -363
  92. package/test/hid-identification-methods.test.mjs +0 -255
  93. package/test/occupancy-tree.test.mjs +0 -128
  94. package/test/resident-login-account.test.mjs +0 -126
  95. package/test/unit-owner.test.mjs +0 -190
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 3.98.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1d2788d: Site permission checks use the membership the app is working in (DV-0409).
8
+
9
+ - When a person holds several memberships pinned to the same site (another app or another organisation), `requireSiteReach` → `authorizeSite` / `entitleSite` → `cameraGrant` now checks the role of the membership the app is working in, not whichever membership the database returns first. This fixes the web security app showing a module (e.g. Vehicle Mgmt) as allowed while the server refused it with "You do not have permission to view vehicles."
10
+ - The app says which membership it is working in with the `X-App` (member type, e.g. `security_agency`) and `X-Org` headers. `membershipPreferenceOf(req)` reads them; malformed values are ignored.
11
+ - Preference order among the memberships at the site: app and org, then app, then org, then the first.
12
+ - Backward compatible: without the headers, or when they match nothing, the old first-row rule applies unchanged. The headers only choose among the person's own memberships at that site and never grant a site they have no membership at.
13
+ - The membership lookup also reads `members.type`.
14
+
15
+ ## 3.97.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 74204d8: Service-provider invitations can be answered from inside the app: `listReceived` and `accept` on the invitation service (GET `/received`, PUT `/:id/accept`), acceptance gated on the invited account and on the invitation still being open (expired, declined or cancelled invitations are refused), the engagement written atomically with the pending -> complete move, the sender told on accept and decline, and the invitation notification now carries the invited organisation (`params.org`) for the web bell.
20
+
3
21
  ## 3.96.0
4
22
 
5
23
  ### Minor Changes