@7365admin1/core 3.96.1-staging.370 → 3.99.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 +24 -0
  2. package/dist/index.d.ts +71 -527
  3. package/dist/index.js +636 -2960
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +636 -2950
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/test/e2e/harness.mjs +0 -5
  9. package/test/e2e/service-provider-invite-approval.e2e.test.mjs +0 -202
  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/.changeset/building-map.md +0 -23
  15. package/.changeset/cctv-live-view-signed.md +0 -12
  16. package/.changeset/cctv-recorded-footage.md +0 -5
  17. package/.changeset/cleaning-robot-cloud-connector.md +0 -39
  18. package/.changeset/client-invite-owner-role-permissions.md +0 -5
  19. package/.changeset/client-invite-service365.md +0 -5
  20. package/.changeset/customer-sites-one-row-per-site.md +0 -19
  21. package/.changeset/fleet-core-client-name.md +0 -5
  22. package/.changeset/fleet-core-plan-frame.md +0 -5
  23. package/.changeset/hid-duplicate-enrollment.md +0 -22
  24. package/.changeset/hid-facial-error-wording.md +0 -20
  25. package/.changeset/hid-identity-user-link.md +0 -26
  26. package/.changeset/hid-objectid-across-driver-copies.md +0 -26
  27. package/.changeset/hid-profile-qr-backend.md +0 -31
  28. package/.changeset/hid-reader-user-search.md +0 -22
  29. package/.changeset/hid-sip-account-list.md +0 -17
  30. package/.changeset/hid-sip-account-unit-label.md +0 -40
  31. package/.changeset/inventory-notification-category.md +0 -5
  32. package/.changeset/manpower-authenticated-namespace.md +0 -27
  33. package/.changeset/member-direct-role-org.md +0 -5
  34. package/.changeset/member-direct-self-enrol-role.md +0 -5
  35. package/.changeset/member-list-site-scope.md +0 -5
  36. package/.changeset/member-lookup-follows-site.md +0 -16
  37. package/.changeset/members-by-user-reach.md +0 -5
  38. package/.changeset/module-ceiling-site-owner.md +0 -5
  39. package/.changeset/module-gate-foundation.md +0 -20
  40. package/.changeset/module-gate-kill-switch-and-read.md +0 -26
  41. package/.changeset/module-gate-server.md +0 -35
  42. package/.changeset/notify-access-filter-on.md +0 -24
  43. package/.changeset/open-rmf-adapter.md +0 -5
  44. package/.changeset/org-owner-membership-repair.md +0 -15
  45. package/.changeset/org-read-reach.md +0 -5
  46. package/.changeset/org-update-diagnosable-error.md +0 -14
  47. package/.changeset/patrol-email-scope-restore.md +0 -16
  48. package/.changeset/people-create-reach-enforce.md +0 -5
  49. package/.changeset/people-create-reach-gate.md +0 -31
  50. package/.changeset/people-occupied-structure.md +0 -5
  51. package/.changeset/real-estate-developer-app-type.md +0 -5
  52. package/.changeset/real-estate-developer-lookup-both-types.md +0 -5
  53. package/.changeset/resident-app-access-submodules.md +0 -12
  54. package/.changeset/resident-app-module-ceiling.md +0 -18
  55. package/.changeset/robot-adapter-wiring-and-demo.md +0 -24
  56. package/.changeset/robot-alerts-activity.md +0 -5
  57. package/.changeset/robot-faults-network.md +0 -7
  58. package/.changeset/robot-fleet-endpoints.md +0 -26
  59. package/.changeset/robot-lift-recent.md +0 -5
  60. package/.changeset/robot-live-tracking.md +0 -18
  61. package/.changeset/robot-map-and-lift.md +0 -5
  62. package/.changeset/robot-multi-brand.md +0 -28
  63. package/.changeset/robot-network-view.md +0 -5
  64. package/.changeset/robot-remaining-gaps.md +0 -17
  65. package/.changeset/robot-site-fleet-patrol.md +0 -5
  66. package/.changeset/role-module-ceiling.md +0 -16
  67. package/.changeset/role-read-self-arm.md +0 -5
  68. package/.changeset/role-v2-platform-grant.md +0 -14
  69. package/.changeset/site-module-allowlist.md +0 -5
  70. package/.changeset/site-modules-client-admin.md +0 -5
  71. package/.changeset/site-save-resident-ceiling.md +0 -7
  72. package/.changeset/sp-invite-accept-flow.md +0 -5
  73. package/.changeset/sp-invite-accept-for-company.md +0 -5
  74. package/.changeset/sp-invite-site-link.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,29 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 3.99.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2d5658e: Service-provider invitations: accept adds the site to the company the invited person accepts for (the organisation on screen, which they must belong to) instead of whichever organisation an email lookup finds first, and records that company on the invitation. The received list gains Pending / Accepted / Declined / Expired tabs with counts, who invited, when it was answered and whether the site is on the current company's Sites list. A company-wide role (organisation owner/admin, or a full-access role) now reaches the sites its company serves for clients even when its membership names one site; site-level and vertical guard roles are unchanged.
8
+
9
+ ## 3.98.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 1d2788d: Site permission checks use the membership the app is working in (DV-0409).
14
+
15
+ - 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."
16
+ - 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.
17
+ - Preference order among the memberships at the site: app and org, then app, then org, then the first.
18
+ - 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.
19
+ - The membership lookup also reads `members.type`.
20
+
21
+ ## 3.97.0
22
+
23
+ ### Minor Changes
24
+
25
+ - 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.
26
+
3
27
  ## 3.96.0
4
28
 
5
29
  ### Minor Changes