@htilabs/platform-common-models 0.14.0 → 0.15.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/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-DaDrEuTa.d.cts} +44 -44
- package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-DaDrEuTa.d.ts} +44 -44
- package/dist/cvcs/index.cjs +116 -25
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +124 -30
- package/dist/cvcs/index.d.ts +124 -30
- package/dist/cvcs/index.js +116 -25
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +1 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +3 -2
- package/dist/enums/index.d.ts +3 -2
- package/dist/enums/index.js +1 -0
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-CDoqrfc1.d.ts → index-C0J3f169.d.ts} +1 -1
- package/dist/{index-Zu_mOJRn.d.cts → index-EPjPjR0z.d.cts} +1 -1
- package/dist/index.cjs +117 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +117 -25
- 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/schemas/index.d.cts +35 -35
- package/dist/schemas/index.d.ts +35 -35
- package/package.json +27 -26
- package/src/__tests__/__snapshots__/cvc-sot.snap +2 -2
- package/src/__tests__/core-information-scope-invariant.test.ts +204 -15
- package/src/__tests__/cvc-sot-snapshot.test.ts +11 -7
- package/src/__tests__/cvc-structural.test.ts +1 -1
- package/src/__tests__/location-type-routing-invariant.test.ts +1 -1
- package/src/cvcs/{coreInformationScope.v1.0.0.json → coreInformationScope.v1.1.0.json} +113 -22
- package/src/cvcs/index.ts +1 -1
- package/src/generated/cvc-enums.ts +3 -2
package/dist/models/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-
|
|
1
|
+
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-DaDrEuTa.cjs';
|
|
2
2
|
import 'mongoose';
|
|
3
|
-
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-
|
|
3
|
+
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-EPjPjR0z.cjs';
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-
|
|
1
|
+
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-DaDrEuTa.js';
|
|
2
2
|
import 'mongoose';
|
|
3
|
-
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-
|
|
3
|
+
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-C0J3f169.js';
|
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-DaDrEuTa.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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
223
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
224
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
225
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
226
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
247
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
248
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
249
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
250
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
275
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
276
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
277
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
278
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
305
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
306
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
307
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
308
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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-DaDrEuTa.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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
223
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
224
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
225
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
226
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
247
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
248
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
249
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
250
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
275
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
276
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
277
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
278
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | 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?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
305
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
306
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
307
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
308
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
309
309
|
} & {
|
|
310
310
|
_id: mongoose.Types.ObjectId;
|
|
311
311
|
} & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htilabs/platform-common-models",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Shared constants, types, and models for HTI Labs applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -67,6 +67,31 @@
|
|
|
67
67
|
"dist",
|
|
68
68
|
"src"
|
|
69
69
|
],
|
|
70
|
+
"scripts": {
|
|
71
|
+
"build": "tsup",
|
|
72
|
+
"dev": "tsup --watch",
|
|
73
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p scripts/tsconfig.json",
|
|
74
|
+
"lint": "eslint src --ext .ts",
|
|
75
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
76
|
+
"test": "vitest run",
|
|
77
|
+
"test:watch": "vitest",
|
|
78
|
+
"test:snapshot": "UPDATE_SNAPSHOT=1 vitest run",
|
|
79
|
+
"clean": "rm -rf dist",
|
|
80
|
+
"codegen:cvc": "tsx scripts/codegen-cvc-enums.ts",
|
|
81
|
+
"codegen:cvc:check": "tsx scripts/codegen-cvc-enums.ts --check",
|
|
82
|
+
"import:cvcs": "node scripts/import-prototype-cvcs.mjs",
|
|
83
|
+
"sot:pins": "tsx scripts/sot-pins.ts",
|
|
84
|
+
"sot:pins:check": "tsx scripts/sot-pins.ts --check",
|
|
85
|
+
"gate:cvc": "vitest run src/__tests__/cvc-drift-gate.test.ts",
|
|
86
|
+
"bridge:codebook": "tsx scripts/codebook-bridge.ts",
|
|
87
|
+
"bridge:codebook:check": "tsx scripts/codebook-bridge.ts --check",
|
|
88
|
+
"test:bridge": "node --import tsx --test scripts/codebook-bridge.test.ts",
|
|
89
|
+
"seed:cvc": "tsx scripts/seed-cvc.ts",
|
|
90
|
+
"seed:cvc:all": "tsx scripts/seed-all-cvcs.ts",
|
|
91
|
+
"test:seed": "node --import tsx --test scripts/seed-cvc.test.ts",
|
|
92
|
+
"test:guard": "node --import tsx --test scripts/lib/confirmTargetDb.test.ts",
|
|
93
|
+
"prepublishOnly": "npm run build"
|
|
94
|
+
},
|
|
70
95
|
"keywords": [
|
|
71
96
|
"hti",
|
|
72
97
|
"platform-common",
|
|
@@ -101,29 +126,5 @@
|
|
|
101
126
|
},
|
|
102
127
|
"engines": {
|
|
103
128
|
"node": ">=18.0.0"
|
|
104
|
-
},
|
|
105
|
-
"scripts": {
|
|
106
|
-
"build": "tsup",
|
|
107
|
-
"dev": "tsup --watch",
|
|
108
|
-
"typecheck": "tsc --noEmit && tsc --noEmit -p scripts/tsconfig.json",
|
|
109
|
-
"lint": "eslint src --ext .ts",
|
|
110
|
-
"lint:fix": "eslint src --ext .ts --fix",
|
|
111
|
-
"test": "vitest run",
|
|
112
|
-
"test:watch": "vitest",
|
|
113
|
-
"test:snapshot": "UPDATE_SNAPSHOT=1 vitest run",
|
|
114
|
-
"clean": "rm -rf dist",
|
|
115
|
-
"codegen:cvc": "tsx scripts/codegen-cvc-enums.ts",
|
|
116
|
-
"codegen:cvc:check": "tsx scripts/codegen-cvc-enums.ts --check",
|
|
117
|
-
"import:cvcs": "node scripts/import-prototype-cvcs.mjs",
|
|
118
|
-
"sot:pins": "tsx scripts/sot-pins.ts",
|
|
119
|
-
"sot:pins:check": "tsx scripts/sot-pins.ts --check",
|
|
120
|
-
"gate:cvc": "vitest run src/__tests__/cvc-drift-gate.test.ts",
|
|
121
|
-
"bridge:codebook": "tsx scripts/codebook-bridge.ts",
|
|
122
|
-
"bridge:codebook:check": "tsx scripts/codebook-bridge.ts --check",
|
|
123
|
-
"test:bridge": "node --import tsx --test scripts/codebook-bridge.test.ts",
|
|
124
|
-
"seed:cvc": "tsx scripts/seed-cvc.ts",
|
|
125
|
-
"seed:cvc:all": "tsx scripts/seed-all-cvcs.ts",
|
|
126
|
-
"test:seed": "node --import tsx --test scripts/seed-cvc.test.ts",
|
|
127
|
-
"test:guard": "node --import tsx --test scripts/lib/confirmTargetDb.test.ts"
|
|
128
129
|
}
|
|
129
|
-
}
|
|
130
|
+
}
|
|
@@ -703,8 +703,8 @@
|
|
|
703
703
|
"hash": "9d8972c65373a9981aab6b8749661659ecc632004e67bc9c2b3c88aa76f30977"
|
|
704
704
|
},
|
|
705
705
|
"core_information_scope": {
|
|
706
|
-
"count":
|
|
707
|
-
"hash": "
|
|
706
|
+
"count": 73,
|
|
707
|
+
"hash": "a813257e3c42e30dfb2881e1718fff57bcfe8c358c4a81b17910cea17299c041"
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
}
|