@htilabs/platform-common-models 0.34.0 → 0.36.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 +135 -0
- package/dist/constants/index.cjs +2 -0
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.js +2 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/{cvcEntry-DAuhe0cd.d.cts → cvcEntry-BqAGctqK.d.cts} +36 -36
- package/dist/{cvcEntry-DAuhe0cd.d.ts → cvcEntry-BqAGctqK.d.ts} +36 -36
- package/dist/{index-1pWiqEBC.d.cts → index-BTqHP4DM.d.cts} +1 -1
- package/dist/{index-uz57Fic9.d.ts → index-Dr6GBCoY.d.ts} +1 -1
- package/dist/index.cjs +2 -0
- 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 +2 -0
- 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/org-directory/index.cjs +4 -3
- package/dist/org-directory/index.cjs.map +1 -1
- package/dist/org-directory/index.d.cts +22 -6
- package/dist/org-directory/index.d.ts +22 -6
- package/dist/org-directory/index.js +4 -3
- package/dist/org-directory/index.js.map +1 -1
- package/dist/points-of-contact/index.cjs +6 -3
- package/dist/points-of-contact/index.cjs.map +1 -1
- package/dist/points-of-contact/index.js +6 -3
- package/dist/points-of-contact/index.js.map +1 -1
- package/dist/schemas/index.d.cts +11 -11
- package/dist/schemas/index.d.ts +11 -11
- package/dist/share-review/index.cjs +301 -0
- package/dist/share-review/index.cjs.map +1 -0
- package/dist/share-review/index.d.cts +431 -0
- package/dist/share-review/index.d.ts +431 -0
- package/dist/share-review/index.js +263 -0
- package/dist/share-review/index.js.map +1 -0
- package/package.json +11 -1
- package/src/__sot__/README.md +2 -0
- package/src/__sot__/captureConflictSemantics.pin.json +156 -0
- package/src/generated/captureConflictSemantics.ts +200 -0
- package/src/orgDirectory/__tests__/orgDirectory.test.ts +60 -0
- package/src/orgDirectory/rules.ts +26 -9
- package/src/pointsOfContact/__tests__/writer.test.ts +15 -0
- package/src/shareReview/__tests__/captureConflictSemantics.test.ts +148 -0
- package/src/shareReview/__tests__/captureConflictSemanticsPin.test.ts +78 -0
- package/src/shareReview/__tests__/recommendedDecision.test.ts +35 -0
- package/src/shareReview/__tests__/reviewDecision.test.ts +102 -0
- package/src/shareReview/__tests__/shareFieldReviewPlan.test.ts +523 -0
- package/src/shareReview/captureConflictSemantics.ts +170 -0
- package/src/shareReview/index.ts +23 -0
- package/src/shareReview/recommendedDecision.ts +21 -0
- package/src/shareReview/reviewDecision.ts +71 -0
- package/src/shareReview/shareFieldReviewPlan.ts +288 -0
|
@@ -375,6 +375,8 @@ var PointOfContactShapeError = class extends Error {
|
|
|
375
375
|
this.issues = issues;
|
|
376
376
|
this.name = "PointOfContactShapeError";
|
|
377
377
|
}
|
|
378
|
+
contactId;
|
|
379
|
+
issues;
|
|
378
380
|
};
|
|
379
381
|
function normalizePointOfContact(raw) {
|
|
380
382
|
const parsed = PointOfContactDocSchema.safeParse(raw);
|
|
@@ -761,9 +763,10 @@ function organizationRowShape(raw) {
|
|
|
761
763
|
if (!raw || typeof raw !== "object") return "unknown";
|
|
762
764
|
const r = raw;
|
|
763
765
|
if (typeof r.canonicalKey === "string" && r.canonicalKey !== "") return "canonical";
|
|
764
|
-
if (typeof r.id === "string" ||
|
|
765
|
-
|
|
766
|
-
|
|
766
|
+
if (typeof r.id === "string" || "acronym" in r || "location" in r) return "pave";
|
|
767
|
+
if (typeof r.type === "number" || typeof r.type === "string" && r.type.trim() !== "") {
|
|
768
|
+
return "thread";
|
|
769
|
+
}
|
|
767
770
|
return "unknown";
|
|
768
771
|
}
|
|
769
772
|
function isAgencyOwnOrganization(org, agency) {
|