@htilabs/platform-common-models 0.29.0 → 0.30.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 +268 -1
- package/dist/{index-Dr6GBCoY.d.ts → index-ClTjjJ_S.d.ts} +1 -1
- package/dist/{index-BTqHP4DM.d.cts → index-Pt82NxQg.d.cts} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/points-of-contact/index.cjs +826 -21
- package/dist/points-of-contact/index.cjs.map +1 -1
- package/dist/points-of-contact/index.d.cts +936 -87
- package/dist/points-of-contact/index.d.ts +936 -87
- package/dist/points-of-contact/index.js +799 -21
- package/dist/points-of-contact/index.js.map +1 -1
- package/dist/schemas/index.d.cts +25 -25
- package/dist/schemas/index.d.ts +25 -25
- package/package.json +1 -1
- package/src/pointsOfContact/__tests__/mongoDouble.ts +194 -0
- package/src/pointsOfContact/__tests__/pointsOfContact.test.ts +379 -26
- package/src/pointsOfContact/__tests__/writer.mongo.test.ts +190 -0
- package/src/pointsOfContact/__tests__/writer.test.ts +782 -0
- package/src/pointsOfContact/index.ts +12 -7
- package/src/pointsOfContact/readRules.ts +73 -12
- package/src/pointsOfContact/reader.ts +75 -9
- package/src/pointsOfContact/schemas.ts +304 -34
- package/src/pointsOfContact/vocabulary.ts +40 -5
- package/src/pointsOfContact/writer.ts +967 -0
- package/dist/{cvcEntry-BqAGctqK.d.cts → cvcEntry-Asg7mxjB.d.cts} +8 -8
- package/dist/{cvcEntry-BqAGctqK.d.ts → cvcEntry-Asg7mxjB.d.ts} +8 -8
package/README.md
CHANGED
|
@@ -16,6 +16,272 @@ 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
|
+
## points-of-contact / 0.30.0 (BREAKING)
|
|
20
|
+
|
|
21
|
+
0.30.0 (pl-e98, pl-f4c) reshapes the Point of contact contract. There is no
|
|
22
|
+
prod data, so it is a clean cut: no legacy acceptance, no read shim for the
|
|
23
|
+
stored single fields, no migration (Nate, 2026-10-15). Every consumer
|
|
24
|
+
(platform writer and editor, Thread, PAVE) changes in its own lane.
|
|
25
|
+
|
|
26
|
+
**pl-f4c: a site is stored `location`, displayed "Site".** The UDD names the
|
|
27
|
+
object Site, but its stored names, ids and columns stay `location` (schema of
|
|
28
|
+
record hti-features `udd-schemas/location/Location.v1.json`; canon
|
|
29
|
+
`ORG_STACK_DATA_OBJECTS_2026-10-01.md` @ fa0fd0b0 L236). `POC_SUBJECT_TYPES`
|
|
30
|
+
is now `agency · org · program · team · location · service`. **`site` is now
|
|
31
|
+
refused** everywhere: owner schema, stored row (reads throw) and
|
|
32
|
+
`PocSubjectRef`. New: `POC_SUBJECT_TYPE_LABELS` / `pocSubjectTypeLabel`
|
|
33
|
+
(`location` → "Site").
|
|
34
|
+
|
|
35
|
+
**pl-e98: a contact holds `emails[]` and `phones[]`.** Crysta's 2026-08-24
|
|
36
|
+
multi-entry correction. Canon's Admin Hub ledger stores each address as
|
|
37
|
+
`{type, value, preferred}` (platform-prototype `src/agencyhub.jsx` @ 6f428116
|
|
38
|
+
`methodsFor` L8107-L8132, the save L8181); here the type is the list.
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
// StoredContactEntrySchema; PocContactEntry = z.infer<typeof StoredContactEntrySchema>
|
|
42
|
+
interface PocContactEntry {
|
|
43
|
+
value: string; // email (lowercased) or phone as typed (trimmed)
|
|
44
|
+
is_preferred: boolean; // the CONTACT rail's flag (ObjectDirectoryEntry.mjs @ fa0fd0b0 L52)
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The contact-level `is_primary` (the subject's primary contact) is unrelated
|
|
49
|
+
and unchanged. There is no per-entry use label: CVC-154
|
|
50
|
+
`contact_info_use_type` is investigative-only, and canon's pickers give PAVE
|
|
51
|
+
and Thread no codes and the Platform no picker at all
|
|
52
|
+
(`data/cvcs/core_contact_info_use_type.yaml` @ fa0fd0b0 L93-L97).
|
|
53
|
+
|
|
54
|
+
- **The preferred rule (writers).** `PocEmailListSchema` / `PocPhoneListSchema`
|
|
55
|
+
accept `{ value, is_preferred? }` entries: at most one marked preferred, and
|
|
56
|
+
the list is normalized to exactly one (the marked entry, else the first:
|
|
57
|
+
canon L8126-L8129). The same email twice, the same phone line twice (by
|
|
58
|
+
digits, canon's `phoneDigits`), or a phone with no digit is refused. At most
|
|
59
|
+
`POC_MAX_CONTACT_ENTRIES` (10) per list. A list in an edit replaces the
|
|
60
|
+
stored list; **clearing is `emails: []`, `null` is refused**.
|
|
61
|
+
- **Phones are stored as typed, trimmed**, as this object's canon writer, the
|
|
62
|
+
Admin Hub ledger, stores them (`agencyhub.jsx` @ 6f428116 L8124-L8125,
|
|
63
|
+
L8173, L8511-L8518). `pocPhoneDigits` (canon's `phoneDigits`,
|
|
64
|
+
`leads-app/server/objectStructuresEngine.generated.mjs` @ fa0fd0b0
|
|
65
|
+
L282-L286) is the duplicate key only. **Accepted: an extension makes a
|
|
66
|
+
distinct line** (`402-677-3902 x5` and `402-677-3902` differ by digits, so
|
|
67
|
+
both may sit on one contact). `formatPocPhone` mirrors canon's `formatPhone`
|
|
68
|
+
(L246-L256) as a **display-only** helper readers apply; canon calls it
|
|
69
|
+
"display only" (L229-L245). It is lossy and is never written back.
|
|
70
|
+
- **Stored lists are read leniently.** `PointOfContactDocSchema` repairs a
|
|
71
|
+
stored list the same way (emails trimmed and lowercased, empty and repeated
|
|
72
|
+
entries dropped, a missing or null `is_preferred` read as false, no
|
|
73
|
+
preferred → the first, several → the first marked), so one row never takes
|
|
74
|
+
down a partner's read. Only structurally invalid data (not an array, a
|
|
75
|
+
non-object entry, a non-string value, a non-boolean flag) throws.
|
|
76
|
+
- **Read helpers:** `preferredContactEntry(list)`, `preferredEmail(contact)`,
|
|
77
|
+
`preferredPhone(contact)`, over a stored row or any view. Every view also
|
|
78
|
+
carries read-only `email` / `phone`: the reachable preferred address (the
|
|
79
|
+
seat's for a seat-linked contact). Views hold copies, never the row's arrays.
|
|
80
|
+
- `pocIdentityKey` keys a write-in on its name and its **preferred** email.
|
|
81
|
+
- `listReferralContactsForPartner` sends to each tagged contact's
|
|
82
|
+
**preferred** email (the view's `email`), deduped on it. A seat's email is
|
|
83
|
+
trimmed and lowercased first.
|
|
84
|
+
- **Body-builder types:** `PocDetailsInput`, `PocInAppInput`, `PocSeedInput`,
|
|
85
|
+
`PocPatchInput` (`z.input` of the schemas: defaulted fields optional).
|
|
86
|
+
|
|
87
|
+
**Upgrading the platform to 0.30.0:**
|
|
88
|
+
|
|
89
|
+
- **No data existed before 0.30.0; no migration.** No platform database has
|
|
90
|
+
a `pointsofcontact` collection (platform-prod, -db, -dev, -test and -train
|
|
91
|
+
checked 2026-10-15), so there are no 0.28.0 rows and no old indexes to
|
|
92
|
+
drop. `ensurePocIndexes` (below) only creates indexes.
|
|
93
|
+
- **HTTP wire change.** `PocInAppSchema` is the body of
|
|
94
|
+
`POST /api/partner-contacts`. A caller sends `emails: [{ value }]` (at
|
|
95
|
+
least one) and optional `phones`, never `email` / `phone`. Thread and PAVE
|
|
96
|
+
write through `mintPartnerContact` (below) instead of calling it.
|
|
97
|
+
- **The writer maps an identity unique-index collision to a domain error**
|
|
98
|
+
(platform's job).
|
|
99
|
+
|
|
100
|
+
**Thread and PAVE write pending in-app contacts directly via
|
|
101
|
+
`mintPartnerContact`; no HTTP** (pl-bt1, pl-e98). The in-app partner add is
|
|
102
|
+
the platform's `addPartnerContact` (the store behind
|
|
103
|
+
`POST /api/partner-contacts`), moved into this subpath so all three apps run
|
|
104
|
+
one implementation against their own platform-db handle:
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
import { ObjectId } from "mongodb"; // or mongoose.Types.ObjectId
|
|
108
|
+
import { mintPartnerContact } from "@htilabs/platform-common-models/points-of-contact";
|
|
109
|
+
|
|
110
|
+
const r = await mintPartnerContact(
|
|
111
|
+
platformDb, // the deployment's own, long-lived, primary reads
|
|
112
|
+
{
|
|
113
|
+
app: "thread", // a server constant: pave · thread · leads
|
|
114
|
+
partner: { org_id }, // and/or agency_id, from the recipient picker
|
|
115
|
+
contact: { display_name, emails: [{ value }], phones }, // PocInAppInput
|
|
116
|
+
actor: { id: verifiedToken.sub }, // Auth0 `sub`, server-side from the verified token
|
|
117
|
+
},
|
|
118
|
+
{ ObjectId },
|
|
119
|
+
);
|
|
120
|
+
if (r.ok) r.value; // PartnerContactReceipt: { id, status, created, subject_type, subject_id, agency_id, org_id }
|
|
121
|
+
else r.reason; // PartnerContactFailureReason; r.status is the HTTP status the platform route answers
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
- **Same rules, same order, same codes as the platform store.** Actor
|
|
125
|
+
(`actor_required`), app (`invalid_app`), strict `PocInAppSchema` body
|
|
126
|
+
(`invalid_contact`; Referrals (magic link) always added first), strict
|
|
127
|
+
`PartnerContactSelectorSchema` (`invalid_partner`); the partner resolved to
|
|
128
|
+
`String(agencies._id)` / `String(organizations._id)` in any accepted form,
|
|
129
|
+
a mapped `registry_agencies` row included, an org with a genuine-mirror
|
|
130
|
+
agency rewritten onto the agency (`owner_not_found`, `owner_mismatch`); a
|
|
131
|
+
canonical singleton or PAVE 2.0-shape org refused (`canonical_org`,
|
|
132
|
+
`foreign_row_shape`). Then the existing rows answer, matched on the
|
|
133
|
+
package identity rule (`pocIdentityKey`: `writein:<name>|<preferred
|
|
134
|
+
email>`, trimmed and lowercased): a visible tagged contact, or the caller's
|
|
135
|
+
own pending add (`created: false`, nothing written); the caller's own
|
|
136
|
+
removed add is `contact_deactivated`. The caller's outstanding pending adds are capped at
|
|
137
|
+
`POC_IN_APP_PENDING_CAP_PER_PARTNER` (5) per partner and
|
|
138
|
+
`POC_IN_APP_PENDING_CAP_PER_ACTOR` (25) overall (`too_many_pending_adds`,
|
|
139
|
+
429). The writer then checks the indexes it relies on
|
|
140
|
+
(`checkPocIndexes`: refuses `indexes_missing`, 503) and the row lands
|
|
141
|
+
`pending`, `origin: in_app`, `added_in_app: <app>`, version 1. A raced
|
|
142
|
+
identical add (`duplicate_pending_add` on
|
|
143
|
+
`POC_IN_APP_PENDING_INDEX`) answers with the winner's row. Every code is in
|
|
144
|
+
`PARTNER_CONTACT_FAILURE_REASONS`.
|
|
145
|
+
- **Returns, never throws, a domain refusal; logs nothing.** No message
|
|
146
|
+
carries a stored value (a driver's duplicate-key message echoes the email,
|
|
147
|
+
so it is never returned). A read or write error, or a stored row that does
|
|
148
|
+
not parse (`PointOfContactShapeError`), propagates.
|
|
149
|
+
- **Dedupe is by identity, never by a shared mailbox** (ruling 2026-10-15).
|
|
150
|
+
The interim platform rule "shares ANY email" (matcher `$in` on
|
|
151
|
+
`emails.value`, multikey pending index) is a defect, reproduced on a real
|
|
152
|
+
MongoDB: with Bob `[bob★, intake@]` listed, an add of Jane `[jane★,
|
|
153
|
+
intake@]` returned Bob's id and Jane was never stored; an adder's pending
|
|
154
|
+
add blocked their next add sharing the mailbox (Dan); and a removed row
|
|
155
|
+
sharing a secondary mailbox refused every later add with a false
|
|
156
|
+
`contact_deactivated` (Eve). Now the matcher and the pending unique index
|
|
157
|
+
both key on the stored scalar `identity_key`, so Jane, Dan and Eve each
|
|
158
|
+
land, while the same name with the same preferred email (whatever its
|
|
159
|
+
other emails) is one person: a retry answers with the first row, and a race
|
|
160
|
+
of the two recovers through `duplicate_pending_add` to the winner.
|
|
161
|
+
- **The pieces the platform store imports** (so the index and the matcher can
|
|
162
|
+
never disagree, which the race recovery depends on):
|
|
163
|
+
`POINT_OF_CONTACT_INDEXES.inAppPending` / `.pendingQueue` (aliased
|
|
164
|
+
`POC_IN_APP_PENDING_INDEX` / `POC_PENDING_QUEUE_INDEX`),
|
|
165
|
+
`POC_IN_APP_PENDING_INDEX_KEY` (`agency_id, subject_type, subject_id,
|
|
166
|
+
identity_key, createdBy`), `POC_IN_APP_PENDING_INDEX_FILTER`,
|
|
167
|
+
`pocRowsWithIdentity(db, subject, identityKey)` (the matcher) and
|
|
168
|
+
`pocDuplicateKeyFailure(err)`
|
|
169
|
+
(E11000 → `duplicate_pending_add` · `primary_exists` · `duplicate_contact`
|
|
170
|
+
· `duplicate_contact_id` · `duplicate_key`, by index name then key pattern;
|
|
171
|
+
null for any other error).
|
|
172
|
+
- **The writer never creates an index (least privilege; fail closed).**
|
|
173
|
+
Before its insert it reads `listIndexes` once per handle
|
|
174
|
+
(`checkPocIndexes`, exported for a readiness probe): the `id` index must be
|
|
175
|
+
unique, and `POC_IN_APP_PENDING_INDEX` must exist with exactly
|
|
176
|
+
`POC_IN_APP_PENDING_INDEX_KEY` (fields, order, direction), `unique: true`
|
|
177
|
+
and exactly `POC_IN_APP_PENDING_INDEX_FILTER`, under any name. A missing
|
|
178
|
+
collection (NamespaceNotFound) or index is `indexes_missing` (503); a pass
|
|
179
|
+
is memoized per handle, a refusal is not.
|
|
180
|
+
- **`ensurePocIndexes(db)` is the PLATFORM's.** It creates the full
|
|
181
|
+
`pointsofcontact` index set (every `POINT_OF_CONTACT_INDEXES` entry,
|
|
182
|
+
`inAppPending` and `pendingQueue` included) with plain `createIndex` calls:
|
|
183
|
+
idempotent, memoized per handle, retried after a failure, a server refusal
|
|
184
|
+
propagated. No migration and no drop. The platform must deploy and run it
|
|
185
|
+
before any Thread or PAVE caller writes; until then every app add is
|
|
186
|
+
`indexes_missing`.
|
|
187
|
+
- **The caps bound a burst.** After its insert each add counts the adder's
|
|
188
|
+
pending rows (per partner, then overall); over the cap it deletes its own
|
|
189
|
+
row and is `too_many_pending_adds`. No more than the cap ever survive (the
|
|
190
|
+
survivor that counted last counted every survivor), on a real server too;
|
|
191
|
+
the price is a spurious 429 under contention (a burst may withdraw rows
|
|
192
|
+
that would have fit; a retry lands). The platform's earlier rank-based
|
|
193
|
+
check let a burst of 12 leave 7-10 rows against a cap of 5. The bound
|
|
194
|
+
needs every count to read the primary (see the caller contract).
|
|
195
|
+
|
|
196
|
+
**Caller contract** (Thread, PAVE, LEADS: everything the package cannot
|
|
197
|
+
check for you):
|
|
198
|
+
|
|
199
|
+
- **Accepted risk: direct writes (Nate, 2026-10-15).** Thread and PAVE write
|
|
200
|
+
pending in-app contacts straight to platform-db through
|
|
201
|
+
`mintPartnerContact`, not through the platform's HTTP route. This widens
|
|
202
|
+
the trust boundary: their database credential needs `insert` and `remove`
|
|
203
|
+
on `pointsofcontact`, and MongoDB privileges cannot scope a write by
|
|
204
|
+
`status`, so a compromised app credential could write any row shape. That
|
|
205
|
+
wider boundary is accepted. The writer itself always writes `status:
|
|
206
|
+
"pending"`, `origin: "in_app"` (no argument names a status, origin or
|
|
207
|
+
owner), and only the platform (its steward confirm, or the partner's own
|
|
208
|
+
editor) ever makes a row `confirmed`.
|
|
209
|
+
- **Actor.** `actor.id` is the advocate's Auth0 `sub`, taken server-side from
|
|
210
|
+
the verified token, as the platform route takes `auth0Sub`. Never a request
|
|
211
|
+
body value, a client header or a `users._id`. `createdBy`, the adder's
|
|
212
|
+
dedupe, caps and removed-add refusal all key on it.
|
|
213
|
+
- **App.** `app` is the caller's own server constant (`"thread"`, `"pave"`),
|
|
214
|
+
never a request value. The caller checks the advocate's token
|
|
215
|
+
`allowed_apps` holds that app, by the deployment's keys: the exact app key,
|
|
216
|
+
plus `<app>_train` only on a training deployment (the platform's
|
|
217
|
+
`PARTNER_ADD_<APP>_APP_KEYS` rule). A training deployment never holds a
|
|
218
|
+
write handle to a production platform-db.
|
|
219
|
+
- **Handle.** The deployment's own platform-db (`mongodb` `Db` or a mongoose
|
|
220
|
+
connection's `.db`), long-lived: the index check is memoized per handle
|
|
221
|
+
object, and `client.db(name)` returns a new object on every call, so call
|
|
222
|
+
it once. Reads must go to the primary (no `secondary*` read preference on
|
|
223
|
+
this handle or its client): the caps' bound and the race recovery read
|
|
224
|
+
what was just written.
|
|
225
|
+
- **Time.** `now` is the server's clock or omitted, never a request value.
|
|
226
|
+
- **Partner.** Pass only the `agency_id` / `org_id` the advocate picked in
|
|
227
|
+
the recipient picker (the same ids the magic-link pre-fill reads), never a
|
|
228
|
+
free-typed or body-supplied subject.
|
|
229
|
+
- **Pre-fill.** To show the advocate their OWN pending adds in the
|
|
230
|
+
magic-link pre-fill, read with
|
|
231
|
+
`listReferralContactsForPartner(db, partner, { resolveSeats,
|
|
232
|
+
includeOwnPendingFor: verifiedToken.sub })` (the same `sub` as the
|
|
233
|
+
writer's `actor.id`). See below.
|
|
234
|
+
- **Logging.** On a thrown error log only its `name` and `code`: a
|
|
235
|
+
`PointOfContactShapeError` lists a stored row's issues and a driver error
|
|
236
|
+
can echo a stored value. Refusals carry no stored value.
|
|
237
|
+
- **Order of deployment.** The platform deploys and runs `ensurePocIndexes`
|
|
238
|
+
first; an app's writes are refused (`indexes_missing`) until it has.
|
|
239
|
+
- **Database privileges** the calling app's user needs on platform-db:
|
|
240
|
+
`find` on `agencies`, `organizations`, `registry_agencies` and
|
|
241
|
+
`pointsofcontact` (`countDocuments` is a `find`); `insert`, `remove` (a
|
|
242
|
+
withdrawn over-cap row) and `listIndexes` on `pointsofcontact`. No
|
|
243
|
+
`createIndex`, `dropIndex`, `update` or any other collection.
|
|
244
|
+
|
|
245
|
+
**The adder's own pending adds in the pre-fill** (Nate, 2026-10-15).
|
|
246
|
+
`listReferralContactsForPartner(db, partner, { resolveSeats,
|
|
247
|
+
includeOwnPendingFor: sub })` returns the partner's confirmed, network-visible
|
|
248
|
+
Referrals (magic link) recipients as before, then the asking advocate's OWN
|
|
249
|
+
pending in-app adds on that partner (active, `origin: in_app`, `createdBy`
|
|
250
|
+
= `sub`, tagged Referrals (magic link)), each marked `pending: true`
|
|
251
|
+
(`ReferralRecipient.pending`) so a UI can label it. Nobody else's pending add
|
|
252
|
+
is ever returned; confidential rows stay excluded (pl-iza is separate); an
|
|
253
|
+
email a confirmed recipient already has is not repeated. `sub` is the
|
|
254
|
+
advocate's Auth0 `sub` from the verified token, the same pinning as the
|
|
255
|
+
writer's `actor.id`. Without the option the read is unchanged.
|
|
256
|
+
|
|
257
|
+
**Known deviations:**
|
|
258
|
+
|
|
259
|
+
- Seat-linked contacts still read ONE email and ONE phone from `users` until
|
|
260
|
+
a person Contact log exists (pl-9h4). Canon's motivating case (Crysta's own
|
|
261
|
+
seat-linked contact, `ct-crysta`) is therefore not yet met.
|
|
262
|
+
- Entries are removed, not retired. Canon's write-in ledger keeps retired
|
|
263
|
+
entries stamped `retiredOn` (retire-not-remove, `agencyhub.jsx` L8181-L8185).
|
|
264
|
+
- The identity key uses the preferred email only, as canon's uses the card's
|
|
265
|
+
flat email (`agencyhub.jsx` `hubSavePocs` L382-L384). Changing the preferred email changes
|
|
266
|
+
`identity_key`, and a secondary email shared with another row is not
|
|
267
|
+
deduplicated.
|
|
268
|
+
|
|
269
|
+
**Breaking surface** (every export whose shape changed):
|
|
270
|
+
|
|
271
|
+
| Export | 0.28.0 | 0.30.0 |
|
|
272
|
+
|---|---|---|
|
|
273
|
+
| `POC_SUBJECT_TYPES` / `PocSubjectType` | `… · site · …` | `… · location · …` |
|
|
274
|
+
| `PocSubjectRef` | `subject_type: "site"` | `subject_type: "location"` |
|
|
275
|
+
| `PocOwnerSchema` / `PocOwner` | accepts `site` | accepts `location` |
|
|
276
|
+
| `PocDetailsSchema` / `PocDetails` | `email?`, `phone?` | `emails?`, `phones?` (`PocContactEntry[]`; single fields refused) |
|
|
277
|
+
| `PocInAppSchema` / `PocInApp` | `email` (required), `phone?` | `emails` (at least one), `phones?` |
|
|
278
|
+
| `PocSeedSchema` / `PocSeed`, `PocPatchSchema` / `PocPatch` | via `PocDetailsSchema` | via `PocDetailsSchema` |
|
|
279
|
+
| `PointOfContactDocSchema` / `PointOfContactDoc` | `email`, `phone` | `emails`, `phones` |
|
|
280
|
+
| `PocRuleInput` | `email`, `phone` | `emails`, `phones` |
|
|
281
|
+
| `pocIdentityKey` input | `email` | `emails` (keys on the preferred) |
|
|
282
|
+
| `PointOfContactOwnerView` / `PointOfContactStewardView` | `email`, `phone` (stored) | `emails`, `phones` (row's own) + read-only `email`, `phone` (reachable preferred) |
|
|
283
|
+
| `PointOfContactNetworkView` / `ReferralRecipient` | `email`, `phone` | adds `emails`, `phones`; `email` / `phone` are the preferred entries' projections |
|
|
284
|
+
|
|
19
285
|
## CVC-136 core indicators 1.2.0 / 0.29.0
|
|
20
286
|
|
|
21
287
|
0.29.0 appends ONE core indicator, `potential_trafficking_victim_recorded`
|
|
@@ -57,7 +323,7 @@ What it holds:
|
|
|
57
323
|
`readServiceListings(db, query, { categories })`, the one raw-driver read
|
|
58
324
|
(by org, org + program, category keys or id).
|
|
59
325
|
|
|
60
|
-
Folded into
|
|
326
|
+
Folded into 0.28.0 before its release (co-6zr), so every app reads listings as
|
|
61
327
|
the Platform's own Network reads do (platform `feat/pl-srl-followups`,
|
|
62
328
|
pl-6uk / pl-avy):
|
|
63
329
|
|
|
@@ -104,6 +370,7 @@ What it holds:
|
|
|
104
370
|
- `toDirectoryOrganizationView` (one view over both shapes),
|
|
105
371
|
`readDirectoryOrganization` and `readAgencyOwnOrganization`, the raw-driver
|
|
106
372
|
reads (pass `toObjectId` so a string id matches an ObjectId `_id`).
|
|
373
|
+
|
|
107
374
|
## points-of-contact / 0.28.0
|
|
108
375
|
|
|
109
376
|
0.28.0 (pl-3r8) ships the **Point of contact** read contract at
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-
|
|
1
|
+
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-Asg7mxjB.js';
|
|
2
2
|
import * as mongoose from 'mongoose';
|
|
3
3
|
import { HydratedDocument, Connection, Model } from 'mongoose';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-
|
|
1
|
+
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-Asg7mxjB.cjs';
|
|
2
2
|
import * as mongoose from 'mongoose';
|
|
3
3
|
import { HydratedDocument, Connection, Model } from 'mongoose';
|
|
4
4
|
|
package/dist/index.d.cts
CHANGED
|
@@ -3,9 +3,9 @@ export { ActiveServiceStateKey, DeprecatedServiceStateKey, IC48Catalog, IC48Cata
|
|
|
3
3
|
export { D as DEFAULT_BOUND_STATE, a as DEFAULT_BOUND_STATE_DISPLAY, b as DEFAULT_BOUND_STATE_LABELS, c as DEFAULT_BOUND_STATE_VALUES, d as DefaultBoundStateValue, F as FUNCTION_STATUS, e as FUNCTION_STATUS_LABELS, f as FUNCTION_STATUS_VALUES, g as FunctionStatusValue, P as PERMISSION_STATE, h as PERMISSION_STATE_DISPLAY, i as PERMISSION_STATE_LABELS, j as PERMISSION_STATE_VALUES, k as PLATFORM_TOOL, l as PLATFORM_TOOL_LABELS, m as PLATFORM_TOOL_VALUES, n as PermissionStateValue, o as PlatformToolValue, R as ROLE_LEVEL, p as ROLE_LEVEL_LABELS, q as ROLE_LEVEL_VALUES, r as RoleLevelValue, S as SHARE_VIEW, s as SHARE_VIEW_LABELS, t as SHARE_VIEW_VALUES, u as ShareViewValue } from './platform-auth-DJO-r9Pf.cjs';
|
|
4
4
|
export { A as AGENCY_TYPE_KEYS, a as AgencyTypeKey, H as HEALTHCARE_ORG_TYPE_KEYS, L as LAW_ENFORCEMENT_ORG_TYPE_KEYS, b as LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY, c as LEGAL_ORG_TYPE_KEYS, d as LegacyNumericReferralEntity, N as NO_SECTOR_ORG_TYPE_KEYS, O as ORG_TYPE_HEADING_KEYS, e as ORG_TYPE_KEYS, f as ORG_TYPE_NONPICKABLE_LEAF_KEYS, g as ORG_TYPE_PARENT_KEY, h as ORG_TYPE_SELECTABLE_KEYS, i as OrgTypeHeadingKey, j as OrgTypeKey, k as OrgTypeSelectableKey, R as REPORT_AUTHORITY_ORG_TYPE_KEYS, V as VICTIM_SERVING_ORG_TYPE_KEYS, l as isAgencyTypeKey, m as isHealthcareOrgType, n as isLawEnforcementOrgType, o as isLegalOrgType, p as isOrgTypeKey, q as isReportAuthorityOrgType, r as isVictimServingOrgType, s as orgTypeAncestry, t as orgTypeCanonicalCode, u as orgTypeDefaultSessionRole, v as orgTypeDefaultSessionRoleOrNull, w as orgTypeDefaultVsp, x as orgTypeEnumConstant, y as orgTypeLabel, z as orgTypeSector, B as resolveAgencyTypeKey, C as resolveOrgTypeKey, D as resolveOrgTypeKeyFromLegacyNumeric, E as resolveReferralEntityKeyFromLegacyNumeric } from './org-type-D_FG4KdN.cjs';
|
|
5
5
|
export { AddOrganizationProgramsFieldOptions, Address, Demographics, Email, ORGANIZATION_PROGRAM_VALIDATED_UPDATE_OPS, OrganizationProgram, PersonName, Phone, TEAM_MODEL_NAME, TeamDirectoryFields, addOrganizationProgramsField, addTeamDirectoryFields, addressSchema, buildOrganizationProgramSchema, buildOrganizationProgramsFieldDefinition, demographicsSchema, emailSchema, organizationProgramSchemaDefinition, personNameSchema, phoneSchema, teamDirectorySchemaDefinition } from './schemas/index.cjs';
|
|
6
|
-
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from './cvcEntry-
|
|
6
|
+
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from './cvcEntry-Asg7mxjB.cjs';
|
|
7
7
|
export { A as AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS, a as AddAgencyOrgTypeFieldsOptions, b as AgencyOrgTypeFields, O as ORG_TYPE_FIELD_NAMES, c as OrgTypeFieldName, d as OrgTypeFields, e as OrgTypeFieldsHolder, V as VSP_TWO_STEP_ISSUE, f as addAgencyOrgTypeFields, g as addOrgTypeFields, h as agencyOrgTypeSchemaDefinition, i as applyRunValidatorsIfUnset, m as mirrorOrgTypeFields, o as orgTypeFieldsDiffer, j as orgTypeSchemaDefinition, r as resolveEffectiveOrgType, k as resolveEffectiveOrgTypeFields, v as vspTwoStepHolds, l as vspTwoStepHoldsOnUpdate } from './agency-DYCv839V.cjs';
|
|
8
|
-
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, e as compileCvcEntryModel, f as compileCvcRegistryModel, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from './index-
|
|
8
|
+
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, e as compileCvcEntryModel, f as compileCvcRegistryModel, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from './index-Pt82NxQg.cjs';
|
|
9
9
|
export { AccommodationTypeKey, AccommodationTypeKeys, ActionStepCompletionStatusKey, ActionStepCompletionStatusKeys, ActionStepTypeKey, ActionStepTypeKeys, ActivityTypeKey, ActivityTypeKeys, AdminRoleKey, AdminRoleKeys, AdministeringJurisdictionKey, AdministeringJurisdictionKeys, AgeBinReportingKey, AgeBinReportingKeys, AnnouncementAudienceScopeKey, AnnouncementAudienceScopeKeys, AnnouncementResponseTypeKey, AnnouncementResponseTypeKeys, AssertionDomainKey, AssertionDomainKeys, AssertionStatusKey, AssertionStatusKeys, BasisQuickPicksKey, BasisQuickPicksKeys, CarCorrectionReasonKey, CarCorrectionReasonKeys, CaseShareStateKey, CaseShareStateKeys, CheckInActivityKey, CheckInActivityKeys, CheckInPhaseKey, CheckInPhaseKeys, ChildBehavioralConcernsKey, ChildBehavioralConcernsKeys, ChildChangeTypeKey, ChildChangeTypeKeys, ChildCustodyArrangementKey, ChildCustodyArrangementKeys, CitizenshipKey, CitizenshipKeys, CollectionContextKey, CollectionContextKeys, ContactInfoTypeKey, ContactInfoTypeKeys, ContactInfoUseTypeKey, ContactInfoUseTypeKeys, ContactLinkTypeKey, ContactLinkTypeKeys, ContactSafetyStatusKey, ContactSafetyStatusKeys, CoreFunctionsKey, CoreFunctionsKeys, CoreIndicatorKey, CoreIndicatorKeys, CoreInformationScopeKey, CoreInformationScopeKeys, CoreReferralOutcomeKey, CoreReferralOutcomeKeys, CountryKey, CountryKeys, CreatedBySystemKey, CreatedBySystemKeys, CriminalOrgCategoryKey, CriminalOrgCategoryKeys, DaIncidentArchiveReasonKey, DaIncidentArchiveReasonKeys, DaIncidentConfidenceKey, DaIncidentConfidenceKeys, DaIncidentDayApproxKey, DaIncidentDayApproxKeys, DaIncidentSeverityKey, DaIncidentSeverityKeys, DeterminationHelperCategoryKey, DeterminationHelperCategoryKeys, DeterminationLevelKey, DeterminationLevelKeys, DhStateKey, DhStateKeys, DisabilitySubtypeKey, DisabilitySubtypeKeys, DiscretionLevelKey, DiscretionLevelKeys, EmergencyContactCallReasonKey, EmergencyContactCallReasonKeys, EmergencyContactPermissionsKey, EmergencyContactPermissionsKeys, EmergencyExitCascadeKey, EmergencyExitCascadeKeys, EmploymentStatusKey, EmploymentStatusKeys, EnrollmentApplicationStatusKey, EnrollmentApplicationStatusKeys, ExitProcessChecklistItemKey, ExitProcessChecklistItemKeys, ExitReasonsKey, ExitReasonsKeys, ExploitationTypeKey, ExploitationTypeKeys, EyeColorKey, EyeColorKeys, FacialHairKey, FacialHairKeys, FacilitatorEntityTypeKey, FacilitatorEntityTypeKeys, FacilitatorLabelUsedInSourceKey, FacilitatorLabelUsedInSourceKeys, FacilitatorSubroleKey, FacilitatorSubroleKeys, FrequencyCadenceKey, FrequencyCadenceKeys, FunderKey, FunderKeys, GenderIdentityKey, GenderIdentityKeys, GoalCategoryKey, GoalCategoryKeys, GoalPriorityKey, GoalPriorityKeys, GoalStatusKey, GoalStatusKeys, GoalWithdrawalReasonKey, GoalWithdrawalReasonKeys, HairColorKey, HairColorKeys, HasTattoosKey, HasTattoosKeys, HighestEducationLevelCompletedKey, HighestEducationLevelCompletedKeys, HivStatusKey, HivStatusKeys, HmisCurrentLivingSituationKey, HmisCurrentLivingSituationKeys, HmisProjectTypeKey, HmisProjectTypeKeys, HmisRelationshipToHohKey, HmisRelationshipToHohKeys, HomelessStatusKey, HomelessStatusKeys, HopeScaleCaptureContextKey, HopeScaleCaptureContextKeys, HopeScaleResponseOptionsKey, HopeScaleResponseOptionsKeys, HopeScaleTierKey, HopeScaleTierKeys, HousingSubsidyTypesKey, HousingSubsidyTypesKeys, HtTypeKey, HtTypeKeys, IdentificationStatusKey, IdentificationStatusKeys, ImmigrationLegalStatusChangeTypeKey, ImmigrationLegalStatusChangeTypeKeys, IncarcerationEpisodeTypeKey, IncarcerationEpisodeTypeKeys, IncidentInvolvementRoleKey, IncidentInvolvementRoleKeys, IncidentParticipationRoleKey, IncidentParticipationRoleKeys, IncomeBenefitsSourcesKey, IncomeBenefitsSourcesKeys, InferenceTypeKey, InferenceTypeKeys, InvestigativeRequestTypeKey, InvestigativeRequestTypeKeys, JuvenileJusticeEpisodeTypeKey, JuvenileJusticeEpisodeTypeKeys, JuvenileJusticeInvolvementStatusKey, JuvenileJusticeInvolvementStatusKeys, LanguagesKey, LanguagesKeys, LeReportStatusKey, LeReportStatusKeys, LegalActionTypeKey, LegalActionTypeKeys, LivingSituationKey, LivingSituationKeys, LocationTypeKey, LocationTypeKeys, MaritalStatusLegalKey, MaritalStatusLegalKeys, MentalHealthStatusKey, MentalHealthStatusKeys, MessageReportReasonKey, MessageReportReasonKeys, MidStayEventTypeKey, MidStayEventTypeKeys, MilestoneTypeKey, MilestoneTypeKeys, MilitaryBranchKey, MilitaryBranchKeys, MilitaryStatusKey, MilitaryStatusKeys, MinorAdultStatusKey, MinorAdultStatusKeys, NameTypeKey, NameTypeKeys, NeedsAssessmentChangeTypeKey, NeedsAssessmentChangeTypeKeys, NeedsResidentialAgainKey, NeedsResidentialAgainKeys, OffenderStatusFamilyKey, OffenderStatusFamilyKeys, OffenderStatusKey, OffenderStatusKeys, OrientationIdentityKey, OrientationIdentityKeys, PersonRelationshipsKey, PersonRelationshipsKeys, PetExitReasonKey, PetExitReasonKeys, PetRelationshipBasisKey, PetRelationshipBasisKeys, PoPetitionBasisKey, PoPetitionBasisKeys, PoStatusKey, PoStatusKeys, PoViolationStatusKey, PoViolationStatusKeys, PreferredContactMethodKey, PreferredContactMethodKeys, PrimaryLanguageKey, PrimaryLanguageKeys, ProgramEnrollmentChangeTypeKey, ProgramEnrollmentChangeTypeKeys, ProgramSpecificCodeKey, ProgramSpecificCodeKeys, PronounsKey, PronounsKeys, ProofOfIdTypeKey, ProofOfIdTypeKeys, ProvenanceSourceIdKey, ProvenanceSourceIdKeys, QualityFlagsKey, QualityFlagsKeys, RaceEthnicityKey, RaceEthnicityKeys, RadiusBucketKey, RadiusBucketKeys, RecencyBandKey, RecencyBandKeys, ReferenceLinkTypeKey, ReferenceLinkTypeKeys, ReferralEntityCategoryKey, ReferralEntityCategoryKeys, ReferralOriginKey, ReferralOriginKeys, RelationshipConcernKey, RelationshipConcernKeys, RelationshipDynamicsKey, RelationshipDynamicsKeys, RelationshipStatusCurrentKey, RelationshipStatusCurrentKeys, RelationshipTiesKey, RelationshipTiesKeys, ReturnedToAbuserStatusKey, ReturnedToAbuserStatusKeys, RiskCategoryKey, RiskCategoryKeys, RiskIdentificationMilestoneKey, RiskIdentificationMilestoneKeys, RiskSeverityBandKey, RiskSeverityBandKeys, RoiMethodKey, RoiMethodKeys, RoiScopeKey, RoiScopeKeys, RoiStatusKey, RoiStatusKeys, RoleContextKey, RoleContextKeys, RomanticRelationshipChangeTypeKey, RomanticRelationshipChangeTypeKeys, RsvpResponseKey, RsvpResponseKeys, ServiceAudienceKey, ServiceAudienceKeys, ServiceCategoryKey, ServiceCategoryKeys, ServiceDeliveryChannelKey, ServiceDeliveryChannelKeys, ServiceMechanismKey, ServiceMechanismKeys, ServicePlanClosureReasonKey, ServicePlanClosureReasonKeys, ServicePlanReviewSnoozeReasonKey, ServicePlanReviewSnoozeReasonKeys, ServiceSourceKey, ServiceSourceKeys, ServiceStateKey, ServiceStateKeys, SessionNoteVisibilityKey, SessionNoteVisibilityKeys, SessionStateKey, SessionStateKeys, SessionTemplateKey, SessionTemplateKeys, SeverityFollowUpKey, SeverityFollowUpKeys, SexProviderSubroleKey, SexProviderSubroleKeys, SharePurposeKey, SharePurposeKeys, ShareResponseReasonKey, ShareResponseReasonKeys, SignatureMethodKey, SignatureMethodKeys, SignatureTypeKey, SignatureTypeKeys, SmtBodyLocationKey, SmtBodyLocationKeys, SmtNameRelationKey, SmtNameRelationKeys, SmtSignificanceFlagsKey, SmtSignificanceFlagsKeys, SmtTypeKey, SmtTypeKeys, SourceCategoryKey, SourceCategoryKeys, SourceInstrumentKey, SourceInstrumentKeys, SourceSubtypeKey, SourceSubtypeKeys, SourceSystemKey, SourceSystemKeys, SpecialNeedsDisabilitiesKey, SpecialNeedsDisabilitiesKeys, SubjectTypeKey, SubjectTypeKeys, SubstanceUseStatusKey, SubstanceUseStatusKeys, SuggestionSourceKey, SuggestionSourceKeys, SupportStrengthKey, SupportStrengthKeys, SupportTopicKey, SupportTopicKeys, ThreadStatusKey, ThreadStatusKeys, ThreadTypeKey, ThreadTypeKeys, TimeScopeKey, TimeScopeKeys, TraffickingRelevantRoleKey, TraffickingRelevantRoleKeys, TribesKey, TribesKeys, UserRoleKey, UserRoleKeys, VerificationMethodKey, VerificationMethodKeys, VerificationStatusKey, VerificationStatusKeys, VictimAbuseTypesKey, VictimAbuseTypesKeys, VictimStatusFamilyKey, VictimStatusFamilyKeys, VisaTypeKey, VisaTypeKeys, WhyNotKey, WhyNotKeys } from './enums/index.cjs';
|
|
10
10
|
export { CvcRegistryService, CvcRegistryServiceOptions, EntryLoader, ICvcEntry, ICvcRegistry, RegistryLoader, RegistryScope, applyEntryOverrides, cascadeExclusions, cvcVersionsToRecord, resolveRegistryWithInheritance } from './services/index.cjs';
|
|
11
11
|
export { C as CreateInformationScopeResolverInput, I as INFORMATION_SCOPE_POLICY_VERSION_ROW_NOTE, a as INFORMATION_SCOPE_READABLE_VERSIONS, b as INFORMATION_SCOPE_SYSTEM_INFO, c as INFORMATION_SCOPE_VERSION, d as InformationScopeResolver, S as ScopeApp, e as ScopeApps, f as ScopeCodeReading, g as ScopeKindBranch, h as ScopeMigration, i as ScopeMigrationRule, j as ScopePersonKind, k as ScopeReadOptions, l as ScopeReading, m as ScopeReadingRule, n as ScopeReadingSubject, o as ScopeRetainedReading, p as ScopeRow, q as ScopeRowStatus, r as ScopeRowType, s as ScopeShareOptions, t as ScopeShareReason, u as ScopeShareVerdict, v as ScopeSpecialDataType, w as ScopeSubjectKind, x as StoredScopeList, y as createInformationScopeResolver, z as isScopeInstrumentRow, A as isScopeRestRow, B as isSelectableScopeRow, D as kindForPerson } from './informationScopeResolver-BzYu97DE.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ export { ActiveServiceStateKey, DeprecatedServiceStateKey, IC48Catalog, IC48Cata
|
|
|
3
3
|
export { D as DEFAULT_BOUND_STATE, a as DEFAULT_BOUND_STATE_DISPLAY, b as DEFAULT_BOUND_STATE_LABELS, c as DEFAULT_BOUND_STATE_VALUES, d as DefaultBoundStateValue, F as FUNCTION_STATUS, e as FUNCTION_STATUS_LABELS, f as FUNCTION_STATUS_VALUES, g as FunctionStatusValue, P as PERMISSION_STATE, h as PERMISSION_STATE_DISPLAY, i as PERMISSION_STATE_LABELS, j as PERMISSION_STATE_VALUES, k as PLATFORM_TOOL, l as PLATFORM_TOOL_LABELS, m as PLATFORM_TOOL_VALUES, n as PermissionStateValue, o as PlatformToolValue, R as ROLE_LEVEL, p as ROLE_LEVEL_LABELS, q as ROLE_LEVEL_VALUES, r as RoleLevelValue, S as SHARE_VIEW, s as SHARE_VIEW_LABELS, t as SHARE_VIEW_VALUES, u as ShareViewValue } from './platform-auth-DJO-r9Pf.js';
|
|
4
4
|
export { A as AGENCY_TYPE_KEYS, a as AgencyTypeKey, H as HEALTHCARE_ORG_TYPE_KEYS, L as LAW_ENFORCEMENT_ORG_TYPE_KEYS, b as LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY, c as LEGAL_ORG_TYPE_KEYS, d as LegacyNumericReferralEntity, N as NO_SECTOR_ORG_TYPE_KEYS, O as ORG_TYPE_HEADING_KEYS, e as ORG_TYPE_KEYS, f as ORG_TYPE_NONPICKABLE_LEAF_KEYS, g as ORG_TYPE_PARENT_KEY, h as ORG_TYPE_SELECTABLE_KEYS, i as OrgTypeHeadingKey, j as OrgTypeKey, k as OrgTypeSelectableKey, R as REPORT_AUTHORITY_ORG_TYPE_KEYS, V as VICTIM_SERVING_ORG_TYPE_KEYS, l as isAgencyTypeKey, m as isHealthcareOrgType, n as isLawEnforcementOrgType, o as isLegalOrgType, p as isOrgTypeKey, q as isReportAuthorityOrgType, r as isVictimServingOrgType, s as orgTypeAncestry, t as orgTypeCanonicalCode, u as orgTypeDefaultSessionRole, v as orgTypeDefaultSessionRoleOrNull, w as orgTypeDefaultVsp, x as orgTypeEnumConstant, y as orgTypeLabel, z as orgTypeSector, B as resolveAgencyTypeKey, C as resolveOrgTypeKey, D as resolveOrgTypeKeyFromLegacyNumeric, E as resolveReferralEntityKeyFromLegacyNumeric } from './org-type-BYQb9Qzq.js';
|
|
5
5
|
export { AddOrganizationProgramsFieldOptions, Address, Demographics, Email, ORGANIZATION_PROGRAM_VALIDATED_UPDATE_OPS, OrganizationProgram, PersonName, Phone, TEAM_MODEL_NAME, TeamDirectoryFields, addOrganizationProgramsField, addTeamDirectoryFields, addressSchema, buildOrganizationProgramSchema, buildOrganizationProgramsFieldDefinition, demographicsSchema, emailSchema, organizationProgramSchemaDefinition, personNameSchema, phoneSchema, teamDirectorySchemaDefinition } from './schemas/index.js';
|
|
6
|
-
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from './cvcEntry-
|
|
6
|
+
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from './cvcEntry-Asg7mxjB.js';
|
|
7
7
|
export { A as AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS, a as AddAgencyOrgTypeFieldsOptions, b as AgencyOrgTypeFields, O as ORG_TYPE_FIELD_NAMES, c as OrgTypeFieldName, d as OrgTypeFields, e as OrgTypeFieldsHolder, V as VSP_TWO_STEP_ISSUE, f as addAgencyOrgTypeFields, g as addOrgTypeFields, h as agencyOrgTypeSchemaDefinition, i as applyRunValidatorsIfUnset, m as mirrorOrgTypeFields, o as orgTypeFieldsDiffer, j as orgTypeSchemaDefinition, r as resolveEffectiveOrgType, k as resolveEffectiveOrgTypeFields, v as vspTwoStepHolds, l as vspTwoStepHoldsOnUpdate } from './agency-Ca4pCOOf.js';
|
|
8
|
-
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, e as compileCvcEntryModel, f as compileCvcRegistryModel, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from './index-
|
|
8
|
+
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, e as compileCvcEntryModel, f as compileCvcRegistryModel, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from './index-ClTjjJ_S.js';
|
|
9
9
|
export { AccommodationTypeKey, AccommodationTypeKeys, ActionStepCompletionStatusKey, ActionStepCompletionStatusKeys, ActionStepTypeKey, ActionStepTypeKeys, ActivityTypeKey, ActivityTypeKeys, AdminRoleKey, AdminRoleKeys, AdministeringJurisdictionKey, AdministeringJurisdictionKeys, AgeBinReportingKey, AgeBinReportingKeys, AnnouncementAudienceScopeKey, AnnouncementAudienceScopeKeys, AnnouncementResponseTypeKey, AnnouncementResponseTypeKeys, AssertionDomainKey, AssertionDomainKeys, AssertionStatusKey, AssertionStatusKeys, BasisQuickPicksKey, BasisQuickPicksKeys, CarCorrectionReasonKey, CarCorrectionReasonKeys, CaseShareStateKey, CaseShareStateKeys, CheckInActivityKey, CheckInActivityKeys, CheckInPhaseKey, CheckInPhaseKeys, ChildBehavioralConcernsKey, ChildBehavioralConcernsKeys, ChildChangeTypeKey, ChildChangeTypeKeys, ChildCustodyArrangementKey, ChildCustodyArrangementKeys, CitizenshipKey, CitizenshipKeys, CollectionContextKey, CollectionContextKeys, ContactInfoTypeKey, ContactInfoTypeKeys, ContactInfoUseTypeKey, ContactInfoUseTypeKeys, ContactLinkTypeKey, ContactLinkTypeKeys, ContactSafetyStatusKey, ContactSafetyStatusKeys, CoreFunctionsKey, CoreFunctionsKeys, CoreIndicatorKey, CoreIndicatorKeys, CoreInformationScopeKey, CoreInformationScopeKeys, CoreReferralOutcomeKey, CoreReferralOutcomeKeys, CountryKey, CountryKeys, CreatedBySystemKey, CreatedBySystemKeys, CriminalOrgCategoryKey, CriminalOrgCategoryKeys, DaIncidentArchiveReasonKey, DaIncidentArchiveReasonKeys, DaIncidentConfidenceKey, DaIncidentConfidenceKeys, DaIncidentDayApproxKey, DaIncidentDayApproxKeys, DaIncidentSeverityKey, DaIncidentSeverityKeys, DeterminationHelperCategoryKey, DeterminationHelperCategoryKeys, DeterminationLevelKey, DeterminationLevelKeys, DhStateKey, DhStateKeys, DisabilitySubtypeKey, DisabilitySubtypeKeys, DiscretionLevelKey, DiscretionLevelKeys, EmergencyContactCallReasonKey, EmergencyContactCallReasonKeys, EmergencyContactPermissionsKey, EmergencyContactPermissionsKeys, EmergencyExitCascadeKey, EmergencyExitCascadeKeys, EmploymentStatusKey, EmploymentStatusKeys, EnrollmentApplicationStatusKey, EnrollmentApplicationStatusKeys, ExitProcessChecklistItemKey, ExitProcessChecklistItemKeys, ExitReasonsKey, ExitReasonsKeys, ExploitationTypeKey, ExploitationTypeKeys, EyeColorKey, EyeColorKeys, FacialHairKey, FacialHairKeys, FacilitatorEntityTypeKey, FacilitatorEntityTypeKeys, FacilitatorLabelUsedInSourceKey, FacilitatorLabelUsedInSourceKeys, FacilitatorSubroleKey, FacilitatorSubroleKeys, FrequencyCadenceKey, FrequencyCadenceKeys, FunderKey, FunderKeys, GenderIdentityKey, GenderIdentityKeys, GoalCategoryKey, GoalCategoryKeys, GoalPriorityKey, GoalPriorityKeys, GoalStatusKey, GoalStatusKeys, GoalWithdrawalReasonKey, GoalWithdrawalReasonKeys, HairColorKey, HairColorKeys, HasTattoosKey, HasTattoosKeys, HighestEducationLevelCompletedKey, HighestEducationLevelCompletedKeys, HivStatusKey, HivStatusKeys, HmisCurrentLivingSituationKey, HmisCurrentLivingSituationKeys, HmisProjectTypeKey, HmisProjectTypeKeys, HmisRelationshipToHohKey, HmisRelationshipToHohKeys, HomelessStatusKey, HomelessStatusKeys, HopeScaleCaptureContextKey, HopeScaleCaptureContextKeys, HopeScaleResponseOptionsKey, HopeScaleResponseOptionsKeys, HopeScaleTierKey, HopeScaleTierKeys, HousingSubsidyTypesKey, HousingSubsidyTypesKeys, HtTypeKey, HtTypeKeys, IdentificationStatusKey, IdentificationStatusKeys, ImmigrationLegalStatusChangeTypeKey, ImmigrationLegalStatusChangeTypeKeys, IncarcerationEpisodeTypeKey, IncarcerationEpisodeTypeKeys, IncidentInvolvementRoleKey, IncidentInvolvementRoleKeys, IncidentParticipationRoleKey, IncidentParticipationRoleKeys, IncomeBenefitsSourcesKey, IncomeBenefitsSourcesKeys, InferenceTypeKey, InferenceTypeKeys, InvestigativeRequestTypeKey, InvestigativeRequestTypeKeys, JuvenileJusticeEpisodeTypeKey, JuvenileJusticeEpisodeTypeKeys, JuvenileJusticeInvolvementStatusKey, JuvenileJusticeInvolvementStatusKeys, LanguagesKey, LanguagesKeys, LeReportStatusKey, LeReportStatusKeys, LegalActionTypeKey, LegalActionTypeKeys, LivingSituationKey, LivingSituationKeys, LocationTypeKey, LocationTypeKeys, MaritalStatusLegalKey, MaritalStatusLegalKeys, MentalHealthStatusKey, MentalHealthStatusKeys, MessageReportReasonKey, MessageReportReasonKeys, MidStayEventTypeKey, MidStayEventTypeKeys, MilestoneTypeKey, MilestoneTypeKeys, MilitaryBranchKey, MilitaryBranchKeys, MilitaryStatusKey, MilitaryStatusKeys, MinorAdultStatusKey, MinorAdultStatusKeys, NameTypeKey, NameTypeKeys, NeedsAssessmentChangeTypeKey, NeedsAssessmentChangeTypeKeys, NeedsResidentialAgainKey, NeedsResidentialAgainKeys, OffenderStatusFamilyKey, OffenderStatusFamilyKeys, OffenderStatusKey, OffenderStatusKeys, OrientationIdentityKey, OrientationIdentityKeys, PersonRelationshipsKey, PersonRelationshipsKeys, PetExitReasonKey, PetExitReasonKeys, PetRelationshipBasisKey, PetRelationshipBasisKeys, PoPetitionBasisKey, PoPetitionBasisKeys, PoStatusKey, PoStatusKeys, PoViolationStatusKey, PoViolationStatusKeys, PreferredContactMethodKey, PreferredContactMethodKeys, PrimaryLanguageKey, PrimaryLanguageKeys, ProgramEnrollmentChangeTypeKey, ProgramEnrollmentChangeTypeKeys, ProgramSpecificCodeKey, ProgramSpecificCodeKeys, PronounsKey, PronounsKeys, ProofOfIdTypeKey, ProofOfIdTypeKeys, ProvenanceSourceIdKey, ProvenanceSourceIdKeys, QualityFlagsKey, QualityFlagsKeys, RaceEthnicityKey, RaceEthnicityKeys, RadiusBucketKey, RadiusBucketKeys, RecencyBandKey, RecencyBandKeys, ReferenceLinkTypeKey, ReferenceLinkTypeKeys, ReferralEntityCategoryKey, ReferralEntityCategoryKeys, ReferralOriginKey, ReferralOriginKeys, RelationshipConcernKey, RelationshipConcernKeys, RelationshipDynamicsKey, RelationshipDynamicsKeys, RelationshipStatusCurrentKey, RelationshipStatusCurrentKeys, RelationshipTiesKey, RelationshipTiesKeys, ReturnedToAbuserStatusKey, ReturnedToAbuserStatusKeys, RiskCategoryKey, RiskCategoryKeys, RiskIdentificationMilestoneKey, RiskIdentificationMilestoneKeys, RiskSeverityBandKey, RiskSeverityBandKeys, RoiMethodKey, RoiMethodKeys, RoiScopeKey, RoiScopeKeys, RoiStatusKey, RoiStatusKeys, RoleContextKey, RoleContextKeys, RomanticRelationshipChangeTypeKey, RomanticRelationshipChangeTypeKeys, RsvpResponseKey, RsvpResponseKeys, ServiceAudienceKey, ServiceAudienceKeys, ServiceCategoryKey, ServiceCategoryKeys, ServiceDeliveryChannelKey, ServiceDeliveryChannelKeys, ServiceMechanismKey, ServiceMechanismKeys, ServicePlanClosureReasonKey, ServicePlanClosureReasonKeys, ServicePlanReviewSnoozeReasonKey, ServicePlanReviewSnoozeReasonKeys, ServiceSourceKey, ServiceSourceKeys, ServiceStateKey, ServiceStateKeys, SessionNoteVisibilityKey, SessionNoteVisibilityKeys, SessionStateKey, SessionStateKeys, SessionTemplateKey, SessionTemplateKeys, SeverityFollowUpKey, SeverityFollowUpKeys, SexProviderSubroleKey, SexProviderSubroleKeys, SharePurposeKey, SharePurposeKeys, ShareResponseReasonKey, ShareResponseReasonKeys, SignatureMethodKey, SignatureMethodKeys, SignatureTypeKey, SignatureTypeKeys, SmtBodyLocationKey, SmtBodyLocationKeys, SmtNameRelationKey, SmtNameRelationKeys, SmtSignificanceFlagsKey, SmtSignificanceFlagsKeys, SmtTypeKey, SmtTypeKeys, SourceCategoryKey, SourceCategoryKeys, SourceInstrumentKey, SourceInstrumentKeys, SourceSubtypeKey, SourceSubtypeKeys, SourceSystemKey, SourceSystemKeys, SpecialNeedsDisabilitiesKey, SpecialNeedsDisabilitiesKeys, SubjectTypeKey, SubjectTypeKeys, SubstanceUseStatusKey, SubstanceUseStatusKeys, SuggestionSourceKey, SuggestionSourceKeys, SupportStrengthKey, SupportStrengthKeys, SupportTopicKey, SupportTopicKeys, ThreadStatusKey, ThreadStatusKeys, ThreadTypeKey, ThreadTypeKeys, TimeScopeKey, TimeScopeKeys, TraffickingRelevantRoleKey, TraffickingRelevantRoleKeys, TribesKey, TribesKeys, UserRoleKey, UserRoleKeys, VerificationMethodKey, VerificationMethodKeys, VerificationStatusKey, VerificationStatusKeys, VictimAbuseTypesKey, VictimAbuseTypesKeys, VictimStatusFamilyKey, VictimStatusFamilyKeys, VisaTypeKey, VisaTypeKeys, WhyNotKey, WhyNotKeys } from './enums/index.js';
|
|
10
10
|
export { CvcRegistryService, CvcRegistryServiceOptions, EntryLoader, ICvcEntry, ICvcRegistry, RegistryLoader, RegistryScope, applyEntryOverrides, cascadeExclusions, cvcVersionsToRecord, resolveRegistryWithInheritance } from './services/index.js';
|
|
11
11
|
export { C as CreateInformationScopeResolverInput, I as INFORMATION_SCOPE_POLICY_VERSION_ROW_NOTE, a as INFORMATION_SCOPE_READABLE_VERSIONS, b as INFORMATION_SCOPE_SYSTEM_INFO, c as INFORMATION_SCOPE_VERSION, d as InformationScopeResolver, S as ScopeApp, e as ScopeApps, f as ScopeCodeReading, g as ScopeKindBranch, h as ScopeMigration, i as ScopeMigrationRule, j as ScopePersonKind, k as ScopeReadOptions, l as ScopeReading, m as ScopeReadingRule, n as ScopeReadingSubject, o as ScopeRetainedReading, p as ScopeRow, q as ScopeRowStatus, r as ScopeRowType, s as ScopeShareOptions, t as ScopeShareReason, u as ScopeShareVerdict, v as ScopeSpecialDataType, w as ScopeSubjectKind, x as StoredScopeList, y as createInformationScopeResolver, z as isScopeInstrumentRow, A as isScopeRestRow, B as isSelectableScopeRow, D as kindForPerson } from './informationScopeResolver-BzYu97DE.js';
|
package/dist/models/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-
|
|
1
|
+
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-Asg7mxjB.cjs';
|
|
2
2
|
import 'mongoose';
|
|
3
|
-
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-
|
|
3
|
+
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-Pt82NxQg.cjs';
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-
|
|
1
|
+
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-Asg7mxjB.js';
|
|
2
2
|
import 'mongoose';
|
|
3
|
-
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-
|
|
3
|
+
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-ClTjjJ_S.js';
|