@htilabs/platform-common-models 0.59.0 → 0.60.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.
- package/README.md +18 -1
- package/dist/index.cjs +10 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/org-directory/index.cjs +5 -4
- package/dist/org-directory/index.cjs.map +1 -1
- package/dist/org-directory/index.d.cts +15 -7
- package/dist/org-directory/index.d.ts +15 -7
- package/dist/org-directory/index.js +5 -4
- package/dist/org-directory/index.js.map +1 -1
- package/dist/points-of-contact/index.cjs +4 -3
- package/dist/points-of-contact/index.cjs.map +1 -1
- package/dist/points-of-contact/index.js +4 -3
- package/dist/points-of-contact/index.js.map +1 -1
- package/dist/schemas/index.cjs +10 -6
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +8 -4
- package/dist/schemas/index.d.ts +8 -4
- package/dist/schemas/index.js +10 -6
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/src/orgDirectory/__tests__/orgRecord.test.ts +6 -3
- package/src/orgDirectory/orgRecord.ts +14 -6
- package/src/orgDirectory/rules.ts +3 -2
- package/src/schemas/organization.ts +7 -4
package/README.md
CHANGED
|
@@ -16,6 +16,23 @@ Package exports are organized into a public root API and a small number of
|
|
|
16
16
|
dedicated subpaths (`/validation`, `/cvcs`) — consult `package.json` for the
|
|
17
17
|
authoritative `exports` map.
|
|
18
18
|
|
|
19
|
+
## 0.60.0 — the Org record names who added an organization `addedBy` (BREAKING vs 0.59.0, which no app adopted)
|
|
20
|
+
|
|
21
|
+
An organization's arrival now uses the same three names a Program, a Service
|
|
22
|
+
Listing and a Point of contact use: `addedBy` · `addedInApp` · `reviewStatus`
|
|
23
|
+
(UDD ratification request R17, "how an organization arrived").
|
|
24
|
+
|
|
25
|
+
- `ORG_RECORD_FIELD_NAMES`: `addedBy` replaces `addedByUserId`;
|
|
26
|
+
`addedInSession` leaves the definition.
|
|
27
|
+
- `ORG_AS_BUILT_FIELD_NAMES` gains `addedByUserId` and `addedInSession` (PAVE
|
|
28
|
+
2.0 rows carry them; the mount still declares them).
|
|
29
|
+
- `orgArrivalStamp` returns `{ reviewStatus, addedInApp, addedBy,
|
|
30
|
+
addedInSession? }`.
|
|
31
|
+
- `DirectoryOrganizationView.addedBy` replaces `addedByUserId` and reads a
|
|
32
|
+
stored `addedByUserId` when `addedBy` is absent.
|
|
33
|
+
|
|
34
|
+
0.59.0 was published an hour before this and has no consumer; adopt 0.60.0.
|
|
35
|
+
|
|
19
36
|
## 0.59.0 — the Org record: one definition of an `organizations` row for every app (additive; Crysta 2026-11-10)
|
|
20
37
|
|
|
21
38
|
**Why.** The platform-wide organization registry is one collection
|
|
@@ -33,7 +50,7 @@ twin):
|
|
|
33
50
|
- `orgDirectory/orgRecord.ts` — the field list (`ORG_RECORD_FIELD_NAMES`:
|
|
34
51
|
`legalName` · `commonName` · `shortName` · `website` · `parentOrgId` ·
|
|
35
52
|
`vsp` · `vspPrivateNonprofit` · `reviewStatus` · `addedInApp` ·
|
|
36
|
-
`addedByUserId` · `addedInSession
|
|
53
|
+
`addedByUserId` · `addedInSession`; see 0.60.0 for the arrival names), the as-built extras every model must
|
|
37
54
|
also declare (`ORG_AS_BUILT_FIELD_NAMES`), and the whole row
|
|
38
55
|
(`ORGANIZATION_ROW_KEYS`).
|
|
39
56
|
- Write shapes: `OrgIdentityWriteSchema`, `OrgVspWriteSchema` (the HMIS
|
package/dist/index.cjs
CHANGED
|
@@ -18738,12 +18738,13 @@ var ORG_RECORD_FIELD_NAMES = Object.freeze([
|
|
|
18738
18738
|
"vspPrivateNonprofit",
|
|
18739
18739
|
"reviewStatus",
|
|
18740
18740
|
"addedInApp",
|
|
18741
|
-
"
|
|
18742
|
-
"addedInSession"
|
|
18741
|
+
"addedBy"
|
|
18743
18742
|
]);
|
|
18744
18743
|
var ORG_AS_BUILT_FIELD_NAMES = Object.freeze([
|
|
18745
18744
|
"requiresROI",
|
|
18746
18745
|
"isCustom",
|
|
18746
|
+
"addedByUserId",
|
|
18747
|
+
"addedInSession",
|
|
18747
18748
|
"division",
|
|
18748
18749
|
"typeOverride",
|
|
18749
18750
|
"typeKey"
|
|
@@ -18835,13 +18836,15 @@ var orgRecordSchemaDefinition = {
|
|
|
18835
18836
|
/** The app it was added in (`thread`, `pave`, `leads`, `platform`). */
|
|
18836
18837
|
addedInApp: { type: String },
|
|
18837
18838
|
/** The adding user's platform `users._id`. */
|
|
18838
|
-
|
|
18839
|
-
addedInSession: { type: String }
|
|
18839
|
+
addedBy: { type: String }
|
|
18840
18840
|
};
|
|
18841
18841
|
var orgAsBuiltSchemaDefinition = {
|
|
18842
18842
|
/** Informational only: the release check reads the sender's `vsp` (GDR § 5.17 clause 2). */
|
|
18843
18843
|
requiresROI: { type: Boolean },
|
|
18844
18844
|
isCustom: { type: Boolean },
|
|
18845
|
+
/** The pre-0.60 spelling of `addedBy`; PAVE 2.0 rows carry it. */
|
|
18846
|
+
addedByUserId: { type: String },
|
|
18847
|
+
addedInSession: { type: String },
|
|
18845
18848
|
division: { type: String },
|
|
18846
18849
|
typeOverride: { type: String },
|
|
18847
18850
|
/** The CVC-48 key PAVE writes beside a numeric `type`; retires with the type migration. */
|
|
@@ -18866,10 +18869,11 @@ var EXPECTED_INSTANCE = {
|
|
|
18866
18869
|
vspPrivateNonprofit: "Boolean",
|
|
18867
18870
|
reviewStatus: "String",
|
|
18868
18871
|
addedInApp: "String",
|
|
18869
|
-
|
|
18870
|
-
addedInSession: "String",
|
|
18872
|
+
addedBy: "String",
|
|
18871
18873
|
requiresROI: "Boolean",
|
|
18872
18874
|
isCustom: "Boolean",
|
|
18875
|
+
addedByUserId: "String",
|
|
18876
|
+
addedInSession: "String",
|
|
18873
18877
|
division: "String",
|
|
18874
18878
|
typeOverride: "String",
|
|
18875
18879
|
typeKey: "String"
|