@7365admin1/core 3.96.1-staging.369 → 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 (93) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/index.d.ts +77 -588
  3. package/dist/index.js +686 -2949
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +686 -2935
  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/service-provider-invite-approval.e2e.test.mjs +2 -193
  10. package/test/guard-invite-wiring.test.mjs +0 -48
  11. package/test/hid-face-photo-retention.test.mjs +3 -6
  12. package/test/notification-category.util.test.mjs +0 -21
  13. package/test/resident-app-modules.test.mjs +0 -63
  14. package/test/service-provider-invite.test.mjs +1 -38
  15. package/.changeset/building-map.md +0 -23
  16. package/.changeset/cctv-live-view-signed.md +0 -12
  17. package/.changeset/cctv-recorded-footage.md +0 -5
  18. package/.changeset/cleaning-robot-cloud-connector.md +0 -39
  19. package/.changeset/client-invite-owner-role-permissions.md +0 -5
  20. package/.changeset/client-invite-service365.md +0 -5
  21. package/.changeset/customer-sites-one-row-per-site.md +0 -19
  22. package/.changeset/fleet-core-client-name.md +0 -5
  23. package/.changeset/fleet-core-plan-frame.md +0 -5
  24. package/.changeset/hid-duplicate-enrollment.md +0 -22
  25. package/.changeset/hid-facial-error-wording.md +0 -20
  26. package/.changeset/hid-identity-user-link.md +0 -26
  27. package/.changeset/hid-objectid-across-driver-copies.md +0 -26
  28. package/.changeset/hid-profile-qr-backend.md +0 -31
  29. package/.changeset/hid-reader-user-search.md +0 -22
  30. package/.changeset/hid-sip-account-list.md +0 -17
  31. package/.changeset/hid-sip-account-unit-label.md +0 -40
  32. package/.changeset/inventory-notification-category.md +0 -5
  33. package/.changeset/manpower-authenticated-namespace.md +0 -27
  34. package/.changeset/member-direct-role-org.md +0 -5
  35. package/.changeset/member-direct-self-enrol-role.md +0 -5
  36. package/.changeset/member-list-site-scope.md +0 -5
  37. package/.changeset/member-lookup-follows-site.md +0 -16
  38. package/.changeset/members-by-user-reach.md +0 -5
  39. package/.changeset/module-ceiling-site-owner.md +0 -5
  40. package/.changeset/module-gate-foundation.md +0 -20
  41. package/.changeset/module-gate-kill-switch-and-read.md +0 -26
  42. package/.changeset/module-gate-server.md +0 -35
  43. package/.changeset/notify-access-filter-on.md +0 -24
  44. package/.changeset/open-rmf-adapter.md +0 -5
  45. package/.changeset/org-owner-membership-repair.md +0 -15
  46. package/.changeset/org-read-reach.md +0 -5
  47. package/.changeset/org-update-diagnosable-error.md +0 -14
  48. package/.changeset/patrol-email-scope-restore.md +0 -16
  49. package/.changeset/people-create-reach-enforce.md +0 -5
  50. package/.changeset/people-create-reach-gate.md +0 -31
  51. package/.changeset/people-occupied-structure.md +0 -5
  52. package/.changeset/real-estate-developer-app-type.md +0 -5
  53. package/.changeset/real-estate-developer-lookup-both-types.md +0 -5
  54. package/.changeset/resident-app-access-submodules.md +0 -12
  55. package/.changeset/resident-app-module-ceiling.md +0 -18
  56. package/.changeset/robot-adapter-wiring-and-demo.md +0 -24
  57. package/.changeset/robot-alerts-activity.md +0 -5
  58. package/.changeset/robot-faults-network.md +0 -7
  59. package/.changeset/robot-fleet-endpoints.md +0 -26
  60. package/.changeset/robot-lift-recent.md +0 -5
  61. package/.changeset/robot-live-tracking.md +0 -18
  62. package/.changeset/robot-map-and-lift.md +0 -5
  63. package/.changeset/robot-multi-brand.md +0 -28
  64. package/.changeset/robot-network-view.md +0 -5
  65. package/.changeset/robot-remaining-gaps.md +0 -17
  66. package/.changeset/robot-site-fleet-patrol.md +0 -5
  67. package/.changeset/role-module-ceiling.md +0 -16
  68. package/.changeset/role-read-self-arm.md +0 -5
  69. package/.changeset/role-v2-platform-grant.md +0 -14
  70. package/.changeset/site-module-allowlist.md +0 -5
  71. package/.changeset/site-modules-client-admin.md +0 -5
  72. package/.changeset/site-save-resident-ceiling.md +0 -7
  73. package/.changeset/sp-invite-accept-flow.md +0 -5
  74. package/.changeset/sp-invite-accept-for-company.md +0 -5
  75. package/.changeset/staff-platform-notifications.md +0 -5
  76. package/.changeset/user-email-allowlist-subscription-authz.md +0 -21
  77. package/.changeset/user-field-self-allowlist.md +0 -5
  78. package/.changeset/user-invite-dedupe.md +0 -5
  79. package/scripts/hid-backfill-enrolment-access.mjs +0 -198
  80. package/scripts/hid-duplicate-reader-report.mjs +0 -89
  81. package/test/document-expiry-event.test.mjs +0 -146
  82. package/test/document-expiry-filter.test.mjs +0 -167
  83. package/test/document-expiry-reminder.test.mjs +0 -161
  84. package/test/document-type-resolution.test.mjs +0 -62
  85. package/test/e2e/document-expiry-event-link.e2e.test.mjs +0 -323
  86. package/test/hid-duplicate-registration.test.mjs +0 -220
  87. package/test/hid-enrolment-grants-access.test.mjs +0 -162
  88. package/test/hid-facial-without-photo.test.mjs +0 -157
  89. package/test/hid-identification-drift.test.mjs +0 -363
  90. package/test/hid-identification-methods.test.mjs +0 -255
  91. package/test/occupancy-tree.test.mjs +0 -128
  92. package/test/resident-login-account.test.mjs +0 -126
  93. 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