@timeback/caliper 0.2.2-beta.20260422095241 → 0.3.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/index.js +49 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2015,15 +2015,48 @@ var QtiFeedbackInline = z11.object({
|
|
|
2015
2015
|
identifier: NonEmptyString,
|
|
2016
2016
|
showHide: QtiShowHide,
|
|
2017
2017
|
content: z11.string(),
|
|
2018
|
-
class: z11.array(z11.string())
|
|
2018
|
+
class: z11.array(z11.string()).optional()
|
|
2019
2019
|
}).strict();
|
|
2020
2020
|
var QtiFeedbackBlock = z11.object({
|
|
2021
2021
|
outcomeIdentifier: NonEmptyString,
|
|
2022
2022
|
identifier: NonEmptyString,
|
|
2023
2023
|
showHide: QtiShowHide,
|
|
2024
2024
|
content: z11.string(),
|
|
2025
|
-
class: z11.array(z11.string())
|
|
2025
|
+
class: z11.array(z11.string()).optional()
|
|
2026
2026
|
}).strict();
|
|
2027
|
+
var QtiInteractionChoice = z11.object({
|
|
2028
|
+
identifier: NonEmptyString,
|
|
2029
|
+
content: z11.string(),
|
|
2030
|
+
feedbackInline: z11.string().nullable().optional(),
|
|
2031
|
+
feedbackOutcomeIdentifier: NonEmptyString.optional()
|
|
2032
|
+
}).loose();
|
|
2033
|
+
var QtiQuestionStructure = z11.object({
|
|
2034
|
+
prompt: z11.string().optional(),
|
|
2035
|
+
choices: z11.array(QtiInteractionChoice).optional()
|
|
2036
|
+
}).loose();
|
|
2037
|
+
var QtiInteractionAttributes = z11.object({
|
|
2038
|
+
"expected-length": z11.number().int().nonnegative().optional(),
|
|
2039
|
+
"pattern-mask": z11.string().optional(),
|
|
2040
|
+
placeholder: z11.string().optional()
|
|
2041
|
+
}).loose();
|
|
2042
|
+
var QtiAssessmentItemInteraction = z11.object({
|
|
2043
|
+
type: QtiAssessmentItemType,
|
|
2044
|
+
responseIdentifier: NonEmptyString,
|
|
2045
|
+
shuffle: z11.boolean().optional(),
|
|
2046
|
+
maxChoices: z11.number().int().nonnegative().optional(),
|
|
2047
|
+
attributes: QtiInteractionAttributes.optional(),
|
|
2048
|
+
questionStructure: QtiQuestionStructure
|
|
2049
|
+
}).loose();
|
|
2050
|
+
var QtiRubric = z11.object({
|
|
2051
|
+
use: NonEmptyString,
|
|
2052
|
+
view: NonEmptyString,
|
|
2053
|
+
body: z11.string()
|
|
2054
|
+
}).loose();
|
|
2055
|
+
var QtiStimulusReference = z11.object({
|
|
2056
|
+
identifier: NonEmptyString,
|
|
2057
|
+
href: NonEmptyString.optional(),
|
|
2058
|
+
title: z11.string().optional()
|
|
2059
|
+
}).loose();
|
|
2027
2060
|
var QtiStylesheet = z11.object({
|
|
2028
2061
|
href: NonEmptyString,
|
|
2029
2062
|
type: NonEmptyString
|
|
@@ -2034,6 +2067,7 @@ var QtiCatalogInfo = z11.object({
|
|
|
2034
2067
|
content: z11.string()
|
|
2035
2068
|
}).strict();
|
|
2036
2069
|
var QtiPaginationParams = z11.object({
|
|
2070
|
+
query: z11.string().optional(),
|
|
2037
2071
|
page: z11.number().int().positive().optional(),
|
|
2038
2072
|
limit: z11.number().int().positive().optional(),
|
|
2039
2073
|
sort: z11.string().optional(),
|
|
@@ -2045,31 +2079,41 @@ var QtiAssessmentItemXmlCreateInput = z11.object({
|
|
|
2045
2079
|
metadata: QtiItemMetadata.optional()
|
|
2046
2080
|
}).strict();
|
|
2047
2081
|
var QtiAssessmentItemJsonCreateInput = z11.object({
|
|
2082
|
+
format: z11.literal("json").optional(),
|
|
2048
2083
|
identifier: NonEmptyString,
|
|
2049
2084
|
title: NonEmptyString,
|
|
2050
2085
|
type: QtiAssessmentItemType,
|
|
2051
2086
|
qtiVersion: z11.string().optional(),
|
|
2052
2087
|
timeDependent: z11.boolean().optional(),
|
|
2053
2088
|
adaptive: z11.boolean().optional(),
|
|
2089
|
+
preInteraction: z11.string().optional(),
|
|
2090
|
+
interaction: QtiAssessmentItemInteraction.optional(),
|
|
2091
|
+
postInteraction: z11.string().optional(),
|
|
2054
2092
|
responseDeclarations: z11.array(QtiResponseDeclaration).optional(),
|
|
2055
2093
|
outcomeDeclarations: z11.array(QtiOutcomeDeclaration).optional(),
|
|
2056
2094
|
responseProcessing: QtiResponseProcessing.optional(),
|
|
2057
2095
|
metadata: QtiItemMetadata.optional(),
|
|
2058
2096
|
modalFeedback: z11.array(QtiModalFeedback).optional(),
|
|
2059
2097
|
feedbackInline: z11.array(QtiFeedbackInline).optional(),
|
|
2060
|
-
feedbackBlock: z11.array(QtiFeedbackBlock).optional()
|
|
2098
|
+
feedbackBlock: z11.array(QtiFeedbackBlock).optional(),
|
|
2099
|
+
rubrics: z11.array(QtiRubric).optional(),
|
|
2100
|
+
stimulus: QtiStimulusReference.optional()
|
|
2061
2101
|
}).strict();
|
|
2062
2102
|
var QtiAssessmentItemCreateInput = z11.union([
|
|
2063
2103
|
QtiAssessmentItemXmlCreateInput,
|
|
2064
2104
|
QtiAssessmentItemJsonCreateInput
|
|
2065
2105
|
]);
|
|
2066
2106
|
var QtiAssessmentItemUpdateInput = z11.object({
|
|
2107
|
+
format: z11.literal("json").optional(),
|
|
2067
2108
|
identifier: NonEmptyString.optional(),
|
|
2068
2109
|
title: NonEmptyString,
|
|
2069
2110
|
type: QtiAssessmentItemType,
|
|
2070
2111
|
qtiVersion: z11.string().optional(),
|
|
2071
2112
|
timeDependent: z11.boolean().optional(),
|
|
2072
2113
|
adaptive: z11.boolean().optional(),
|
|
2114
|
+
preInteraction: z11.string().optional(),
|
|
2115
|
+
interaction: QtiAssessmentItemInteraction.optional(),
|
|
2116
|
+
postInteraction: z11.string().optional(),
|
|
2073
2117
|
responseDeclarations: z11.array(QtiResponseDeclaration).optional(),
|
|
2074
2118
|
outcomeDeclarations: z11.array(QtiOutcomeDeclaration).optional(),
|
|
2075
2119
|
responseProcessing: QtiResponseProcessing.optional(),
|
|
@@ -2077,6 +2121,8 @@ var QtiAssessmentItemUpdateInput = z11.object({
|
|
|
2077
2121
|
modalFeedback: z11.array(QtiModalFeedback).optional(),
|
|
2078
2122
|
feedbackInline: z11.array(QtiFeedbackInline).optional(),
|
|
2079
2123
|
feedbackBlock: z11.array(QtiFeedbackBlock).optional(),
|
|
2124
|
+
rubrics: z11.array(QtiRubric).optional(),
|
|
2125
|
+
stimulus: QtiStimulusReference.optional(),
|
|
2080
2126
|
rawXml: z11.string(),
|
|
2081
2127
|
content: z11.record(z11.string(), z11.unknown())
|
|
2082
2128
|
}).strict();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timeback/caliper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Caliper Analytics client SDK for Timeback",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test:e2e": "vitest run --config vitest.e2e.config.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@timeback/types": "0.
|
|
34
|
+
"@timeback/types": "0.3.0",
|
|
35
35
|
"zod": "^4.2.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|