@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
@@ -21,9 +21,9 @@ declare const formSectionRefSchema: Schema<any, mongoose.Model<any, any, any, an
21
21
  presetsType?: string | null | undefined;
22
22
  }, {
23
23
  id: string;
24
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
24
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
25
25
  _id: false;
26
- }>> & Omit<{
26
+ }> & Omit<{
27
27
  index: number;
28
28
  sectionId: string;
29
29
  sectionVersion: string;
@@ -111,9 +111,9 @@ declare const formSchemaDefinition: {
111
111
  presetsType?: string | null | undefined;
112
112
  }, {
113
113
  id: string;
114
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
114
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
115
115
  _id: false;
116
- }>> & Omit<{
116
+ }> & Omit<{
117
117
  index: number;
118
118
  sectionId: string;
119
119
  sectionVersion: string;
@@ -208,9 +208,9 @@ declare const sectionQuestionRefSchema: Schema<any, mongoose.Model<any, any, any
208
208
  questionVersion: string;
209
209
  }, {
210
210
  id: string;
211
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
211
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
212
212
  _id: false;
213
- }>> & Omit<{
213
+ }> & Omit<{
214
214
  index: number;
215
215
  questionId: string;
216
216
  questionVersion: string;
@@ -240,9 +240,9 @@ declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any
240
240
  type: "tip" | "warning" | "prompt";
241
241
  }, {
242
242
  id: string;
243
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
243
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
244
244
  _id: false;
245
- }>> & Omit<{
245
+ }> & Omit<{
246
246
  text: string;
247
247
  type: "tip" | "warning" | "prompt";
248
248
  } & {
@@ -301,9 +301,9 @@ declare const sectionSchemaDefinition: {
301
301
  type: "tip" | "warning" | "prompt";
302
302
  }, {
303
303
  id: string;
304
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
304
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
305
305
  _id: false;
306
- }>> & Omit<{
306
+ }> & Omit<{
307
307
  text: string;
308
308
  type: "tip" | "warning" | "prompt";
309
309
  } & {
@@ -335,9 +335,9 @@ declare const sectionSchemaDefinition: {
335
335
  questionVersion: string;
336
336
  }, {
337
337
  id: string;
338
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
338
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
339
339
  _id: false;
340
- }>> & Omit<{
340
+ }> & Omit<{
341
341
  index: number;
342
342
  questionId: string;
343
343
  questionVersion: string;
@@ -444,9 +444,9 @@ declare const choiceSchema: Schema<any, mongoose.Model<any, any, any, any, any,
444
444
  tip?: string | null | undefined;
445
445
  }, {
446
446
  id: string;
447
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
447
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
448
448
  _id: false;
449
- }>> & Omit<{
449
+ }> & Omit<{
450
450
  text: string;
451
451
  val: any;
452
452
  trigger: string[];
@@ -482,9 +482,9 @@ declare const visibilityRuleSchema: Schema<any, mongoose.Model<any, any, any, an
482
482
  condition: "equals" | "not_equals" | "any_of" | "in_range";
483
483
  }, {
484
484
  id: string;
485
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
485
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
486
486
  _id: false;
487
- }>> & Omit<{
487
+ }> & Omit<{
488
488
  values: any[];
489
489
  source: "session" | "form";
490
490
  dependsOn: string;
@@ -518,9 +518,9 @@ declare const layoutSchema: Schema<any, mongoose.Model<any, any, any, any, any,
518
518
  groupKey?: string | null | undefined;
519
519
  }, {
520
520
  id: string;
521
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
521
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
522
522
  _id: false;
523
- }>> & Omit<{
523
+ }> & Omit<{
524
524
  collapsible: boolean;
525
525
  columns: number;
526
526
  groupKey?: string | null | undefined;
@@ -637,9 +637,9 @@ declare const questionSchemaDefinition: {
637
637
  tip?: string | null | undefined;
638
638
  }, {
639
639
  id: string;
640
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
640
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
641
641
  _id: false;
642
- }>> & Omit<{
642
+ }> & Omit<{
643
643
  text: string;
644
644
  val: any;
645
645
  trigger: string[];
@@ -709,9 +709,9 @@ declare const questionSchemaDefinition: {
709
709
  condition: "equals" | "not_equals" | "any_of" | "in_range";
710
710
  }, {
711
711
  id: string;
712
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
712
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
713
713
  _id: false;
714
- }>> & Omit<{
714
+ }> & Omit<{
715
715
  values: any[];
716
716
  source: "session" | "form";
717
717
  dependsOn: string;
@@ -746,9 +746,9 @@ declare const questionSchemaDefinition: {
746
746
  groupKey?: string | null | undefined;
747
747
  }, {
748
748
  id: string;
749
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
749
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
750
750
  _id: false;
751
- }>> & Omit<{
751
+ }> & Omit<{
752
752
  collapsible: boolean;
753
753
  columns: number;
754
754
  groupKey?: string | null | undefined;
@@ -868,9 +868,9 @@ declare const scoringConditionSchema: Schema<any, mongoose.Model<any, any, any,
868
868
  weight: number;
869
869
  }, {
870
870
  id: string;
871
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
871
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
872
872
  _id: false;
873
- }>> & Omit<{
873
+ }> & Omit<{
874
874
  value: any;
875
875
  questionKey: string;
876
876
  operator: "ne" | "lt" | "eq" | "in" | "not_in" | "gt" | "gte" | "lte";
@@ -906,9 +906,9 @@ declare const scoringThresholdSchema: Schema<any, mongoose.Model<any, any, any,
906
906
  riskLevel: string;
907
907
  }, {
908
908
  id: string;
909
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
909
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
910
910
  _id: false;
911
- }>> & Omit<{
911
+ }> & Omit<{
912
912
  label: string;
913
913
  minScore: number;
914
914
  maxScore: number;
@@ -942,9 +942,9 @@ declare const scoringRecommendationSchema: Schema<any, mongoose.Model<any, any,
942
942
  action: string;
943
943
  }, {
944
944
  id: string;
945
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
945
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
946
946
  _id: false;
947
- }>> & Omit<{
947
+ }> & Omit<{
948
948
  description: string;
949
949
  riskLevel: string;
950
950
  action: string;
@@ -1031,9 +1031,9 @@ declare const scoringRuleSchemaDefinition: {
1031
1031
  weight: number;
1032
1032
  }, {
1033
1033
  id: string;
1034
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
1034
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
1035
1035
  _id: false;
1036
- }>> & Omit<{
1036
+ }> & Omit<{
1037
1037
  value: any;
1038
1038
  questionKey: string;
1039
1039
  operator: "ne" | "lt" | "eq" | "in" | "not_in" | "gt" | "gte" | "lte";
@@ -1071,9 +1071,9 @@ declare const scoringRuleSchemaDefinition: {
1071
1071
  riskLevel: string;
1072
1072
  }, {
1073
1073
  id: string;
1074
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
1074
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
1075
1075
  _id: false;
1076
- }>> & Omit<{
1076
+ }> & Omit<{
1077
1077
  label: string;
1078
1078
  minScore: number;
1079
1079
  maxScore: number;
@@ -1109,9 +1109,9 @@ declare const scoringRuleSchemaDefinition: {
1109
1109
  action: string;
1110
1110
  }, {
1111
1111
  id: string;
1112
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
1112
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
1113
1113
  _id: false;
1114
- }>> & Omit<{
1114
+ }> & Omit<{
1115
1115
  description: string;
1116
1116
  riskLevel: string;
1117
1117
  action: string;
@@ -21,9 +21,9 @@ declare const formSectionRefSchema: Schema<any, mongoose.Model<any, any, any, an
21
21
  presetsType?: string | null | undefined;
22
22
  }, {
23
23
  id: string;
24
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
24
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
25
25
  _id: false;
26
- }>> & Omit<{
26
+ }> & Omit<{
27
27
  index: number;
28
28
  sectionId: string;
29
29
  sectionVersion: string;
@@ -111,9 +111,9 @@ declare const formSchemaDefinition: {
111
111
  presetsType?: string | null | undefined;
112
112
  }, {
113
113
  id: string;
114
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
114
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
115
115
  _id: false;
116
- }>> & Omit<{
116
+ }> & Omit<{
117
117
  index: number;
118
118
  sectionId: string;
119
119
  sectionVersion: string;
@@ -208,9 +208,9 @@ declare const sectionQuestionRefSchema: Schema<any, mongoose.Model<any, any, any
208
208
  questionVersion: string;
209
209
  }, {
210
210
  id: string;
211
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
211
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
212
212
  _id: false;
213
- }>> & Omit<{
213
+ }> & Omit<{
214
214
  index: number;
215
215
  questionId: string;
216
216
  questionVersion: string;
@@ -240,9 +240,9 @@ declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any
240
240
  type: "tip" | "warning" | "prompt";
241
241
  }, {
242
242
  id: string;
243
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
243
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
244
244
  _id: false;
245
- }>> & Omit<{
245
+ }> & Omit<{
246
246
  text: string;
247
247
  type: "tip" | "warning" | "prompt";
248
248
  } & {
@@ -301,9 +301,9 @@ declare const sectionSchemaDefinition: {
301
301
  type: "tip" | "warning" | "prompt";
302
302
  }, {
303
303
  id: string;
304
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
304
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
305
305
  _id: false;
306
- }>> & Omit<{
306
+ }> & Omit<{
307
307
  text: string;
308
308
  type: "tip" | "warning" | "prompt";
309
309
  } & {
@@ -335,9 +335,9 @@ declare const sectionSchemaDefinition: {
335
335
  questionVersion: string;
336
336
  }, {
337
337
  id: string;
338
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
338
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
339
339
  _id: false;
340
- }>> & Omit<{
340
+ }> & Omit<{
341
341
  index: number;
342
342
  questionId: string;
343
343
  questionVersion: string;
@@ -444,9 +444,9 @@ declare const choiceSchema: Schema<any, mongoose.Model<any, any, any, any, any,
444
444
  tip?: string | null | undefined;
445
445
  }, {
446
446
  id: string;
447
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
447
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
448
448
  _id: false;
449
- }>> & Omit<{
449
+ }> & Omit<{
450
450
  text: string;
451
451
  val: any;
452
452
  trigger: string[];
@@ -482,9 +482,9 @@ declare const visibilityRuleSchema: Schema<any, mongoose.Model<any, any, any, an
482
482
  condition: "equals" | "not_equals" | "any_of" | "in_range";
483
483
  }, {
484
484
  id: string;
485
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
485
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
486
486
  _id: false;
487
- }>> & Omit<{
487
+ }> & Omit<{
488
488
  values: any[];
489
489
  source: "session" | "form";
490
490
  dependsOn: string;
@@ -518,9 +518,9 @@ declare const layoutSchema: Schema<any, mongoose.Model<any, any, any, any, any,
518
518
  groupKey?: string | null | undefined;
519
519
  }, {
520
520
  id: string;
521
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
521
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
522
522
  _id: false;
523
- }>> & Omit<{
523
+ }> & Omit<{
524
524
  collapsible: boolean;
525
525
  columns: number;
526
526
  groupKey?: string | null | undefined;
@@ -637,9 +637,9 @@ declare const questionSchemaDefinition: {
637
637
  tip?: string | null | undefined;
638
638
  }, {
639
639
  id: string;
640
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
640
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
641
641
  _id: false;
642
- }>> & Omit<{
642
+ }> & Omit<{
643
643
  text: string;
644
644
  val: any;
645
645
  trigger: string[];
@@ -709,9 +709,9 @@ declare const questionSchemaDefinition: {
709
709
  condition: "equals" | "not_equals" | "any_of" | "in_range";
710
710
  }, {
711
711
  id: string;
712
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
712
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
713
713
  _id: false;
714
- }>> & Omit<{
714
+ }> & Omit<{
715
715
  values: any[];
716
716
  source: "session" | "form";
717
717
  dependsOn: string;
@@ -746,9 +746,9 @@ declare const questionSchemaDefinition: {
746
746
  groupKey?: string | null | undefined;
747
747
  }, {
748
748
  id: string;
749
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
749
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
750
750
  _id: false;
751
- }>> & Omit<{
751
+ }> & Omit<{
752
752
  collapsible: boolean;
753
753
  columns: number;
754
754
  groupKey?: string | null | undefined;
@@ -868,9 +868,9 @@ declare const scoringConditionSchema: Schema<any, mongoose.Model<any, any, any,
868
868
  weight: number;
869
869
  }, {
870
870
  id: string;
871
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
871
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
872
872
  _id: false;
873
- }>> & Omit<{
873
+ }> & Omit<{
874
874
  value: any;
875
875
  questionKey: string;
876
876
  operator: "ne" | "lt" | "eq" | "in" | "not_in" | "gt" | "gte" | "lte";
@@ -906,9 +906,9 @@ declare const scoringThresholdSchema: Schema<any, mongoose.Model<any, any, any,
906
906
  riskLevel: string;
907
907
  }, {
908
908
  id: string;
909
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
909
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
910
910
  _id: false;
911
- }>> & Omit<{
911
+ }> & Omit<{
912
912
  label: string;
913
913
  minScore: number;
914
914
  maxScore: number;
@@ -942,9 +942,9 @@ declare const scoringRecommendationSchema: Schema<any, mongoose.Model<any, any,
942
942
  action: string;
943
943
  }, {
944
944
  id: string;
945
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
945
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
946
946
  _id: false;
947
- }>> & Omit<{
947
+ }> & Omit<{
948
948
  description: string;
949
949
  riskLevel: string;
950
950
  action: string;
@@ -1031,9 +1031,9 @@ declare const scoringRuleSchemaDefinition: {
1031
1031
  weight: number;
1032
1032
  }, {
1033
1033
  id: string;
1034
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
1034
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
1035
1035
  _id: false;
1036
- }>> & Omit<{
1036
+ }> & Omit<{
1037
1037
  value: any;
1038
1038
  questionKey: string;
1039
1039
  operator: "ne" | "lt" | "eq" | "in" | "not_in" | "gt" | "gte" | "lte";
@@ -1071,9 +1071,9 @@ declare const scoringRuleSchemaDefinition: {
1071
1071
  riskLevel: string;
1072
1072
  }, {
1073
1073
  id: string;
1074
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
1074
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
1075
1075
  _id: false;
1076
- }>> & Omit<{
1076
+ }> & Omit<{
1077
1077
  label: string;
1078
1078
  minScore: number;
1079
1079
  maxScore: number;
@@ -1109,9 +1109,9 @@ declare const scoringRuleSchemaDefinition: {
1109
1109
  action: string;
1110
1110
  }, {
1111
1111
  id: string;
1112
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
1112
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
1113
1113
  _id: false;
1114
- }>> & Omit<{
1114
+ }> & Omit<{
1115
1115
  description: string;
1116
1116
  riskLevel: string;
1117
1117
  action: string;