@timeback/core 0.2.4-beta.20260422071626 → 0.2.4-beta.20260423215532

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.
@@ -1927,15 +1927,48 @@ var QtiFeedbackInline = z11.object({
1927
1927
  identifier: NonEmptyString,
1928
1928
  showHide: QtiShowHide,
1929
1929
  content: z11.string(),
1930
- class: z11.array(z11.string())
1930
+ class: z11.array(z11.string()).optional()
1931
1931
  }).strict();
1932
1932
  var QtiFeedbackBlock = z11.object({
1933
1933
  outcomeIdentifier: NonEmptyString,
1934
1934
  identifier: NonEmptyString,
1935
1935
  showHide: QtiShowHide,
1936
1936
  content: z11.string(),
1937
- class: z11.array(z11.string())
1937
+ class: z11.array(z11.string()).optional()
1938
1938
  }).strict();
1939
+ var QtiInteractionChoice = z11.object({
1940
+ identifier: NonEmptyString,
1941
+ content: z11.string(),
1942
+ feedbackInline: z11.string().nullable().optional(),
1943
+ feedbackOutcomeIdentifier: NonEmptyString.optional()
1944
+ }).loose();
1945
+ var QtiQuestionStructure = z11.object({
1946
+ prompt: z11.string().optional(),
1947
+ choices: z11.array(QtiInteractionChoice).optional()
1948
+ }).loose();
1949
+ var QtiInteractionAttributes = z11.object({
1950
+ "expected-length": z11.number().int().nonnegative().optional(),
1951
+ "pattern-mask": z11.string().optional(),
1952
+ placeholder: z11.string().optional()
1953
+ }).loose();
1954
+ var QtiAssessmentItemInteraction = z11.object({
1955
+ type: QtiAssessmentItemType,
1956
+ responseIdentifier: NonEmptyString,
1957
+ shuffle: z11.boolean().optional(),
1958
+ maxChoices: z11.number().int().nonnegative().optional(),
1959
+ attributes: QtiInteractionAttributes.optional(),
1960
+ questionStructure: QtiQuestionStructure
1961
+ }).loose();
1962
+ var QtiRubric = z11.object({
1963
+ use: NonEmptyString,
1964
+ view: NonEmptyString,
1965
+ body: z11.string()
1966
+ }).loose();
1967
+ var QtiStimulusReference = z11.object({
1968
+ identifier: NonEmptyString,
1969
+ href: NonEmptyString.optional(),
1970
+ title: z11.string().optional()
1971
+ }).loose();
1939
1972
  var QtiStylesheet = z11.object({
1940
1973
  href: NonEmptyString,
1941
1974
  type: NonEmptyString
@@ -1946,6 +1979,7 @@ var QtiCatalogInfo = z11.object({
1946
1979
  content: z11.string()
1947
1980
  }).strict();
1948
1981
  var QtiPaginationParams = z11.object({
1982
+ query: z11.string().optional(),
1949
1983
  page: z11.number().int().positive().optional(),
1950
1984
  limit: z11.number().int().positive().optional(),
1951
1985
  sort: z11.string().optional(),
@@ -1957,31 +1991,41 @@ var QtiAssessmentItemXmlCreateInput = z11.object({
1957
1991
  metadata: QtiItemMetadata.optional()
1958
1992
  }).strict();
1959
1993
  var QtiAssessmentItemJsonCreateInput = z11.object({
1994
+ format: z11.literal("json").optional(),
1960
1995
  identifier: NonEmptyString,
1961
1996
  title: NonEmptyString,
1962
1997
  type: QtiAssessmentItemType,
1963
1998
  qtiVersion: z11.string().optional(),
1964
1999
  timeDependent: z11.boolean().optional(),
1965
2000
  adaptive: z11.boolean().optional(),
2001
+ preInteraction: z11.string().optional(),
2002
+ interaction: QtiAssessmentItemInteraction.optional(),
2003
+ postInteraction: z11.string().optional(),
1966
2004
  responseDeclarations: z11.array(QtiResponseDeclaration).optional(),
1967
2005
  outcomeDeclarations: z11.array(QtiOutcomeDeclaration).optional(),
1968
2006
  responseProcessing: QtiResponseProcessing.optional(),
1969
2007
  metadata: QtiItemMetadata.optional(),
1970
2008
  modalFeedback: z11.array(QtiModalFeedback).optional(),
1971
2009
  feedbackInline: z11.array(QtiFeedbackInline).optional(),
1972
- feedbackBlock: z11.array(QtiFeedbackBlock).optional()
2010
+ feedbackBlock: z11.array(QtiFeedbackBlock).optional(),
2011
+ rubrics: z11.array(QtiRubric).optional(),
2012
+ stimulus: QtiStimulusReference.optional()
1973
2013
  }).strict();
1974
2014
  var QtiAssessmentItemCreateInput = z11.union([
1975
2015
  QtiAssessmentItemXmlCreateInput,
1976
2016
  QtiAssessmentItemJsonCreateInput
1977
2017
  ]);
1978
2018
  var QtiAssessmentItemUpdateInput = z11.object({
2019
+ format: z11.literal("json").optional(),
1979
2020
  identifier: NonEmptyString.optional(),
1980
2021
  title: NonEmptyString,
1981
2022
  type: QtiAssessmentItemType,
1982
2023
  qtiVersion: z11.string().optional(),
1983
2024
  timeDependent: z11.boolean().optional(),
1984
2025
  adaptive: z11.boolean().optional(),
2026
+ preInteraction: z11.string().optional(),
2027
+ interaction: QtiAssessmentItemInteraction.optional(),
2028
+ postInteraction: z11.string().optional(),
1985
2029
  responseDeclarations: z11.array(QtiResponseDeclaration).optional(),
1986
2030
  outcomeDeclarations: z11.array(QtiOutcomeDeclaration).optional(),
1987
2031
  responseProcessing: QtiResponseProcessing.optional(),
@@ -1989,6 +2033,8 @@ var QtiAssessmentItemUpdateInput = z11.object({
1989
2033
  modalFeedback: z11.array(QtiModalFeedback).optional(),
1990
2034
  feedbackInline: z11.array(QtiFeedbackInline).optional(),
1991
2035
  feedbackBlock: z11.array(QtiFeedbackBlock).optional(),
2036
+ rubrics: z11.array(QtiRubric).optional(),
2037
+ stimulus: QtiStimulusReference.optional(),
1992
2038
  rawXml: z11.string(),
1993
2039
  content: z11.record(z11.string(), z11.unknown())
1994
2040
  }).strict();
@@ -2123,7 +2169,7 @@ class AnalyticsResource {
2123
2169
  timezone: validated.timezone
2124
2170
  }
2125
2171
  });
2126
- return response.facts;
2172
+ return response;
2127
2173
  }
2128
2174
  async getWeeklyFacts(params) {
2129
2175
  const validated = validateWithSchema(EdubridgeWeeklyFactsParams, params, "weekly facts params");
@@ -2146,7 +2192,7 @@ class AnalyticsResource {
2146
2192
  timezone: validated.timezone
2147
2193
  }
2148
2194
  });
2149
- return response.facts;
2195
+ return response;
2150
2196
  }
2151
2197
  getHighestGradeMastered(studentId, subject) {
2152
2198
  validateNonEmptyString(studentId, "studentId");
package/dist/index.js CHANGED
@@ -85,7 +85,7 @@ import {
85
85
  WebhookFilterCreateInput,
86
86
  WebhookFilterUpdateInput,
87
87
  WebhookUpdateInput
88
- } from "./chunk-988xrzn7.js";
88
+ } from "./chunk-xzq5v8j0.js";
89
89
  import {
90
90
  ApiError,
91
91
  BaseTransport,
@@ -3174,6 +3174,8 @@ class AssessmentItemsResource {
3174
3174
  list(params = {}) {
3175
3175
  validatePageListParams(params);
3176
3176
  const queryParams = {};
3177
+ if (params.query !== undefined)
3178
+ queryParams.query = params.query;
3177
3179
  if (params.page !== undefined)
3178
3180
  queryParams.page = params.page;
3179
3181
  if (params.limit !== undefined)
@@ -3307,6 +3309,8 @@ class TestPartSectionsHelper {
3307
3309
  list(params = {}) {
3308
3310
  validatePageListParams(params);
3309
3311
  const queryParams = {};
3312
+ if (params.query !== undefined)
3313
+ queryParams.query = params.query;
3310
3314
  if (params.page !== undefined)
3311
3315
  queryParams.page = params.page;
3312
3316
  if (params.limit !== undefined)
@@ -3365,6 +3369,8 @@ class AssessmentTestPartsHelper {
3365
3369
  list(params = {}) {
3366
3370
  validatePageListParams(params);
3367
3371
  const queryParams = {};
3372
+ if (params.query !== undefined)
3373
+ queryParams.query = params.query;
3368
3374
  if (params.page !== undefined)
3369
3375
  queryParams.page = params.page;
3370
3376
  if (params.limit !== undefined)
@@ -3418,6 +3424,8 @@ class AssessmentTestsResource {
3418
3424
  list(params = {}) {
3419
3425
  validatePageListParams(params);
3420
3426
  const queryParams = {};
3427
+ if (params.query !== undefined)
3428
+ queryParams.query = params.query;
3421
3429
  if (params.page !== undefined)
3422
3430
  queryParams.page = params.page;
3423
3431
  if (params.limit !== undefined)
@@ -3534,6 +3542,8 @@ class StimuliResource {
3534
3542
  list(params = {}) {
3535
3543
  validatePageListParams(params);
3536
3544
  const queryParams = {};
3545
+ if (params.query !== undefined)
3546
+ queryParams.query = params.query;
3537
3547
  if (params.page !== undefined)
3538
3548
  queryParams.page = params.page;
3539
3549
  if (params.limit !== undefined)
package/dist/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  aggregateActivityMetrics
3
- } from "./chunk-988xrzn7.js";
3
+ } from "./chunk-xzq5v8j0.js";
4
4
  import"./chunk-9yh4rvkr.js";
5
5
  import"./chunk-3j7jywnx.js";
6
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timeback/core",
3
- "version": "0.2.4-beta.20260422071626",
3
+ "version": "0.2.4-beta.20260423215532",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {