@htilabs/platform-common-models 0.42.0 → 0.42.1
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 +18 -0
- package/dist/{index-uz57Fic9.d.ts → index-BHSRMJvd.d.ts} +1 -1
- package/dist/{index-1pWiqEBC.d.cts → index-DF469Qgd.d.cts} +1 -1
- package/dist/index.cjs +10 -10
- 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 +10 -10
- 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 +25 -25
- package/dist/schemas/index.d.ts +25 -25
- package/dist/sharing-ceiling/index.cjs +10 -10
- package/dist/sharing-ceiling/index.cjs.map +1 -1
- package/dist/sharing-ceiling/index.d.cts +9 -2
- package/dist/sharing-ceiling/index.d.ts +9 -2
- package/dist/sharing-ceiling/index.js +10 -10
- package/dist/sharing-ceiling/index.js.map +1 -1
- package/package.json +1 -1
- package/src/sharingCeiling/__tests__/resolveShare.test.ts +114 -0
- package/src/sharingCeiling/resolve.ts +32 -17
- package/dist/{cvcEntry-DAuhe0cd.d.cts → cvcEntry-DQEoFVL2.d.cts} +8 -8
- package/dist/{cvcEntry-DAuhe0cd.d.ts → cvcEntry-DQEoFVL2.d.ts} +8 -8
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-DQEoFVL2.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-DF469Qgd.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-DQEoFVL2.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-BHSRMJvd.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-DQEoFVL2.cjs';
|
|
4
4
|
export { A as AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS, a as AddAgencyOrgTypeFieldsOptions, b as AgencyOrgTypeFields, O as ORG_TYPE_FIELD_NAMES, c as OrgTypeFieldName, d as OrgTypeFields, e as OrgTypeFieldsHolder, V as VSP_TWO_STEP_ISSUE, f as addAgencyOrgTypeFields, g as addOrgTypeFields, h as agencyOrgTypeSchemaDefinition, i as applyRunValidatorsIfUnset, m as mirrorOrgTypeFields, o as orgTypeFieldsDiffer, j as orgTypeSchemaDefinition, r as resolveEffectiveOrgType, k as resolveEffectiveOrgTypeFields, v as vspTwoStepHolds, l as vspTwoStepHoldsOnUpdate } from '../agency-DYCv839V.cjs';
|
|
5
5
|
export { P as PROGRAM_REVIEW_STATUS, a as PROGRAM_REVIEW_STATUS_VALUES, b as ProgramReviewStatus, i as isLiveOrganizationProgram, c as isProgramReviewStatus } from '../vocabulary-Cxhi9EGt.cjs';
|
|
6
6
|
import '../org-type-D_FG4KdN.cjs';
|
|
@@ -136,12 +136,12 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
136
136
|
number?: string | null | undefined;
|
|
137
137
|
type?: string | null | undefined;
|
|
138
138
|
safeToContact?: boolean | null | undefined;
|
|
139
|
-
dataQuality?: "
|
|
139
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
140
140
|
}, mongoose.Document<unknown, {}, {
|
|
141
141
|
number?: string | null | undefined;
|
|
142
142
|
type?: string | null | undefined;
|
|
143
143
|
safeToContact?: boolean | null | undefined;
|
|
144
|
-
dataQuality?: "
|
|
144
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
145
145
|
}, {
|
|
146
146
|
id: string;
|
|
147
147
|
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
@@ -150,7 +150,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
150
150
|
number?: string | null | undefined;
|
|
151
151
|
type?: string | null | undefined;
|
|
152
152
|
safeToContact?: boolean | null | undefined;
|
|
153
|
-
dataQuality?: "
|
|
153
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
154
154
|
} & {
|
|
155
155
|
_id: mongoose.Types.ObjectId;
|
|
156
156
|
} & {
|
|
@@ -161,7 +161,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
161
161
|
number?: string | null | undefined;
|
|
162
162
|
type?: string | null | undefined;
|
|
163
163
|
safeToContact?: boolean | null | undefined;
|
|
164
|
-
dataQuality?: "
|
|
164
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
165
165
|
} & {
|
|
166
166
|
_id: mongoose.Types.ObjectId;
|
|
167
167
|
} & {
|
|
@@ -223,11 +223,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
223
223
|
raceOtherText?: string | null | undefined;
|
|
224
224
|
genderOtherText?: string | null | undefined;
|
|
225
225
|
accommodationOtherText?: string | null | undefined;
|
|
226
|
-
ageDataQuality?: "
|
|
227
|
-
sexDataQuality?: "
|
|
228
|
-
genderDataQuality?: "
|
|
229
|
-
raceDataQuality?: "
|
|
230
|
-
ethnicityDataQuality?: "
|
|
226
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
227
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
228
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
229
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
230
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
231
231
|
}, mongoose.Document<unknown, {}, {
|
|
232
232
|
race: number[];
|
|
233
233
|
ethnicity: number[];
|
|
@@ -247,11 +247,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
247
247
|
raceOtherText?: string | null | undefined;
|
|
248
248
|
genderOtherText?: string | null | undefined;
|
|
249
249
|
accommodationOtherText?: string | null | undefined;
|
|
250
|
-
ageDataQuality?: "
|
|
251
|
-
sexDataQuality?: "
|
|
252
|
-
genderDataQuality?: "
|
|
253
|
-
raceDataQuality?: "
|
|
254
|
-
ethnicityDataQuality?: "
|
|
250
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
251
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
252
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
253
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
254
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
255
255
|
}, {
|
|
256
256
|
id: string;
|
|
257
257
|
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
@@ -275,11 +275,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
275
275
|
raceOtherText?: string | null | undefined;
|
|
276
276
|
genderOtherText?: string | null | undefined;
|
|
277
277
|
accommodationOtherText?: string | null | undefined;
|
|
278
|
-
ageDataQuality?: "
|
|
279
|
-
sexDataQuality?: "
|
|
280
|
-
genderDataQuality?: "
|
|
281
|
-
raceDataQuality?: "
|
|
282
|
-
ethnicityDataQuality?: "
|
|
278
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
279
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
280
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
281
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
282
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
283
283
|
} & {
|
|
284
284
|
_id: mongoose.Types.ObjectId;
|
|
285
285
|
} & {
|
|
@@ -305,11 +305,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
305
305
|
raceOtherText?: string | null | undefined;
|
|
306
306
|
genderOtherText?: string | null | undefined;
|
|
307
307
|
accommodationOtherText?: string | null | undefined;
|
|
308
|
-
ageDataQuality?: "
|
|
309
|
-
sexDataQuality?: "
|
|
310
|
-
genderDataQuality?: "
|
|
311
|
-
raceDataQuality?: "
|
|
312
|
-
ethnicityDataQuality?: "
|
|
308
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
309
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
310
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
311
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
312
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
313
313
|
} & {
|
|
314
314
|
_id: mongoose.Types.ObjectId;
|
|
315
315
|
} & {
|
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-DQEoFVL2.js';
|
|
4
4
|
export { A as AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS, a as AddAgencyOrgTypeFieldsOptions, b as AgencyOrgTypeFields, O as ORG_TYPE_FIELD_NAMES, c as OrgTypeFieldName, d as OrgTypeFields, e as OrgTypeFieldsHolder, V as VSP_TWO_STEP_ISSUE, f as addAgencyOrgTypeFields, g as addOrgTypeFields, h as agencyOrgTypeSchemaDefinition, i as applyRunValidatorsIfUnset, m as mirrorOrgTypeFields, o as orgTypeFieldsDiffer, j as orgTypeSchemaDefinition, r as resolveEffectiveOrgType, k as resolveEffectiveOrgTypeFields, v as vspTwoStepHolds, l as vspTwoStepHoldsOnUpdate } from '../agency-Ca4pCOOf.js';
|
|
5
5
|
export { P as PROGRAM_REVIEW_STATUS, a as PROGRAM_REVIEW_STATUS_VALUES, b as ProgramReviewStatus, i as isLiveOrganizationProgram, c as isProgramReviewStatus } from '../vocabulary-Cxhi9EGt.js';
|
|
6
6
|
import '../org-type-BYQb9Qzq.js';
|
|
@@ -136,12 +136,12 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
136
136
|
number?: string | null | undefined;
|
|
137
137
|
type?: string | null | undefined;
|
|
138
138
|
safeToContact?: boolean | null | undefined;
|
|
139
|
-
dataQuality?: "
|
|
139
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
140
140
|
}, mongoose.Document<unknown, {}, {
|
|
141
141
|
number?: string | null | undefined;
|
|
142
142
|
type?: string | null | undefined;
|
|
143
143
|
safeToContact?: boolean | null | undefined;
|
|
144
|
-
dataQuality?: "
|
|
144
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
145
145
|
}, {
|
|
146
146
|
id: string;
|
|
147
147
|
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
@@ -150,7 +150,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
150
150
|
number?: string | null | undefined;
|
|
151
151
|
type?: string | null | undefined;
|
|
152
152
|
safeToContact?: boolean | null | undefined;
|
|
153
|
-
dataQuality?: "
|
|
153
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
154
154
|
} & {
|
|
155
155
|
_id: mongoose.Types.ObjectId;
|
|
156
156
|
} & {
|
|
@@ -161,7 +161,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
161
161
|
number?: string | null | undefined;
|
|
162
162
|
type?: string | null | undefined;
|
|
163
163
|
safeToContact?: boolean | null | undefined;
|
|
164
|
-
dataQuality?: "
|
|
164
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
165
165
|
} & {
|
|
166
166
|
_id: mongoose.Types.ObjectId;
|
|
167
167
|
} & {
|
|
@@ -223,11 +223,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
223
223
|
raceOtherText?: string | null | undefined;
|
|
224
224
|
genderOtherText?: string | null | undefined;
|
|
225
225
|
accommodationOtherText?: string | null | undefined;
|
|
226
|
-
ageDataQuality?: "
|
|
227
|
-
sexDataQuality?: "
|
|
228
|
-
genderDataQuality?: "
|
|
229
|
-
raceDataQuality?: "
|
|
230
|
-
ethnicityDataQuality?: "
|
|
226
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
227
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
228
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
229
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
230
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
231
231
|
}, mongoose.Document<unknown, {}, {
|
|
232
232
|
race: number[];
|
|
233
233
|
ethnicity: number[];
|
|
@@ -247,11 +247,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
247
247
|
raceOtherText?: string | null | undefined;
|
|
248
248
|
genderOtherText?: string | null | undefined;
|
|
249
249
|
accommodationOtherText?: string | null | undefined;
|
|
250
|
-
ageDataQuality?: "
|
|
251
|
-
sexDataQuality?: "
|
|
252
|
-
genderDataQuality?: "
|
|
253
|
-
raceDataQuality?: "
|
|
254
|
-
ethnicityDataQuality?: "
|
|
250
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
251
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
252
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
253
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
254
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
255
255
|
}, {
|
|
256
256
|
id: string;
|
|
257
257
|
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
@@ -275,11 +275,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
275
275
|
raceOtherText?: string | null | undefined;
|
|
276
276
|
genderOtherText?: string | null | undefined;
|
|
277
277
|
accommodationOtherText?: string | null | undefined;
|
|
278
|
-
ageDataQuality?: "
|
|
279
|
-
sexDataQuality?: "
|
|
280
|
-
genderDataQuality?: "
|
|
281
|
-
raceDataQuality?: "
|
|
282
|
-
ethnicityDataQuality?: "
|
|
278
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
279
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
280
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
281
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
282
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
283
283
|
} & {
|
|
284
284
|
_id: mongoose.Types.ObjectId;
|
|
285
285
|
} & {
|
|
@@ -305,11 +305,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
305
305
|
raceOtherText?: string | null | undefined;
|
|
306
306
|
genderOtherText?: string | null | undefined;
|
|
307
307
|
accommodationOtherText?: string | null | undefined;
|
|
308
|
-
ageDataQuality?: "
|
|
309
|
-
sexDataQuality?: "
|
|
310
|
-
genderDataQuality?: "
|
|
311
|
-
raceDataQuality?: "
|
|
312
|
-
ethnicityDataQuality?: "
|
|
308
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
309
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
310
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
311
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
312
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
313
313
|
} & {
|
|
314
314
|
_id: mongoose.Types.ObjectId;
|
|
315
315
|
} & {
|
|
@@ -1000,6 +1000,9 @@ function resolveShare(input) {
|
|
|
1000
1000
|
let excludedReason = null;
|
|
1001
1001
|
const teamExcludedItems = [];
|
|
1002
1002
|
let teamExcludedReason = null;
|
|
1003
|
+
const outside = (covered) => items.filter(
|
|
1004
|
+
(r) => !covered(r) && !items.some((d) => d !== r && covered(d) && scope.ancestorsOf(d).includes(r))
|
|
1005
|
+
);
|
|
1003
1006
|
const addExcluded = (rows, why) => {
|
|
1004
1007
|
for (const r of rows)
|
|
1005
1008
|
if (!floorItems.includes(r) && !excludedItems.includes(r))
|
|
@@ -1035,7 +1038,7 @@ function resolveShare(input) {
|
|
|
1035
1038
|
}
|
|
1036
1039
|
if (allowed && !req && groupCeiling !== null && !scopeListStrictlyCovers(scope, groupCeiling, g)) {
|
|
1037
1040
|
addExcluded(
|
|
1038
|
-
|
|
1041
|
+
outside((r) => scopeListCovers(scope, groupCeiling, g, r)),
|
|
1039
1042
|
"Outside the payload for this purpose"
|
|
1040
1043
|
);
|
|
1041
1044
|
}
|
|
@@ -1046,17 +1049,16 @@ function resolveShare(input) {
|
|
|
1046
1049
|
}
|
|
1047
1050
|
if (allowed && !req && polScopeBinds && !scopeListStrictlyCovers(scope, govList, g)) {
|
|
1048
1051
|
addExcluded(
|
|
1049
|
-
|
|
1052
|
+
outside((r) => scopeListCovers(scope, govList, g, r)),
|
|
1050
1053
|
`Outside what the \u201C${govName}\u201D policy allows for this purpose`
|
|
1051
1054
|
);
|
|
1052
1055
|
}
|
|
1053
1056
|
const govRows = polScopeBinds ? own2(govItems, g) : void 0;
|
|
1054
1057
|
if (allowed && !req && isStringList2(govRows)) {
|
|
1055
1058
|
const keep = new Set(govRows);
|
|
1059
|
+
const kept = (r) => keep.has(r) || scope.ancestorsOf(r).some((a) => a !== g && keep.has(a));
|
|
1056
1060
|
addExcluded(
|
|
1057
|
-
|
|
1058
|
-
(r) => !keep.has(r) && !scope.ancestorsOf(r).some((a) => a !== g && keep.has(a))
|
|
1059
|
-
),
|
|
1061
|
+
outside(kept),
|
|
1060
1062
|
`Outside what the \u201C${govName}\u201D policy allows for this purpose`
|
|
1061
1063
|
);
|
|
1062
1064
|
}
|
|
@@ -1069,15 +1071,13 @@ function resolveShare(input) {
|
|
|
1069
1071
|
const why = `Outside what your team's \u201C${tcNamed?.name}\u201D policy allows`;
|
|
1070
1072
|
const outRows = /* @__PURE__ */ new Set();
|
|
1071
1073
|
if (tcScope !== null && !scopeListStrictlyCovers(scope, tcScope, g)) {
|
|
1072
|
-
for (const r of
|
|
1073
|
-
if (!scopeListCovers(scope, tcScope, g, r)) outRows.add(r);
|
|
1074
|
+
for (const r of outside((x) => scopeListCovers(scope, tcScope, g, x))) outRows.add(r);
|
|
1074
1075
|
}
|
|
1075
1076
|
const tcRows = own2(tcItems, g);
|
|
1076
1077
|
if (isStringList2(tcRows)) {
|
|
1077
1078
|
const keep = new Set(tcRows);
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
outRows.add(r);
|
|
1079
|
+
const kept = (r) => keep.has(r) || scope.ancestorsOf(r).some((a) => a !== g && keep.has(a));
|
|
1080
|
+
for (const r of outside(kept)) outRows.add(r);
|
|
1081
1081
|
}
|
|
1082
1082
|
for (const r of outRows)
|
|
1083
1083
|
if (!floorItems.includes(r) && !excludedItems.includes(r))
|