@htilabs/platform-common-models 0.1.0-beta.2 → 0.2.0-beta.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/dist/constants/index.cjs +164 -1779
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +72 -718
- package/dist/constants/index.d.ts +72 -718
- package/dist/constants/index.js +148 -1684
- package/dist/constants/index.js.map +1 -1
- package/dist/index.cjs +337 -1780
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +313 -1685
- package/dist/index.js.map +1 -1
- package/dist/models/index.cjs +306 -1
- package/dist/models/index.cjs.map +1 -1
- package/dist/models/index.d.cts +99 -11
- package/dist/models/index.d.ts +99 -11
- package/dist/models/index.js +304 -1
- package/dist/models/index.js.map +1 -1
- package/dist/{scoring-rule-liZlPytD.d.cts → platform-role-CcFTFHUr.d.cts} +185 -9
- package/dist/{scoring-rule-liZlPytD.d.ts → platform-role-CcFTFHUr.d.ts} +185 -9
- package/dist/schemas/index.cjs +287 -1585
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +281 -1585
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +44 -0
- package/dist/types/index.d.ts +44 -0
- package/package.json +1 -1
- package/src/constants/ic.ts +0 -1930
- package/src/constants/index.ts +1 -0
- package/src/constants/platform-auth.ts +189 -0
- package/src/models/index.ts +18 -1
- package/src/models/platformFunctionModel.ts +33 -0
- package/src/models/platformRoleModel.ts +33 -0
- package/src/schemas/index.ts +16 -0
- package/src/schemas/platform-function.ts +97 -0
- package/src/schemas/platform-role.ts +100 -0
- package/src/types/index.ts +14 -0
- package/src/types/platform-auth.ts +49 -0
package/dist/types/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["/**\n * @htilabs/platform-common-models - Types\n *\n * Shared TypeScript types for HTI Labs applications.\n * Type definitions are co-located with constants and exported from here.\n */\n\n// Re-export all types from constants\nexport type {\n DataQualityValue,\n IC5Value,\n IC13Value,\n IC13Category,\n RelationshipDynamicValue,\n RelationshipConcernValue,\n IC49Value,\n IC56Value,\n IC57Value,\n IC58Value,\n IC59Value,\n IC49ReferralOutcomeValue,\n IC49ReferralVerificationValue,\n SessionStateValue,\n RecordStateValue,\n InteractionTypeValue,\n IncidentInvolvementRoleValue,\n PersonRoleValue,\n IC4Value,\n IC22Value,\n IC23Value,\n IC24Value,\n IC25Value,\n AccommodationValue,\n MinorAdultStatusValue,\n ApparentAgeValue,\n AgeBinReportingValue,\n QuickStartTemplateId,\n SubmissionStateValue,\n FormStatusValue,\n QuestionFormatValue,\n AppScopeValue,\n FormTypeValue,\n UserStatusValue,\n IncidentParticipationRoleValue,\n PersonDisplayCategoryValue,\n PersonTypeValue,\n} from \"../constants/ic.js\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["/**\n * @htilabs/platform-common-models - Types\n *\n * Shared TypeScript types for HTI Labs applications.\n * Type definitions are co-located with constants and exported from here.\n */\n\n// Re-export all types from constants\nexport type {\n DataQualityValue,\n IC5Value,\n IC13Value,\n IC13Category,\n RelationshipDynamicValue,\n RelationshipConcernValue,\n IC49Value,\n IC56Value,\n IC57Value,\n IC58Value,\n IC59Value,\n IC49ReferralOutcomeValue,\n IC49ReferralVerificationValue,\n SessionStateValue,\n RecordStateValue,\n InteractionTypeValue,\n IncidentInvolvementRoleValue,\n PersonRoleValue,\n IC4Value,\n IC22Value,\n IC23Value,\n IC24Value,\n IC25Value,\n AccommodationValue,\n MinorAdultStatusValue,\n ApparentAgeValue,\n AgeBinReportingValue,\n QuickStartTemplateId,\n SubmissionStateValue,\n FormStatusValue,\n QuestionFormatValue,\n AppScopeValue,\n FormTypeValue,\n UserStatusValue,\n IncidentParticipationRoleValue,\n PersonDisplayCategoryValue,\n PersonTypeValue,\n} from \"../constants/ic.js\";\n\n// Re-export platform authorization types\nexport type {\n PermissionStateValue,\n ShareViewValue,\n PlatformToolValue,\n RoleLevelValue,\n FunctionStatusValue,\n} from \"../constants/platform-auth.js\";\n\nexport type {\n PlatformFunctionDef,\n PlatformRoleDef,\n} from \"./platform-auth.js\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1 +1,45 @@
|
|
|
1
|
+
import { PlatformToolValue, FunctionStatusValue, RoleLevelValue, ShareViewValue, PermissionStateValue } from '../constants/index.cjs';
|
|
1
2
|
export { AccommodationValue, AgeBinReportingValue, AppScopeValue, ApparentAgeValue, DataQualityValue, FormStatusValue, FormTypeValue, IC13Category, IC13Value, IC22Value, IC23Value, IC24Value, IC25Value, IC49ReferralOutcomeValue, IC49ReferralVerificationValue, IC49Value, IC4Value, IC56Value, IC57Value, IC58Value, IC59Value, IC5Value, IncidentInvolvementRoleValue, IncidentParticipationRoleValue, InteractionTypeValue, MinorAdultStatusValue, PersonDisplayCategoryValue, PersonRoleValue, PersonTypeValue, QuestionFormatValue, QuickStartTemplateId, RecordStateValue, RelationshipConcernValue, RelationshipDynamicValue, SessionStateValue, SubmissionStateValue, UserStatusValue } from '../constants/index.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @htilabs/platform-common-models — Platform Authorization Types
|
|
6
|
+
*
|
|
7
|
+
* Plain interfaces for platform role and function documents.
|
|
8
|
+
* These represent the logical shape of the data — no Mongoose dependency.
|
|
9
|
+
* Consumers add `_id: string` or `_id: ObjectId` depending on context.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* A platform function definition (action that can be performed).
|
|
14
|
+
* Stored in the `platformFunctions` collection.
|
|
15
|
+
*/
|
|
16
|
+
interface PlatformFunctionDef {
|
|
17
|
+
code: string;
|
|
18
|
+
label: string;
|
|
19
|
+
description: string;
|
|
20
|
+
category: string;
|
|
21
|
+
tools: PlatformToolValue[];
|
|
22
|
+
isAdminRelevant: boolean;
|
|
23
|
+
isUserRelevant: boolean;
|
|
24
|
+
isHtiOnly: boolean;
|
|
25
|
+
status: FunctionStatusValue;
|
|
26
|
+
sortOrder: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A platform role definition (permission bundle mapping functions).
|
|
30
|
+
* Stored in the `platformRoles` collection.
|
|
31
|
+
*/
|
|
32
|
+
interface PlatformRoleDef {
|
|
33
|
+
code: string;
|
|
34
|
+
label: string;
|
|
35
|
+
description: string;
|
|
36
|
+
level: RoleLevelValue;
|
|
37
|
+
tools: PlatformToolValue[];
|
|
38
|
+
shareView: ShareViewValue | null;
|
|
39
|
+
trainingRequirements: string | null;
|
|
40
|
+
isHtiOnly: boolean;
|
|
41
|
+
functions: Record<string, PermissionStateValue>;
|
|
42
|
+
sortOrder: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { FunctionStatusValue, PermissionStateValue, type PlatformFunctionDef, type PlatformRoleDef, PlatformToolValue, RoleLevelValue, ShareViewValue };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1,45 @@
|
|
|
1
|
+
import { PlatformToolValue, FunctionStatusValue, RoleLevelValue, ShareViewValue, PermissionStateValue } from '../constants/index.js';
|
|
1
2
|
export { AccommodationValue, AgeBinReportingValue, AppScopeValue, ApparentAgeValue, DataQualityValue, FormStatusValue, FormTypeValue, IC13Category, IC13Value, IC22Value, IC23Value, IC24Value, IC25Value, IC49ReferralOutcomeValue, IC49ReferralVerificationValue, IC49Value, IC4Value, IC56Value, IC57Value, IC58Value, IC59Value, IC5Value, IncidentInvolvementRoleValue, IncidentParticipationRoleValue, InteractionTypeValue, MinorAdultStatusValue, PersonDisplayCategoryValue, PersonRoleValue, PersonTypeValue, QuestionFormatValue, QuickStartTemplateId, RecordStateValue, RelationshipConcernValue, RelationshipDynamicValue, SessionStateValue, SubmissionStateValue, UserStatusValue } from '../constants/index.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @htilabs/platform-common-models — Platform Authorization Types
|
|
6
|
+
*
|
|
7
|
+
* Plain interfaces for platform role and function documents.
|
|
8
|
+
* These represent the logical shape of the data — no Mongoose dependency.
|
|
9
|
+
* Consumers add `_id: string` or `_id: ObjectId` depending on context.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* A platform function definition (action that can be performed).
|
|
14
|
+
* Stored in the `platformFunctions` collection.
|
|
15
|
+
*/
|
|
16
|
+
interface PlatformFunctionDef {
|
|
17
|
+
code: string;
|
|
18
|
+
label: string;
|
|
19
|
+
description: string;
|
|
20
|
+
category: string;
|
|
21
|
+
tools: PlatformToolValue[];
|
|
22
|
+
isAdminRelevant: boolean;
|
|
23
|
+
isUserRelevant: boolean;
|
|
24
|
+
isHtiOnly: boolean;
|
|
25
|
+
status: FunctionStatusValue;
|
|
26
|
+
sortOrder: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A platform role definition (permission bundle mapping functions).
|
|
30
|
+
* Stored in the `platformRoles` collection.
|
|
31
|
+
*/
|
|
32
|
+
interface PlatformRoleDef {
|
|
33
|
+
code: string;
|
|
34
|
+
label: string;
|
|
35
|
+
description: string;
|
|
36
|
+
level: RoleLevelValue;
|
|
37
|
+
tools: PlatformToolValue[];
|
|
38
|
+
shareView: ShareViewValue | null;
|
|
39
|
+
trainingRequirements: string | null;
|
|
40
|
+
isHtiOnly: boolean;
|
|
41
|
+
functions: Record<string, PermissionStateValue>;
|
|
42
|
+
sortOrder: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { FunctionStatusValue, PermissionStateValue, type PlatformFunctionDef, type PlatformRoleDef, PlatformToolValue, RoleLevelValue, ShareViewValue };
|