@vue-skuilder/db 0.1.6 → 0.1.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/core/index.d.mts +5 -5
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +717 -667
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +702 -653
- package/dist/core/index.mjs.map +1 -1
- package/dist/{dataLayerProvider-BuntXkCs.d.ts → dataLayerProvider-6stCgDME.d.ts} +1 -1
- package/dist/{dataLayerProvider-BZmLyBVw.d.mts → dataLayerProvider-BbW9EnZK.d.mts} +1 -1
- package/dist/impl/couch/index.d.mts +3 -3
- package/dist/impl/couch/index.d.ts +3 -3
- package/dist/impl/couch/index.js +1940 -1873
- package/dist/impl/couch/index.js.map +1 -1
- package/dist/impl/couch/index.mjs +1894 -1828
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/static/index.d.mts +4 -4
- package/dist/impl/static/index.d.ts +4 -4
- package/dist/impl/static/index.js +557 -507
- package/dist/impl/static/index.js.map +1 -1
- package/dist/impl/static/index.mjs +575 -526
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/index.d.mts +244 -8
- package/dist/index.d.ts +244 -8
- package/dist/index.js +3922 -2792
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3897 -2781
- package/dist/index.mjs.map +1 -1
- package/dist/{types-D6SnlHPm.d.ts → types-BvzcRAys.d.ts} +1 -1
- package/dist/{types-DPRvCrIk.d.mts → types-CQQ80R5N.d.mts} +1 -1
- package/dist/{types-legacy-WPe8CtO-.d.mts → types-legacy-CtrmkOLu.d.mts} +1 -1
- package/dist/{types-legacy-WPe8CtO-.d.ts → types-legacy-CtrmkOLu.d.ts} +1 -1
- package/dist/{userDB-31gsvxyd.d.mts → userDB-7fM4tpgr.d.mts} +2 -2
- package/dist/{userDB-D9EuWTp1.d.ts → userDB-DUY63VMN.d.ts} +2 -2
- package/dist/util/packer/index.d.mts +3 -3
- package/dist/util/packer/index.d.ts +3 -3
- package/package.json +2 -2
- package/src/factory.ts +25 -0
- package/src/impl/common/BaseUserDB.ts +29 -6
- package/src/impl/common/userDBHelpers.ts +11 -1
- package/src/impl/couch/courseLookupDB.ts +24 -0
- package/src/util/dataDirectory.test.ts +53 -0
- package/src/util/dataDirectory.ts +52 -0
- package/src/util/index.ts +3 -0
- package/src/util/migrator/FileSystemAdapter.ts +59 -0
- package/src/util/migrator/StaticToCouchDBMigrator.ts +707 -0
- package/src/util/migrator/index.ts +18 -0
- package/src/util/migrator/types.ts +84 -0
- package/src/util/migrator/validation.ts +517 -0
- package/src/util/tuiLogger.ts +139 -0
package/dist/core/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { D as DataLayerProvider } from '../dataLayerProvider-
|
|
4
|
-
import { g as CardHistory, C as CardRecord, h as QuestionRecord } from '../types-legacy-
|
|
5
|
-
export { b as CardData, c as CourseListData, e as DataShapeData, d as DisplayableData, D as DocType, F as Field, G as GuestUsername, Q as QuestionData, S as SkuilderCourseData,
|
|
1
|
+
import { h as StudyContentSource, U as UserDBInterface, C as CourseDBInterface, d as ContentNavigationStrategyData, e as StudySessionReviewItem, f as ScheduledCard, S as StudySessionNewItem } from '../userDB-7fM4tpgr.mjs';
|
|
2
|
+
export { B as ActivityRecord, A as AdminDBInterface, s as AssignedCard, g as AssignedContent, r as AssignedCourse, q as AssignedTag, b as ClassroomDBInterface, x as ClassroomRegistration, w as ClassroomRegistrationDesignation, y as ClassroomRegistrationDoc, o as ContentSourceID, c as CourseInfo, E as CourseRegistration, F as CourseRegistrationDoc, a as CoursesDBInterface, i as StudentClassroomDBInterface, k as StudySessionFailedItem, l as StudySessionFailedNewItem, m as StudySessionFailedReviewItem, j as StudySessionItem, T as TeacherClassroomDBInterface, z as UserConfig, u as UserCourseSetting, t as UserCourseSettings, v as UsrCrsDataInterface, p as getStudySource, n as isReview } from '../userDB-7fM4tpgr.mjs';
|
|
3
|
+
export { D as DataLayerProvider } from '../dataLayerProvider-BbW9EnZK.mjs';
|
|
4
|
+
import { g as CardHistory, C as CardRecord, h as QuestionRecord } from '../types-legacy-CtrmkOLu.mjs';
|
|
5
|
+
export { b as CardData, c as CourseListData, e as DataShapeData, d as DisplayableData, D as DocType, F as Field, G as GuestUsername, Q as QuestionData, S as SkuilderCourseData, a as Tag, T as TagStub, f as cardHistoryPrefix, l as log } from '../types-legacy-CtrmkOLu.mjs';
|
|
6
6
|
import { DataShape, ParsedCard } from '@vue-skuilder/common';
|
|
7
7
|
import 'moment';
|
|
8
8
|
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { D as DataLayerProvider } from '../dataLayerProvider-
|
|
4
|
-
import { g as CardHistory, C as CardRecord, h as QuestionRecord } from '../types-legacy-
|
|
5
|
-
export { b as CardData, c as CourseListData, e as DataShapeData, d as DisplayableData, D as DocType, F as Field, G as GuestUsername, Q as QuestionData, S as SkuilderCourseData,
|
|
1
|
+
import { h as StudyContentSource, U as UserDBInterface, C as CourseDBInterface, d as ContentNavigationStrategyData, e as StudySessionReviewItem, f as ScheduledCard, S as StudySessionNewItem } from '../userDB-DUY63VMN.js';
|
|
2
|
+
export { B as ActivityRecord, A as AdminDBInterface, s as AssignedCard, g as AssignedContent, r as AssignedCourse, q as AssignedTag, b as ClassroomDBInterface, x as ClassroomRegistration, w as ClassroomRegistrationDesignation, y as ClassroomRegistrationDoc, o as ContentSourceID, c as CourseInfo, E as CourseRegistration, F as CourseRegistrationDoc, a as CoursesDBInterface, i as StudentClassroomDBInterface, k as StudySessionFailedItem, l as StudySessionFailedNewItem, m as StudySessionFailedReviewItem, j as StudySessionItem, T as TeacherClassroomDBInterface, z as UserConfig, u as UserCourseSetting, t as UserCourseSettings, v as UsrCrsDataInterface, p as getStudySource, n as isReview } from '../userDB-DUY63VMN.js';
|
|
3
|
+
export { D as DataLayerProvider } from '../dataLayerProvider-6stCgDME.js';
|
|
4
|
+
import { g as CardHistory, C as CardRecord, h as QuestionRecord } from '../types-legacy-CtrmkOLu.js';
|
|
5
|
+
export { b as CardData, c as CourseListData, e as DataShapeData, d as DisplayableData, D as DocType, F as Field, G as GuestUsername, Q as QuestionData, S as SkuilderCourseData, a as Tag, T as TagStub, f as cardHistoryPrefix, l as log } from '../types-legacy-CtrmkOLu.js';
|
|
6
6
|
import { DataShape, ParsedCard } from '@vue-skuilder/common';
|
|
7
7
|
import 'moment';
|
|
8
8
|
|