@htilabs/platform-common-models 0.59.0 → 0.61.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 +90 -1
- package/dist/index.cjs +91 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +91 -13
- package/dist/index.js.map +1 -1
- package/dist/org-directory/index.cjs +5 -4
- package/dist/org-directory/index.cjs.map +1 -1
- package/dist/org-directory/index.d.cts +15 -7
- package/dist/org-directory/index.d.ts +15 -7
- package/dist/org-directory/index.js +5 -4
- package/dist/org-directory/index.js.map +1 -1
- package/dist/points-of-contact/index.cjs +4 -3
- package/dist/points-of-contact/index.cjs.map +1 -1
- package/dist/points-of-contact/index.js +4 -3
- package/dist/points-of-contact/index.js.map +1 -1
- package/dist/schemas/index.cjs +10 -6
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +8 -4
- package/dist/schemas/index.d.ts +8 -4
- package/dist/schemas/index.js +10 -6
- package/dist/schemas/index.js.map +1 -1
- package/dist/sharing-ceiling/index.cjs +81 -7
- package/dist/sharing-ceiling/index.cjs.map +1 -1
- package/dist/sharing-ceiling/index.d.cts +64 -4
- package/dist/sharing-ceiling/index.d.ts +64 -4
- package/dist/sharing-ceiling/index.js +81 -7
- package/dist/sharing-ceiling/index.js.map +1 -1
- package/package.json +1 -1
- package/src/orgDirectory/__tests__/orgRecord.test.ts +6 -3
- package/src/orgDirectory/orgRecord.ts +14 -6
- package/src/orgDirectory/rules.ts +3 -2
- package/src/schemas/organization.ts +7 -4
- package/src/sharingCeiling/__tests__/resolveShare.purposeRule.test.ts +836 -0
- package/src/sharingCeiling/index.ts +4 -0
- package/src/sharingCeiling/resolve.ts +219 -15
package/dist/schemas/index.d.cts
CHANGED
|
@@ -500,10 +500,7 @@ declare const orgRecordSchemaDefinition: {
|
|
|
500
500
|
type: StringConstructor;
|
|
501
501
|
};
|
|
502
502
|
/** The adding user's platform `users._id`. */
|
|
503
|
-
|
|
504
|
-
type: StringConstructor;
|
|
505
|
-
};
|
|
506
|
-
addedInSession: {
|
|
503
|
+
addedBy: {
|
|
507
504
|
type: StringConstructor;
|
|
508
505
|
};
|
|
509
506
|
};
|
|
@@ -519,6 +516,13 @@ declare const orgAsBuiltSchemaDefinition: {
|
|
|
519
516
|
isCustom: {
|
|
520
517
|
type: BooleanConstructor;
|
|
521
518
|
};
|
|
519
|
+
/** The pre-0.60 spelling of `addedBy`; PAVE 2.0 rows carry it. */
|
|
520
|
+
addedByUserId: {
|
|
521
|
+
type: StringConstructor;
|
|
522
|
+
};
|
|
523
|
+
addedInSession: {
|
|
524
|
+
type: StringConstructor;
|
|
525
|
+
};
|
|
522
526
|
division: {
|
|
523
527
|
type: StringConstructor;
|
|
524
528
|
};
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -500,10 +500,7 @@ declare const orgRecordSchemaDefinition: {
|
|
|
500
500
|
type: StringConstructor;
|
|
501
501
|
};
|
|
502
502
|
/** The adding user's platform `users._id`. */
|
|
503
|
-
|
|
504
|
-
type: StringConstructor;
|
|
505
|
-
};
|
|
506
|
-
addedInSession: {
|
|
503
|
+
addedBy: {
|
|
507
504
|
type: StringConstructor;
|
|
508
505
|
};
|
|
509
506
|
};
|
|
@@ -519,6 +516,13 @@ declare const orgAsBuiltSchemaDefinition: {
|
|
|
519
516
|
isCustom: {
|
|
520
517
|
type: BooleanConstructor;
|
|
521
518
|
};
|
|
519
|
+
/** The pre-0.60 spelling of `addedBy`; PAVE 2.0 rows carry it. */
|
|
520
|
+
addedByUserId: {
|
|
521
|
+
type: StringConstructor;
|
|
522
|
+
};
|
|
523
|
+
addedInSession: {
|
|
524
|
+
type: StringConstructor;
|
|
525
|
+
};
|
|
522
526
|
division: {
|
|
523
527
|
type: StringConstructor;
|
|
524
528
|
};
|
package/dist/schemas/index.js
CHANGED
|
@@ -5856,12 +5856,13 @@ var ORG_RECORD_FIELD_NAMES = Object.freeze([
|
|
|
5856
5856
|
"vspPrivateNonprofit",
|
|
5857
5857
|
"reviewStatus",
|
|
5858
5858
|
"addedInApp",
|
|
5859
|
-
"
|
|
5860
|
-
"addedInSession"
|
|
5859
|
+
"addedBy"
|
|
5861
5860
|
]);
|
|
5862
5861
|
var ORG_AS_BUILT_FIELD_NAMES = Object.freeze([
|
|
5863
5862
|
"requiresROI",
|
|
5864
5863
|
"isCustom",
|
|
5864
|
+
"addedByUserId",
|
|
5865
|
+
"addedInSession",
|
|
5865
5866
|
"division",
|
|
5866
5867
|
"typeOverride",
|
|
5867
5868
|
"typeKey"
|
|
@@ -5953,13 +5954,15 @@ var orgRecordSchemaDefinition = {
|
|
|
5953
5954
|
/** The app it was added in (`thread`, `pave`, `leads`, `platform`). */
|
|
5954
5955
|
addedInApp: { type: String },
|
|
5955
5956
|
/** The adding user's platform `users._id`. */
|
|
5956
|
-
|
|
5957
|
-
addedInSession: { type: String }
|
|
5957
|
+
addedBy: { type: String }
|
|
5958
5958
|
};
|
|
5959
5959
|
var orgAsBuiltSchemaDefinition = {
|
|
5960
5960
|
/** Informational only: the release check reads the sender's `vsp` (GDR § 5.17 clause 2). */
|
|
5961
5961
|
requiresROI: { type: Boolean },
|
|
5962
5962
|
isCustom: { type: Boolean },
|
|
5963
|
+
/** The pre-0.60 spelling of `addedBy`; PAVE 2.0 rows carry it. */
|
|
5964
|
+
addedByUserId: { type: String },
|
|
5965
|
+
addedInSession: { type: String },
|
|
5963
5966
|
division: { type: String },
|
|
5964
5967
|
typeOverride: { type: String },
|
|
5965
5968
|
/** The CVC-48 key PAVE writes beside a numeric `type`; retires with the type migration. */
|
|
@@ -5984,10 +5987,11 @@ var EXPECTED_INSTANCE = {
|
|
|
5984
5987
|
vspPrivateNonprofit: "Boolean",
|
|
5985
5988
|
reviewStatus: "String",
|
|
5986
5989
|
addedInApp: "String",
|
|
5987
|
-
|
|
5988
|
-
addedInSession: "String",
|
|
5990
|
+
addedBy: "String",
|
|
5989
5991
|
requiresROI: "Boolean",
|
|
5990
5992
|
isCustom: "Boolean",
|
|
5993
|
+
addedByUserId: "String",
|
|
5994
|
+
addedInSession: "String",
|
|
5991
5995
|
division: "String",
|
|
5992
5996
|
typeOverride: "String",
|
|
5993
5997
|
typeKey: "String"
|