@htilabs/platform-common-models 0.12.0 → 0.12.2
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/dist/config/index.cjs +0 -81
- package/dist/config/index.cjs.map +1 -1
- package/dist/config/index.d.cts +4 -79
- package/dist/config/index.d.ts +4 -79
- package/dist/config/index.js +1 -79
- package/dist/config/index.js.map +1 -1
- package/dist/constants/index.cjs +18 -2
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +18 -2
- package/dist/constants/index.js.map +1 -1
- package/dist/cvc-Cp4uWnAa.d.cts +298 -0
- package/dist/cvc-Cp4uWnAa.d.ts +298 -0
- package/dist/{cvcEntry-BCj1OWqL.d.cts → cvcEntry-ctHTp2df.d.cts} +44 -44
- package/dist/{cvcEntry-BCj1OWqL.d.ts → cvcEntry-ctHTp2df.d.ts} +44 -44
- package/dist/cvcs/index.cjs +8065 -1384
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +15287 -8079
- package/dist/cvcs/index.d.ts +15287 -8079
- package/dist/cvcs/index.js +8052 -1384
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +4573 -0
- package/dist/enums/index.cjs.map +1 -0
- package/dist/enums/index.d.cts +5277 -0
- package/dist/enums/index.d.ts +5277 -0
- package/dist/enums/index.js +4369 -0
- package/dist/enums/index.js.map +1 -0
- package/dist/{index-I-DiX9eQ.d.ts → index-4DiJrn7y.d.ts} +1 -1
- package/dist/{index-CoVr1jIV.d.cts → index-qreOzXYS.d.cts} +1 -1
- package/dist/index.cjs +8616 -1389
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4700
- package/dist/index.d.ts +7 -4700
- package/dist/index.js +8590 -1389
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/mongo/index.cjs +0 -1
- package/dist/mongo/index.cjs.map +1 -1
- package/dist/mongo/index.js +1 -2
- package/dist/mongo/index.js.map +1 -1
- package/dist/{platform-auth-v53r3BhN.d.cts → platform-auth-Dv5fu0Fh.d.cts} +5 -4
- package/dist/{platform-auth-v53r3BhN.d.ts → platform-auth-Dv5fu0Fh.d.ts} +5 -4
- package/dist/schemas/index.cjs +5 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +35 -35
- package/dist/schemas/index.d.ts +35 -35
- package/dist/schemas/index.js +5 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.cjs +58 -0
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +82 -283
- package/dist/validation/index.d.ts +82 -283
- package/dist/validation/index.js +57 -0
- package/dist/validation/index.js.map +1 -1
- package/package.json +32 -22
- package/src/__sot__/README.md +36 -1
- package/src/__sot__/coreIndicatorFields.ts +331 -0
- package/src/__sot__/coreIndicators.pin.json +1936 -2
- package/src/__sot__/cvcIndex.pin.json +8 -4
- package/src/__tests__/__snapshots__/cvc-sot.snap +45 -13
- package/src/__tests__/core-information-scope-invariant.test.ts +134 -0
- package/src/__tests__/cvc-136-scoring-invariant.test.ts +8 -3
- package/src/__tests__/cvc-181-182-country-parity.test.ts +163 -0
- package/src/__tests__/cvc-drift-gate.test.ts +463 -12
- package/src/__tests__/cvc-sot-snapshot.test.ts +81 -11
- package/src/__tests__/cvc-status-parser.test.ts +150 -0
- package/src/__tests__/cvc-structural.test.ts +16 -0
- package/src/__tests__/runtime-contract-validator.test.ts +1 -325
- package/src/__tests__/share-response-reason-invariant.test.ts +167 -0
- package/src/config/index.ts +4 -189
- package/src/constants/ic.ts +120 -3
- package/src/cvcs/assertionDomain.v1.1.0.json +19 -1
- package/src/cvcs/assertionStatus.v1.0.0.json +80 -0
- package/src/cvcs/carCorrectionReason.v1.0.0.json +89 -0
- package/src/cvcs/caseShareState.v1.0.0.json +62 -0
- package/src/cvcs/coreIndicators.v1.0.0.json +83 -5
- package/src/cvcs/coreInformationScope.v1.0.0.json +1165 -0
- package/src/cvcs/countries.v1.0.0.json +3077 -0
- package/src/cvcs/createdBySystem.v1.0.0.json +89 -0
- package/src/cvcs/criminalOrgCategory.v1.0.0.json +116 -0
- package/src/cvcs/determinationHelperCategories.v1.0.0.json +1166 -0
- package/src/cvcs/incidentParticipationRoles.v1.0.0.json +11 -1
- package/src/cvcs/index.ts +36 -0
- package/src/cvcs/minorAdultStatus.v1.0.0.json +80 -0
- package/src/cvcs/personRelationships.v1.0.0.json +67 -2
- package/src/cvcs/referralOrigin.v1.0.0.json +26 -0
- package/src/cvcs/relationshipConcern.v1.0.0.json +28 -19
- package/src/cvcs/riskIdentificationMilestone.v1.0.0.json +109 -0
- package/src/cvcs/sessionTemplate.v1.0.0.json +22 -0
- package/src/cvcs/sharePurpose.v1.0.0.json +80 -12
- package/src/cvcs/shareResponseReason.v1.0.0.json +220 -0
- package/src/cvcs/subjectType.v1.0.0.json +80 -0
- package/src/generated/cvc-enums.ts +628 -20
- package/src/validation/cvcStatus.ts +209 -0
- package/src/validation/index.ts +1 -0
package/dist/schemas/index.d.cts
CHANGED
|
@@ -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-
|
|
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';
|
|
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
|
-
},
|
|
31
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
32
32
|
_id: false;
|
|
33
|
-
}
|
|
33
|
+
}>> & Omit<{
|
|
34
34
|
formattedAddress?: string | null | undefined;
|
|
35
35
|
street?: string | null | undefined;
|
|
36
36
|
city?: string | null | undefined;
|
|
@@ -90,9 +90,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
90
90
|
isMononym?: boolean | null | undefined;
|
|
91
91
|
}, {
|
|
92
92
|
id: string;
|
|
93
|
-
},
|
|
93
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
94
94
|
_id: false;
|
|
95
|
-
}
|
|
95
|
+
}>> & Omit<{
|
|
96
96
|
alias?: boolean | null | undefined;
|
|
97
97
|
firstName?: string | null | undefined;
|
|
98
98
|
lastName?: string | null | undefined;
|
|
@@ -132,21 +132,21 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
132
132
|
number?: string | null | undefined;
|
|
133
133
|
type?: string | null | undefined;
|
|
134
134
|
safeToContact?: boolean | null | undefined;
|
|
135
|
-
dataQuality?: "
|
|
135
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
136
136
|
}, mongoose.Document<unknown, {}, {
|
|
137
137
|
number?: string | null | undefined;
|
|
138
138
|
type?: string | null | undefined;
|
|
139
139
|
safeToContact?: boolean | null | undefined;
|
|
140
|
-
dataQuality?: "
|
|
140
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
id: string;
|
|
143
|
-
},
|
|
143
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
144
144
|
_id: false;
|
|
145
|
-
}
|
|
145
|
+
}>> & Omit<{
|
|
146
146
|
number?: string | null | undefined;
|
|
147
147
|
type?: string | null | undefined;
|
|
148
148
|
safeToContact?: boolean | null | undefined;
|
|
149
|
-
dataQuality?: "
|
|
149
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
150
150
|
} & {
|
|
151
151
|
_id: mongoose.Types.ObjectId;
|
|
152
152
|
} & {
|
|
@@ -157,7 +157,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
157
157
|
number?: string | null | undefined;
|
|
158
158
|
type?: string | null | undefined;
|
|
159
159
|
safeToContact?: boolean | null | undefined;
|
|
160
|
-
dataQuality?: "
|
|
160
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
161
161
|
} & {
|
|
162
162
|
_id: mongoose.Types.ObjectId;
|
|
163
163
|
} & {
|
|
@@ -176,9 +176,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
176
176
|
address?: string | null | undefined;
|
|
177
177
|
}, {
|
|
178
178
|
id: string;
|
|
179
|
-
},
|
|
179
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
180
180
|
_id: false;
|
|
181
|
-
}
|
|
181
|
+
}>> & Omit<{
|
|
182
182
|
type?: string | null | undefined;
|
|
183
183
|
safeToContact?: boolean | null | undefined;
|
|
184
184
|
address?: string | null | undefined;
|
|
@@ -219,11 +219,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
219
219
|
raceOtherText?: string | null | undefined;
|
|
220
220
|
genderOtherText?: string | null | undefined;
|
|
221
221
|
accommodationOtherText?: string | null | undefined;
|
|
222
|
-
ageDataQuality?: "
|
|
223
|
-
sexDataQuality?: "
|
|
224
|
-
genderDataQuality?: "
|
|
225
|
-
raceDataQuality?: "
|
|
226
|
-
ethnicityDataQuality?: "
|
|
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;
|
|
227
227
|
}, mongoose.Document<unknown, {}, {
|
|
228
228
|
race: number[];
|
|
229
229
|
ethnicity: number[];
|
|
@@ -243,16 +243,16 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
243
243
|
raceOtherText?: string | null | undefined;
|
|
244
244
|
genderOtherText?: string | null | undefined;
|
|
245
245
|
accommodationOtherText?: string | null | undefined;
|
|
246
|
-
ageDataQuality?: "
|
|
247
|
-
sexDataQuality?: "
|
|
248
|
-
genderDataQuality?: "
|
|
249
|
-
raceDataQuality?: "
|
|
250
|
-
ethnicityDataQuality?: "
|
|
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;
|
|
251
251
|
}, {
|
|
252
252
|
id: string;
|
|
253
|
-
},
|
|
253
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
254
254
|
_id: false;
|
|
255
|
-
}
|
|
255
|
+
}>> & Omit<{
|
|
256
256
|
race: number[];
|
|
257
257
|
ethnicity: number[];
|
|
258
258
|
accommodations: string[];
|
|
@@ -271,11 +271,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
271
271
|
raceOtherText?: string | null | undefined;
|
|
272
272
|
genderOtherText?: string | null | undefined;
|
|
273
273
|
accommodationOtherText?: string | null | undefined;
|
|
274
|
-
ageDataQuality?: "
|
|
275
|
-
sexDataQuality?: "
|
|
276
|
-
genderDataQuality?: "
|
|
277
|
-
raceDataQuality?: "
|
|
278
|
-
ethnicityDataQuality?: "
|
|
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;
|
|
279
279
|
} & {
|
|
280
280
|
_id: mongoose.Types.ObjectId;
|
|
281
281
|
} & {
|
|
@@ -301,11 +301,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
301
301
|
raceOtherText?: string | null | undefined;
|
|
302
302
|
genderOtherText?: string | null | undefined;
|
|
303
303
|
accommodationOtherText?: string | null | undefined;
|
|
304
|
-
ageDataQuality?: "
|
|
305
|
-
sexDataQuality?: "
|
|
306
|
-
genderDataQuality?: "
|
|
307
|
-
raceDataQuality?: "
|
|
308
|
-
ethnicityDataQuality?: "
|
|
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;
|
|
309
309
|
} & {
|
|
310
310
|
_id: mongoose.Types.ObjectId;
|
|
311
311
|
} & {
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -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-
|
|
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';
|
|
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
|
-
},
|
|
31
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
32
32
|
_id: false;
|
|
33
|
-
}
|
|
33
|
+
}>> & Omit<{
|
|
34
34
|
formattedAddress?: string | null | undefined;
|
|
35
35
|
street?: string | null | undefined;
|
|
36
36
|
city?: string | null | undefined;
|
|
@@ -90,9 +90,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
90
90
|
isMononym?: boolean | null | undefined;
|
|
91
91
|
}, {
|
|
92
92
|
id: string;
|
|
93
|
-
},
|
|
93
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
94
94
|
_id: false;
|
|
95
|
-
}
|
|
95
|
+
}>> & Omit<{
|
|
96
96
|
alias?: boolean | null | undefined;
|
|
97
97
|
firstName?: string | null | undefined;
|
|
98
98
|
lastName?: string | null | undefined;
|
|
@@ -132,21 +132,21 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
132
132
|
number?: string | null | undefined;
|
|
133
133
|
type?: string | null | undefined;
|
|
134
134
|
safeToContact?: boolean | null | undefined;
|
|
135
|
-
dataQuality?: "
|
|
135
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
136
136
|
}, mongoose.Document<unknown, {}, {
|
|
137
137
|
number?: string | null | undefined;
|
|
138
138
|
type?: string | null | undefined;
|
|
139
139
|
safeToContact?: boolean | null | undefined;
|
|
140
|
-
dataQuality?: "
|
|
140
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
id: string;
|
|
143
|
-
},
|
|
143
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
144
144
|
_id: false;
|
|
145
|
-
}
|
|
145
|
+
}>> & Omit<{
|
|
146
146
|
number?: string | null | undefined;
|
|
147
147
|
type?: string | null | undefined;
|
|
148
148
|
safeToContact?: boolean | null | undefined;
|
|
149
|
-
dataQuality?: "
|
|
149
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
150
150
|
} & {
|
|
151
151
|
_id: mongoose.Types.ObjectId;
|
|
152
152
|
} & {
|
|
@@ -157,7 +157,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
157
157
|
number?: string | null | undefined;
|
|
158
158
|
type?: string | null | undefined;
|
|
159
159
|
safeToContact?: boolean | null | undefined;
|
|
160
|
-
dataQuality?: "
|
|
160
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
161
161
|
} & {
|
|
162
162
|
_id: mongoose.Types.ObjectId;
|
|
163
163
|
} & {
|
|
@@ -176,9 +176,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
176
176
|
address?: string | null | undefined;
|
|
177
177
|
}, {
|
|
178
178
|
id: string;
|
|
179
|
-
},
|
|
179
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
180
180
|
_id: false;
|
|
181
|
-
}
|
|
181
|
+
}>> & Omit<{
|
|
182
182
|
type?: string | null | undefined;
|
|
183
183
|
safeToContact?: boolean | null | undefined;
|
|
184
184
|
address?: string | null | undefined;
|
|
@@ -219,11 +219,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
219
219
|
raceOtherText?: string | null | undefined;
|
|
220
220
|
genderOtherText?: string | null | undefined;
|
|
221
221
|
accommodationOtherText?: string | null | undefined;
|
|
222
|
-
ageDataQuality?: "
|
|
223
|
-
sexDataQuality?: "
|
|
224
|
-
genderDataQuality?: "
|
|
225
|
-
raceDataQuality?: "
|
|
226
|
-
ethnicityDataQuality?: "
|
|
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;
|
|
227
227
|
}, mongoose.Document<unknown, {}, {
|
|
228
228
|
race: number[];
|
|
229
229
|
ethnicity: number[];
|
|
@@ -243,16 +243,16 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
243
243
|
raceOtherText?: string | null | undefined;
|
|
244
244
|
genderOtherText?: string | null | undefined;
|
|
245
245
|
accommodationOtherText?: string | null | undefined;
|
|
246
|
-
ageDataQuality?: "
|
|
247
|
-
sexDataQuality?: "
|
|
248
|
-
genderDataQuality?: "
|
|
249
|
-
raceDataQuality?: "
|
|
250
|
-
ethnicityDataQuality?: "
|
|
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;
|
|
251
251
|
}, {
|
|
252
252
|
id: string;
|
|
253
|
-
},
|
|
253
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
254
254
|
_id: false;
|
|
255
|
-
}
|
|
255
|
+
}>> & Omit<{
|
|
256
256
|
race: number[];
|
|
257
257
|
ethnicity: number[];
|
|
258
258
|
accommodations: string[];
|
|
@@ -271,11 +271,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
271
271
|
raceOtherText?: string | null | undefined;
|
|
272
272
|
genderOtherText?: string | null | undefined;
|
|
273
273
|
accommodationOtherText?: string | null | undefined;
|
|
274
|
-
ageDataQuality?: "
|
|
275
|
-
sexDataQuality?: "
|
|
276
|
-
genderDataQuality?: "
|
|
277
|
-
raceDataQuality?: "
|
|
278
|
-
ethnicityDataQuality?: "
|
|
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;
|
|
279
279
|
} & {
|
|
280
280
|
_id: mongoose.Types.ObjectId;
|
|
281
281
|
} & {
|
|
@@ -301,11 +301,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
301
301
|
raceOtherText?: string | null | undefined;
|
|
302
302
|
genderOtherText?: string | null | undefined;
|
|
303
303
|
accommodationOtherText?: string | null | undefined;
|
|
304
|
-
ageDataQuality?: "
|
|
305
|
-
sexDataQuality?: "
|
|
306
|
-
genderDataQuality?: "
|
|
307
|
-
raceDataQuality?: "
|
|
308
|
-
ethnicityDataQuality?: "
|
|
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;
|
|
309
309
|
} & {
|
|
310
310
|
_id: mongoose.Types.ObjectId;
|
|
311
311
|
} & {
|
package/dist/schemas/index.js
CHANGED
|
@@ -902,6 +902,7 @@ var INCIDENT_PARTICIPATION_ROLE = {
|
|
|
902
902
|
DATA_ENTRY: "data_entry",
|
|
903
903
|
OTHER_INCIDENT_RESPONDER: "other_incident_responder",
|
|
904
904
|
RESPONDING_OFFICER: "responding_officer",
|
|
905
|
+
LEGAL_PROFESSIONAL: "legal_professional",
|
|
905
906
|
UNKNOWN: "unknown",
|
|
906
907
|
ANONYMOUS: "anonymous",
|
|
907
908
|
DATA_NOT_COLLECTED: "data_not_collected"
|
|
@@ -918,6 +919,7 @@ var INCIDENT_PARTICIPATION_ROLE_VALUES = [
|
|
|
918
919
|
INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY,
|
|
919
920
|
INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER,
|
|
920
921
|
INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER,
|
|
922
|
+
INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL,
|
|
921
923
|
INCIDENT_PARTICIPATION_ROLE.UNKNOWN,
|
|
922
924
|
INCIDENT_PARTICIPATION_ROLE.ANONYMOUS,
|
|
923
925
|
INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED
|
|
@@ -934,6 +936,7 @@ var INCIDENT_PARTICIPATION_ROLE_LABELS = {
|
|
|
934
936
|
[INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY]: "Data Entry / Editor",
|
|
935
937
|
[INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]: "VSP or Other Incident Responder",
|
|
936
938
|
[INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: "LE Responding Officer",
|
|
939
|
+
[INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL]: "Legal Professional",
|
|
937
940
|
[INCIDENT_PARTICIPATION_ROLE.UNKNOWN]: "Unknown",
|
|
938
941
|
[INCIDENT_PARTICIPATION_ROLE.ANONYMOUS]: "Anonymous",
|
|
939
942
|
[INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED]: "Not Collected"
|
|
@@ -951,7 +954,8 @@ var PARTICIPATION_ROLE_CATEGORIES = {
|
|
|
951
954
|
],
|
|
952
955
|
SYSTEM_PROFESSIONAL: [
|
|
953
956
|
INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF,
|
|
954
|
-
INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF
|
|
957
|
+
INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF,
|
|
958
|
+
INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL
|
|
955
959
|
]
|
|
956
960
|
};
|
|
957
961
|
var CALLER_IS_VICTIM_ROLES = [
|