@htilabs/platform-common-models 0.8.8 → 0.9.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.
- package/README.md +44 -0
- package/dist/config/index.cjs +191 -0
- package/dist/config/index.cjs.map +1 -0
- package/dist/config/index.d.cts +101 -0
- package/dist/config/index.d.ts +101 -0
- package/dist/config/index.js +165 -0
- package/dist/config/index.js.map +1 -0
- package/dist/constants/index.cjs +5 -432
- 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 +5 -429
- package/dist/constants/index.js.map +1 -1
- package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-0BIB9sen.d.cts} +44 -44
- package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-0BIB9sen.d.ts} +44 -44
- package/dist/cvcs/index.cjs +5863 -7181
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +3127 -4581
- package/dist/cvcs/index.d.ts +3127 -4581
- package/dist/cvcs/index.js +5863 -7173
- package/dist/cvcs/index.js.map +1 -1
- package/dist/{index-C0J3f169.d.ts → index-CDoqrfc1.d.ts} +1 -1
- package/dist/{index-EPjPjR0z.d.cts → index-Zu_mOJRn.d.cts} +1 -1
- package/dist/index.cjs +1780 -3613
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +191 -544
- package/dist/index.d.ts +191 -544
- package/dist/index.js +5967 -7775
- 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/{platform-auth-BSKYSDKe.d.cts → platform-auth-XVB9aHqR.d.cts} +3 -19
- package/dist/{platform-auth-BSKYSDKe.d.ts → platform-auth-XVB9aHqR.d.ts} +3 -19
- package/dist/schemas/index.cjs +9 -26
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +39 -35
- package/dist/schemas/index.d.ts +39 -35
- package/dist/schemas/index.js +9 -26
- 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/package.json +25 -19
- package/src/__tests__/__snapshots__/cvc-sot.snap +13 -77
- package/src/__tests__/cvc-sot-snapshot.test.ts +11 -62
- package/src/__tests__/cvc-structural.test.ts +2 -11
- package/src/__tests__/runtime-contract-validator.test.ts +556 -0
- package/src/config/fixtures/valid.yaml +90 -0
- package/src/config/index.ts +352 -0
- package/src/constants/ic.ts +3 -445
- package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +0 -9
- package/src/cvcs/hmisSex.v1.0.0.json +89 -0
- package/src/cvcs/identificationStatus.v1.0.0.json +0 -18
- package/src/cvcs/incomeBenefitsSources.v1.0.0.json +2 -31
- package/src/cvcs/index.ts +1 -17
- package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +96 -0
- package/src/cvcs/recencyBand.v1.0.0.json +57 -38
- package/src/cvcs/{serviceCategories.v1.1.0.json → serviceCategories.v1.0.0.json} +1091 -1091
- package/src/cvcs/serviceStates.v1.0.0.json +1 -23
- package/src/cvcs/sourceSubtype.v1.1.0.json +0 -36
- package/src/cvcs/verificationMethod.v1.0.0.json +0 -18
- package/src/generated/cvc-enums.ts +149 -572
- package/src/index.ts +20 -0
- package/src/schemas/common.ts +4 -0
- package/src/cvcs/activityType.v1.0.0.json +0 -143
- package/src/cvcs/assertionDomain.v1.0.0.json +0 -629
- package/src/cvcs/contactLinkType.v1.0.0.json +0 -89
- package/src/cvcs/hmisRelationshipToHoh.v1.0.0.json +0 -104
- package/src/cvcs/housingSubsidyTypes.v1.0.0.json +0 -159
- package/src/cvcs/htType.v1.0.0.json +0 -87
- package/src/cvcs/livingSituation.v1.0.0.json +0 -213
- package/src/cvcs/provenanceSourceId.v1.0.0.json +0 -134
- package/src/cvcs/radiusBucket.v1.0.0.json +0 -98
- package/src/cvcs/relationshipConcern.v1.0.0.json +0 -114
- package/src/cvcs/roiMethod.v1.0.0.json +0 -107
- package/src/cvcs/serviceAudience.v1.0.0.json +0 -96
- package/src/cvcs/sessionNoteVisibility.v1.0.0.json +0 -80
- package/src/cvcs/suggestionSource.v1.0.0.json +0 -71
- package/src/cvcs/victimAbuseTypes.v1.0.0.json +0 -276
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-0BIB9sen.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
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
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;
|
|
@@ -76,6 +76,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
76
76
|
isPrimary?: boolean | null | undefined;
|
|
77
77
|
isUnknown?: boolean | null | undefined;
|
|
78
78
|
isAnonymous?: boolean | null | undefined;
|
|
79
|
+
isMononym?: boolean | null | undefined;
|
|
79
80
|
}, mongoose.Document<unknown, {}, {
|
|
80
81
|
alias?: boolean | null | undefined;
|
|
81
82
|
firstName?: string | null | undefined;
|
|
@@ -86,11 +87,12 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
86
87
|
isPrimary?: boolean | null | undefined;
|
|
87
88
|
isUnknown?: boolean | null | undefined;
|
|
88
89
|
isAnonymous?: boolean | null | undefined;
|
|
90
|
+
isMononym?: boolean | null | undefined;
|
|
89
91
|
}, {
|
|
90
92
|
id: string;
|
|
91
|
-
},
|
|
93
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
92
94
|
_id: false;
|
|
93
|
-
}
|
|
95
|
+
}> & Omit<{
|
|
94
96
|
alias?: boolean | null | undefined;
|
|
95
97
|
firstName?: string | null | undefined;
|
|
96
98
|
lastName?: string | null | undefined;
|
|
@@ -100,6 +102,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
100
102
|
isPrimary?: boolean | null | undefined;
|
|
101
103
|
isUnknown?: boolean | null | undefined;
|
|
102
104
|
isAnonymous?: boolean | null | undefined;
|
|
105
|
+
isMononym?: boolean | null | undefined;
|
|
103
106
|
} & {
|
|
104
107
|
_id: mongoose.Types.ObjectId;
|
|
105
108
|
} & {
|
|
@@ -116,6 +119,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
116
119
|
isPrimary?: boolean | null | undefined;
|
|
117
120
|
isUnknown?: boolean | null | undefined;
|
|
118
121
|
isAnonymous?: boolean | null | undefined;
|
|
122
|
+
isMononym?: boolean | null | undefined;
|
|
119
123
|
} & {
|
|
120
124
|
_id: mongoose.Types.ObjectId;
|
|
121
125
|
} & {
|
|
@@ -128,21 +132,21 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
128
132
|
number?: string | null | undefined;
|
|
129
133
|
type?: string | null | undefined;
|
|
130
134
|
safeToContact?: boolean | null | undefined;
|
|
131
|
-
dataQuality?: "
|
|
135
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
132
136
|
}, mongoose.Document<unknown, {}, {
|
|
133
137
|
number?: string | null | undefined;
|
|
134
138
|
type?: string | null | undefined;
|
|
135
139
|
safeToContact?: boolean | null | undefined;
|
|
136
|
-
dataQuality?: "
|
|
140
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
137
141
|
}, {
|
|
138
142
|
id: string;
|
|
139
|
-
},
|
|
143
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
140
144
|
_id: false;
|
|
141
|
-
}
|
|
145
|
+
}> & Omit<{
|
|
142
146
|
number?: string | null | undefined;
|
|
143
147
|
type?: string | null | undefined;
|
|
144
148
|
safeToContact?: boolean | null | undefined;
|
|
145
|
-
dataQuality?: "
|
|
149
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
146
150
|
} & {
|
|
147
151
|
_id: mongoose.Types.ObjectId;
|
|
148
152
|
} & {
|
|
@@ -153,7 +157,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
153
157
|
number?: string | null | undefined;
|
|
154
158
|
type?: string | null | undefined;
|
|
155
159
|
safeToContact?: boolean | null | undefined;
|
|
156
|
-
dataQuality?: "
|
|
160
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
157
161
|
} & {
|
|
158
162
|
_id: mongoose.Types.ObjectId;
|
|
159
163
|
} & {
|
|
@@ -172,9 +176,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
172
176
|
address?: string | null | undefined;
|
|
173
177
|
}, {
|
|
174
178
|
id: string;
|
|
175
|
-
},
|
|
179
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
176
180
|
_id: false;
|
|
177
|
-
}
|
|
181
|
+
}> & Omit<{
|
|
178
182
|
type?: string | null | undefined;
|
|
179
183
|
safeToContact?: boolean | null | undefined;
|
|
180
184
|
address?: string | null | undefined;
|
|
@@ -215,11 +219,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
215
219
|
raceOtherText?: string | null | undefined;
|
|
216
220
|
genderOtherText?: string | null | undefined;
|
|
217
221
|
accommodationOtherText?: string | null | undefined;
|
|
218
|
-
ageDataQuality?: "
|
|
219
|
-
sexDataQuality?: "
|
|
220
|
-
genderDataQuality?: "
|
|
221
|
-
raceDataQuality?: "
|
|
222
|
-
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;
|
|
223
227
|
}, mongoose.Document<unknown, {}, {
|
|
224
228
|
race: number[];
|
|
225
229
|
ethnicity: number[];
|
|
@@ -239,16 +243,16 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
239
243
|
raceOtherText?: string | null | undefined;
|
|
240
244
|
genderOtherText?: string | null | undefined;
|
|
241
245
|
accommodationOtherText?: string | null | undefined;
|
|
242
|
-
ageDataQuality?: "
|
|
243
|
-
sexDataQuality?: "
|
|
244
|
-
genderDataQuality?: "
|
|
245
|
-
raceDataQuality?: "
|
|
246
|
-
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;
|
|
247
251
|
}, {
|
|
248
252
|
id: string;
|
|
249
|
-
},
|
|
253
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
250
254
|
_id: false;
|
|
251
|
-
}
|
|
255
|
+
}> & Omit<{
|
|
252
256
|
race: number[];
|
|
253
257
|
ethnicity: number[];
|
|
254
258
|
accommodations: string[];
|
|
@@ -267,11 +271,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
267
271
|
raceOtherText?: string | null | undefined;
|
|
268
272
|
genderOtherText?: string | null | undefined;
|
|
269
273
|
accommodationOtherText?: string | null | undefined;
|
|
270
|
-
ageDataQuality?: "
|
|
271
|
-
sexDataQuality?: "
|
|
272
|
-
genderDataQuality?: "
|
|
273
|
-
raceDataQuality?: "
|
|
274
|
-
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;
|
|
275
279
|
} & {
|
|
276
280
|
_id: mongoose.Types.ObjectId;
|
|
277
281
|
} & {
|
|
@@ -297,11 +301,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
297
301
|
raceOtherText?: string | null | undefined;
|
|
298
302
|
genderOtherText?: string | null | undefined;
|
|
299
303
|
accommodationOtherText?: string | null | undefined;
|
|
300
|
-
ageDataQuality?: "
|
|
301
|
-
sexDataQuality?: "
|
|
302
|
-
genderDataQuality?: "
|
|
303
|
-
raceDataQuality?: "
|
|
304
|
-
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;
|
|
305
309
|
} & {
|
|
306
310
|
_id: mongoose.Types.ObjectId;
|
|
307
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-0BIB9sen.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
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
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;
|
|
@@ -76,6 +76,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
76
76
|
isPrimary?: boolean | null | undefined;
|
|
77
77
|
isUnknown?: boolean | null | undefined;
|
|
78
78
|
isAnonymous?: boolean | null | undefined;
|
|
79
|
+
isMononym?: boolean | null | undefined;
|
|
79
80
|
}, mongoose.Document<unknown, {}, {
|
|
80
81
|
alias?: boolean | null | undefined;
|
|
81
82
|
firstName?: string | null | undefined;
|
|
@@ -86,11 +87,12 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
86
87
|
isPrimary?: boolean | null | undefined;
|
|
87
88
|
isUnknown?: boolean | null | undefined;
|
|
88
89
|
isAnonymous?: boolean | null | undefined;
|
|
90
|
+
isMononym?: boolean | null | undefined;
|
|
89
91
|
}, {
|
|
90
92
|
id: string;
|
|
91
|
-
},
|
|
93
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
92
94
|
_id: false;
|
|
93
|
-
}
|
|
95
|
+
}> & Omit<{
|
|
94
96
|
alias?: boolean | null | undefined;
|
|
95
97
|
firstName?: string | null | undefined;
|
|
96
98
|
lastName?: string | null | undefined;
|
|
@@ -100,6 +102,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
100
102
|
isPrimary?: boolean | null | undefined;
|
|
101
103
|
isUnknown?: boolean | null | undefined;
|
|
102
104
|
isAnonymous?: boolean | null | undefined;
|
|
105
|
+
isMononym?: boolean | null | undefined;
|
|
103
106
|
} & {
|
|
104
107
|
_id: mongoose.Types.ObjectId;
|
|
105
108
|
} & {
|
|
@@ -116,6 +119,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
116
119
|
isPrimary?: boolean | null | undefined;
|
|
117
120
|
isUnknown?: boolean | null | undefined;
|
|
118
121
|
isAnonymous?: boolean | null | undefined;
|
|
122
|
+
isMononym?: boolean | null | undefined;
|
|
119
123
|
} & {
|
|
120
124
|
_id: mongoose.Types.ObjectId;
|
|
121
125
|
} & {
|
|
@@ -128,21 +132,21 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
128
132
|
number?: string | null | undefined;
|
|
129
133
|
type?: string | null | undefined;
|
|
130
134
|
safeToContact?: boolean | null | undefined;
|
|
131
|
-
dataQuality?: "
|
|
135
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
132
136
|
}, mongoose.Document<unknown, {}, {
|
|
133
137
|
number?: string | null | undefined;
|
|
134
138
|
type?: string | null | undefined;
|
|
135
139
|
safeToContact?: boolean | null | undefined;
|
|
136
|
-
dataQuality?: "
|
|
140
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
137
141
|
}, {
|
|
138
142
|
id: string;
|
|
139
|
-
},
|
|
143
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
140
144
|
_id: false;
|
|
141
|
-
}
|
|
145
|
+
}> & Omit<{
|
|
142
146
|
number?: string | null | undefined;
|
|
143
147
|
type?: string | null | undefined;
|
|
144
148
|
safeToContact?: boolean | null | undefined;
|
|
145
|
-
dataQuality?: "
|
|
149
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
146
150
|
} & {
|
|
147
151
|
_id: mongoose.Types.ObjectId;
|
|
148
152
|
} & {
|
|
@@ -153,7 +157,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
153
157
|
number?: string | null | undefined;
|
|
154
158
|
type?: string | null | undefined;
|
|
155
159
|
safeToContact?: boolean | null | undefined;
|
|
156
|
-
dataQuality?: "
|
|
160
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
157
161
|
} & {
|
|
158
162
|
_id: mongoose.Types.ObjectId;
|
|
159
163
|
} & {
|
|
@@ -172,9 +176,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
172
176
|
address?: string | null | undefined;
|
|
173
177
|
}, {
|
|
174
178
|
id: string;
|
|
175
|
-
},
|
|
179
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
176
180
|
_id: false;
|
|
177
|
-
}
|
|
181
|
+
}> & Omit<{
|
|
178
182
|
type?: string | null | undefined;
|
|
179
183
|
safeToContact?: boolean | null | undefined;
|
|
180
184
|
address?: string | null | undefined;
|
|
@@ -215,11 +219,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
215
219
|
raceOtherText?: string | null | undefined;
|
|
216
220
|
genderOtherText?: string | null | undefined;
|
|
217
221
|
accommodationOtherText?: string | null | undefined;
|
|
218
|
-
ageDataQuality?: "
|
|
219
|
-
sexDataQuality?: "
|
|
220
|
-
genderDataQuality?: "
|
|
221
|
-
raceDataQuality?: "
|
|
222
|
-
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;
|
|
223
227
|
}, mongoose.Document<unknown, {}, {
|
|
224
228
|
race: number[];
|
|
225
229
|
ethnicity: number[];
|
|
@@ -239,16 +243,16 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
239
243
|
raceOtherText?: string | null | undefined;
|
|
240
244
|
genderOtherText?: string | null | undefined;
|
|
241
245
|
accommodationOtherText?: string | null | undefined;
|
|
242
|
-
ageDataQuality?: "
|
|
243
|
-
sexDataQuality?: "
|
|
244
|
-
genderDataQuality?: "
|
|
245
|
-
raceDataQuality?: "
|
|
246
|
-
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;
|
|
247
251
|
}, {
|
|
248
252
|
id: string;
|
|
249
|
-
},
|
|
253
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
250
254
|
_id: false;
|
|
251
|
-
}
|
|
255
|
+
}> & Omit<{
|
|
252
256
|
race: number[];
|
|
253
257
|
ethnicity: number[];
|
|
254
258
|
accommodations: string[];
|
|
@@ -267,11 +271,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
267
271
|
raceOtherText?: string | null | undefined;
|
|
268
272
|
genderOtherText?: string | null | undefined;
|
|
269
273
|
accommodationOtherText?: string | null | undefined;
|
|
270
|
-
ageDataQuality?: "
|
|
271
|
-
sexDataQuality?: "
|
|
272
|
-
genderDataQuality?: "
|
|
273
|
-
raceDataQuality?: "
|
|
274
|
-
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;
|
|
275
279
|
} & {
|
|
276
280
|
_id: mongoose.Types.ObjectId;
|
|
277
281
|
} & {
|
|
@@ -297,11 +301,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
297
301
|
raceOtherText?: string | null | undefined;
|
|
298
302
|
genderOtherText?: string | null | undefined;
|
|
299
303
|
accommodationOtherText?: string | null | undefined;
|
|
300
|
-
ageDataQuality?: "
|
|
301
|
-
sexDataQuality?: "
|
|
302
|
-
genderDataQuality?: "
|
|
303
|
-
raceDataQuality?: "
|
|
304
|
-
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;
|
|
305
309
|
} & {
|
|
306
310
|
_id: mongoose.Types.ObjectId;
|
|
307
311
|
} & {
|
package/dist/schemas/index.js
CHANGED
|
@@ -318,17 +318,8 @@ var IC_56_SERVICE_DELIVERY_CHANNEL = {
|
|
|
318
318
|
ON_SCENE: 2,
|
|
319
319
|
PHONE: 3,
|
|
320
320
|
EMAIL_TEXT_CHAT: 4,
|
|
321
|
-
VIRTUAL: 5
|
|
322
|
-
|
|
323
|
-
// "How was the service delivered?" picker. Authored ahead of codebook /
|
|
324
|
-
// Notion ratification; flagged provisional pending SOT sign-off.
|
|
325
|
-
GROUP_IN_PERSON: 6,
|
|
326
|
-
GROUP_REMOTE: 7
|
|
327
|
-
};
|
|
328
|
-
var IC_56_PROVISIONAL_CHANNELS = /* @__PURE__ */ new Set([
|
|
329
|
-
IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
|
|
330
|
-
IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE
|
|
331
|
-
]);
|
|
321
|
+
VIRTUAL: 5
|
|
322
|
+
};
|
|
332
323
|
var IC_56_LABELS = {
|
|
333
324
|
[IC_56_SERVICE_DELIVERY_CHANNEL.DATA_NOT_COLLECTED]: "Data Not Collected",
|
|
334
325
|
[IC_56_SERVICE_DELIVERY_CHANNEL.ANONYMOUS]: "Anonymous",
|
|
@@ -337,9 +328,7 @@ var IC_56_LABELS = {
|
|
|
337
328
|
[IC_56_SERVICE_DELIVERY_CHANNEL.ON_SCENE]: "On-scene",
|
|
338
329
|
[IC_56_SERVICE_DELIVERY_CHANNEL.PHONE]: "Phone",
|
|
339
330
|
[IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]: "Email / Text / Chat",
|
|
340
|
-
[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual"
|
|
341
|
-
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]: "Group (in-person)",
|
|
342
|
-
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]: "Group (remote)"
|
|
331
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual"
|
|
343
332
|
};
|
|
344
333
|
var IC_56_DESCRIPTIONS = {
|
|
345
334
|
[IC_56_SERVICE_DELIVERY_CHANNEL.DATA_NOT_COLLECTED]: "Contact method data was not collected",
|
|
@@ -349,9 +338,7 @@ var IC_56_DESCRIPTIONS = {
|
|
|
349
338
|
[IC_56_SERVICE_DELIVERY_CHANNEL.ON_SCENE]: "Field response / crisis response / mobile advocacy",
|
|
350
339
|
[IC_56_SERVICE_DELIVERY_CHANNEL.PHONE]: "Phone call",
|
|
351
340
|
[IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]: "Email, text message, or chat",
|
|
352
|
-
[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual / video call"
|
|
353
|
-
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]: "Group session delivered in person (support group, class, workshop)",
|
|
354
|
-
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]: "Group session delivered remotely (virtual support group, webinar)"
|
|
341
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual / video call"
|
|
355
342
|
};
|
|
356
343
|
var IC_56_OPTIONS = [
|
|
357
344
|
{
|
|
@@ -373,14 +360,6 @@ var IC_56_OPTIONS = [
|
|
|
373
360
|
{
|
|
374
361
|
value: IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL,
|
|
375
362
|
label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
|
|
379
|
-
label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE,
|
|
383
|
-
label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]
|
|
384
363
|
}
|
|
385
364
|
];
|
|
386
365
|
var IC_57_SERVICE_AUDIENCE = {
|
|
@@ -3577,7 +3556,11 @@ var personNameSchema = new Schema(
|
|
|
3577
3556
|
isPrimary: Boolean,
|
|
3578
3557
|
alias: Boolean,
|
|
3579
3558
|
isUnknown: Boolean,
|
|
3580
|
-
isAnonymous: Boolean
|
|
3559
|
+
isAnonymous: Boolean,
|
|
3560
|
+
// Shape flag: this person has only one name (e.g., Madonna). A mononym
|
|
3561
|
+
// can itself be legal, a nickname, a trade name, etc. — it's orthogonal
|
|
3562
|
+
// to nameType, not a value of it.
|
|
3563
|
+
isMononym: Boolean
|
|
3581
3564
|
},
|
|
3582
3565
|
{ _id: false }
|
|
3583
3566
|
);
|