@aglyn/tenant-data-admin 1.0.0-beta.266 → 1.0.0-beta.269

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aglyn/tenant-data-admin",
3
- "version": "1.0.0-beta.266",
3
+ "version": "1.0.0-beta.269",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://aglyn.com",
6
6
  "repository": {
@@ -25,12 +25,12 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@aglyn/aglyn": "1.0.0-beta.266",
29
- "@aglyn/shared-util-email": "1.0.0-beta.266",
30
- "@aglyn/shared-util-fbserver": "1.0.0-beta.266",
31
- "@aglyn/shared-util-first-touch": "1.0.0-beta.266",
32
- "@aglyn/shared-util-http": "1.0.0-beta.266",
33
- "@aglyn/shared-util-tools": "1.0.0-beta.266",
28
+ "@aglyn/aglyn": "1.0.0-beta.269",
29
+ "@aglyn/shared-util-email": "1.0.0-beta.269",
30
+ "@aglyn/shared-util-fbserver": "1.0.0-beta.269",
31
+ "@aglyn/shared-util-first-touch": "1.0.0-beta.269",
32
+ "@aglyn/shared-util-http": "1.0.0-beta.269",
33
+ "@aglyn/shared-util-tools": "1.0.0-beta.269",
34
34
  "@msgpack/msgpack": "^3.1.3",
35
35
  "@swc/helpers": "0.5.23",
36
36
  "sharp": "^0.35.5",
@@ -29,6 +29,7 @@ import { nameSearchKey, nameSearchReversed, nameSearchTokens } from "@aglyn/agly
29
29
  // resolves `undefined` at runtime.
30
30
  import { ORG_BILLING_DOC_ID, ORG_BILLING_SUBCOLLECTION } from "@aglyn/aglyn/app-utils/org-billing-doc";
31
31
  import { MEMBER_EMAIL_ALIASES_COLLECTION } from "@aglyn/aglyn/app-utils/member-email-aliases";
32
+ import { ORG_LANDED_AT_PATH } from "@aglyn/aglyn/app-utils/health-report";
32
33
  import { runPluginDeclarationsRepair } from "@aglyn/aglyn/plugin-manager/plugin-declarations-repair";
33
34
  import { FieldValue } from "firebase-admin/firestore";
34
35
  import { cache } from "react";
@@ -266,7 +267,13 @@ reservation, now = Date.now()) {
266
267
  // Creating the workspace is its owner's first activity in it, and the
267
268
  // staff Organizations list sorts by this field: an `orderBy` drops a
268
269
  // document that lacks it, so it is written from birth, never later.
269
- lastActivityAt: FieldValue.serverTimestamp()
270
+ lastActivityAt: FieldValue.serverTimestamp(),
271
+ // Nobody has opened the workspace yet. The org shell's first activity
272
+ // beat stamps it, and the sign-up landing health check reads an org
273
+ // that never got that stamp as a person who never reached the console
274
+ // (`ORG_LANDED_AT_PATH`). Written `null`, not left out, because a
275
+ // missing field is how the check recognizes an org made before it.
276
+ [ORG_LANDED_AT_PATH]: null
270
277
  });
271
278
  tx.set(db.collection('orgs').doc(orgId).collection('members').doc(ownerUid), _extends({
272
279
  role: 'owner',