@htilabs/platform-common-models 0.17.0 → 0.19.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.
Files changed (82) hide show
  1. package/dist/agency-BHv54o79.d.ts +484 -0
  2. package/dist/agency-Ca4pCOOf.d.ts +342 -0
  3. package/dist/agency-DYCv839V.d.cts +342 -0
  4. package/dist/agency-Djp57S71.d.cts +484 -0
  5. package/dist/constants/index.cjs +952 -0
  6. package/dist/constants/index.cjs.map +1 -1
  7. package/dist/constants/index.d.cts +3 -1
  8. package/dist/constants/index.d.ts +3 -1
  9. package/dist/constants/index.js +920 -0
  10. package/dist/constants/index.js.map +1 -1
  11. package/dist/{cvcEntry-ctHTp2df.d.cts → cvcEntry-BCj1OWqL.d.cts} +44 -44
  12. package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-BCj1OWqL.d.ts} +44 -44
  13. package/dist/cvcs/index.cjs +1078 -1026
  14. package/dist/cvcs/index.cjs.map +1 -1
  15. package/dist/cvcs/index.d.cts +1057 -1004
  16. package/dist/cvcs/index.d.ts +1057 -1004
  17. package/dist/cvcs/index.js +1069 -1017
  18. package/dist/cvcs/index.js.map +1 -1
  19. package/dist/enums/index.cjs +143 -142
  20. package/dist/enums/index.cjs.map +1 -1
  21. package/dist/enums/index.d.cts +145 -144
  22. package/dist/enums/index.d.ts +145 -144
  23. package/dist/enums/index.js +143 -142
  24. package/dist/enums/index.js.map +1 -1
  25. package/dist/{index-qreOzXYS.d.cts → index-CoVr1jIV.d.cts} +1 -1
  26. package/dist/{index-4DiJrn7y.d.ts → index-I-DiX9eQ.d.ts} +1 -1
  27. package/dist/index.cjs +2762 -2185
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +6 -4
  30. package/dist/index.d.ts +6 -4
  31. package/dist/index.js +2708 -2184
  32. package/dist/index.js.map +1 -1
  33. package/dist/models/index.cjs +1 -1
  34. package/dist/models/index.cjs.map +1 -1
  35. package/dist/models/index.d.cts +2 -2
  36. package/dist/models/index.d.ts +2 -2
  37. package/dist/models/index.js +1 -1
  38. package/dist/models/index.js.map +1 -1
  39. package/dist/org-type-BYQb9Qzq.d.ts +366 -0
  40. package/dist/org-type-D_FG4KdN.d.cts +366 -0
  41. package/dist/{platform-auth-CrF5U_JH.d.cts → platform-auth-CvAYFVhK.d.cts} +39 -0
  42. package/dist/{platform-auth-CrF5U_JH.d.ts → platform-auth-CvAYFVhK.d.ts} +39 -0
  43. package/dist/schemas/index.cjs +978 -3
  44. package/dist/schemas/index.cjs.map +1 -1
  45. package/dist/schemas/index.d.cts +38 -35
  46. package/dist/schemas/index.d.ts +38 -35
  47. package/dist/schemas/index.js +963 -2
  48. package/dist/schemas/index.js.map +1 -1
  49. package/dist/services/index.cjs +1 -1
  50. package/dist/services/index.cjs.map +1 -1
  51. package/dist/services/index.js +1 -1
  52. package/dist/services/index.js.map +1 -1
  53. package/dist/types/index.d.cts +2 -2
  54. package/dist/types/index.d.ts +2 -2
  55. package/dist/validation/index.cjs +894 -2
  56. package/dist/validation/index.cjs.map +1 -1
  57. package/dist/validation/index.d.cts +5 -1
  58. package/dist/validation/index.d.ts +5 -1
  59. package/dist/validation/index.js +884 -1
  60. package/dist/validation/index.js.map +1 -1
  61. package/package.json +26 -27
  62. package/src/__tests__/__snapshots__/cvc-sot.snap +3 -3
  63. package/src/__tests__/cvc-sot-snapshot.test.ts +6 -6
  64. package/src/__tests__/cvc-structural.test.ts +3 -3
  65. package/src/__tests__/org-type-contract.test.ts +1353 -0
  66. package/src/__tests__/referral-entity-category-canon.test.ts +255 -81
  67. package/src/constants/ic.ts +45 -0
  68. package/src/constants/index.ts +1 -0
  69. package/src/constants/org-type.ts +703 -0
  70. package/src/cvcs/index.ts +2 -2
  71. package/src/cvcs/{referralEntityCategory.v1.1.0.json → referralEntityCategory.v1.2.0.json} +111 -59
  72. package/src/cvcs/{serviceCategories.v1.0.0.json → serviceCategories.v1.2.0.json} +955 -955
  73. package/src/generated/cvc-enums.ts +145 -144
  74. package/src/index.ts +23 -0
  75. package/src/schemas/agency.ts +481 -0
  76. package/src/schemas/cvcRegistry.ts +1 -1
  77. package/src/schemas/index.ts +24 -0
  78. package/src/services/__tests__/cvcRegistryService.test.ts +11 -11
  79. package/src/validation/agency.ts +119 -0
  80. package/src/validation/index.ts +1 -0
  81. package/dist/team-C4LJ5Tex.d.cts +0 -333
  82. package/dist/team-C4LJ5Tex.d.ts +0 -333
@@ -1,6 +1,9 @@
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-ctHTp2df.cjs';
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-BCj1OWqL.cjs';
4
+ 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';
5
+ import '../org-type-D_FG4KdN.cjs';
6
+ import '../enums/index.cjs';
4
7
 
5
8
  declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
6
9
  _id: false;
@@ -28,9 +31,9 @@ declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any,
28
31
  placeId?: string | null | undefined;
29
32
  }, {
30
33
  id: string;
31
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
34
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
32
35
  _id: false;
33
- }>> & Omit<{
36
+ }> & Omit<{
34
37
  formattedAddress?: string | null | undefined;
35
38
  street?: string | null | undefined;
36
39
  city?: string | null | undefined;
@@ -90,9 +93,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
90
93
  isMononym?: boolean | null | undefined;
91
94
  }, {
92
95
  id: string;
93
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
96
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
94
97
  _id: false;
95
- }>> & Omit<{
98
+ }> & Omit<{
96
99
  alias?: boolean | null | undefined;
97
100
  firstName?: string | null | undefined;
98
101
  lastName?: string | null | undefined;
@@ -132,21 +135,21 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
132
135
  number?: string | null | undefined;
133
136
  type?: string | null | undefined;
134
137
  safeToContact?: boolean | null | undefined;
135
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
138
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
136
139
  }, mongoose.Document<unknown, {}, {
137
140
  number?: string | null | undefined;
138
141
  type?: string | null | undefined;
139
142
  safeToContact?: boolean | null | undefined;
140
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
143
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
141
144
  }, {
142
145
  id: string;
143
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
146
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
144
147
  _id: false;
145
- }>> & Omit<{
148
+ }> & Omit<{
146
149
  number?: string | null | undefined;
147
150
  type?: string | null | undefined;
148
151
  safeToContact?: boolean | null | undefined;
149
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
152
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
150
153
  } & {
151
154
  _id: mongoose.Types.ObjectId;
152
155
  } & {
@@ -157,7 +160,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
157
160
  number?: string | null | undefined;
158
161
  type?: string | null | undefined;
159
162
  safeToContact?: boolean | null | undefined;
160
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
163
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
161
164
  } & {
162
165
  _id: mongoose.Types.ObjectId;
163
166
  } & {
@@ -176,9 +179,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
176
179
  address?: string | null | undefined;
177
180
  }, {
178
181
  id: string;
179
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
182
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
180
183
  _id: false;
181
- }>> & Omit<{
184
+ }> & Omit<{
182
185
  type?: string | null | undefined;
183
186
  safeToContact?: boolean | null | undefined;
184
187
  address?: string | null | undefined;
@@ -219,11 +222,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
219
222
  raceOtherText?: string | null | undefined;
220
223
  genderOtherText?: string | null | undefined;
221
224
  accommodationOtherText?: string | null | undefined;
222
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
223
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
224
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
225
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
226
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
225
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
226
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
227
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
228
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
229
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
227
230
  }, mongoose.Document<unknown, {}, {
228
231
  race: number[];
229
232
  ethnicity: number[];
@@ -243,16 +246,16 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
243
246
  raceOtherText?: string | null | undefined;
244
247
  genderOtherText?: string | null | undefined;
245
248
  accommodationOtherText?: string | null | undefined;
246
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
247
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
248
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
249
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
250
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
249
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
250
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
251
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
252
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
253
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
251
254
  }, {
252
255
  id: string;
253
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
256
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
254
257
  _id: false;
255
- }>> & Omit<{
258
+ }> & Omit<{
256
259
  race: number[];
257
260
  ethnicity: number[];
258
261
  accommodations: string[];
@@ -271,11 +274,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
271
274
  raceOtherText?: string | null | undefined;
272
275
  genderOtherText?: string | null | undefined;
273
276
  accommodationOtherText?: string | null | undefined;
274
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
275
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
276
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
277
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
278
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
277
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
278
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
279
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
280
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
281
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
279
282
  } & {
280
283
  _id: mongoose.Types.ObjectId;
281
284
  } & {
@@ -301,11 +304,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
301
304
  raceOtherText?: string | null | undefined;
302
305
  genderOtherText?: string | null | undefined;
303
306
  accommodationOtherText?: string | null | undefined;
304
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
305
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
306
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
307
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
308
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
307
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
308
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
309
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
310
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
311
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
309
312
  } & {
310
313
  _id: mongoose.Types.ObjectId;
311
314
  } & {
@@ -1,6 +1,9 @@
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-ctHTp2df.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-BCj1OWqL.js';
4
+ 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';
5
+ import '../org-type-BYQb9Qzq.js';
6
+ import '../enums/index.js';
4
7
 
5
8
  declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
6
9
  _id: false;
@@ -28,9 +31,9 @@ declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any,
28
31
  placeId?: string | null | undefined;
29
32
  }, {
30
33
  id: string;
31
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
34
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
32
35
  _id: false;
33
- }>> & Omit<{
36
+ }> & Omit<{
34
37
  formattedAddress?: string | null | undefined;
35
38
  street?: string | null | undefined;
36
39
  city?: string | null | undefined;
@@ -90,9 +93,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
90
93
  isMononym?: boolean | null | undefined;
91
94
  }, {
92
95
  id: string;
93
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
96
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
94
97
  _id: false;
95
- }>> & Omit<{
98
+ }> & Omit<{
96
99
  alias?: boolean | null | undefined;
97
100
  firstName?: string | null | undefined;
98
101
  lastName?: string | null | undefined;
@@ -132,21 +135,21 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
132
135
  number?: string | null | undefined;
133
136
  type?: string | null | undefined;
134
137
  safeToContact?: boolean | null | undefined;
135
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
138
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
136
139
  }, mongoose.Document<unknown, {}, {
137
140
  number?: string | null | undefined;
138
141
  type?: string | null | undefined;
139
142
  safeToContact?: boolean | null | undefined;
140
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
143
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
141
144
  }, {
142
145
  id: string;
143
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
146
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
144
147
  _id: false;
145
- }>> & Omit<{
148
+ }> & Omit<{
146
149
  number?: string | null | undefined;
147
150
  type?: string | null | undefined;
148
151
  safeToContact?: boolean | null | undefined;
149
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
152
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
150
153
  } & {
151
154
  _id: mongoose.Types.ObjectId;
152
155
  } & {
@@ -157,7 +160,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
157
160
  number?: string | null | undefined;
158
161
  type?: string | null | undefined;
159
162
  safeToContact?: boolean | null | undefined;
160
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
163
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
161
164
  } & {
162
165
  _id: mongoose.Types.ObjectId;
163
166
  } & {
@@ -176,9 +179,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
176
179
  address?: string | null | undefined;
177
180
  }, {
178
181
  id: string;
179
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
182
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
180
183
  _id: false;
181
- }>> & Omit<{
184
+ }> & Omit<{
182
185
  type?: string | null | undefined;
183
186
  safeToContact?: boolean | null | undefined;
184
187
  address?: string | null | undefined;
@@ -219,11 +222,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
219
222
  raceOtherText?: string | null | undefined;
220
223
  genderOtherText?: string | null | undefined;
221
224
  accommodationOtherText?: string | null | undefined;
222
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
223
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
224
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
225
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
226
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
225
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
226
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
227
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
228
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
229
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
227
230
  }, mongoose.Document<unknown, {}, {
228
231
  race: number[];
229
232
  ethnicity: number[];
@@ -243,16 +246,16 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
243
246
  raceOtherText?: string | null | undefined;
244
247
  genderOtherText?: string | null | undefined;
245
248
  accommodationOtherText?: string | null | undefined;
246
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
247
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
248
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
249
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
250
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
249
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
250
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
251
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
252
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
253
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
251
254
  }, {
252
255
  id: string;
253
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
256
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
254
257
  _id: false;
255
- }>> & Omit<{
258
+ }> & Omit<{
256
259
  race: number[];
257
260
  ethnicity: number[];
258
261
  accommodations: string[];
@@ -271,11 +274,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
271
274
  raceOtherText?: string | null | undefined;
272
275
  genderOtherText?: string | null | undefined;
273
276
  accommodationOtherText?: string | null | undefined;
274
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
275
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
276
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
277
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
278
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
277
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
278
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
279
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
280
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
281
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
279
282
  } & {
280
283
  _id: mongoose.Types.ObjectId;
281
284
  } & {
@@ -301,11 +304,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
301
304
  raceOtherText?: string | null | undefined;
302
305
  genderOtherText?: string | null | undefined;
303
306
  accommodationOtherText?: string | null | undefined;
304
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
305
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
306
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
307
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
308
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
307
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
308
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
309
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
310
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
311
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
309
312
  } & {
310
313
  _id: mongoose.Types.ObjectId;
311
314
  } & {