@happyvertical/smrt-education 0.60.3 → 0.60.5

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-DGIkYT6Q.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-DEb2LSC0.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";
@@ -21,6 +21,22 @@ export declare function materialAudience(relationship: string, audience?: string
21
21
  */
22
22
  export declare const MATERIAL_RENDITIONS: readonly ["original", "rendered"];
23
23
  export type MaterialRendition = (typeof MATERIAL_RENDITIONS)[number];
24
+ /** Most characters of a lesson step key. */
25
+ export declare const LESSON_STEP_KEY_MAX = 32;
26
+ /** Most characters of a lesson step label. */
27
+ export declare const LESSON_STEP_LABEL_MAX = 200;
28
+ /** Largest absolute step order a bundle may declare. */
29
+ export declare const LESSON_STEP_ORDER_MAX = 1000000;
30
+ /**
31
+ * The step of a lesson a material belongs to (SMRT #4656): a short key shared by
32
+ * every material of the step, a finite order (fractions allow `1b` after `1`) and
33
+ * an optional readable label.
34
+ */
35
+ export interface LessonStepDeclaration {
36
+ key: string;
37
+ order: number;
38
+ label?: string;
39
+ }
24
40
  export declare class LessonAsset extends SmrtObject {
25
41
  tenantId: string | null;
26
42
  lessonId: string;
@@ -35,6 +51,12 @@ export declare class LessonAsset extends SmrtObject {
35
51
  renditionOfAssetId: string | null;
36
52
  /** Optional first-page image of this material, recorded by the rendering step. */
37
53
  thumbnailAssetId: string | null;
54
+ /**
55
+ * The readable material title the course bundle manifest gave this file
56
+ * (SMRT #4653). Both halves of an original/rendered pair carry it. Null for
57
+ * rows without one: readers fall back to the stored asset's name.
58
+ */
59
+ title: string | null;
38
60
  /**
39
61
  * Set when a newer build of the course bundle no longer carries this
40
62
  * material (SMRT #4645). A retired row stays (learner work may reference it)
@@ -43,6 +65,11 @@ export declare class LessonAsset extends SmrtObject {
43
65
  retiredAt: Date | null;
44
66
  /** The course bundle import that wrote this row, null for any other source. */
45
67
  sourceImportId: string | null;
68
+ /** The lesson step this material belongs to (SMRT #4656); null when it is not part of one. */
69
+ stepKey: string | null;
70
+ /** Position of the step in the lesson; fractions order `1b` after `1`. */
71
+ stepOrder: number | null;
72
+ stepLabel: string | null;
46
73
  constructor(options?: Record<string, unknown>);
47
74
  save(options?: SmrtSaveOptions): Promise<this>;
48
75
  }
@@ -110,6 +137,14 @@ export declare class LessonExternalVideo extends SmrtObject {
110
137
  retiredAt: Date | null;
111
138
  /** The course bundle import that wrote this row, null for any other source. */
112
139
  sourceImportId: string | null;
140
+ /** The lesson step this video belongs to (SMRT #4656); null when it is not part of one. */
141
+ stepKey: string | null;
142
+ /**
143
+ * Position of the step in the lesson; fractions order `1b` after `1`.
144
+ * (`stepOrder` stays the whole-number rank videos have always carried.)
145
+ */
146
+ stepPosition: number | null;
147
+ stepLabel: string | null;
113
148
  constructor(options?: Record<string, unknown>);
114
149
  save(options?: SmrtSaveOptions): Promise<this>;
115
150
  }
@@ -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,eAAe,EAErB,MAAM,0BAA0B,CAAC;AAGlC,0DAA0D;AAC1D,eAAO,MAAM,0BAA0B,yJAW7B,CAAC;AACX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9C,gEAAgE;AAChE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,UAAU,CAAC;AAEtD,oEAAoE;AACpE,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAClD,MAAM,CAAC,uBAAuB,EAAE,gBAAgB,CAAC,CAYjD,CAAC;AAEH,8EAA8E;AAC9E,eAAO,MAAM,2BAA2B,EAAE,WAAW,CAAC,uBAAuB,CAC7B,CAAC;AAEjD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GACvB,gBAAgB,CAUlB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,mCAAoC,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAmFrE,qBAQa,WAA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6BAA8B,SAAQ,cAAc,CAAC,mBAAmB,CAAC;IACpF,MAAM,CAAC,QAAQ,CAAC,UAAU,6BAAuB;CAClD"}
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-education",
5
- "packageVersion": "0.60.3",
5
+ "packageVersion": "0.60.5",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-education:CatalogProviderCollection": {
8
8
  "name": "catalogprovidercollection",
@@ -6359,7 +6359,7 @@
6359
6359
  ],
6360
6360
  "schema": {
6361
6361
  "tableName": "lesson_assets",
6362
- "ddl": "CREATE TABLE IF NOT EXISTS \"lesson_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID,\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
6362
+ "ddl": "CREATE TABLE IF NOT EXISTS \"lesson_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID,\n \"title\" TEXT,\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT,\n \"step_key\" TEXT,\n \"step_order\" REAL,\n \"step_label\" TEXT\n);",
6363
6363
  "columns": {
6364
6364
  "id": {
6365
6365
  "type": "UUID",
@@ -6446,6 +6446,11 @@
6446
6446
  "notNull": false,
6447
6447
  "unique": false
6448
6448
  },
6449
+ "title": {
6450
+ "type": "TEXT",
6451
+ "notNull": false,
6452
+ "unique": false
6453
+ },
6449
6454
  "retired_at": {
6450
6455
  "type": "TIMESTAMP",
6451
6456
  "notNull": false,
@@ -6455,6 +6460,21 @@
6455
6460
  "type": "TEXT",
6456
6461
  "notNull": false,
6457
6462
  "unique": false
6463
+ },
6464
+ "step_key": {
6465
+ "type": "TEXT",
6466
+ "notNull": false,
6467
+ "unique": false
6468
+ },
6469
+ "step_order": {
6470
+ "type": "REAL",
6471
+ "notNull": false,
6472
+ "unique": false
6473
+ },
6474
+ "step_label": {
6475
+ "type": "TEXT",
6476
+ "notNull": false,
6477
+ "unique": false
6458
6478
  }
6459
6479
  },
6460
6480
  "indexes": [
@@ -6508,7 +6528,7 @@
6508
6528
  ]
6509
6529
  }
6510
6530
  ],
6511
- "version": "127c095b"
6531
+ "version": "63104c5b"
6512
6532
  },
6513
6533
  "importPath": "@happyvertical/smrt-education"
6514
6534
  },
@@ -31073,6 +31093,13 @@
31073
31093
  "nullable": true
31074
31094
  }
31075
31095
  },
31096
+ "title": {
31097
+ "type": "text",
31098
+ "required": false,
31099
+ "_meta": {
31100
+ "nullable": true
31101
+ }
31102
+ },
31076
31103
  "retiredAt": {
31077
31104
  "type": "datetime",
31078
31105
  "required": false,
@@ -31086,6 +31113,27 @@
31086
31113
  "_meta": {
31087
31114
  "nullable": true
31088
31115
  }
31116
+ },
31117
+ "stepKey": {
31118
+ "type": "text",
31119
+ "required": false,
31120
+ "_meta": {
31121
+ "nullable": true
31122
+ }
31123
+ },
31124
+ "stepOrder": {
31125
+ "type": "decimal",
31126
+ "required": false,
31127
+ "_meta": {
31128
+ "nullable": true
31129
+ }
31130
+ },
31131
+ "stepLabel": {
31132
+ "type": "text",
31133
+ "required": false,
31134
+ "_meta": {
31135
+ "nullable": true
31136
+ }
31089
31137
  }
31090
31138
  },
31091
31139
  "methods": {
@@ -31122,6 +31170,7 @@
31122
31170
  "extends": "SmrtObject",
31123
31171
  "exportName": "LessonAsset",
31124
31172
  "collectionExportName": "LessonAssetCollection",
31173
+ "displayLabelField": "title",
31125
31174
  "validationRules": [
31126
31175
  {
31127
31176
  "field": "lessonId",
@@ -31146,7 +31195,7 @@
31146
31195
  ],
31147
31196
  "schema": {
31148
31197
  "tableName": "lesson_assets",
31149
- "ddl": "CREATE TABLE IF NOT EXISTS \"lesson_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID,\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
31198
+ "ddl": "CREATE TABLE IF NOT EXISTS \"lesson_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID,\n \"title\" TEXT,\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT,\n \"step_key\" TEXT,\n \"step_order\" REAL,\n \"step_label\" TEXT\n);",
31150
31199
  "columns": {
31151
31200
  "id": {
31152
31201
  "type": "UUID",
@@ -31233,6 +31282,11 @@
31233
31282
  "notNull": false,
31234
31283
  "unique": false
31235
31284
  },
31285
+ "title": {
31286
+ "type": "TEXT",
31287
+ "notNull": false,
31288
+ "unique": false
31289
+ },
31236
31290
  "retired_at": {
31237
31291
  "type": "TIMESTAMP",
31238
31292
  "notNull": false,
@@ -31242,6 +31296,21 @@
31242
31296
  "type": "TEXT",
31243
31297
  "notNull": false,
31244
31298
  "unique": false
31299
+ },
31300
+ "step_key": {
31301
+ "type": "TEXT",
31302
+ "notNull": false,
31303
+ "unique": false
31304
+ },
31305
+ "step_order": {
31306
+ "type": "REAL",
31307
+ "notNull": false,
31308
+ "unique": false
31309
+ },
31310
+ "step_label": {
31311
+ "type": "TEXT",
31312
+ "notNull": false,
31313
+ "unique": false
31245
31314
  }
31246
31315
  },
31247
31316
  "indexes": [
@@ -31295,7 +31364,7 @@
31295
31364
  ]
31296
31365
  }
31297
31366
  ],
31298
- "version": "127c095b"
31367
+ "version": "63104c5b"
31299
31368
  },
31300
31369
  "importPath": "@happyvertical/smrt-education"
31301
31370
  },
@@ -31880,6 +31949,27 @@
31880
31949
  "_meta": {
31881
31950
  "nullable": true
31882
31951
  }
31952
+ },
31953
+ "stepKey": {
31954
+ "type": "text",
31955
+ "required": false,
31956
+ "_meta": {
31957
+ "nullable": true
31958
+ }
31959
+ },
31960
+ "stepPosition": {
31961
+ "type": "decimal",
31962
+ "required": false,
31963
+ "_meta": {
31964
+ "nullable": true
31965
+ }
31966
+ },
31967
+ "stepLabel": {
31968
+ "type": "text",
31969
+ "required": false,
31970
+ "_meta": {
31971
+ "nullable": true
31972
+ }
31883
31973
  }
31884
31974
  },
31885
31975
  "methods": {
@@ -31931,7 +32021,7 @@
31931
32021
  ],
31932
32022
  "schema": {
31933
32023
  "tableName": "lesson_external_videos",
31934
- "ddl": "CREATE TABLE IF NOT EXISTS \"lesson_external_videos\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"provider\" TEXT DEFAULT 'youtube',\n \"video_id\" TEXT,\n \"title\" TEXT,\n \"step_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
32024
+ "ddl": "CREATE TABLE IF NOT EXISTS \"lesson_external_videos\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"provider\" TEXT DEFAULT 'youtube',\n \"video_id\" TEXT,\n \"title\" TEXT,\n \"step_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT,\n \"step_key\" TEXT,\n \"step_position\" REAL,\n \"step_label\" TEXT\n);",
31935
32025
  "columns": {
31936
32026
  "id": {
31937
32027
  "type": "UUID",
@@ -32013,6 +32103,21 @@
32013
32103
  "type": "TEXT",
32014
32104
  "notNull": false,
32015
32105
  "unique": false
32106
+ },
32107
+ "step_key": {
32108
+ "type": "TEXT",
32109
+ "notNull": false,
32110
+ "unique": false
32111
+ },
32112
+ "step_position": {
32113
+ "type": "REAL",
32114
+ "notNull": false,
32115
+ "unique": false
32116
+ },
32117
+ "step_label": {
32118
+ "type": "TEXT",
32119
+ "notNull": false,
32120
+ "unique": false
32016
32121
  }
32017
32122
  },
32018
32123
  "indexes": [
@@ -32048,7 +32153,7 @@
32048
32153
  ]
32049
32154
  }
32050
32155
  ],
32051
- "version": "013a310f"
32156
+ "version": "c5e0b562"
32052
32157
  },
32053
32158
  "importPath": "@happyvertical/smrt-education"
32054
32159
  },
@@ -32079,7 +32184,7 @@
32079
32184
  ],
32080
32185
  "schema": {
32081
32186
  "tableName": "lesson_external_videos",
32082
- "ddl": "CREATE TABLE IF NOT EXISTS \"lesson_external_videos\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"provider\" TEXT DEFAULT 'youtube',\n \"video_id\" TEXT,\n \"title\" TEXT,\n \"step_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
32187
+ "ddl": "CREATE TABLE IF NOT EXISTS \"lesson_external_videos\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"provider\" TEXT DEFAULT 'youtube',\n \"video_id\" TEXT,\n \"title\" TEXT,\n \"step_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT,\n \"step_key\" TEXT,\n \"step_position\" REAL,\n \"step_label\" TEXT\n);",
32083
32188
  "columns": {
32084
32189
  "id": {
32085
32190
  "type": "UUID",
@@ -32161,6 +32266,21 @@
32161
32266
  "type": "TEXT",
32162
32267
  "notNull": false,
32163
32268
  "unique": false
32269
+ },
32270
+ "step_key": {
32271
+ "type": "TEXT",
32272
+ "notNull": false,
32273
+ "unique": false
32274
+ },
32275
+ "step_position": {
32276
+ "type": "REAL",
32277
+ "notNull": false,
32278
+ "unique": false
32279
+ },
32280
+ "step_label": {
32281
+ "type": "TEXT",
32282
+ "notNull": false,
32283
+ "unique": false
32164
32284
  }
32165
32285
  },
32166
32286
  "indexes": [
@@ -32196,7 +32316,7 @@
32196
32316
  ]
32197
32317
  }
32198
32318
  ],
32199
- "version": "013a310f"
32319
+ "version": "c5e0b562"
32200
32320
  },
32201
32321
  "importPath": "@happyvertical/smrt-education"
32202
32322
  },