@aglyn/tenant-data-admin 1.0.0-beta.266 → 1.0.0-beta.268
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 +7 -7
- package/src/lib/server/organizations.js +8 -1
- package/src/lib/server/organizations.js.map +1 -1
- package/src/lib/server/rate-limit-store.d.ts +12 -4
- package/src/lib/server/rate-limit-store.js +19 -4
- package/src/lib/server/rate-limit-store.js.map +1 -1
- package/src/lib/server/render-monitor.d.ts +36 -5
- package/src/lib/server/render-monitor.js +81 -22
- package/src/lib/server/render-monitor.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aglyn/tenant-data-admin",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.268",
|
|
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.
|
|
29
|
-
"@aglyn/shared-util-email": "1.0.0-beta.
|
|
30
|
-
"@aglyn/shared-util-fbserver": "1.0.0-beta.
|
|
31
|
-
"@aglyn/shared-util-first-touch": "1.0.0-beta.
|
|
32
|
-
"@aglyn/shared-util-http": "1.0.0-beta.
|
|
33
|
-
"@aglyn/shared-util-tools": "1.0.0-beta.
|
|
28
|
+
"@aglyn/aglyn": "1.0.0-beta.268",
|
|
29
|
+
"@aglyn/shared-util-email": "1.0.0-beta.268",
|
|
30
|
+
"@aglyn/shared-util-fbserver": "1.0.0-beta.268",
|
|
31
|
+
"@aglyn/shared-util-first-touch": "1.0.0-beta.268",
|
|
32
|
+
"@aglyn/shared-util-http": "1.0.0-beta.268",
|
|
33
|
+
"@aglyn/shared-util-tools": "1.0.0-beta.268",
|
|
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',
|