@htilabs/platform-common-models 0.21.0 → 0.23.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.
Files changed (71) hide show
  1. package/dist/authz/index.cjs +539 -0
  2. package/dist/authz/index.cjs.map +1 -0
  3. package/dist/authz/index.d.cts +210 -0
  4. package/dist/authz/index.d.ts +210 -0
  5. package/dist/authz/index.js +507 -0
  6. package/dist/authz/index.js.map +1 -0
  7. package/dist/constants/index.d.cts +2 -1
  8. package/dist/constants/index.d.ts +2 -1
  9. package/dist/cvcs/index.cjs +936 -243
  10. package/dist/cvcs/index.cjs.map +1 -1
  11. package/dist/cvcs/index.d.cts +986 -254
  12. package/dist/cvcs/index.d.ts +986 -254
  13. package/dist/cvcs/index.js +936 -243
  14. package/dist/cvcs/index.js.map +1 -1
  15. package/dist/enums/index.cjs +37 -10
  16. package/dist/enums/index.cjs.map +1 -1
  17. package/dist/enums/index.d.cts +42 -15
  18. package/dist/enums/index.d.ts +42 -15
  19. package/dist/enums/index.js +37 -10
  20. package/dist/enums/index.js.map +1 -1
  21. package/dist/{platform-auth-CvAYFVhK.d.cts → ic-DpKrdgQP.d.cts} +1 -78
  22. package/dist/{platform-auth-CvAYFVhK.d.ts → ic-DpKrdgQP.d.ts} +1 -78
  23. package/dist/index.cjs +1328 -253
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +4 -2
  26. package/dist/index.d.ts +4 -2
  27. package/dist/index.js +1313 -253
  28. package/dist/index.js.map +1 -1
  29. package/dist/platform-auth-B49Ly57B.d.cts +78 -0
  30. package/dist/platform-auth-B49Ly57B.d.ts +78 -0
  31. package/dist/schemas/index.cjs +104 -0
  32. package/dist/schemas/index.cjs.map +1 -1
  33. package/dist/schemas/index.d.cts +240 -1
  34. package/dist/schemas/index.d.ts +240 -1
  35. package/dist/schemas/index.js +95 -0
  36. package/dist/schemas/index.js.map +1 -1
  37. package/dist/types/index.d.cts +2 -2
  38. package/dist/types/index.d.ts +2 -2
  39. package/package.json +6 -1
  40. package/src/__sot__/README.md +3 -0
  41. package/src/__sot__/adminRoles.pin.json +122 -0
  42. package/src/__sot__/adminRoles.published.json +77 -0
  43. package/src/__sot__/coreFunctionFields.ts +137 -0
  44. package/src/__sot__/coreFunctions.pin.json +1659 -0
  45. package/src/__sot__/coreFunctions.published.json +233 -0
  46. package/src/__sot__/roleFields.ts +137 -0
  47. package/src/__sot__/userRoles.pin.json +174 -0
  48. package/src/__sot__/userRoles.published.json +103 -0
  49. package/src/__tests__/__snapshots__/cvc-sot.snap +6 -6
  50. package/src/__tests__/admin-roles-canon.test.ts +80 -0
  51. package/src/__tests__/authz-resolve.test.ts +712 -0
  52. package/src/__tests__/core-functions-canon.test.ts +358 -24
  53. package/src/__tests__/cvc-sot-snapshot.test.ts +17 -6
  54. package/src/__tests__/cvc-status-parser.test.ts +2 -2
  55. package/src/__tests__/cvc-structural.test.ts +3 -3
  56. package/src/__tests__/organization-program.test.ts +254 -0
  57. package/src/__tests__/role-vocab-gate.ts +279 -0
  58. package/src/__tests__/user-roles-canon.test.ts +104 -0
  59. package/src/authz/index.ts +9 -0
  60. package/src/authz/resolveEffectiveFunctions.ts +454 -0
  61. package/src/cvcs/adminRoles.v2.0.0.json +197 -0
  62. package/src/cvcs/{coreFunctions.v1.1.0.json → coreFunctions.v1.3.0.json} +646 -90
  63. package/src/cvcs/index.ts +3 -3
  64. package/src/cvcs/userRoles.v2.0.0.json +296 -0
  65. package/src/generated/coreFunctionsEvaluable.ts +101 -0
  66. package/src/generated/cvc-enums.ts +42 -15
  67. package/src/index.ts +4 -0
  68. package/src/schemas/index.ts +18 -0
  69. package/src/schemas/organization-program.ts +297 -0
  70. package/src/cvcs/adminRoles.v1.0.0.json +0 -153
  71. package/src/cvcs/userRoles.v1.0.0.json +0 -203
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @htilabs/platform-common-models — Platform Authorization Constants
3
+ *
4
+ * Enums and labels for the platform role/function permission model.
5
+ * Includes permission states, share view levels, tool codes, role levels,
6
+ * and function implementation statuses.
7
+ *
8
+ * Source: PLATFORM_AUTH_SPEC.md Sections 5 + 6
9
+ */
10
+ declare const PERMISSION_STATE: {
11
+ /** Role can always perform this function (mandatory, cannot disable). */
12
+ readonly ALWAYS: "ALWAYS";
13
+ /** Default On — user can opt off. */
14
+ readonly PREF_YES: "PREF_YES";
15
+ /** Default Off — user can opt in. */
16
+ readonly PREF_NO: "PREF_NO";
17
+ /** Role is explicitly barred from this function. */
18
+ readonly NEVER: "NEVER";
19
+ };
20
+ type PermissionStateValue = (typeof PERMISSION_STATE)[keyof typeof PERMISSION_STATE];
21
+ declare const PERMISSION_STATE_VALUES: readonly ["ALWAYS", "PREF_YES", "PREF_NO", "NEVER"];
22
+ declare const PERMISSION_STATE_LABELS: Record<PermissionStateValue, string>;
23
+ /** UI display metadata for permission states (colors, icons). */
24
+ declare const PERMISSION_STATE_DISPLAY: Record<PermissionStateValue, {
25
+ label: string;
26
+ color: string;
27
+ bgColor: string;
28
+ icon: string;
29
+ }>;
30
+ declare const SHARE_VIEW: {
31
+ /** System metadata only (partial access). */
32
+ readonly SYS_INFO: "sys_info";
33
+ /** Full case/record content. */
34
+ readonly ALL: "all";
35
+ /** No data access. */
36
+ readonly NONE: "none";
37
+ };
38
+ type ShareViewValue = (typeof SHARE_VIEW)[keyof typeof SHARE_VIEW];
39
+ declare const SHARE_VIEW_VALUES: readonly ["sys_info", "all", "none"];
40
+ declare const SHARE_VIEW_LABELS: Record<ShareViewValue, string>;
41
+ declare const PLATFORM_TOOL: {
42
+ readonly PAVE: "PAVE";
43
+ readonly ECHO: "ECHO";
44
+ readonly LEADS: "LEADS";
45
+ readonly THREAD: "THREAD";
46
+ readonly TRAIL: "TRAIL";
47
+ readonly PLATFORM: "PLATFORM";
48
+ };
49
+ type PlatformToolValue = (typeof PLATFORM_TOOL)[keyof typeof PLATFORM_TOOL];
50
+ declare const PLATFORM_TOOL_VALUES: readonly ["PAVE", "ECHO", "LEADS", "THREAD", "TRAIL", "PLATFORM"];
51
+ declare const PLATFORM_TOOL_LABELS: Record<PlatformToolValue, string>;
52
+ declare const ROLE_LEVEL: {
53
+ /** User-facing roles (staff, volunteers, practitioners). */
54
+ readonly OPERATIONAL: "operational";
55
+ /** Agency-level admin roles. */
56
+ readonly AGENCY: "agency";
57
+ /** Team-level admin roles. */
58
+ readonly TEAM: "team";
59
+ /** HTI-wide platform admin. */
60
+ readonly PLATFORM: "platform";
61
+ /** External governance/oversight roles. */
62
+ readonly OVERSIGHT: "oversight";
63
+ };
64
+ type RoleLevelValue = (typeof ROLE_LEVEL)[keyof typeof ROLE_LEVEL];
65
+ declare const ROLE_LEVEL_VALUES: readonly ["operational", "agency", "team", "platform", "oversight"];
66
+ declare const ROLE_LEVEL_LABELS: Record<RoleLevelValue, string>;
67
+ declare const FUNCTION_STATUS: {
68
+ readonly NOT_STARTED: "Not started";
69
+ readonly DEFINED_NEW: "Defined; new function";
70
+ readonly DEFINED_EXISTING: "Defined; existing PAVE function";
71
+ readonly FUNCTIONAL: "Functional on all apps";
72
+ readonly FUTURE: "Future function (not v1)";
73
+ };
74
+ type FunctionStatusValue = (typeof FUNCTION_STATUS)[keyof typeof FUNCTION_STATUS];
75
+ declare const FUNCTION_STATUS_VALUES: readonly ["Not started", "Defined; new function", "Defined; existing PAVE function", "Functional on all apps", "Future function (not v1)"];
76
+ declare const FUNCTION_STATUS_LABELS: Record<FunctionStatusValue, string>;
77
+
78
+ export { FUNCTION_STATUS as F, PERMISSION_STATE as P, ROLE_LEVEL as R, SHARE_VIEW as S, FUNCTION_STATUS_LABELS as a, FUNCTION_STATUS_VALUES as b, type FunctionStatusValue as c, PERMISSION_STATE_DISPLAY as d, PERMISSION_STATE_LABELS as e, PERMISSION_STATE_VALUES as f, PLATFORM_TOOL as g, PLATFORM_TOOL_LABELS as h, PLATFORM_TOOL_VALUES as i, type PermissionStateValue as j, type PlatformToolValue as k, ROLE_LEVEL_LABELS as l, ROLE_LEVEL_VALUES as m, type RoleLevelValue as n, SHARE_VIEW_LABELS as o, SHARE_VIEW_VALUES as p, type ShareViewValue as q };
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @htilabs/platform-common-models — Platform Authorization Constants
3
+ *
4
+ * Enums and labels for the platform role/function permission model.
5
+ * Includes permission states, share view levels, tool codes, role levels,
6
+ * and function implementation statuses.
7
+ *
8
+ * Source: PLATFORM_AUTH_SPEC.md Sections 5 + 6
9
+ */
10
+ declare const PERMISSION_STATE: {
11
+ /** Role can always perform this function (mandatory, cannot disable). */
12
+ readonly ALWAYS: "ALWAYS";
13
+ /** Default On — user can opt off. */
14
+ readonly PREF_YES: "PREF_YES";
15
+ /** Default Off — user can opt in. */
16
+ readonly PREF_NO: "PREF_NO";
17
+ /** Role is explicitly barred from this function. */
18
+ readonly NEVER: "NEVER";
19
+ };
20
+ type PermissionStateValue = (typeof PERMISSION_STATE)[keyof typeof PERMISSION_STATE];
21
+ declare const PERMISSION_STATE_VALUES: readonly ["ALWAYS", "PREF_YES", "PREF_NO", "NEVER"];
22
+ declare const PERMISSION_STATE_LABELS: Record<PermissionStateValue, string>;
23
+ /** UI display metadata for permission states (colors, icons). */
24
+ declare const PERMISSION_STATE_DISPLAY: Record<PermissionStateValue, {
25
+ label: string;
26
+ color: string;
27
+ bgColor: string;
28
+ icon: string;
29
+ }>;
30
+ declare const SHARE_VIEW: {
31
+ /** System metadata only (partial access). */
32
+ readonly SYS_INFO: "sys_info";
33
+ /** Full case/record content. */
34
+ readonly ALL: "all";
35
+ /** No data access. */
36
+ readonly NONE: "none";
37
+ };
38
+ type ShareViewValue = (typeof SHARE_VIEW)[keyof typeof SHARE_VIEW];
39
+ declare const SHARE_VIEW_VALUES: readonly ["sys_info", "all", "none"];
40
+ declare const SHARE_VIEW_LABELS: Record<ShareViewValue, string>;
41
+ declare const PLATFORM_TOOL: {
42
+ readonly PAVE: "PAVE";
43
+ readonly ECHO: "ECHO";
44
+ readonly LEADS: "LEADS";
45
+ readonly THREAD: "THREAD";
46
+ readonly TRAIL: "TRAIL";
47
+ readonly PLATFORM: "PLATFORM";
48
+ };
49
+ type PlatformToolValue = (typeof PLATFORM_TOOL)[keyof typeof PLATFORM_TOOL];
50
+ declare const PLATFORM_TOOL_VALUES: readonly ["PAVE", "ECHO", "LEADS", "THREAD", "TRAIL", "PLATFORM"];
51
+ declare const PLATFORM_TOOL_LABELS: Record<PlatformToolValue, string>;
52
+ declare const ROLE_LEVEL: {
53
+ /** User-facing roles (staff, volunteers, practitioners). */
54
+ readonly OPERATIONAL: "operational";
55
+ /** Agency-level admin roles. */
56
+ readonly AGENCY: "agency";
57
+ /** Team-level admin roles. */
58
+ readonly TEAM: "team";
59
+ /** HTI-wide platform admin. */
60
+ readonly PLATFORM: "platform";
61
+ /** External governance/oversight roles. */
62
+ readonly OVERSIGHT: "oversight";
63
+ };
64
+ type RoleLevelValue = (typeof ROLE_LEVEL)[keyof typeof ROLE_LEVEL];
65
+ declare const ROLE_LEVEL_VALUES: readonly ["operational", "agency", "team", "platform", "oversight"];
66
+ declare const ROLE_LEVEL_LABELS: Record<RoleLevelValue, string>;
67
+ declare const FUNCTION_STATUS: {
68
+ readonly NOT_STARTED: "Not started";
69
+ readonly DEFINED_NEW: "Defined; new function";
70
+ readonly DEFINED_EXISTING: "Defined; existing PAVE function";
71
+ readonly FUNCTIONAL: "Functional on all apps";
72
+ readonly FUTURE: "Future function (not v1)";
73
+ };
74
+ type FunctionStatusValue = (typeof FUNCTION_STATUS)[keyof typeof FUNCTION_STATUS];
75
+ declare const FUNCTION_STATUS_VALUES: readonly ["Not started", "Defined; new function", "Defined; existing PAVE function", "Functional on all apps", "Future function (not v1)"];
76
+ declare const FUNCTION_STATUS_LABELS: Record<FunctionStatusValue, string>;
77
+
78
+ export { FUNCTION_STATUS as F, PERMISSION_STATE as P, ROLE_LEVEL as R, SHARE_VIEW as S, FUNCTION_STATUS_LABELS as a, FUNCTION_STATUS_VALUES as b, type FunctionStatusValue as c, PERMISSION_STATE_DISPLAY as d, PERMISSION_STATE_LABELS as e, PERMISSION_STATE_VALUES as f, PLATFORM_TOOL as g, PLATFORM_TOOL_LABELS as h, PLATFORM_TOOL_VALUES as i, type PermissionStateValue as j, type PlatformToolValue as k, ROLE_LEVEL_LABELS as l, ROLE_LEVEL_VALUES as m, type RoleLevelValue as n, SHARE_VIEW_LABELS as o, SHARE_VIEW_VALUES as p, type ShareViewValue as q };
@@ -21,11 +21,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var schemas_exports = {};
22
22
  __export(schemas_exports, {
23
23
  AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS: () => AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS,
24
+ ORGANIZATION_PROGRAM_VALIDATED_UPDATE_OPS: () => ORGANIZATION_PROGRAM_VALIDATED_UPDATE_OPS,
24
25
  ORG_TYPE_FIELD_NAMES: () => ORG_TYPE_FIELD_NAMES,
26
+ PROGRAM_REVIEW_STATUS: () => PROGRAM_REVIEW_STATUS,
27
+ PROGRAM_REVIEW_STATUS_VALUES: () => PROGRAM_REVIEW_STATUS_VALUES,
25
28
  TEAM_MODEL_NAME: () => TEAM_MODEL_NAME,
26
29
  VSP_TWO_STEP_ISSUE: () => VSP_TWO_STEP_ISSUE,
27
30
  addAgencyOrgTypeFields: () => addAgencyOrgTypeFields,
28
31
  addOrgTypeFields: () => addOrgTypeFields,
32
+ addOrganizationProgramsField: () => addOrganizationProgramsField,
29
33
  addTeamDirectoryFields: () => addTeamDirectoryFields,
30
34
  addressSchema: () => addressSchema,
31
35
  agencyOrgTypeSchemaDefinition: () => agencyOrgTypeSchemaDefinition,
@@ -33,6 +37,8 @@ __export(schemas_exports, {
33
37
  buildCvcEntrySchema: () => buildCvcEntrySchema,
34
38
  buildCvcRegistrySchema: () => buildCvcRegistrySchema,
35
39
  buildFormSchema: () => buildFormSchema,
40
+ buildOrganizationProgramSchema: () => buildOrganizationProgramSchema,
41
+ buildOrganizationProgramsFieldDefinition: () => buildOrganizationProgramsFieldDefinition,
36
42
  buildPlatformFunctionSchema: () => buildPlatformFunctionSchema,
37
43
  buildPlatformRoleSchema: () => buildPlatformRoleSchema,
38
44
  buildQuestionSchema: () => buildQuestionSchema,
@@ -49,10 +55,13 @@ __export(schemas_exports, {
49
55
  formSchemaOptions: () => formSchemaOptions,
50
56
  formSectionRefSchema: () => formSectionRefSchema,
51
57
  guidanceSchema: () => guidanceSchema,
58
+ isLiveOrganizationProgram: () => isLiveOrganizationProgram,
59
+ isProgramReviewStatus: () => isProgramReviewStatus,
52
60
  layoutSchema: () => layoutSchema,
53
61
  mirrorOrgTypeFields: () => mirrorOrgTypeFields,
54
62
  orgTypeFieldsDiffer: () => orgTypeFieldsDiffer,
55
63
  orgTypeSchemaDefinition: () => orgTypeSchemaDefinition,
64
+ organizationProgramSchemaDefinition: () => organizationProgramSchemaDefinition,
56
65
  personNameSchema: () => personNameSchema,
57
66
  phoneSchema: () => phoneSchema,
58
67
  platformFunctionSchemaDefinition: () => platformFunctionSchemaDefinition,
@@ -5862,14 +5871,104 @@ function orgTypeFieldsDiffer(org, agency) {
5862
5871
  const b = pickOrgTypeFields(agency);
5863
5872
  return ORG_TYPE_FIELD_NAMES.filter((k) => a[k] !== b[k]);
5864
5873
  }
5874
+
5875
+ // src/schemas/organization-program.ts
5876
+ var import_mongoose12 = require("mongoose");
5877
+ var PROGRAM_REVIEW_STATUS = {
5878
+ PENDING: "pending",
5879
+ CONFIRMED: "confirmed",
5880
+ REJECTED: "rejected"
5881
+ };
5882
+ var PROGRAM_REVIEW_STATUS_VALUES = Object.freeze([
5883
+ PROGRAM_REVIEW_STATUS.PENDING,
5884
+ PROGRAM_REVIEW_STATUS.CONFIRMED,
5885
+ PROGRAM_REVIEW_STATUS.REJECTED
5886
+ ]);
5887
+ function isProgramReviewStatus(value) {
5888
+ return typeof value === "string" && PROGRAM_REVIEW_STATUS_VALUES.includes(value);
5889
+ }
5890
+ var organizationProgramSchemaDefinition = {
5891
+ /** Stable identifier for the program within its Organization (server-minted). */
5892
+ programId: { type: String, required: true },
5893
+ /** Human-facing program name (canon `label`). */
5894
+ name: { type: String, required: true },
5895
+ /** Free-text program description. */
5896
+ description: { type: String, required: false },
5897
+ /** Lifecycle code; a `retired` program is not offered to pickers. */
5898
+ status: { type: String, required: false },
5899
+ /** Default sharing-policy code applied when sharing to this program (ADR D13). */
5900
+ defaultSharingPolicy: { type: String, required: false },
5901
+ /**
5902
+ * pending · confirmed · rejected for a program named inside an app; absent on
5903
+ * a steward row. A `rejected` row is never offered and never captures its
5904
+ * name on a later add (a new row is minted).
5905
+ */
5906
+ reviewStatus: {
5907
+ type: String,
5908
+ required: false,
5909
+ enum: [...PROGRAM_REVIEW_STATUS_VALUES]
5910
+ },
5911
+ /** The seat (user id) that named it inside an app. */
5912
+ addedBy: { type: String, required: false },
5913
+ /** The app it was NAMED in (`pave` · `thread` · `leads` · `platform`). */
5914
+ addedInApp: { type: String, required: false },
5915
+ /** The session it was named in, when there was one. */
5916
+ addedInSession: { type: String, required: false }
5917
+ };
5918
+ function buildOrganizationProgramSchema() {
5919
+ return new import_mongoose12.Schema(organizationProgramSchemaDefinition, { _id: false });
5920
+ }
5921
+ function buildOrganizationProgramsFieldDefinition() {
5922
+ return {
5923
+ programs: {
5924
+ type: [buildOrganizationProgramSchema()],
5925
+ required: false,
5926
+ default: void 0
5927
+ }
5928
+ };
5929
+ }
5930
+ var ORGANIZATION_PROGRAM_VALIDATED_UPDATE_OPS = Object.freeze([
5931
+ "updateOne",
5932
+ "updateMany",
5933
+ "findOneAndUpdate"
5934
+ ]);
5935
+ function addOrganizationProgramsField(schema, options = {}) {
5936
+ if (schema.path("programs")) {
5937
+ console.warn(
5938
+ "[platform-common-models] addOrganizationProgramsField: replacing the schema's own `programs` path with the shared fragment; pass `{ select: false }` here if that is the consumer's read posture."
5939
+ );
5940
+ }
5941
+ schema.add({
5942
+ programs: {
5943
+ ...buildOrganizationProgramsFieldDefinition().programs,
5944
+ ...options.select !== void 0 ? { select: options.select } : {}
5945
+ }
5946
+ });
5947
+ if (options.validateOnUpdate ?? true) {
5948
+ schema.pre(
5949
+ [...ORGANIZATION_PROGRAM_VALIDATED_UPDATE_OPS],
5950
+ function() {
5951
+ applyRunValidatorsIfUnset(this);
5952
+ }
5953
+ );
5954
+ }
5955
+ return schema;
5956
+ }
5957
+ function isLiveOrganizationProgram(row) {
5958
+ return row.status !== "retired" && row.reviewStatus !== PROGRAM_REVIEW_STATUS.REJECTED;
5959
+ }
5865
5960
  // Annotate the CommonJS export names for ESM import in node:
5866
5961
  0 && (module.exports = {
5867
5962
  AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS,
5963
+ ORGANIZATION_PROGRAM_VALIDATED_UPDATE_OPS,
5868
5964
  ORG_TYPE_FIELD_NAMES,
5965
+ PROGRAM_REVIEW_STATUS,
5966
+ PROGRAM_REVIEW_STATUS_VALUES,
5869
5967
  TEAM_MODEL_NAME,
5870
5968
  VSP_TWO_STEP_ISSUE,
5871
5969
  addAgencyOrgTypeFields,
5872
5970
  addOrgTypeFields,
5971
+ addOrganizationProgramsField,
5873
5972
  addTeamDirectoryFields,
5874
5973
  addressSchema,
5875
5974
  agencyOrgTypeSchemaDefinition,
@@ -5877,6 +5976,8 @@ function orgTypeFieldsDiffer(org, agency) {
5877
5976
  buildCvcEntrySchema,
5878
5977
  buildCvcRegistrySchema,
5879
5978
  buildFormSchema,
5979
+ buildOrganizationProgramSchema,
5980
+ buildOrganizationProgramsFieldDefinition,
5880
5981
  buildPlatformFunctionSchema,
5881
5982
  buildPlatformRoleSchema,
5882
5983
  buildQuestionSchema,
@@ -5893,10 +5994,13 @@ function orgTypeFieldsDiffer(org, agency) {
5893
5994
  formSchemaOptions,
5894
5995
  formSectionRefSchema,
5895
5996
  guidanceSchema,
5997
+ isLiveOrganizationProgram,
5998
+ isProgramReviewStatus,
5896
5999
  layoutSchema,
5897
6000
  mirrorOrgTypeFields,
5898
6001
  orgTypeFieldsDiffer,
5899
6002
  orgTypeSchemaDefinition,
6003
+ organizationProgramSchemaDefinition,
5900
6004
  personNameSchema,
5901
6005
  phoneSchema,
5902
6006
  platformFunctionSchemaDefinition,