@nakafa/aksara-contracts 0.48.5 → 0.48.7
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/artifact/spec.js +6 -8
- package/dist/math/base.d.ts +3 -6
- package/dist/math/resolution.js +10 -7
- package/dist/projection/verify.js +4 -4
- package/dist/question/rubric.js +4 -1
- package/dist/quran/notes.js +5 -6
- package/dist/release/identity.d.ts +33 -0
- package/dist/release/identity.js +14 -0
- package/dist/release/mismatch.d.ts +6 -0
- package/dist/release/mismatch.js +6 -0
- package/dist/release/policy.js +3 -7
- package/dist/release/result/digest.d.ts +4 -4
- package/dist/release/rollback/spec.js +8 -16
- package/dist/release/snapshot/data.js +7 -12
- package/dist/release/snapshot/verify.d.ts +130 -130
- package/dist/release/verify.js +2 -6
- package/dist/runtime/protected/spec.js +1 -1
- package/dist/runtime/spec.d.ts +15 -15
- package/dist/runtime/verify.js +10 -9
- package/dist/transport/request.d.ts +1313 -1313
- package/dist/transport/response.d.ts +198 -198
- package/dist/tryout/hash/catalog.d.ts +26 -26
- package/dist/tryout/scoring.d.ts +113 -8
- package/package.json +5 -1
package/dist/tryout/scoring.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Effect, MutableHashMap, MutableList, Schema } from "effect";
|
|
2
|
-
import type { TryoutCatalogRow
|
|
2
|
+
import type { TryoutCatalogRow } from "#contracts/tryout/catalog";
|
|
3
3
|
import type { TryoutPlacement } from "#contracts/tryout/placement";
|
|
4
|
-
import type { TryoutScoring } from "#contracts/tryout/spec";
|
|
5
4
|
declare const TryoutScoringError_base: Schema.Class<TryoutScoringError, Schema.TaggedStruct<"TryoutScoringError", {
|
|
6
5
|
readonly code: Schema.Literals<readonly ["marks", "rubric", "strategy"]>;
|
|
7
6
|
readonly identity: Schema.String;
|
|
@@ -16,9 +15,62 @@ export declare class TryoutScoringError extends TryoutScoringError_base {
|
|
|
16
15
|
}
|
|
17
16
|
/** Creates empty scoring facts for one snapshot verification pass. */
|
|
18
17
|
export declare function makeTryoutScoringFacts(): {
|
|
19
|
-
readonly exams: MutableHashMap.MutableHashMap<string,
|
|
20
|
-
readonly sections: MutableList.MutableList<
|
|
21
|
-
|
|
18
|
+
readonly exams: MutableHashMap.MutableHashMap<string, "irt" | "penalized" | "raw">;
|
|
19
|
+
readonly sections: MutableList.MutableList<{
|
|
20
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
21
|
+
readonly description?: string | undefined;
|
|
22
|
+
readonly graph: {
|
|
23
|
+
readonly alignmentId: string;
|
|
24
|
+
readonly assetId: string;
|
|
25
|
+
readonly conceptId: string;
|
|
26
|
+
readonly learningObjectId: string;
|
|
27
|
+
readonly lensId: string;
|
|
28
|
+
};
|
|
29
|
+
readonly sourceRevision: string;
|
|
30
|
+
readonly title: string;
|
|
31
|
+
readonly countryKey: string;
|
|
32
|
+
readonly examKey: string;
|
|
33
|
+
readonly kind: "section";
|
|
34
|
+
readonly marks?: {
|
|
35
|
+
readonly blank: number;
|
|
36
|
+
readonly correct: number;
|
|
37
|
+
readonly wrong: number;
|
|
38
|
+
};
|
|
39
|
+
readonly order: number;
|
|
40
|
+
readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
|
|
41
|
+
readonly questionCount: number;
|
|
42
|
+
readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
43
|
+
readonly sectionKey: string;
|
|
44
|
+
readonly setKey: string;
|
|
45
|
+
readonly timeLimitSeconds: number;
|
|
46
|
+
readonly trackKey: string;
|
|
47
|
+
readonly visibility: "internal-entry" | "visible";
|
|
48
|
+
}>;
|
|
49
|
+
readonly sets: MutableHashMap.MutableHashMap<string, {
|
|
50
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
51
|
+
readonly description?: string | undefined;
|
|
52
|
+
readonly graph: {
|
|
53
|
+
readonly alignmentId: string;
|
|
54
|
+
readonly assetId: string;
|
|
55
|
+
readonly conceptId: string;
|
|
56
|
+
readonly learningObjectId: string;
|
|
57
|
+
readonly lensId: string;
|
|
58
|
+
};
|
|
59
|
+
readonly sourceRevision: string;
|
|
60
|
+
readonly title: string;
|
|
61
|
+
readonly countryKey: string;
|
|
62
|
+
readonly examKey: string;
|
|
63
|
+
readonly internalEntrySectionKey?: string | undefined;
|
|
64
|
+
readonly kind: "set";
|
|
65
|
+
readonly order: number;
|
|
66
|
+
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
67
|
+
readonly questionCount: number;
|
|
68
|
+
readonly scoringStrategy: "irt" | "penalized" | "raw";
|
|
69
|
+
readonly sectionCount: number;
|
|
70
|
+
readonly setKey: string;
|
|
71
|
+
readonly trackKey: string;
|
|
72
|
+
readonly visibleSectionCount: number;
|
|
73
|
+
}>;
|
|
22
74
|
};
|
|
23
75
|
/** Exam strategies, sets, and sections gathered while a catalog is read. */
|
|
24
76
|
export type TryoutScoringFacts = ReturnType<typeof makeTryoutScoringFacts>;
|
|
@@ -29,9 +81,62 @@ export declare function recordTryoutScoringFacts(facts: TryoutScoringFacts, row:
|
|
|
29
81
|
* sections of penalized sets, once the complete catalog has been recorded.
|
|
30
82
|
*/
|
|
31
83
|
export declare const validateTryoutScoringFacts: (facts: {
|
|
32
|
-
readonly exams: MutableHashMap.MutableHashMap<string,
|
|
33
|
-
readonly sections: MutableList.MutableList<
|
|
34
|
-
|
|
84
|
+
readonly exams: MutableHashMap.MutableHashMap<string, "irt" | "penalized" | "raw">;
|
|
85
|
+
readonly sections: MutableList.MutableList<{
|
|
86
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
87
|
+
readonly description?: string | undefined;
|
|
88
|
+
readonly graph: {
|
|
89
|
+
readonly alignmentId: string;
|
|
90
|
+
readonly assetId: string;
|
|
91
|
+
readonly conceptId: string;
|
|
92
|
+
readonly learningObjectId: string;
|
|
93
|
+
readonly lensId: string;
|
|
94
|
+
};
|
|
95
|
+
readonly sourceRevision: string;
|
|
96
|
+
readonly title: string;
|
|
97
|
+
readonly countryKey: string;
|
|
98
|
+
readonly examKey: string;
|
|
99
|
+
readonly kind: "section";
|
|
100
|
+
readonly marks?: {
|
|
101
|
+
readonly blank: number;
|
|
102
|
+
readonly correct: number;
|
|
103
|
+
readonly wrong: number;
|
|
104
|
+
};
|
|
105
|
+
readonly order: number;
|
|
106
|
+
readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
|
|
107
|
+
readonly questionCount: number;
|
|
108
|
+
readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
|
|
109
|
+
readonly sectionKey: string;
|
|
110
|
+
readonly setKey: string;
|
|
111
|
+
readonly timeLimitSeconds: number;
|
|
112
|
+
readonly trackKey: string;
|
|
113
|
+
readonly visibility: "internal-entry" | "visible";
|
|
114
|
+
}>;
|
|
115
|
+
readonly sets: MutableHashMap.MutableHashMap<string, {
|
|
116
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
117
|
+
readonly description?: string | undefined;
|
|
118
|
+
readonly graph: {
|
|
119
|
+
readonly alignmentId: string;
|
|
120
|
+
readonly assetId: string;
|
|
121
|
+
readonly conceptId: string;
|
|
122
|
+
readonly learningObjectId: string;
|
|
123
|
+
readonly lensId: string;
|
|
124
|
+
};
|
|
125
|
+
readonly sourceRevision: string;
|
|
126
|
+
readonly title: string;
|
|
127
|
+
readonly countryKey: string;
|
|
128
|
+
readonly examKey: string;
|
|
129
|
+
readonly internalEntrySectionKey?: string | undefined;
|
|
130
|
+
readonly kind: "set";
|
|
131
|
+
readonly order: number;
|
|
132
|
+
readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
133
|
+
readonly questionCount: number;
|
|
134
|
+
readonly scoringStrategy: "irt" | "penalized" | "raw";
|
|
135
|
+
readonly sectionCount: number;
|
|
136
|
+
readonly setKey: string;
|
|
137
|
+
readonly trackKey: string;
|
|
138
|
+
readonly visibleSectionCount: number;
|
|
139
|
+
}>;
|
|
35
140
|
}) => Effect.Effect<void, TryoutScoringError, never>;
|
|
36
141
|
/**
|
|
37
142
|
* Requires one rubric placement to belong to a raw-scored set, because a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nakafa/aksara-contracts",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.7",
|
|
4
4
|
"description": "Schemas and verification contracts for Nakafa content releases.",
|
|
5
5
|
"homepage": "https://github.com/nakafaai/aksara#readme",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -272,6 +272,10 @@
|
|
|
272
272
|
"types": "./dist/release/head.d.ts",
|
|
273
273
|
"import": "./dist/release/head.js"
|
|
274
274
|
},
|
|
275
|
+
"./release/identity": {
|
|
276
|
+
"types": "./dist/release/identity.d.ts",
|
|
277
|
+
"import": "./dist/release/identity.js"
|
|
278
|
+
},
|
|
275
279
|
"./release/current/evidence": {
|
|
276
280
|
"types": "./dist/release/current/evidence.d.ts",
|
|
277
281
|
"import": "./dist/release/current/evidence.js"
|