@htilabs/platform-common-models 0.1.0-beta.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/dist/constants/index.cjs +1379 -0
- package/dist/constants/index.cjs.map +1 -0
- package/dist/constants/index.d.cts +528 -0
- package/dist/constants/index.d.ts +528 -0
- package/dist/constants/index.js +1252 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/index.cjs +2138 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1986 -0
- package/dist/index.js.map +1 -0
- package/dist/models/index.cjs +661 -0
- package/dist/models/index.cjs.map +1 -0
- package/dist/models/index.d.cts +204 -0
- package/dist/models/index.d.ts +204 -0
- package/dist/models/index.js +636 -0
- package/dist/models/index.js.map +1 -0
- package/dist/schemas/index.cjs +1405 -0
- package/dist/schemas/index.cjs.map +1 -0
- package/dist/schemas/index.d.cts +312 -0
- package/dist/schemas/index.d.ts +312 -0
- package/dist/schemas/index.js +1353 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/scoring-rule-BOkG46I3.d.cts +1179 -0
- package/dist/scoring-rule-BOkG46I3.d.ts +1179 -0
- package/dist/types/index.cjs +19 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +81 -0
- package/src/constants/ic.ts +1630 -0
- package/src/constants/index.ts +11 -0
- package/src/index.ts +30 -0
- package/src/models/formModel.ts +30 -0
- package/src/models/index.ts +72 -0
- package/src/models/questionModel.ts +30 -0
- package/src/models/scoringRuleModel.ts +33 -0
- package/src/models/sectionModel.ts +30 -0
- package/src/schemas/common.ts +118 -0
- package/src/schemas/form.ts +125 -0
- package/src/schemas/index.ts +70 -0
- package/src/schemas/question.ts +297 -0
- package/src/schemas/scoring-rule.ts +169 -0
- package/src/schemas/section.ts +158 -0
- package/src/types/index.ts +47 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types/index.ts
|
|
17
|
+
var types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@htilabs/platform-common-models",
|
|
3
|
+
"version": "0.1.0-beta.0",
|
|
4
|
+
"description": "Shared constants, types, and models for HTI Labs applications",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./constants": {
|
|
16
|
+
"types": "./dist/constants/index.d.ts",
|
|
17
|
+
"import": "./dist/constants/index.js",
|
|
18
|
+
"require": "./dist/constants/index.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./types": {
|
|
21
|
+
"types": "./dist/types/index.d.ts",
|
|
22
|
+
"import": "./dist/types/index.js",
|
|
23
|
+
"require": "./dist/types/index.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./schemas": {
|
|
26
|
+
"types": "./dist/schemas/index.d.ts",
|
|
27
|
+
"import": "./dist/schemas/index.js",
|
|
28
|
+
"require": "./dist/schemas/index.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./models": {
|
|
31
|
+
"types": "./dist/models/index.d.ts",
|
|
32
|
+
"import": "./dist/models/index.js",
|
|
33
|
+
"require": "./dist/models/index.cjs"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist",
|
|
38
|
+
"src"
|
|
39
|
+
],
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsup",
|
|
42
|
+
"dev": "tsup --watch",
|
|
43
|
+
"typecheck": "tsc --noEmit",
|
|
44
|
+
"lint": "eslint src --ext .ts",
|
|
45
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
46
|
+
"clean": "rm -rf dist",
|
|
47
|
+
"prepublishOnly": "npm run build"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"hti",
|
|
51
|
+
"platform-common",
|
|
52
|
+
"constants",
|
|
53
|
+
"models",
|
|
54
|
+
"types"
|
|
55
|
+
],
|
|
56
|
+
"author": "HTI Labs",
|
|
57
|
+
"license": "UNLICENSED",
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@types/node": "^20.11.0",
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
61
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
62
|
+
"eslint": "^8.57.0",
|
|
63
|
+
"mongoose": "^9.3.1",
|
|
64
|
+
"tsup": "^8.0.0",
|
|
65
|
+
"typescript": "^5.3.0"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"zod": "^3.22.0"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"mongoose": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependenciesMeta": {
|
|
74
|
+
"mongoose": {
|
|
75
|
+
"optional": true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"engines": {
|
|
79
|
+
"node": ">=18.0.0"
|
|
80
|
+
}
|
|
81
|
+
}
|