@happyvertical/smrt-education 0.60.2 → 0.60.3

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/ingestion.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as normalizeWorkObservedLayout, I as normalizeWorkAnswerRegions, It as FamilyIntakeAssetCollection, Lt as FamilyIntakeCollection, M as QuestionExtractionPendingError, N as QuestionExtractionValidationError, Nt as WorkbookPhotoIntakeCollection, P as LessonWorkService, Tt as familyIntakeScopeId, Y as LearnerAuthorizationError, a as questionExtractionProposalDigest, an as aggregateWorkQuestions, kt as WorkbookPhotoAssetCollection, n as preservePhotoProposal, nn as WORK_MATH_VOCABULARY, on as validateWorkAssessment, r as validateWorkbookPhotoIdentification, rn as WorkAssessmentValidationError, sn as workAggregateFeedback, t as WorkbookPhotoService, u as QUESTION_EXTRACTION_ARGS_SCHEMA, zt as FamilyIntakeDecisionCollection } from "./chunks/workbook-photo-service-DHP5ja82.js";
1
+ import { F as normalizeWorkObservedLayout, I as normalizeWorkAnswerRegions, It as FamilyIntakeAssetCollection, Lt as FamilyIntakeCollection, M as QuestionExtractionPendingError, N as QuestionExtractionValidationError, Nt as WorkbookPhotoIntakeCollection, P as LessonWorkService, Tt as familyIntakeScopeId, Y as LearnerAuthorizationError, a as questionExtractionProposalDigest, an as aggregateWorkQuestions, kt as WorkbookPhotoAssetCollection, n as preservePhotoProposal, nn as WORK_MATH_VOCABULARY, on as validateWorkAssessment, r as validateWorkbookPhotoIdentification, rn as WorkAssessmentValidationError, sn as workAggregateFeedback, t as WorkbookPhotoService, u as QUESTION_EXTRACTION_ARGS_SCHEMA, zt as FamilyIntakeDecisionCollection } from "./chunks/workbook-photo-service-DGIkYT6Q.js";
2
2
  import { getCurrentTenant, withTenant } from "@happyvertical/smrt-tenancy";
3
3
  import { withPrivateAssetAccess } from "@happyvertical/smrt-assets";
4
4
  import { registerPermissionDefinitions } from "@happyvertical/smrt-users";
@@ -35,6 +35,14 @@ export declare class LessonAsset extends SmrtObject {
35
35
  renditionOfAssetId: string | null;
36
36
  /** Optional first-page image of this material, recorded by the rendering step. */
37
37
  thumbnailAssetId: string | null;
38
+ /**
39
+ * Set when a newer build of the course bundle no longer carries this
40
+ * material (SMRT #4645). A retired row stays (learner work may reference it)
41
+ * but is not part of the current material set. Null when current.
42
+ */
43
+ retiredAt: Date | null;
44
+ /** The course bundle import that wrote this row, null for any other source. */
45
+ sourceImportId: string | null;
38
46
  constructor(options?: Record<string, unknown>);
39
47
  save(options?: SmrtSaveOptions): Promise<this>;
40
48
  }
@@ -56,6 +64,14 @@ export declare class CourseAsset extends SmrtObject {
56
64
  renditionOfAssetId: string | null;
57
65
  /** Optional first-page image of this material, recorded by the rendering step. */
58
66
  thumbnailAssetId: string | null;
67
+ /**
68
+ * Set when a newer build of the course bundle no longer carries this
69
+ * material (SMRT #4645). A retired row stays (learner work may reference it)
70
+ * but is not part of the current material set. Null when current.
71
+ */
72
+ retiredAt: Date | null;
73
+ /** The course bundle import that wrote this row, null for any other source. */
74
+ sourceImportId: string | null;
59
75
  constructor(options?: Record<string, unknown>);
60
76
  save(options?: SmrtSaveOptions): Promise<this>;
61
77
  }
@@ -86,6 +102,14 @@ export declare class LessonExternalVideo extends SmrtObject {
86
102
  title: string;
87
103
  stepOrder: number;
88
104
  audience: MaterialAudience | '';
105
+ /**
106
+ * Set when a newer build of the course bundle no longer carries this
107
+ * material (SMRT #4645). A retired row stays (learner work may reference it)
108
+ * but is not part of the current material set. Null when current.
109
+ */
110
+ retiredAt: Date | null;
111
+ /** The course bundle import that wrote this row, null for any other source. */
112
+ sourceImportId: string | null;
89
113
  constructor(options?: Record<string, unknown>);
90
114
  save(options?: SmrtSaveOptions): Promise<this>;
91
115
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lesson-assets.d.ts","sourceRoot":"","sources":["../src/lesson-assets.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,cAAc,EACd,UAAU,EACV,KAAK,e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