@7365admin1/core 3.53.7 → 3.53.9

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.
package/dist/index.mjs CHANGED
@@ -14213,7 +14213,10 @@ var NOTIFICATION_CATEGORIES = [
14213
14213
  key: "serviceProviderInvite",
14214
14214
  label: "Service Provider Invitations",
14215
14215
  description: "When a property manager invites your company to provide services at a site.",
14216
- channels: { inApp: true, push: true, email: true },
14216
+ channels: { inApp: true, push: true, email: false },
14217
+ channelNote: {
14218
+ email: "The invitation email is the invitation itself \u2014 for a company that has no account here yet it is the only copy, so it is always sent to the address the invitation was addressed to. The switches above control the copy that reaches you inside the app."
14219
+ },
14217
14220
  permissionResources: ["service-provider-mgmt"],
14218
14221
  rendered: true
14219
14222
  },
@@ -14240,7 +14243,12 @@ var NOTIFICATION_CATEGORIES = [
14240
14243
  channelNote: { email: NO_EMAIL_RECIPIENT },
14241
14244
  permissionResources: ["emergency-contact"],
14242
14245
  safety: true,
14243
- rendered: true
14246
+ // Nothing sends this. The sender below exists, but the only place emergency
14247
+ // contacts are written is `iservice365-API-core`, and the change that would
14248
+ // have called it from there (API-core #997) was closed, not merged. Until a
14249
+ // caller exists this stays out of the screen rather than offering a switch
14250
+ // over a message that never arrives.
14251
+ rendered: false
14244
14252
  },
14245
14253
  {
14246
14254
  key: "virtualPatrol",
@@ -24512,22 +24520,6 @@ function selectHealthTargets(cameraIds, cap, isValidId) {
24512
24520
  truncated: unique.length > limit
24513
24521
  };
24514
24522
  }
24515
- function orgSiteScope(params) {
24516
- const org = idOf(params.org);
24517
- if (!org)
24518
- return null;
24519
- const inOrg = params.memberships.filter(
24520
- (membership) => idOf(membership.org) === org
24521
- );
24522
- if (inOrg.some(
24523
- (membership) => !idOf(membership.siteId) || membership.orgLevelRole === true
24524
- )) {
24525
- return null;
24526
- }
24527
- return Array.from(
24528
- new Set(inOrg.map((membership) => idOf(membership.siteId)).filter(Boolean))
24529
- );
24530
- }
24531
24523
  function entitledSiteScope(params) {
24532
24524
  const sites = /* @__PURE__ */ new Set();
24533
24525
  for (const membership of params.memberships) {
@@ -41979,8 +41971,7 @@ function useCustomerSiteController() {
41979
41971
  });
41980
41972
  try {
41981
41973
  await requireOrgAccess(req, org);
41982
- const actor = await resolveInviteActor(callerId(req));
41983
- const siteScope = staffMayBypass(actor) ? null : orgSiteScope({ memberships: actor.memberships, org });
41974
+ const siteScope = await entitledSites(req);
41984
41975
  const data = await _getAll({
41985
41976
  search,
41986
41977
  page,
@@ -92598,7 +92589,6 @@ export {
92598
92589
  online_forms_namespace_collection,
92599
92590
  orgLevelRoles,
92600
92591
  orgSchema,
92601
- orgSiteScope,
92602
92592
  overnight_parking_requests_namespace_collection,
92603
92593
  parseCameraChannel,
92604
92594
  parseCameraHost,