@htilabs/platform-common-models 0.86.0 → 0.87.1

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.
Files changed (40) hide show
  1. package/README.md +20 -0
  2. package/dist/{index-XWSYon40.d.cts → index-Bj-s0nZy.d.cts} +1 -1
  3. package/dist/{index-Bh1zO_Vu.d.ts → index-DvAypMJV.d.ts} +1 -1
  4. package/dist/index.d.cts +2 -2
  5. package/dist/index.d.ts +2 -2
  6. package/dist/models/index.d.cts +2 -2
  7. package/dist/models/index.d.ts +2 -2
  8. package/dist/org-merge/index.cjs.map +1 -1
  9. package/dist/org-merge/index.js.map +1 -1
  10. package/dist/points-of-contact/index.cjs +222 -23
  11. package/dist/points-of-contact/index.cjs.map +1 -1
  12. package/dist/points-of-contact/index.d.cts +50 -5
  13. package/dist/points-of-contact/index.d.ts +50 -5
  14. package/dist/points-of-contact/index.js +219 -22
  15. package/dist/points-of-contact/index.js.map +1 -1
  16. package/dist/reader-BmhzOis-.d.ts +273 -0
  17. package/dist/reader-DfQtdw6n.d.cts +273 -0
  18. package/dist/schemas/index.d.cts +25 -25
  19. package/dist/schemas/index.d.ts +25 -25
  20. package/dist/seat-logs/index.cjs +815 -0
  21. package/dist/seat-logs/index.cjs.map +1 -0
  22. package/dist/seat-logs/index.d.cts +274 -0
  23. package/dist/seat-logs/index.d.ts +274 -0
  24. package/dist/seat-logs/index.js +742 -0
  25. package/dist/seat-logs/index.js.map +1 -0
  26. package/package.json +6 -1
  27. package/src/pointsOfContact/__tests__/seatContactLog.test.ts +170 -0
  28. package/src/pointsOfContact/readRules.ts +22 -4
  29. package/src/pointsOfContact/reader.ts +95 -1
  30. package/src/pointsOfContact/schemas.ts +4 -3
  31. package/src/seatLogs/__tests__/seatLogs.review.test.ts +222 -0
  32. package/src/seatLogs/__tests__/seatLogs.test.ts +335 -0
  33. package/src/seatLogs/index.ts +15 -0
  34. package/src/seatLogs/log.ts +700 -0
  35. package/src/seatLogs/personId.ts +100 -0
  36. package/src/seatLogs/personSlugWordlists.ts +40 -0
  37. package/src/seatLogs/reader.ts +143 -0
  38. package/src/seatLogs/schemas.ts +118 -0
  39. package/dist/{cvcEntry-D787utvP.d.cts → cvcEntry-BLeRivoF.d.cts} +8 -8
  40. package/dist/{cvcEntry-D787utvP.d.ts → cvcEntry-BLeRivoF.d.ts} +8 -8
@@ -1,6 +1,6 @@
1
1
  import * as mongoose from 'mongoose';
2
2
  import { InferRawDocType, Schema } from 'mongoose';
3
- 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-D787utvP.js';
3
+ 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-BLeRivoF.js';
4
4
  import { a as AddAgencyOrgTypeFieldsOptions } from '../agency-NEW6NOGD.js';
5
5
  export { A as AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS, 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, j as installVspTwoStepHooks, m as mirrorOrgTypeFields, o as orgTypeFieldsDiffer, k as orgTypeSchemaDefinition, r as resolveEffectiveOrgType, l as resolveEffectiveOrgTypeFields, v as vspTwoStepHolds, n as vspTwoStepHoldsOnUpdate } from '../agency-NEW6NOGD.js';
6
6
  export { P as PROGRAM_REVIEW_STATUS, a as PROGRAM_REVIEW_STATUS_VALUES, b as ProgramReviewStatus, i as isLiveOrganizationProgram, c as isProgramReviewStatus } from '../vocabulary-Cxhi9EGt.js';
@@ -137,12 +137,12 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
137
137
  number?: string | null | undefined;
138
138
  type?: string | null | undefined;
139
139
  safeToContact?: boolean | null | undefined;
140
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
140
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
141
141
  }, mongoose.Document<unknown, {}, {
142
142
  number?: string | null | undefined;
143
143
  type?: string | null | undefined;
144
144
  safeToContact?: boolean | null | undefined;
145
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
145
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
146
146
  }, {
147
147
  id: string;
148
148
  }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
@@ -151,7 +151,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
151
151
  number?: string | null | undefined;
152
152
  type?: string | null | undefined;
153
153
  safeToContact?: boolean | null | undefined;
154
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
154
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
155
155
  } & {
156
156
  _id: mongoose.Types.ObjectId;
157
157
  } & {
@@ -162,7 +162,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
162
162
  number?: string | null | undefined;
163
163
  type?: string | null | undefined;
164
164
  safeToContact?: boolean | null | undefined;
165
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
165
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
166
166
  } & {
167
167
  _id: mongoose.Types.ObjectId;
168
168
  } & {
@@ -224,11 +224,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
224
224
  raceOtherText?: string | null | undefined;
225
225
  genderOtherText?: string | null | undefined;
226
226
  accommodationOtherText?: string | null | undefined;
227
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
228
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
229
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
230
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
231
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
227
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
228
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
229
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
230
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
231
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
232
232
  }, mongoose.Document<unknown, {}, {
233
233
  race: number[];
234
234
  ethnicity: number[];
@@ -248,11 +248,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
248
248
  raceOtherText?: string | null | undefined;
249
249
  genderOtherText?: string | null | undefined;
250
250
  accommodationOtherText?: string | null | undefined;
251
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
252
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
253
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
254
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
255
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
251
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
252
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
253
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
254
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
255
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
256
256
  }, {
257
257
  id: string;
258
258
  }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
@@ -276,11 +276,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
276
276
  raceOtherText?: string | null | undefined;
277
277
  genderOtherText?: string | null | undefined;
278
278
  accommodationOtherText?: string | null | undefined;
279
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
280
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
281
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
282
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
283
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
279
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
280
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
281
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
282
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
283
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
284
284
  } & {
285
285
  _id: mongoose.Types.ObjectId;
286
286
  } & {
@@ -306,11 +306,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
306
306
  raceOtherText?: string | null | undefined;
307
307
  genderOtherText?: string | null | undefined;
308
308
  accommodationOtherText?: string | null | undefined;
309
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
310
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
311
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
312
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
313
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
309
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
310
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
311
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
312
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
313
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
314
314
  } & {
315
315
  _id: mongoose.Types.ObjectId;
316
316
  } & {