@htilabs/platform-common-models 0.8.9 → 0.8.12

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 (57) hide show
  1. package/dist/config/index.cjs +191 -0
  2. package/dist/config/index.cjs.map +1 -0
  3. package/dist/config/index.d.cts +101 -0
  4. package/dist/config/index.d.ts +101 -0
  5. package/dist/config/index.js +165 -0
  6. package/dist/config/index.js.map +1 -0
  7. package/dist/constants/index.cjs +2 -0
  8. package/dist/constants/index.cjs.map +1 -1
  9. package/dist/constants/index.d.cts +1 -1
  10. package/dist/constants/index.d.ts +1 -1
  11. package/dist/constants/index.js +2 -0
  12. package/dist/constants/index.js.map +1 -1
  13. package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-BCj1OWqL.d.cts} +36 -36
  14. package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-BCj1OWqL.d.ts} +36 -36
  15. package/dist/cvcs/index.cjs +1520 -5
  16. package/dist/cvcs/index.cjs.map +1 -1
  17. package/dist/cvcs/index.d.cts +3300 -1612
  18. package/dist/cvcs/index.d.ts +3300 -1612
  19. package/dist/cvcs/index.js +1513 -5
  20. package/dist/cvcs/index.js.map +1 -1
  21. package/dist/{index-EPjPjR0z.d.cts → index-CoVr1jIV.d.cts} +1 -1
  22. package/dist/{index-C0J3f169.d.ts → index-I-DiX9eQ.d.ts} +1 -1
  23. package/dist/index.cjs +1705 -7
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +216 -7
  26. package/dist/index.d.ts +216 -7
  27. package/dist/index.js +1691 -7
  28. package/dist/index.js.map +1 -1
  29. package/dist/models/index.d.cts +2 -2
  30. package/dist/models/index.d.ts +2 -2
  31. package/dist/{platform-auth-BSKYSDKe.d.cts → platform-auth-BwfZ0bxU.d.cts} +1 -1
  32. package/dist/{platform-auth-BSKYSDKe.d.ts → platform-auth-BwfZ0bxU.d.ts} +1 -1
  33. package/dist/schemas/index.cjs.map +1 -1
  34. package/dist/schemas/index.d.cts +11 -11
  35. package/dist/schemas/index.d.ts +11 -11
  36. package/dist/schemas/index.js.map +1 -1
  37. package/dist/types/index.d.cts +2 -2
  38. package/dist/types/index.d.ts +2 -2
  39. package/package.json +7 -1
  40. package/src/__tests__/__snapshots__/cvc-sot.snap +32 -4
  41. package/src/__tests__/cvc-sot-snapshot.test.ts +24 -2
  42. package/src/__tests__/cvc-structural.test.ts +11 -1
  43. package/src/__tests__/runtime-contract-validator.test.ts +556 -0
  44. package/src/config/fixtures/valid.yaml +90 -0
  45. package/src/config/index.ts +352 -0
  46. package/src/constants/ic.ts +14 -1
  47. package/src/cvcs/{assertionDomain.v1.0.0.json → assertionDomain.v1.1.0.json} +12 -3
  48. package/src/cvcs/{checkInPhase.v1.0.0.json → checkInPhase.v1.1.0.json} +20 -2
  49. package/src/cvcs/coreFunctions.v1.0.0.json +746 -0
  50. package/src/cvcs/coreReferralOutcome.v1.0.0.json +71 -0
  51. package/src/cvcs/index.ts +15 -1
  52. package/src/cvcs/needsAssessmentChangeType.v1.0.0.json +134 -0
  53. package/src/cvcs/riskBand.v1.0.0.json +98 -0
  54. package/src/cvcs/riskCategory.v1.0.0.json +134 -0
  55. package/src/cvcs/roiScope.v1.0.0.json +188 -0
  56. package/src/cvcs/roiStatus.v1.0.0.json +98 -0
  57. package/src/generated/cvc-enums.ts +225 -2
@@ -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-DaDrEuTa.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
4
 
5
5
  declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
6
6
  _id: false;
@@ -28,9 +28,9 @@ declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any,
28
28
  placeId?: string | null | undefined;
29
29
  }, {
30
30
  id: string;
31
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
31
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
32
32
  _id: false;
33
- }>> & Omit<{
33
+ }> & Omit<{
34
34
  formattedAddress?: string | null | undefined;
35
35
  street?: string | null | undefined;
36
36
  city?: string | null | undefined;
@@ -88,9 +88,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
88
88
  isAnonymous?: boolean | null | undefined;
89
89
  }, {
90
90
  id: string;
91
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
91
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
92
92
  _id: false;
93
- }>> & Omit<{
93
+ }> & Omit<{
94
94
  alias?: boolean | null | undefined;
95
95
  firstName?: string | null | undefined;
96
96
  lastName?: string | null | undefined;
@@ -136,9 +136,9 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
136
136
  dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
137
137
  }, {
138
138
  id: string;
139
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
139
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
140
140
  _id: false;
141
- }>> & Omit<{
141
+ }> & Omit<{
142
142
  number?: string | null | undefined;
143
143
  type?: string | null | undefined;
144
144
  safeToContact?: boolean | null | undefined;
@@ -172,9 +172,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
172
172
  address?: string | null | undefined;
173
173
  }, {
174
174
  id: string;
175
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
175
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
176
176
  _id: false;
177
- }>> & Omit<{
177
+ }> & Omit<{
178
178
  type?: string | null | undefined;
179
179
  safeToContact?: boolean | null | undefined;
180
180
  address?: string | null | undefined;
@@ -246,9 +246,9 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
246
246
  ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
247
247
  }, {
248
248
  id: string;
249
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
249
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
250
250
  _id: false;
251
- }>> & Omit<{
251
+ }> & Omit<{
252
252
  race: number[];
253
253
  ethnicity: number[];
254
254
  accommodations: string[];
@@ -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-DaDrEuTa.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
4
 
5
5
  declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
6
6
  _id: false;
@@ -28,9 +28,9 @@ declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any,
28
28
  placeId?: string | null | undefined;
29
29
  }, {
30
30
  id: string;
31
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
31
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
32
32
  _id: false;
33
- }>> & Omit<{
33
+ }> & Omit<{
34
34
  formattedAddress?: string | null | undefined;
35
35
  street?: string | null | undefined;
36
36
  city?: string | null | undefined;
@@ -88,9 +88,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
88
88
  isAnonymous?: boolean | null | undefined;
89
89
  }, {
90
90
  id: string;
91
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
91
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
92
92
  _id: false;
93
- }>> & Omit<{
93
+ }> & Omit<{
94
94
  alias?: boolean | null | undefined;
95
95
  firstName?: string | null | undefined;
96
96
  lastName?: string | null | undefined;
@@ -136,9 +136,9 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
136
136
  dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
137
137
  }, {
138
138
  id: string;
139
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
139
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
140
140
  _id: false;
141
- }>> & Omit<{
141
+ }> & Omit<{
142
142
  number?: string | null | undefined;
143
143
  type?: string | null | undefined;
144
144
  safeToContact?: boolean | null | undefined;
@@ -172,9 +172,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
172
172
  address?: string | null | undefined;
173
173
  }, {
174
174
  id: string;
175
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
175
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
176
176
  _id: false;
177
- }>> & Omit<{
177
+ }> & Omit<{
178
178
  type?: string | null | undefined;
179
179
  safeToContact?: boolean | null | undefined;
180
180
  address?: string | null | undefined;
@@ -246,9 +246,9 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
246
246
  ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
247
247
  }, {
248
248
  id: string;
249
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
249
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
250
250
  _id: false;
251
- }>> & Omit<{
251
+ }> & Omit<{
252
252
  race: number[];
253
253
  ethnicity: number[];
254
254
  accommodations: string[];