@playcademy/sandbox 0.3.13 → 0.3.14
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/cli.js +492 -110
- package/dist/constants.js +3 -2
- package/dist/server.d.ts +1 -1
- package/dist/server.js +492 -110
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -283,7 +283,7 @@ var init_auth = __esm(() => {
|
|
|
283
283
|
});
|
|
284
284
|
|
|
285
285
|
// ../constants/src/typescript.ts
|
|
286
|
-
var TSC_PACKAGE = "
|
|
286
|
+
var TSC_PACKAGE = "typescript", USE_NATIVE_TSC;
|
|
287
287
|
var init_typescript = __esm(() => {
|
|
288
288
|
USE_NATIVE_TSC = TSC_PACKAGE.includes("native-preview");
|
|
289
289
|
});
|
|
@@ -354,7 +354,8 @@ var PLATFORM_TIMEZONE = "America/New_York";
|
|
|
354
354
|
var TIMEBACK_ROUTES, TIMEBACK_ORG_SOURCED_ID = "PLAYCADEMY";
|
|
355
355
|
var init_timeback2 = __esm(() => {
|
|
356
356
|
TIMEBACK_ROUTES = {
|
|
357
|
-
END_ACTIVITY: "/integrations/timeback/end-activity"
|
|
357
|
+
END_ACTIVITY: "/integrations/timeback/end-activity",
|
|
358
|
+
GET_XP: "/integrations/timeback/xp"
|
|
358
359
|
};
|
|
359
360
|
});
|
|
360
361
|
|
|
@@ -1229,7 +1230,7 @@ var package_default;
|
|
|
1229
1230
|
var init_package = __esm(() => {
|
|
1230
1231
|
package_default = {
|
|
1231
1232
|
name: "@playcademy/sandbox",
|
|
1232
|
-
version: "0.3.
|
|
1233
|
+
version: "0.3.14",
|
|
1233
1234
|
description: "Local development server for Playcademy game development",
|
|
1234
1235
|
type: "module",
|
|
1235
1236
|
exports: {
|
|
@@ -15839,7 +15840,8 @@ var init_constants2 = __esm(() => {
|
|
|
15839
15840
|
INDEX: "/api",
|
|
15840
15841
|
HEALTH: "/api/health",
|
|
15841
15842
|
TIMEBACK: {
|
|
15842
|
-
END_ACTIVITY: `/api${TIMEBACK_ROUTES.END_ACTIVITY}
|
|
15843
|
+
END_ACTIVITY: `/api${TIMEBACK_ROUTES.END_ACTIVITY}`,
|
|
15844
|
+
GET_XP: `/api${TIMEBACK_ROUTES.GET_XP}`
|
|
15843
15845
|
}
|
|
15844
15846
|
};
|
|
15845
15847
|
});
|
|
@@ -16559,7 +16561,7 @@ function isTimebackSubject(value) {
|
|
|
16559
16561
|
function isTimebackGrade(value) {
|
|
16560
16562
|
return typeof value === "number" && Number.isInteger(value) && GRADE_VALUES.includes(value);
|
|
16561
16563
|
}
|
|
16562
|
-
var __esm2 = (fn, res) => () => (fn && (res = fn(fn = 0)), res), ACHIEVEMENT_IDS2, ACHIEVEMENT_DEFINITIONS2, init_achievements2, init_auth2 = () => {}, TSC_PACKAGE2 = "
|
|
16564
|
+
var __esm2 = (fn, res) => () => (fn && (res = fn(fn = 0)), res), ACHIEVEMENT_IDS2, ACHIEVEMENT_DEFINITIONS2, init_achievements2, init_auth2 = () => {}, TSC_PACKAGE2 = "typescript", USE_NATIVE_TSC2, init_typescript2, init_character2 = () => {}, PLAYCADEMY_BASE_URLS, init_domains2, init_env_vars2 = () => {}, ITEM_SLUGS2, CURRENCIES2, BADGES2, init_overworld2, TIMEBACK_CALIPER_SENSORS, TIMEBACK_ORG_SOURCED_ID2 = "PLAYCADEMY", TIMEBACK_ORG_NAME = "Playcademy Studios", TIMEBACK_ORG_TYPE = "department", TIMEBACK_COURSE_DEFAULTS, TIMEBACK_RESOURCE_DEFAULTS, TIMEBACK_COMPONENT_DEFAULTS, TIMEBACK_COMPONENT_RESOURCE_DEFAULTS, init_timeback3, init_workers2 = () => {}, init_src5, TIMEBACK_API_URLS, TIMEBACK_AUTH_URLS, CALIPER_API_URLS, ONEROSTER_ENDPOINTS, CALIPER_ENDPOINTS, CALIPER_CONSTANTS, TIMEBACK_EVENT_TYPES, TIMEBACK_ACTIONS, TIMEBACK_TYPES, ACTIVITY_METRIC_TYPES, TIME_METRIC_TYPES, TIMEBACK_SUBJECTS, TIMEBACK_GRADE_LEVELS, TIMEBACK_GRADE_LEVEL_LABELS, CALIPER_SUBJECTS, ONEROSTER_STATUS, SCORE_STATUS, ENV_VARS, HTTP_DEFAULTS, AUTH_DEFAULTS, CACHE_DEFAULTS, CONFIG_DEFAULTS, PLAYCADEMY_DEFAULTS, RESOURCE_DEFAULTS, HTTP_STATUS, ERROR_NAMES, init_constants3, isObject = (value) => typeof value === "object" && value !== null, SUBJECT_VALUES, GRADE_VALUES;
|
|
16563
16565
|
var init_types7 = __esm(() => {
|
|
16564
16566
|
init_achievements2 = __esm2(() => {
|
|
16565
16567
|
ACHIEVEMENT_IDS2 = {
|
|
@@ -17476,6 +17478,48 @@ class TimebackService {
|
|
|
17476
17478
|
inProgress: result.inProgress
|
|
17477
17479
|
};
|
|
17478
17480
|
}
|
|
17481
|
+
async getStudentXp(timebackId, options) {
|
|
17482
|
+
const client = this.requireClient();
|
|
17483
|
+
const db2 = this.ctx.db;
|
|
17484
|
+
let courseIds = [];
|
|
17485
|
+
if (options?.gameId) {
|
|
17486
|
+
const conditions2 = [eq(gameTimebackIntegrations.gameId, options.gameId)];
|
|
17487
|
+
if (options.grade !== undefined && options.subject) {
|
|
17488
|
+
conditions2.push(eq(gameTimebackIntegrations.grade, options.grade));
|
|
17489
|
+
conditions2.push(eq(gameTimebackIntegrations.subject, options.subject));
|
|
17490
|
+
}
|
|
17491
|
+
const integrations = await db2.query.gameTimebackIntegrations.findMany({
|
|
17492
|
+
where: and(...conditions2)
|
|
17493
|
+
});
|
|
17494
|
+
courseIds = integrations.map((i2) => i2.courseId);
|
|
17495
|
+
if (courseIds.length === 0) {
|
|
17496
|
+
logger27.debug("No integrations found for game, returning 0 XP", {
|
|
17497
|
+
timebackId,
|
|
17498
|
+
gameId: options.gameId,
|
|
17499
|
+
grade: options.grade,
|
|
17500
|
+
subject: options.subject
|
|
17501
|
+
});
|
|
17502
|
+
return {
|
|
17503
|
+
totalXp: 0,
|
|
17504
|
+
...options?.include?.today && { todayXp: 0 },
|
|
17505
|
+
...options?.include?.perCourse && { courses: [] }
|
|
17506
|
+
};
|
|
17507
|
+
}
|
|
17508
|
+
}
|
|
17509
|
+
const result = await client.getStudentXp(timebackId, {
|
|
17510
|
+
courseIds: courseIds.length > 0 ? courseIds : undefined,
|
|
17511
|
+
include: options?.include
|
|
17512
|
+
});
|
|
17513
|
+
logger27.debug("Retrieved student XP", {
|
|
17514
|
+
timebackId,
|
|
17515
|
+
gameId: options?.gameId,
|
|
17516
|
+
grade: options?.grade,
|
|
17517
|
+
subject: options?.subject,
|
|
17518
|
+
totalXp: result.totalXp,
|
|
17519
|
+
courseCount: result.courses?.length
|
|
17520
|
+
});
|
|
17521
|
+
return result;
|
|
17522
|
+
}
|
|
17479
17523
|
}
|
|
17480
17524
|
var logger27;
|
|
17481
17525
|
var init_timeback_service = __esm(() => {
|
|
@@ -17799,6 +17843,7 @@ var init_services = __esm(() => {
|
|
|
17799
17843
|
});
|
|
17800
17844
|
|
|
17801
17845
|
// ../timeback/dist/index.js
|
|
17846
|
+
import { stdout as stdout2 } from "process";
|
|
17802
17847
|
function deriveSourcedIds(courseId) {
|
|
17803
17848
|
return {
|
|
17804
17849
|
course: courseId,
|
|
@@ -17895,6 +17940,117 @@ function isTimebackSubject2(value) {
|
|
|
17895
17940
|
function isTimebackGrade2(value) {
|
|
17896
17941
|
return typeof value === "number" && Number.isInteger(value) && GRADE_VALUES2.includes(value);
|
|
17897
17942
|
}
|
|
17943
|
+
function stripAnsi2(text3) {
|
|
17944
|
+
return text3.replace(/\x1B\[[0-9;]*[a-zA-Z]/g, "");
|
|
17945
|
+
}
|
|
17946
|
+
|
|
17947
|
+
class Spinner2 {
|
|
17948
|
+
tasks = new Map;
|
|
17949
|
+
frameIndex = 0;
|
|
17950
|
+
intervalId = null;
|
|
17951
|
+
renderCount = 0;
|
|
17952
|
+
previousLineCount = 0;
|
|
17953
|
+
printedTasks = new Set;
|
|
17954
|
+
indent;
|
|
17955
|
+
constructor(taskIds, texts, options) {
|
|
17956
|
+
this.indent = options?.indent ?? 0;
|
|
17957
|
+
taskIds.forEach((id, index2) => {
|
|
17958
|
+
this.tasks.set(id, {
|
|
17959
|
+
text: texts[index2] || "",
|
|
17960
|
+
status: "pending"
|
|
17961
|
+
});
|
|
17962
|
+
});
|
|
17963
|
+
}
|
|
17964
|
+
start() {
|
|
17965
|
+
if (isInteractive2) {
|
|
17966
|
+
stdout2.write(cursor2.hide);
|
|
17967
|
+
this.render();
|
|
17968
|
+
this.intervalId = setInterval(() => {
|
|
17969
|
+
this.frameIndex = (this.frameIndex + 1) % SPINNER_FRAMES2.length;
|
|
17970
|
+
this.render();
|
|
17971
|
+
}, SPINNER_INTERVAL2);
|
|
17972
|
+
}
|
|
17973
|
+
}
|
|
17974
|
+
updateTask(taskId, status, finalText) {
|
|
17975
|
+
const task = this.tasks.get(taskId);
|
|
17976
|
+
if (task) {
|
|
17977
|
+
task.status = status;
|
|
17978
|
+
if (finalText)
|
|
17979
|
+
task.finalText = finalText;
|
|
17980
|
+
if (!isInteractive2) {
|
|
17981
|
+
this.renderNonInteractive(taskId, task);
|
|
17982
|
+
}
|
|
17983
|
+
}
|
|
17984
|
+
}
|
|
17985
|
+
renderNonInteractive(taskId, task) {
|
|
17986
|
+
const key = `${taskId}-${task.status}`;
|
|
17987
|
+
if (this.printedTasks.has(key))
|
|
17988
|
+
return;
|
|
17989
|
+
this.printedTasks.add(key);
|
|
17990
|
+
const indentStr = " ".repeat(this.indent);
|
|
17991
|
+
let line3 = "";
|
|
17992
|
+
switch (task.status) {
|
|
17993
|
+
case "running":
|
|
17994
|
+
line3 = `${indentStr}[RUNNING] ${stripAnsi2(task.text)}`;
|
|
17995
|
+
break;
|
|
17996
|
+
case "success":
|
|
17997
|
+
line3 = `${indentStr}[SUCCESS] ${stripAnsi2(task.finalText || task.text)}`;
|
|
17998
|
+
break;
|
|
17999
|
+
case "error":
|
|
18000
|
+
line3 = `${indentStr}[ERROR] Failed: ${stripAnsi2(task.text)}`;
|
|
18001
|
+
break;
|
|
18002
|
+
}
|
|
18003
|
+
console.log(line3);
|
|
18004
|
+
}
|
|
18005
|
+
render() {
|
|
18006
|
+
if (this.previousLineCount > 0) {
|
|
18007
|
+
stdout2.write(cursor2.up(this.previousLineCount));
|
|
18008
|
+
}
|
|
18009
|
+
const spinner2 = SPINNER_FRAMES2[this.frameIndex];
|
|
18010
|
+
const indentStr = " ".repeat(this.indent);
|
|
18011
|
+
const visibleTasks = Array.from(this.tasks.values()).filter((task) => task.status !== "pending");
|
|
18012
|
+
for (const task of visibleTasks) {
|
|
18013
|
+
stdout2.write(`\r${cursor2.clearLine}`);
|
|
18014
|
+
let line3 = "";
|
|
18015
|
+
switch (task.status) {
|
|
18016
|
+
case "running":
|
|
18017
|
+
line3 = `${indentStr}${colors22.blue}${spinner2}${styles2.reset} ${task.text}`;
|
|
18018
|
+
break;
|
|
18019
|
+
case "success":
|
|
18020
|
+
line3 = `${indentStr}${colors22.green}${CHECK_MARK2}${styles2.reset} ${task.finalText || task.text}`;
|
|
18021
|
+
break;
|
|
18022
|
+
case "error":
|
|
18023
|
+
line3 = `${indentStr}${colors22.red}${CROSS_MARK2}${styles2.reset} Failed: ${task.text}`;
|
|
18024
|
+
break;
|
|
18025
|
+
}
|
|
18026
|
+
console.log(line3);
|
|
18027
|
+
}
|
|
18028
|
+
this.previousLineCount = visibleTasks.length;
|
|
18029
|
+
this.renderCount++;
|
|
18030
|
+
}
|
|
18031
|
+
stop() {
|
|
18032
|
+
if (this.intervalId) {
|
|
18033
|
+
clearInterval(this.intervalId);
|
|
18034
|
+
this.intervalId = null;
|
|
18035
|
+
}
|
|
18036
|
+
if (isInteractive2) {
|
|
18037
|
+
this.render();
|
|
18038
|
+
stdout2.write(cursor2.show);
|
|
18039
|
+
} else {
|
|
18040
|
+
this.tasks.forEach((task, taskId) => {
|
|
18041
|
+
if (task.status !== "pending") {
|
|
18042
|
+
this.renderNonInteractive(taskId, task);
|
|
18043
|
+
}
|
|
18044
|
+
});
|
|
18045
|
+
}
|
|
18046
|
+
}
|
|
18047
|
+
}
|
|
18048
|
+
function kebabToTitleCase(kebabStr) {
|
|
18049
|
+
return kebabStr.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
18050
|
+
}
|
|
18051
|
+
function formatDateYMD(date3 = new Date) {
|
|
18052
|
+
return date3.toISOString().split("T")[0];
|
|
18053
|
+
}
|
|
17898
18054
|
async function deleteTimebackResources(client, courseId) {
|
|
17899
18055
|
const sourcedIds = deriveSourcedIds(courseId);
|
|
17900
18056
|
const { fetchTimebackConfig: fetchTimebackConfig2 } = await Promise.resolve().then(() => (init_verify(), exports_verify));
|
|
@@ -19054,9 +19210,6 @@ class MasteryTracker {
|
|
|
19054
19210
|
return total;
|
|
19055
19211
|
}
|
|
19056
19212
|
}
|
|
19057
|
-
function kebabToTitleCase(kebabStr) {
|
|
19058
|
-
return kebabStr.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
19059
|
-
}
|
|
19060
19213
|
function validateProgressData(progressData) {
|
|
19061
19214
|
if (!progressData.subject) {
|
|
19062
19215
|
throw new ConfigurationError("subject", "Subject is required for Caliper events. Provide it in progressData.subject");
|
|
@@ -19079,30 +19232,39 @@ function validateSessionData(sessionData) {
|
|
|
19079
19232
|
throw new ConfigurationError("sensorUrl", 'Sensor URL is required for Caliper events. Provide it in sessionData.sensorUrl (e.g., "https://hub.playcademy.net/p/your-game")');
|
|
19080
19233
|
}
|
|
19081
19234
|
}
|
|
19082
|
-
function
|
|
19083
|
-
|
|
19084
|
-
|
|
19085
|
-
|
|
19086
|
-
|
|
19087
|
-
|
|
19088
|
-
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19092
|
-
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
|
|
19235
|
+
function getAttemptMultiplier(attemptNumber) {
|
|
19236
|
+
switch (attemptNumber) {
|
|
19237
|
+
case 1:
|
|
19238
|
+
return 1;
|
|
19239
|
+
case 2:
|
|
19240
|
+
return 0.5;
|
|
19241
|
+
case 3:
|
|
19242
|
+
return 0.25;
|
|
19243
|
+
default:
|
|
19244
|
+
return 0;
|
|
19245
|
+
}
|
|
19246
|
+
}
|
|
19247
|
+
function getAccuracyMultiplier(accuracy) {
|
|
19248
|
+
if (!Number.isFinite(accuracy) || accuracy < 0) {
|
|
19249
|
+
return 0;
|
|
19250
|
+
}
|
|
19251
|
+
if (accuracy >= PERFECT_ACCURACY_THRESHOLD) {
|
|
19252
|
+
return 1.25;
|
|
19253
|
+
} else if (accuracy >= 0.8) {
|
|
19254
|
+
return 1;
|
|
19096
19255
|
} else {
|
|
19097
|
-
|
|
19098
|
-
multiplier = 1;
|
|
19099
|
-
} else if (accuracy >= 0.8) {
|
|
19100
|
-
multiplier = 0.5;
|
|
19101
|
-
} else {
|
|
19102
|
-
multiplier = 0;
|
|
19103
|
-
}
|
|
19256
|
+
return 0;
|
|
19104
19257
|
}
|
|
19105
|
-
|
|
19258
|
+
}
|
|
19259
|
+
function calculateXp(durationSeconds, accuracy, attemptNumber) {
|
|
19260
|
+
if (!Number.isFinite(durationSeconds) || durationSeconds <= 0) {
|
|
19261
|
+
return 0;
|
|
19262
|
+
}
|
|
19263
|
+
const durationMinutes = durationSeconds / 60;
|
|
19264
|
+
const baseXp = durationMinutes * 1;
|
|
19265
|
+
const accuracyMultiplier = getAccuracyMultiplier(accuracy);
|
|
19266
|
+
const attemptMultiplier = getAttemptMultiplier(attemptNumber);
|
|
19267
|
+
return Math.round(baseXp * accuracyMultiplier * attemptMultiplier * 10) / 10;
|
|
19106
19268
|
}
|
|
19107
19269
|
|
|
19108
19270
|
class ProgressRecorder {
|
|
@@ -19125,8 +19287,7 @@ class ProgressRecorder {
|
|
|
19125
19287
|
const { score, totalQuestions, correctQuestions, xpEarned, masteredUnits, attemptNumber } = progressData;
|
|
19126
19288
|
const actualLineItemId = await this.resolveAssessmentLineItem(activityId, activityName, progressData.classId, ids);
|
|
19127
19289
|
const currentAttemptNumber = await this.resolveAttemptNumber(attemptNumber, score, studentId, actualLineItemId);
|
|
19128
|
-
const
|
|
19129
|
-
const calculatedXp = this.calculateXpForProgress(progressData, totalQuestions, correctQuestions, xpEarned, isFirstActiveAttempt);
|
|
19290
|
+
const calculatedXp = this.calculateXpForProgress(progressData, totalQuestions, correctQuestions, xpEarned, currentAttemptNumber);
|
|
19130
19291
|
let extensions = progressData.extensions;
|
|
19131
19292
|
const masteryProgress = await this.masteryTracker.checkProgress({
|
|
19132
19293
|
studentId,
|
|
@@ -19197,18 +19358,18 @@ class ProgressRecorder {
|
|
|
19197
19358
|
}
|
|
19198
19359
|
return 1;
|
|
19199
19360
|
}
|
|
19200
|
-
calculateXpForProgress(progressData, totalQuestions, correctQuestions, xpEarned,
|
|
19361
|
+
calculateXpForProgress(progressData, totalQuestions, correctQuestions, xpEarned, attemptNumber) {
|
|
19201
19362
|
if (xpEarned !== undefined) {
|
|
19202
19363
|
log3.debug("[ProgressRecorder] Using provided XP", { xpEarned });
|
|
19203
19364
|
return xpEarned;
|
|
19204
19365
|
}
|
|
19205
19366
|
if (progressData.sessionDurationSeconds && totalQuestions && correctQuestions) {
|
|
19206
19367
|
const accuracy = correctQuestions / totalQuestions;
|
|
19207
|
-
const calculatedXp = calculateXp(progressData.sessionDurationSeconds, accuracy,
|
|
19368
|
+
const calculatedXp = calculateXp(progressData.sessionDurationSeconds, accuracy, attemptNumber);
|
|
19208
19369
|
log3.debug("[ProgressRecorder] Calculated XP", {
|
|
19209
19370
|
durationSeconds: progressData.sessionDurationSeconds,
|
|
19210
19371
|
accuracy,
|
|
19211
|
-
|
|
19372
|
+
attemptNumber,
|
|
19212
19373
|
calculatedXp
|
|
19213
19374
|
});
|
|
19214
19375
|
return calculatedXp;
|
|
@@ -20165,6 +20326,70 @@ class TimebackClient {
|
|
|
20165
20326
|
this.cacheManager.setEnrollments(studentId, enrollments);
|
|
20166
20327
|
return enrollments;
|
|
20167
20328
|
}
|
|
20329
|
+
async getStudentXp(studentId, options) {
|
|
20330
|
+
await this._ensureAuthenticated();
|
|
20331
|
+
const enrollments = await this.edubridge.enrollments.listByUser(studentId);
|
|
20332
|
+
const filteredEnrollments = options?.courseIds?.length ? enrollments.filter((e) => options.courseIds.includes(e.course.id)) : enrollments;
|
|
20333
|
+
if (filteredEnrollments.length === 0) {
|
|
20334
|
+
return {
|
|
20335
|
+
totalXp: 0,
|
|
20336
|
+
...options?.include?.today && { todayXp: 0 },
|
|
20337
|
+
...options?.include?.perCourse && { courses: [] }
|
|
20338
|
+
};
|
|
20339
|
+
}
|
|
20340
|
+
const analyticsResults = await Promise.all(filteredEnrollments.map(async (enrollment) => {
|
|
20341
|
+
try {
|
|
20342
|
+
const analytics = await this.edubridge.analytics.getEnrollmentFacts(enrollment.id);
|
|
20343
|
+
return { enrollment, analytics };
|
|
20344
|
+
} catch (error) {
|
|
20345
|
+
log3.warn("[TimebackClient] Failed to fetch analytics for enrollment", {
|
|
20346
|
+
enrollmentId: enrollment.id,
|
|
20347
|
+
error
|
|
20348
|
+
});
|
|
20349
|
+
return { enrollment, analytics: null };
|
|
20350
|
+
}
|
|
20351
|
+
}));
|
|
20352
|
+
const today = formatDateYMD();
|
|
20353
|
+
let totalXp = 0;
|
|
20354
|
+
let todayXp = 0;
|
|
20355
|
+
const courses = [];
|
|
20356
|
+
for (const { enrollment, analytics } of analyticsResults) {
|
|
20357
|
+
let courseXp = 0;
|
|
20358
|
+
let courseTodayXp = 0;
|
|
20359
|
+
if (analytics?.facts) {
|
|
20360
|
+
for (const [date3, subjects] of Object.entries(analytics.facts)) {
|
|
20361
|
+
for (const subjectData of Object.values(subjects)) {
|
|
20362
|
+
const xp = subjectData.activityMetrics?.xpEarned ?? 0;
|
|
20363
|
+
courseXp += xp;
|
|
20364
|
+
if (date3 === today) {
|
|
20365
|
+
courseTodayXp += xp;
|
|
20366
|
+
}
|
|
20367
|
+
}
|
|
20368
|
+
}
|
|
20369
|
+
}
|
|
20370
|
+
totalXp += courseXp;
|
|
20371
|
+
todayXp += courseTodayXp;
|
|
20372
|
+
if (options?.include?.perCourse) {
|
|
20373
|
+
const gradeStr = enrollment.course.grades?.[0];
|
|
20374
|
+
const parsedGrade = gradeStr ? parseInt(gradeStr, 10) : 0;
|
|
20375
|
+
const grade = isTimebackGrade2(parsedGrade) ? parsedGrade : 0;
|
|
20376
|
+
const subjectStr = enrollment.course.subjects?.[0];
|
|
20377
|
+
const subject = subjectStr && isTimebackSubject2(subjectStr) ? subjectStr : "None";
|
|
20378
|
+
courses.push({
|
|
20379
|
+
grade,
|
|
20380
|
+
subject,
|
|
20381
|
+
title: enrollment.course.title,
|
|
20382
|
+
totalXp: courseXp,
|
|
20383
|
+
...options?.include?.today && { todayXp: courseTodayXp }
|
|
20384
|
+
});
|
|
20385
|
+
}
|
|
20386
|
+
}
|
|
20387
|
+
return {
|
|
20388
|
+
totalXp,
|
|
20389
|
+
...options?.include?.today && { todayXp },
|
|
20390
|
+
...options?.include?.perCourse && { courses }
|
|
20391
|
+
};
|
|
20392
|
+
}
|
|
20168
20393
|
clearCaches() {
|
|
20169
20394
|
this.cacheManager.clearAll();
|
|
20170
20395
|
}
|
|
@@ -20201,7 +20426,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
20201
20426
|
configurable: true,
|
|
20202
20427
|
set: (newValue) => all[name3] = () => newValue
|
|
20203
20428
|
});
|
|
20204
|
-
}, __esm3 = (fn, res) => () => (fn && (res = fn(fn = 0)), res), ACHIEVEMENT_IDS3, ACHIEVEMENT_DEFINITIONS3, init_achievements3, init_auth3 = () => {}, TSC_PACKAGE3 = "
|
|
20429
|
+
}, __esm3 = (fn, res) => () => (fn && (res = fn(fn = 0)), res), ACHIEVEMENT_IDS3, ACHIEVEMENT_DEFINITIONS3, init_achievements3, init_auth3 = () => {}, TSC_PACKAGE3 = "typescript", USE_NATIVE_TSC3, init_typescript3, init_character3 = () => {}, PLAYCADEMY_BASE_URLS2, init_domains3, init_env_vars3 = () => {}, ITEM_SLUGS3, CURRENCIES3, BADGES3, init_overworld3, TIMEBACK_CALIPER_SENSORS2, TIMEBACK_ORG_SOURCED_ID3 = "PLAYCADEMY", TIMEBACK_ORG_NAME2 = "Playcademy Studios", TIMEBACK_ORG_TYPE2 = "department", TIMEBACK_COURSE_DEFAULTS2, TIMEBACK_RESOURCE_DEFAULTS2, TIMEBACK_COMPONENT_DEFAULTS2, TIMEBACK_COMPONENT_RESOURCE_DEFAULTS2, init_timeback4, init_workers3 = () => {}, init_src6, TIMEBACK_API_URLS2, TIMEBACK_AUTH_URLS2, CALIPER_API_URLS2, ONEROSTER_ENDPOINTS2, CALIPER_ENDPOINTS2, createOneRosterUrls = (baseUrl) => {
|
|
20205
20430
|
const effective = baseUrl || TIMEBACK_API_URLS2.production;
|
|
20206
20431
|
const base = effective.replace(/\/$/, "");
|
|
20207
20432
|
return {
|
|
@@ -20356,7 +20581,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
20356
20581
|
log: (level, message, context) => performLog2(level, message, context, scopeName),
|
|
20357
20582
|
scope: (name3) => createLogger2(scopeName ? `${scopeName}.${name3}` : name3)
|
|
20358
20583
|
};
|
|
20359
|
-
}, log3, TimebackAuthError, exports_external2, util3, objectUtil2, ZodParsedType2, getParsedType2 = (data) => {
|
|
20584
|
+
}, log3, colors22, styles2, cursor2, isInteractive2, SPINNER_FRAMES2, CHECK_MARK2, CROSS_MARK2, SPINNER_INTERVAL2 = 80, TimebackAuthError, PERFECT_ACCURACY_THRESHOLD = 0.999999, exports_external2, util3, objectUtil2, ZodParsedType2, getParsedType2 = (data) => {
|
|
20360
20585
|
const t = typeof data;
|
|
20361
20586
|
switch (t) {
|
|
20362
20587
|
case "undefined":
|
|
@@ -21008,6 +21233,50 @@ var init_dist3 = __esm(() => {
|
|
|
21008
21233
|
error: 3
|
|
21009
21234
|
};
|
|
21010
21235
|
log3 = createLogger2();
|
|
21236
|
+
colors22 = {
|
|
21237
|
+
black: "\x1B[30m",
|
|
21238
|
+
red: "\x1B[31m",
|
|
21239
|
+
green: "\x1B[32m",
|
|
21240
|
+
yellow: "\x1B[33m",
|
|
21241
|
+
blue: "\x1B[34m",
|
|
21242
|
+
magenta: "\x1B[35m",
|
|
21243
|
+
cyan: "\x1B[36m",
|
|
21244
|
+
white: "\x1B[37m",
|
|
21245
|
+
gray: "\x1B[90m"
|
|
21246
|
+
};
|
|
21247
|
+
styles2 = {
|
|
21248
|
+
reset: "\x1B[0m",
|
|
21249
|
+
bold: "\x1B[1m",
|
|
21250
|
+
dim: "\x1B[2m",
|
|
21251
|
+
italic: "\x1B[3m",
|
|
21252
|
+
underline: "\x1B[4m"
|
|
21253
|
+
};
|
|
21254
|
+
cursor2 = {
|
|
21255
|
+
hide: "\x1B[?25l",
|
|
21256
|
+
show: "\x1B[?25h",
|
|
21257
|
+
up: (n) => `\x1B[${n}A`,
|
|
21258
|
+
down: (n) => `\x1B[${n}B`,
|
|
21259
|
+
forward: (n) => `\x1B[${n}C`,
|
|
21260
|
+
back: (n) => `\x1B[${n}D`,
|
|
21261
|
+
clearLine: "\x1B[K",
|
|
21262
|
+
clearScreen: "\x1B[2J",
|
|
21263
|
+
home: "\x1B[H"
|
|
21264
|
+
};
|
|
21265
|
+
isInteractive2 = typeof process !== "undefined" && process.stdout?.isTTY && !process.env.CI && process.env.TERM !== "dumb";
|
|
21266
|
+
SPINNER_FRAMES2 = [
|
|
21267
|
+
10251,
|
|
21268
|
+
10265,
|
|
21269
|
+
10297,
|
|
21270
|
+
10296,
|
|
21271
|
+
10300,
|
|
21272
|
+
10292,
|
|
21273
|
+
10278,
|
|
21274
|
+
10279,
|
|
21275
|
+
10247,
|
|
21276
|
+
10255
|
|
21277
|
+
].map((code) => String.fromCodePoint(code));
|
|
21278
|
+
CHECK_MARK2 = String.fromCodePoint(10004);
|
|
21279
|
+
CROSS_MARK2 = String.fromCodePoint(10006);
|
|
21011
21280
|
init_verify();
|
|
21012
21281
|
init_constants4();
|
|
21013
21282
|
init_constants4();
|
|
@@ -33769,29 +34038,29 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
33769
34038
|
let responseCallbacks = {};
|
|
33770
34039
|
let nextRequestID = 0;
|
|
33771
34040
|
let nextBuildKey = 0;
|
|
33772
|
-
let
|
|
34041
|
+
let stdout3 = new Uint8Array(16 * 1024);
|
|
33773
34042
|
let stdoutUsed = 0;
|
|
33774
34043
|
let readFromStdout = (chunk) => {
|
|
33775
34044
|
let limit = stdoutUsed + chunk.length;
|
|
33776
|
-
if (limit >
|
|
34045
|
+
if (limit > stdout3.length) {
|
|
33777
34046
|
let swap = new Uint8Array(limit * 2);
|
|
33778
|
-
swap.set(
|
|
33779
|
-
|
|
34047
|
+
swap.set(stdout3);
|
|
34048
|
+
stdout3 = swap;
|
|
33780
34049
|
}
|
|
33781
|
-
|
|
34050
|
+
stdout3.set(chunk, stdoutUsed);
|
|
33782
34051
|
stdoutUsed += chunk.length;
|
|
33783
34052
|
let offset = 0;
|
|
33784
34053
|
while (offset + 4 <= stdoutUsed) {
|
|
33785
|
-
let length = readUInt32LE(
|
|
34054
|
+
let length = readUInt32LE(stdout3, offset);
|
|
33786
34055
|
if (offset + 4 + length > stdoutUsed) {
|
|
33787
34056
|
break;
|
|
33788
34057
|
}
|
|
33789
34058
|
offset += 4;
|
|
33790
|
-
handleIncomingPacket(
|
|
34059
|
+
handleIncomingPacket(stdout3.subarray(offset, offset + length));
|
|
33791
34060
|
offset += length;
|
|
33792
34061
|
}
|
|
33793
34062
|
if (offset > 0) {
|
|
33794
|
-
|
|
34063
|
+
stdout3.copyWithin(0, offset, stdoutUsed);
|
|
33795
34064
|
stdoutUsed -= offset;
|
|
33796
34065
|
}
|
|
33797
34066
|
};
|
|
@@ -35277,12 +35546,12 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
35277
35546
|
child.stdin.on("error", afterClose);
|
|
35278
35547
|
child.on("error", afterClose);
|
|
35279
35548
|
const stdin = child.stdin;
|
|
35280
|
-
const
|
|
35281
|
-
|
|
35282
|
-
|
|
35549
|
+
const stdout3 = child.stdout;
|
|
35550
|
+
stdout3.on("data", readFromStdout);
|
|
35551
|
+
stdout3.on("end", afterClose);
|
|
35283
35552
|
stopService = () => {
|
|
35284
35553
|
stdin.destroy();
|
|
35285
|
-
|
|
35554
|
+
stdout3.destroy();
|
|
35286
35555
|
child.kill();
|
|
35287
35556
|
initializeWasCalled = false;
|
|
35288
35557
|
longLivedService = undefined;
|
|
@@ -35293,8 +35562,8 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
35293
35562
|
if (stdin.unref) {
|
|
35294
35563
|
stdin.unref();
|
|
35295
35564
|
}
|
|
35296
|
-
if (
|
|
35297
|
-
|
|
35565
|
+
if (stdout3.unref) {
|
|
35566
|
+
stdout3.unref();
|
|
35298
35567
|
}
|
|
35299
35568
|
const refs = {
|
|
35300
35569
|
ref() {
|
|
@@ -35365,13 +35634,13 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
35365
35634
|
esbuild: node_exports
|
|
35366
35635
|
});
|
|
35367
35636
|
callback(service);
|
|
35368
|
-
let
|
|
35637
|
+
let stdout3 = child_process.execFileSync(command, args2.concat(`--service=${"0.25.10"}`), {
|
|
35369
35638
|
cwd: defaultWD,
|
|
35370
35639
|
windowsHide: true,
|
|
35371
35640
|
input: stdin,
|
|
35372
35641
|
maxBuffer: +process.env.ESBUILD_MAX_BUFFER || 16 * 1024 * 1024
|
|
35373
35642
|
});
|
|
35374
|
-
readFromStdout(
|
|
35643
|
+
readFromStdout(stdout3);
|
|
35375
35644
|
afterClose(null);
|
|
35376
35645
|
};
|
|
35377
35646
|
var randomFileName = () => {
|
|
@@ -41107,33 +41376,33 @@ import tty from "tty";
|
|
|
41107
41376
|
import { randomUUID } from "crypto";
|
|
41108
41377
|
function assembleStyles() {
|
|
41109
41378
|
const codes = /* @__PURE__ */ new Map;
|
|
41110
|
-
for (const [groupName, group] of Object.entries(
|
|
41379
|
+
for (const [groupName, group] of Object.entries(styles3)) {
|
|
41111
41380
|
for (const [styleName, style] of Object.entries(group)) {
|
|
41112
|
-
|
|
41381
|
+
styles3[styleName] = {
|
|
41113
41382
|
open: `\x1B[${style[0]}m`,
|
|
41114
41383
|
close: `\x1B[${style[1]}m`
|
|
41115
41384
|
};
|
|
41116
|
-
group[styleName] =
|
|
41385
|
+
group[styleName] = styles3[styleName];
|
|
41117
41386
|
codes.set(style[0], style[1]);
|
|
41118
41387
|
}
|
|
41119
|
-
Object.defineProperty(
|
|
41388
|
+
Object.defineProperty(styles3, groupName, {
|
|
41120
41389
|
value: group,
|
|
41121
41390
|
enumerable: false
|
|
41122
41391
|
});
|
|
41123
41392
|
}
|
|
41124
|
-
Object.defineProperty(
|
|
41393
|
+
Object.defineProperty(styles3, "codes", {
|
|
41125
41394
|
value: codes,
|
|
41126
41395
|
enumerable: false
|
|
41127
41396
|
});
|
|
41128
|
-
|
|
41129
|
-
|
|
41130
|
-
|
|
41131
|
-
|
|
41132
|
-
|
|
41133
|
-
|
|
41134
|
-
|
|
41135
|
-
|
|
41136
|
-
Object.defineProperties(
|
|
41397
|
+
styles3.color.close = "\x1B[39m";
|
|
41398
|
+
styles3.bgColor.close = "\x1B[49m";
|
|
41399
|
+
styles3.color.ansi = wrapAnsi16();
|
|
41400
|
+
styles3.color.ansi256 = wrapAnsi256();
|
|
41401
|
+
styles3.color.ansi16m = wrapAnsi16m();
|
|
41402
|
+
styles3.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
41403
|
+
styles3.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
41404
|
+
styles3.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
41405
|
+
Object.defineProperties(styles3, {
|
|
41137
41406
|
rgbToAnsi256: {
|
|
41138
41407
|
value(red, green, blue) {
|
|
41139
41408
|
if (red === green && green === blue) {
|
|
@@ -41169,7 +41438,7 @@ function assembleStyles() {
|
|
|
41169
41438
|
enumerable: false
|
|
41170
41439
|
},
|
|
41171
41440
|
hexToAnsi256: {
|
|
41172
|
-
value: (hex) =>
|
|
41441
|
+
value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
|
|
41173
41442
|
enumerable: false
|
|
41174
41443
|
},
|
|
41175
41444
|
ansi256ToAnsi: {
|
|
@@ -41207,15 +41476,15 @@ function assembleStyles() {
|
|
|
41207
41476
|
enumerable: false
|
|
41208
41477
|
},
|
|
41209
41478
|
rgbToAnsi: {
|
|
41210
|
-
value: (red, green, blue) =>
|
|
41479
|
+
value: (red, green, blue) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue)),
|
|
41211
41480
|
enumerable: false
|
|
41212
41481
|
},
|
|
41213
41482
|
hexToAnsi: {
|
|
41214
|
-
value: (hex) =>
|
|
41483
|
+
value: (hex) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex)),
|
|
41215
41484
|
enumerable: false
|
|
41216
41485
|
}
|
|
41217
41486
|
});
|
|
41218
|
-
return
|
|
41487
|
+
return styles3;
|
|
41219
41488
|
}
|
|
41220
41489
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
|
|
41221
41490
|
const prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
@@ -43779,7 +44048,7 @@ var __create2, __defProp3, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf2,
|
|
|
43779
44048
|
__defProp3(to, key, { get: () => from[key], enumerable: !(desc2 = __getOwnPropDesc(from, key)) || desc2.enumerable });
|
|
43780
44049
|
}
|
|
43781
44050
|
return to;
|
|
43782
|
-
}, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target, mod)), __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value), ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles2, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default, init_ansi_styles, env, flagForceColor, supportsColor, supports_color_default, init_supports_color, init_utilities, stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles22, applyOptions, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default, init_source, require_old, require_fs, require_path, require_balanced_match, require_brace_expansion, require_minimatch, require_inherits_browser, require_inherits, require_common2, require_sync, require_wrappy, require_once, require_inflight, require_glob, require_readline, require_src2, require_utils, require_lodash, require_hanji, originUUID, snapshotVersion, mapValues, mapKeys, mapEntries, customMapEntries, init_global2, util4, objectUtil3, ZodParsedType3, getParsedType3, init_util2, ZodIssueCode3, ZodError4, init_ZodError2, errorMap3, en_default3, init_en2, overrideErrorMap3, init_errors4, makeIssue3, ParseStatus3, INVALID3, DIRTY3, OK3, isAborted3, isDirty3, isValid3, isAsync3, init_parseUtil2, init_typeAliases2, errorUtil3, init_errorUtil2, ParseInputLazyPath3, handleResult3, ZodType3, cuidRegex3, cuid2Regex3, ulidRegex3, uuidRegex3, nanoidRegex3, jwtRegex3, durationRegex3, emailRegex3, _emojiRegex3, emojiRegex3, ipv4Regex3, ipv4CidrRegex3, ipv6Regex3, ipv6CidrRegex3, base64Regex3, base64urlRegex3, dateRegexSource3, dateRegex3, ZodString3, ZodNumber3, ZodBigInt3, ZodBoolean3, ZodDate3, ZodSymbol3, ZodUndefined3, ZodNull3, ZodAny3, ZodUnknown3, ZodNever3, ZodVoid3, ZodArray3, ZodObject3, ZodUnion3, getDiscriminator3, ZodDiscriminatedUnion3, ZodIntersection3, ZodTuple3, ZodRecord3, ZodMap3, ZodSet3, ZodFunction3, ZodLazy3, ZodLiteral3, ZodEnum3, ZodNativeEnum3, ZodPromise3, ZodEffects3, ZodOptional3, ZodNullable3, ZodDefault3, ZodCatch3, ZodNaN3, BRAND3, ZodBranded3, ZodPipeline3, ZodReadonly3, late3, ZodFirstPartyTypeKind3, stringType3, numberType3, nanType3, bigIntType3, booleanType3, dateType3, symbolType3, undefinedType3, nullType3, anyType3, unknownType3, neverType3, voidType3, arrayType3, objectType3, strictObjectType3, unionType3, discriminatedUnionType3, intersectionType3, tupleType3, recordType3, mapType3, setType3, functionType3, lazyType3, literalType3, enumType3, nativeEnumType3, promiseType3, effectsType3, optionalType3, nullableType3, preprocessType3, pipelineType3, coerce3, init_types8, init_external2, init_v32, init_esm2, enumSchema, enumSchemaV1, indexColumn, index2, fk, sequenceSchema, roleSchema, sequenceSquashed, column2, checkConstraint, columnSquashed, compositePK, uniqueConstraint, policy, policySquashed, viewWithOption, matViewWithOption, mergedViewWithOption, view2, table15, schemaHash, kitInternals, gelSchemaExternal, gelSchemaInternal, tableSquashed, gelSchemaSquashed, gelSchema, dryGel, init_gelSchema, index22, fk2, column22, tableV3, compositePK2, uniqueConstraint2, checkConstraint2, tableV4, table22, viewMeta, view22, kitInternals2, dialect2, schemaHash2, schemaInternalV3, schemaInternalV4, schemaInternalV5, schemaInternal, schemaV3, schemaV4, schemaV5, schema2, tableSquashedV4, tableSquashed2, viewSquashed, schemaSquashed, schemaSquashedV4, MySqlSquasher, squashMysqlScheme, mysqlSchema, mysqlSchemaV5, mysqlSchemaSquashed, backwardCompatibleMysqlSchema, dryMySql, init_mysqlSchema, indexV2, columnV2, tableV2, enumSchemaV12, enumSchema2, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn2, index3, indexV4, indexV5, indexV6, fk3, sequenceSchema2, roleSchema2, sequenceSquashed2, columnV7, column3, checkConstraint3, columnSquashed2, tableV32, compositePK3, uniqueConstraint3, policy2, policySquashed2, viewWithOption2, matViewWithOption2, mergedViewWithOption2, view3, tableV42, tableV5, tableV6, tableV7, table32, schemaHash3, kitInternals3, pgSchemaInternalV3, pgSchemaInternalV4, pgSchemaInternalV5, pgSchemaInternalV6, pgSchemaExternal, pgSchemaInternalV7, pgSchemaInternal, tableSquashed3, tableSquashedV42, pgSchemaSquashedV4, pgSchemaSquashedV6, pgSchemaSquashed, pgSchemaV3, pgSchemaV4, pgSchemaV5, pgSchemaV6, pgSchemaV7, pgSchema, backwardCompatiblePgSchema, PgSquasher, squashPgScheme, dryPg, init_pgSchema, index4, column4, compositePK4, uniqueConstraint4, table42, viewMeta2, kitInternals4, dialect22, schemaHash4, schemaInternal2, schema22, tableSquashed4, schemaSquashed2, SingleStoreSquasher, squashSingleStoreScheme, singlestoreSchema, singlestoreSchemaSquashed, backwardCompatibleSingleStoreSchema, drySingleStore, init_singlestoreSchema, index5, fk4, compositePK5, column5, tableV33, uniqueConstraint5, checkConstraint4, table52, view4, dialect3, schemaHash5, schemaInternalV32, schemaInternalV42, schemaInternalV52, kitInternals5, latestVersion, schemaInternal3, schemaV32, schemaV42, schemaV52, schema3, tableSquashed5, schemaSquashed3, SQLiteSquasher, squashSqliteScheme, drySQLite, sqliteSchemaV5, sqliteSchema, SQLiteSchemaSquashed, backwardCompatibleSqliteSchema, init_sqliteSchema, copy, prepareMigrationMeta, schemaRenameKey, tableRenameKey, columnRenameKey, init_utils5, import_hanji, warning, error, isRenamePromptItem, ResolveColumnSelect, tableKey, ResolveSelectNamed, ResolveSelect, ResolveSchemasSelect, Spinner2, ProgressView, init_views, glob, init_serializer, fillPgSnapshot, init_migrationPreparator, require_heap, require_heap2, require_difflib, require_difflib2, require_util, require_styles, require_has_flag2, require_supports_colors, require_trap, require_zalgo, require_america, require_zebra, require_rainbow, require_random, require_colors, require_safe, require_colorize, require_lib, import_json_diff, mapArraysDiff, findAlternationsInTable, alternationsInColumn, init_jsonDiffer, parseType, Convertor, PgCreateRoleConvertor, PgDropRoleConvertor, PgRenameRoleConvertor, PgAlterRoleConvertor, PgCreatePolicyConvertor, PgDropPolicyConvertor, PgRenamePolicyConvertor, PgAlterPolicyConvertor, PgCreateIndPolicyConvertor, PgDropIndPolicyConvertor, PgRenameIndPolicyConvertor, PgAlterIndPolicyConvertor, PgEnableRlsConvertor, PgDisableRlsConvertor, PgCreateTableConvertor, MySqlCreateTableConvertor, SingleStoreCreateTableConvertor, SQLiteCreateTableConvertor, PgCreateViewConvertor, MySqlCreateViewConvertor, SqliteCreateViewConvertor, PgDropViewConvertor, MySqlDropViewConvertor, SqliteDropViewConvertor, MySqlAlterViewConvertor, PgRenameViewConvertor, MySqlRenameViewConvertor, PgAlterViewSchemaConvertor, PgAlterViewAddWithOptionConvertor, PgAlterViewDropWithOptionConvertor, PgAlterViewAlterTablespaceConvertor, PgAlterViewAlterUsingConvertor, PgAlterTableAlterColumnSetGenerated, PgAlterTableAlterColumnDropGenerated, PgAlterTableAlterColumnAlterGenerated, PgAlterTableAddUniqueConstraintConvertor, PgAlterTableDropUniqueConstraintConvertor, PgAlterTableAddCheckConstraintConvertor, PgAlterTableDeleteCheckConstraintConvertor, MySQLAlterTableAddUniqueConstraintConvertor, MySQLAlterTableDropUniqueConstraintConvertor, MySqlAlterTableAddCheckConstraintConvertor, SingleStoreAlterTableAddUniqueConstraintConvertor, SingleStoreAlterTableDropUniqueConstraintConvertor, MySqlAlterTableDeleteCheckConstraintConvertor, CreatePgSequenceConvertor, DropPgSequenceConvertor, RenamePgSequenceConvertor, MovePgSequenceConvertor, AlterPgSequenceConvertor, CreateTypeEnumConvertor, DropTypeEnumConvertor, AlterTypeAddValueConvertor, AlterTypeSetSchemaConvertor, AlterRenameTypeConvertor, AlterTypeDropValueConvertor, PgDropTableConvertor, MySQLDropTableConvertor, SingleStoreDropTableConvertor, SQLiteDropTableConvertor, PgRenameTableConvertor, SqliteRenameTableConvertor, MySqlRenameTableConvertor, SingleStoreRenameTableConvertor, PgAlterTableRenameColumnConvertor, MySqlAlterTableRenameColumnConvertor, SingleStoreAlterTableRenameColumnConvertor, SQLiteAlterTableRenameColumnConvertor, PgAlterTableDropColumnConvertor, MySqlAlterTableDropColumnConvertor, SingleStoreAlterTableDropColumnConvertor, SQLiteAlterTableDropColumnConvertor, PgAlterTableAddColumnConvertor, MySqlAlterTableAddColumnConvertor, SingleStoreAlterTableAddColumnConvertor, SQLiteAlterTableAddColumnConvertor, PgAlterTableAlterColumnSetTypeConvertor, PgAlterTableAlterColumnSetDefaultConvertor, PgAlterTableAlterColumnDropDefaultConvertor, PgAlterTableAlterColumnDropGeneratedConvertor, PgAlterTableAlterColumnSetExpressionConvertor, PgAlterTableAlterColumnAlterrGeneratedConvertor, SqliteAlterTableAlterColumnDropGeneratedConvertor, SqliteAlterTableAlterColumnSetExpressionConvertor, SqliteAlterTableAlterColumnAlterGeneratedConvertor, MySqlAlterTableAlterColumnAlterrGeneratedConvertor, MySqlAlterTableAddPk, MySqlAlterTableDropPk, LibSQLModifyColumn, MySqlModifyColumn, SingleStoreAlterTableAlterColumnAlterrGeneratedConvertor, SingleStoreAlterTableAddPk, SingleStoreAlterTableDropPk, SingleStoreModifyColumn, PgAlterTableCreateCompositePrimaryKeyConvertor, PgAlterTableDeleteCompositePrimaryKeyConvertor, PgAlterTableAlterCompositePrimaryKeyConvertor, MySqlAlterTableCreateCompositePrimaryKeyConvertor, MySqlAlterTableDeleteCompositePrimaryKeyConvertor, MySqlAlterTableAlterCompositePrimaryKeyConvertor, PgAlterTableAlterColumnSetPrimaryKeyConvertor, PgAlterTableAlterColumnDropPrimaryKeyConvertor, PgAlterTableAlterColumnSetNotNullConvertor, PgAlterTableAlterColumnDropNotNullConvertor, PgCreateForeignKeyConvertor, LibSQLCreateForeignKeyConvertor, MySqlCreateForeignKeyConvertor, PgAlterForeignKeyConvertor, PgDeleteForeignKeyConvertor, MySqlDeleteForeignKeyConvertor, CreatePgIndexConvertor, CreateMySqlIndexConvertor, CreateSingleStoreIndexConvertor, CreateSqliteIndexConvertor, PgDropIndexConvertor, PgCreateSchemaConvertor, PgRenameSchemaConvertor, PgDropSchemaConvertor, PgAlterTableSetSchemaConvertor, PgAlterTableSetNewSchemaConvertor, PgAlterTableRemoveFromSchemaConvertor, SqliteDropIndexConvertor, MySqlDropIndexConvertor, SingleStoreDropIndexConvertor, SQLiteRecreateTableConvertor, LibSQLRecreateTableConvertor, SingleStoreRecreateTableConvertor, convertors, init_sqlgenerator, _moveDataStatements, getOldTableName, getNewTableName, logSuggestionsAndReturn, init_sqlitePushUtils, preparePgCreateTableJson, prepareMySqlCreateTableJson, prepareSingleStoreCreateTableJson, prepareSQLiteCreateTable, prepareDropTableJson, prepareRenameTableJson, prepareCreateEnumJson, prepareAddValuesToEnumJson, prepareDropEnumValues, prepareDropEnumJson, prepareMoveEnumJson, prepareRenameEnumJson, prepareCreateSequenceJson, prepareAlterSequenceJson, prepareDropSequenceJson, prepareMoveSequenceJson, prepareRenameSequenceJson, prepareCreateRoleJson, prepareAlterRoleJson, prepareDropRoleJson, prepareRenameRoleJson, prepareCreateSchemasJson, prepareRenameSchemasJson, prepareDeleteSchemasJson, prepareRenameColumns, _prepareDropColumns, _prepareAddColumns, _prepareSqliteAddColumns, prepareAlterColumnsMysql, preparePgAlterColumns, prepareSqliteAlterColumns, prepareRenamePolicyJsons, prepareRenameIndPolicyJsons, prepareCreatePolicyJsons, prepareCreateIndPolicyJsons, prepareDropPolicyJsons, prepareDropIndPolicyJsons, prepareAlterPolicyJson, prepareAlterIndPolicyJson, preparePgCreateIndexesJson, prepareCreateIndexesJson, prepareCreateReferencesJson, prepareLibSQLCreateReferencesJson, prepareDropReferencesJson, prepareLibSQLDropReferencesJson, prepareAlterReferencesJson, prepareDropIndexesJson, prepareAddCompositePrimaryKeySqlite, prepareDeleteCompositePrimaryKeySqlite, prepareAlterCompositePrimaryKeySqlite, prepareAddCompositePrimaryKeyPg, prepareDeleteCompositePrimaryKeyPg, prepareAlterCompositePrimaryKeyPg, prepareAddUniqueConstraintPg, prepareDeleteUniqueConstraintPg, prepareAddCheckConstraint, prepareDeleteCheckConstraint, prepareAddCompositePrimaryKeyMySql, prepareDeleteCompositePrimaryKeyMySql, prepareAlterCompositePrimaryKeyMySql, preparePgCreateViewJson, prepareMySqlCreateViewJson, prepareSqliteCreateViewJson, prepareDropViewJson, prepareRenameViewJson, preparePgAlterViewAlterSchemaJson, preparePgAlterViewAddWithOptionJson, preparePgAlterViewDropWithOptionJson, preparePgAlterViewAlterTablespaceJson, preparePgAlterViewAlterUsingJson, prepareMySqlAlterView, init_jsonStatements, prepareLibSQLRecreateTable, prepareSQLiteRecreateTable, libSQLCombineStatements, sqliteCombineStatements, prepareSingleStoreRecreateTable, singleStoreCombineStatements, init_statementCombiner, snapshotsDiffer_exports, makeChanged, makeSelfOrChanged, makePatched, makeSelfOrPatched, columnSchema, alteredColumnSchema, enumSchema3, changedEnumSchema, tableScheme, alteredTableScheme, alteredViewCommon, alteredPgViewSchema, alteredMySqlViewSchema, diffResultScheme, diffResultSchemeMysql, diffResultSchemeSingleStore, diffResultSchemeSQLite, schemaChangeFor, nameChangeFor, nameSchemaChangeFor, columnChangeFor, applyPgSnapshotsDiff, applyMysqlSnapshotsDiff, applySingleStoreSnapshotsDiff, applySqliteSnapshotsDiff, applyLibSQLSnapshotsDiff, init_snapshotsDiffer, init_words, dialects, dialect4, commonSquashedSchema, commonSchema, init_schemaValidator, sqliteDriversLiterals, postgresqlDriversLiterals, prefixes, prefix, casingTypes, casingType, sqliteDriver, postgresDriver, driver2, configMigrations, configCommonSchema, casing, introspectParams, configIntrospectCliSchema, configGenerateSchema, configPushSchema, init_common2, withStyle, init_outputs, import_hanji2, schemasResolver, tablesResolver, viewsResolver, mySqlViewsResolver, sqliteViewsResolver, sequencesResolver, roleResolver, policyResolver, indPolicyResolver, enumsResolver, columnsResolver, promptColumnsConflicts, promptNamedConflict, promptNamedWithSchemasConflict, promptSchemasConflict, BREAKPOINT, init_migrate, posixClasses, braceEscape, regexpEscape, rangesToString, parseClass, init_brace_expressions, escape, init_escape, unescape, init_unescape, import_brace_expansion, minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path, sep, GLOBSTAR, plTypes, qmark, star, twoStarDot, twoStarNoDot, charSet, reSpecials, addPatternStartSet, filter, ext, defaults, braceExpand, MAX_PATTERN_LENGTH, assertValidPattern, makeRe, match2, globUnescape, globMagic, regExpEscape, Minimatch, init_mjs, entityKind2, hasOwnEntityKind2, init_entity2, _a, Column2, init_column2, _a2, ColumnBuilder2, init_column_builder2, TableName2, init_table_utils2, _a3, ForeignKeyBuilder2, _a4, ForeignKey2, init_foreign_keys2, init_tracing_utils2, _a5, UniqueConstraintBuilder, _a6, UniqueOnConstraintBuilder, _a7, UniqueConstraint, init_unique_constraint2, init_array2, _a8, _b, PgColumnBuilder2, _a9, _b2, PgColumn2, _a10, _b3, ExtraConfigColumn2, _a11, IndexedColumn2, _a12, _b4, PgArrayBuilder2, _a13, _b5, _PgArray, PgArray2, init_common22, _a14, _b6, PgEnumObjectColumnBuilder2, _a15, _b7, PgEnumObjectColumn2, isPgEnumSym2, _a16, _b8, PgEnumColumnBuilder2, _a17, _b9, PgEnumColumn2, init_enum2, _a18, Subquery2, _a19, _b10, WithSubquery2, init_subquery2, version2, init_version2, otel2, rawTracer2, tracer2, init_tracing2, ViewBaseConfig2, init_view_common3, Schema2, Columns2, ExtraConfigColumns2, OriginalName2, BaseName2, IsAlias2, ExtraConfigBuilder2, IsDrizzleTable2, _a20, _b11, _c, _d, _e2, _f, _g, _h, _i, _j, Table2, init_table15, _a21, FakePrimitiveParam, _a22, StringChunk2, _a23, _SQL, SQL2, _a24, Name2, noopDecoder2, noopEncoder2, noopMapper2, _a25, Param2, _a26, Placeholder2, IsDrizzleView2, _a27, _b12, _c2, View3, init_sql3, _a28, ColumnAliasProxyHandler2, _a29, TableAliasProxyHandler2, _a30, RelationTableAliasProxyHandler, init_alias3, _a31, _b13, DrizzleError2, DrizzleQueryError, _a32, _b14, TransactionRollbackError2, init_errors22, _a33, ConsoleLogWriter2, _a34, DefaultLogger2, _a35, NoopLogger2, init_logger3, init_operations, _a36, _b15, QueryPromise2, init_query_promise2, textDecoder, init_utils22, _a37, _b16, PgIntColumnBaseBuilder2, init_int_common2, _a38, _b17, PgBigInt53Builder2, _a39, _b18, PgBigInt532, _a40, _b19, PgBigInt64Builder2, _a41, _b20, PgBigInt642, init_bigint2, _a42, _b21, PgBigSerial53Builder2, _a43, _b22, PgBigSerial532, _a44, _b23, PgBigSerial64Builder2, _a45, _b24, PgBigSerial642, init_bigserial2, _a46, _b25, PgBooleanBuilder2, _a47, _b26, PgBoolean2, init_boolean2, _a48, _b27, PgCharBuilder2, _a49, _b28, PgChar2, init_char2, _a50, _b29, PgCidrBuilder2, _a51, _b30, PgCidr2, init_cidr2, _a52, _b31, PgCustomColumnBuilder2, _a53, _b32, PgCustomColumn2, init_custom2, _a54, _b33, PgDateColumnBaseBuilder2, init_date_common2, _a55, _b34, PgDateBuilder2, _a56, _b35, PgDate2, _a57, _b36, PgDateStringBuilder2, _a58, _b37, PgDateString2, init_date2, _a59, _b38, PgDoublePrecisionBuilder2, _a60, _b39, PgDoublePrecision2, init_double_precision2, _a61, _b40, PgInetBuilder2, _a62, _b41, PgInet2, init_inet2, _a63, _b42, PgIntegerBuilder2, _a64, _b43, PgInteger2, init_integer2, _a65, _b44, PgIntervalBuilder2, _a66, _b45, PgInterval2, init_interval2, _a67, _b46, PgJsonBuilder2, _a68, _b47, PgJson2, init_json2, _a69, _b48, PgJsonbBuilder2, _a70, _b49, PgJsonb2, init_jsonb2, _a71, _b50, PgLineBuilder2, _a72, _b51, PgLineTuple2, _a73, _b52, PgLineABCBuilder2, _a74, _b53, PgLineABC2, init_line2, _a75, _b54, PgMacaddrBuilder2, _a76, _b55, PgMacaddr2, init_macaddr2, _a77, _b56, PgMacaddr8Builder2, _a78, _b57, PgMacaddr82, init_macaddr82, _a79, _b58, PgNumericBuilder2, _a80, _b59, PgNumeric2, _a81, _b60, PgNumericNumberBuilder2, _a82, _b61, PgNumericNumber2, _a83, _b62, PgNumericBigIntBuilder2, _a84, _b63, PgNumericBigInt2, init_numeric2, _a85, _b64, PgPointTupleBuilder2, _a86, _b65, PgPointTuple2, _a87, _b66, PgPointObjectBuilder2, _a88, _b67, PgPointObject2, init_point2, init_utils32, _a89, _b68, PgGeometryBuilder2, _a90, _b69, PgGeometry2, _a91, _b70, PgGeometryObjectBuilder2, _a92, _b71, PgGeometryObject2, init_geometry2, _a93, _b72, PgRealBuilder2, _a94, _b73, PgReal2, init_real2, _a95, _b74, PgSerialBuilder2, _a96, _b75, PgSerial2, init_serial2, _a97, _b76, PgSmallIntBuilder2, _a98, _b77, PgSmallInt2, init_smallint2, _a99, _b78, PgSmallSerialBuilder2, _a100, _b79, PgSmallSerial2, init_smallserial2, _a101, _b80, PgTextBuilder2, _a102, _b81, PgText2, init_text2, _a103, _b82, PgTimeBuilder2, _a104, _b83, PgTime2, init_time2, _a105, _b84, PgTimestampBuilder2, _a106, _b85, PgTimestamp2, _a107, _b86, PgTimestampStringBuilder2, _a108, _b87, PgTimestampString2, init_timestamp2, _a109, _b88, PgUUIDBuilder2, _a110, _b89, PgUUID2, init_uuid3, _a111, _b90, PgVarcharBuilder2, _a112, _b91, PgVarchar2, init_varchar2, _a113, _b92, PgBinaryVectorBuilder2, _a114, _b93, PgBinaryVector2, init_bit2, _a115, _b94, PgHalfVectorBuilder2, _a116, _b95, PgHalfVector2, init_halfvec2, _a117, _b96, PgSparseVectorBuilder2, _a118, _b97, PgSparseVector2, init_sparsevec2, _a119, _b98, PgVectorBuilder2, _a120, _b99, PgVector2, init_vector3, init_all2, InlineForeignKeys2, EnableRLS2, _a121, _b100, _c3, _d2, _e22, _f2, PgTable2, pgTable2, init_table22, _a122, PrimaryKeyBuilder2, _a123, PrimaryKey2, init_primary_keys2, eq2, ne3, gt3, gte2, lt3, lte2, init_conditions2, init_select3, init_expressions2, _a124, Relation2, _a125, Relations2, _a126, _b101, _One, One2, _a127, _b102, _Many, Many2, init_relations2, init_aggregate2, init_vector22, init_functions2, init_sql22, dist_exports, init_dist6, init_alias22, _a128, CheckBuilder, _a129, Check, init_checks2, init_columns2, _a130, _SelectionProxyHandler, SelectionProxyHandler2, init_selection_proxy2, _a131, IndexBuilderOn2, _a132, IndexBuilder2, _a133, Index2, init_indexes2, _a134, PgPolicy, init_policies2, PgViewConfig2, init_view_common22, _a135, CasingCache2, init_casing2, _a136, _b103, PgViewBase2, init_view_base2, _a137, PgDialect2, init_dialect2, _a138, TypedQueryBuilder2, init_query_builder3, _a139, PgSelectBuilder2, _a140, _b104, PgSelectQueryBuilderBase2, _a141, _b105, PgSelectBase2, getPgSetOperators2, union2, unionAll2, intersect2, intersectAll2, except2, exceptAll2, init_select22, _a142, QueryBuilder2, init_query_builder22, _a143, DefaultViewBuilderCore, _a144, _b106, ViewBuilder, _a145, _b107, ManualViewBuilder, _a146, MaterializedViewBuilderCore, _a147, _b108, MaterializedViewBuilder, _a148, _b109, ManualMaterializedViewBuilder, _a149, _b110, _c4, PgView2, PgMaterializedViewConfig2, _a150, _b111, _c5, PgMaterializedView, init_view2, init_utils42, _a151, _b112, PgDeleteBase2, init_delete2, _a152, PgInsertBuilder2, _a153, _b113, PgInsertBase2, init_insert2, _a154, _b114, PgRefreshMaterializedView2, init_refresh_materialized_view2, init_select_types, _a155, PgUpdateBuilder2, _a156, _b115, PgUpdateBase2, init_update2, init_query_builders2, _a157, _b116, _c6, _PgCountBuilder, PgCountBuilder2, init_count2, _a158, RelationalQueryBuilder2, _a159, _b117, PgRelationalQuery2, init_query2, _a160, _b118, PgRaw2, init_raw2, _a161, PgDatabase2, init_db2, _a162, PgRole, init_roles2, _a163, PgSequence, init_sequence2, _a164, PgSchema5, init_schema3, _a165, Cache, _a166, _b119, NoopCache, init_cache, _a167, PgPreparedQuery2, _a168, PgSession2, _a169, _b120, PgTransaction2, init_session3, init_subquery22, init_utils52, init_pg_core2, vectorOps, init_vector32, sqlToStr, init_utils6, indexName, generatePgSnapshot, trimChar, fromDatabase, defaultForColumn, getColumnsInfoQuery, init_pgSerializer, import_hanji4, Select, init_selector_ui, init_alias32, _a170, CheckBuilder2, _a171, Check2, init_checks22, _a172, ForeignKeyBuilder22, _a173, ForeignKey22, init_foreign_keys22, _a174, UniqueConstraintBuilder2, _a175, UniqueOnConstraintBuilder2, _a176, UniqueConstraint2, init_unique_constraint22, _a177, _b121, SQLiteColumnBuilder, _a178, _b122, SQLiteColumn, init_common3, _a179, _b123, SQLiteBigIntBuilder, _a180, _b124, SQLiteBigInt, _a181, _b125, SQLiteBlobJsonBuilder, _a182, _b126, SQLiteBlobJson, _a183, _b127, SQLiteBlobBufferBuilder, _a184, _b128, SQLiteBlobBuffer, init_blob, _a185, _b129, SQLiteCustomColumnBuilder, _a186, _b130, SQLiteCustomColumn, init_custom22, _a187, _b131, SQLiteBaseIntegerBuilder, _a188, _b132, SQLiteBaseInteger, _a189, _b133, SQLiteIntegerBuilder, _a190, _b134, SQLiteInteger, _a191, _b135, SQLiteTimestampBuilder, _a192, _b136, SQLiteTimestamp, _a193, _b137, SQLiteBooleanBuilder, _a194, _b138, SQLiteBoolean, init_integer22, _a195, _b139, SQLiteNumericBuilder, _a196, _b140, SQLiteNumeric, _a197, _b141, SQLiteNumericNumberBuilder, _a198, _b142, SQLiteNumericNumber, _a199, _b143, SQLiteNumericBigIntBuilder, _a200, _b144, SQLiteNumericBigInt, init_numeric22, _a201, _b145, SQLiteRealBuilder, _a202, _b146, SQLiteReal, init_real22, _a203, _b147, SQLiteTextBuilder, _a204, _b148, SQLiteText, _a205, _b149, SQLiteTextJsonBuilder, _a206, _b150, SQLiteTextJson, init_text22, init_columns22, init_all22, InlineForeignKeys22, _a207, _b151, _c7, _d3, _e3, SQLiteTable, sqliteTable, init_table32, _a208, IndexBuilderOn22, _a209, IndexBuilder22, _a210, Index4, init_indexes22, _a211, PrimaryKeyBuilder22, _a212, PrimaryKey22, init_primary_keys22, init_utils7, _a213, _b152, SQLiteDeleteBase, init_delete22, _a214, _b153, SQLiteViewBase, init_view_base22, _a215, SQLiteDialect, _a216, _b154, SQLiteSyncDialect, _a217, _b155, SQLiteAsyncDialect, init_dialect22, _a218, SQLiteSelectBuilder, _a219, _b156, SQLiteSelectQueryBuilderBase, _a220, _b157, SQLiteSelectBase, getSQLiteSetOperators, union3, unionAll22, intersect22, except22, init_select32, _a221, QueryBuilder22, init_query_builder32, _a222, SQLiteInsertBuilder, _a223, _b158, SQLiteInsertBase, init_insert22, init_select_types2, _a224, SQLiteUpdateBuilder, _a225, _b159, SQLiteUpdateBase, init_update22, init_query_builders22, _a226, _b160, _c8, _SQLiteCountBuilder, SQLiteCountBuilder, init_count22, _a227, RelationalQueryBuilder22, _a228, _b161, SQLiteRelationalQuery, _a229, _b162, SQLiteSyncRelationalQuery, init_query22, _a230, _b163, SQLiteRaw, init_raw22, _a231, BaseSQLiteDatabase, init_db22, _a232, _b164, ExecuteResultSync, _a233, SQLitePreparedQuery, _a234, SQLiteSession, _a235, _b165, SQLiteTransaction, init_session22, init_subquery3, _a236, ViewBuilderCore, _a237, _b166, ViewBuilder2, _a238, _b167, ManualViewBuilder2, _a239, _b168, SQLiteView2, init_view22, init_sqlite_core, generateSqliteSnapshot, fromDatabase2, init_sqliteSerializer, getTablesFilterByExtensions, init_getTablesFilterByExtensions, init_alias4, _a240, CheckBuilder3, _a241, Check3, init_checks3, _a242, ForeignKeyBuilder3, _a243, ForeignKey3, init_foreign_keys3, _a244, UniqueConstraintBuilder3, _a245, UniqueOnConstraintBuilder3, _a246, UniqueConstraint3, init_unique_constraint3, _a247, _b169, MySqlColumnBuilder, _a248, _b170, MySqlColumn, _a249, _b171, MySqlColumnBuilderWithAutoIncrement, _a250, _b172, MySqlColumnWithAutoIncrement, init_common4, _a251, _b173, MySqlBigInt53Builder, _a252, _b174, MySqlBigInt53, _a253, _b175, MySqlBigInt64Builder, _a254, _b176, MySqlBigInt64, init_bigint22, _a255, _b177, MySqlBinaryBuilder, _a256, _b178, MySqlBinary, init_binary, _a257, _b179, MySqlBooleanBuilder, _a258, _b180, MySqlBoolean, init_boolean22, _a259, _b181, MySqlCharBuilder, _a260, _b182, MySqlChar, init_char22, _a261, _b183, MySqlCustomColumnBuilder, _a262, _b184, MySqlCustomColumn, init_custom3, _a263, _b185, MySqlDateBuilder, _a264, _b186, MySqlDate, _a265, _b187, MySqlDateStringBuilder, _a266, _b188, MySqlDateString, init_date22, _a267, _b189, MySqlDateTimeBuilder, _a268, _b190, MySqlDateTime, _a269, _b191, MySqlDateTimeStringBuilder, _a270, _b192, MySqlDateTimeString, init_datetime, _a271, _b193, MySqlDecimalBuilder, _a272, _b194, MySqlDecimal, _a273, _b195, MySqlDecimalNumberBuilder, _a274, _b196, MySqlDecimalNumber, _a275, _b197, MySqlDecimalBigIntBuilder, _a276, _b198, MySqlDecimalBigInt, init_decimal, _a277, _b199, MySqlDoubleBuilder, _a278, _b200, MySqlDouble, init_double, _a279, _b201, MySqlEnumColumnBuilder, _a280, _b202, MySqlEnumColumn, _a281, _b203, MySqlEnumObjectColumnBuilder, _a282, _b204, MySqlEnumObjectColumn, init_enum22, _a283, _b205, MySqlFloatBuilder, _a284, _b206, MySqlFloat, init_float, _a285, _b207, MySqlIntBuilder, _a286, _b208, MySqlInt, init_int, _a287, _b209, MySqlJsonBuilder, _a288, _b210, MySqlJson, init_json22, _a289, _b211, MySqlMediumIntBuilder, _a290, _b212, MySqlMediumInt, init_mediumint, _a291, _b213, MySqlRealBuilder, _a292, _b214, MySqlReal, init_real3, _a293, _b215, MySqlSerialBuilder, _a294, _b216, MySqlSerial, init_serial22, _a295, _b217, MySqlSmallIntBuilder, _a296, _b218, MySqlSmallInt, init_smallint22, _a297, _b219, MySqlTextBuilder, _a298, _b220, MySqlText, init_text3, _a299, _b221, MySqlTimeBuilder, _a300, _b222, MySqlTime, init_time22, _a301, _b223, MySqlDateColumnBaseBuilder, _a302, _b224, MySqlDateBaseColumn, init_date_common22, _a303, _b225, MySqlTimestampBuilder, _a304, _b226, MySqlTimestamp, _a305, _b227, MySqlTimestampStringBuilder, _a306, _b228, MySqlTimestampString, init_timestamp22, _a307, _b229, MySqlTinyIntBuilder, _a308, _b230, MySqlTinyInt, init_tinyint, _a309, _b231, MySqlVarBinaryBuilder, _a310, _b232, MySqlVarBinary, init_varbinary, _a311, _b233, MySqlVarCharBuilder, _a312, _b234, MySqlVarChar, init_varchar22, _a313, _b235, MySqlYearBuilder, _a314, _b236, MySqlYear, init_year, init_columns3, _a315, _b237, _c9, _MySqlCountBuilder, MySqlCountBuilder, init_count3, _a316, IndexBuilderOn3, _a317, IndexBuilder3, _a318, Index5, init_indexes3, init_all3, InlineForeignKeys3, _a319, _b238, _c10, _d4, _e4, MySqlTable, mysqlTable, init_table42, _a320, PrimaryKeyBuilder3, _a321, PrimaryKey3, init_primary_keys3, MySqlViewConfig, init_view_common32, init_utils8, _a322, _b239, MySqlDeleteBase, init_delete3, _a323, _b240, MySqlViewBase, init_view_base3, _a324, MySqlDialect, init_dialect3, _a325, MySqlSelectBuilder, _a326, _b241, MySqlSelectQueryBuilderBase, _a327, _b242, MySqlSelectBase, getMySqlSetOperators, union4, unionAll3, intersect3, intersectAll22, except3, exceptAll22, init_select4, _a328, QueryBuilder3, init_query_builder4, _a329, MySqlInsertBuilder, _a330, _b243, MySqlInsertBase, init_insert3, init_select_types3, _a331, MySqlUpdateBuilder, _a332, _b244, MySqlUpdateBase, init_update3, init_query_builders3, _a333, RelationalQueryBuilder3, _a334, _b245, MySqlRelationalQuery, init_query3, _a335, MySqlDatabase, init_db3, _a336, ViewBuilderCore2, _a337, _b246, ViewBuilder3, _a338, _b247, ManualViewBuilder3, _a339, _b248, _c11, MySqlView2, init_view3, _a340, MySqlSchema5, init_schema22, _a341, MySqlPreparedQuery, _a342, MySqlSession, _a343, _b249, MySqlTransaction, init_session32, init_subquery4, init_mysql_core, handleEnumType, generateMySqlSnapshot, fromDatabase3, init_mysqlSerializer, cliConfigGenerate, pushParams, pullParams, configCheck, cliConfigCheck, init_cli, gelCredentials, init_gel, libSQLCredentials, init_libsql, mysqlCredentials, init_mysql, postgresCredentials, init_postgres, singlestoreCredentials, init_singlestore, sqliteCredentials, init_sqlite, credentials, studioCliParams, studioConfig, init_studio, es5_exports, _3, es5_default, init_es5, import_hanji7, assertES5, safeRegister, migrateConfig, init_utils9, prepareFromExports, init_pgImports, init_alias5, _a344, UniqueConstraintBuilder4, _a345, UniqueOnConstraintBuilder4, _a346, UniqueConstraint4, init_unique_constraint4, _a347, _b250, SingleStoreColumnBuilder, _a348, _b251, SingleStoreColumn, _a349, _b252, SingleStoreColumnBuilderWithAutoIncrement, _a350, _b253, SingleStoreColumnWithAutoIncrement, init_common5, _a351, _b254, SingleStoreBigInt53Builder, _a352, _b255, SingleStoreBigInt53, _a353, _b256, SingleStoreBigInt64Builder, _a354, _b257, SingleStoreBigInt64, init_bigint3, _a355, _b258, SingleStoreBinaryBuilder, _a356, _b259, SingleStoreBinary, init_binary2, _a357, _b260, SingleStoreBooleanBuilder, _a358, _b261, SingleStoreBoolean, init_boolean3, _a359, _b262, SingleStoreCharBuilder, _a360, _b263, SingleStoreChar, init_char3, _a361, _b264, SingleStoreCustomColumnBuilder, _a362, _b265, SingleStoreCustomColumn, init_custom4, _a363, _b266, SingleStoreDateBuilder, _a364, _b267, SingleStoreDate, _a365, _b268, SingleStoreDateStringBuilder, _a366, _b269, SingleStoreDateString, init_date3, _a367, _b270, SingleStoreDateTimeBuilder, _a368, _b271, SingleStoreDateTime, _a369, _b272, SingleStoreDateTimeStringBuilder, _a370, _b273, SingleStoreDateTimeString, init_datetime2, _a371, _b274, SingleStoreDecimalBuilder, _a372, _b275, SingleStoreDecimal, _a373, _b276, SingleStoreDecimalNumberBuilder, _a374, _b277, SingleStoreDecimalNumber, _a375, _b278, SingleStoreDecimalBigIntBuilder, _a376, _b279, SingleStoreDecimalBigInt, init_decimal2, _a377, _b280, SingleStoreDoubleBuilder, _a378, _b281, SingleStoreDouble, init_double2, _a379, _b282, SingleStoreEnumColumnBuilder, _a380, _b283, SingleStoreEnumColumn, init_enum3, _a381, _b284, SingleStoreFloatBuilder, _a382, _b285, SingleStoreFloat, init_float2, _a383, _b286, SingleStoreIntBuilder, _a384, _b287, SingleStoreInt, init_int2, _a385, _b288, SingleStoreJsonBuilder, _a386, _b289, SingleStoreJson, init_json3, _a387, _b290, SingleStoreMediumIntBuilder, _a388, _b291, SingleStoreMediumInt, init_mediumint2, _a389, _b292, SingleStoreRealBuilder, _a390, _b293, SingleStoreReal, init_real4, _a391, _b294, SingleStoreSerialBuilder, _a392, _b295, SingleStoreSerial, init_serial3, _a393, _b296, SingleStoreSmallIntBuilder, _a394, _b297, SingleStoreSmallInt, init_smallint3, _a395, _b298, SingleStoreTextBuilder, _a396, _b299, SingleStoreText, init_text4, _a397, _b300, SingleStoreTimeBuilder, _a398, _b301, SingleStoreTime, init_time3, _a399, _b302, SingleStoreDateColumnBaseBuilder, _a400, _b303, SingleStoreDateBaseColumn, init_date_common3, _a401, _b304, SingleStoreTimestampBuilder, _a402, _b305, SingleStoreTimestamp, _a403, _b306, SingleStoreTimestampStringBuilder, _a404, _b307, SingleStoreTimestampString, init_timestamp3, _a405, _b308, SingleStoreTinyIntBuilder, _a406, _b309, SingleStoreTinyInt, init_tinyint2, _a407, _b310, SingleStoreVarBinaryBuilder, _a408, _b311, SingleStoreVarBinary, init_varbinary2, _a409, _b312, SingleStoreVarCharBuilder, _a410, _b313, SingleStoreVarChar, init_varchar3, _a411, _b314, SingleStoreVectorBuilder, _a412, _b315, SingleStoreVector, init_vector4, _a413, _b316, SingleStoreYearBuilder, _a414, _b317, SingleStoreYear, init_year2, init_columns4, _a415, _b318, _c12, _SingleStoreCountBuilder, SingleStoreCountBuilder, init_count4, _a416, IndexBuilderOn4, _a417, IndexBuilder4, _a418, Index6, init_indexes4, init_all4, _a419, _b319, _c13, _d5, SingleStoreTable, init_table52, _a420, PrimaryKeyBuilder4, _a421, PrimaryKey4, init_primary_keys4, init_utils10, _a422, _b320, SingleStoreDeleteBase, init_delete4, _a423, SingleStoreInsertBuilder, _a424, _b321, SingleStoreInsertBase, init_insert4, _a425, SingleStoreDialect, init_dialect4, _a426, SingleStoreSelectBuilder, _a427, _b322, SingleStoreSelectQueryBuilderBase, _a428, _b323, SingleStoreSelectBase, getSingleStoreSetOperators, union5, unionAll4, intersect4, except4, minus, init_select5, _a429, QueryBuilder4, init_query_builder5, init_select_types4, _a430, SingleStoreUpdateBuilder, _a431, _b324, SingleStoreUpdateBase, init_update4, init_query_builders4, _a432, SingleStoreDatabase, init_db4, _a433, SingleStoreSchema5, init_schema32, _a434, SingleStorePreparedQuery, _a435, SingleStoreSession, _a436, _b325, SingleStoreTransaction, init_session4, init_subquery5, init_singlestore_core, dialect5, generateSingleStoreSnapshot, fromDatabase4, init_singlestoreSerializer, sqliteImports_exports, prepareFromExports2, prepareFromSqliteImports, init_sqliteImports, mysqlImports_exports, prepareFromExports3, prepareFromMySqlImports, init_mysqlImports, mysqlPushUtils_exports, import_hanji8, filterStatements, logSuggestionsAndReturn2, init_mysqlPushUtils, mysqlIntrospect_exports, import_hanji9, mysqlPushIntrospect, init_mysqlIntrospect, singlestoreImports_exports, prepareFromExports4, prepareFromSingleStoreImports, init_singlestoreImports, singlestorePushUtils_exports, import_hanji10, filterStatements2, logSuggestionsAndReturn3, init_singlestorePushUtils, singlestoreIntrospect_exports, import_hanji11, singlestorePushIntrospect, init_singlestoreIntrospect, import_hanji3, pgPushIntrospect = async (db2, filters, schemaFilters, entities, tsSchema) => {
|
|
44051
|
+
}, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target, mod)), __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value), ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles3, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default, init_ansi_styles, env, flagForceColor, supportsColor, supports_color_default, init_supports_color, init_utilities, stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles22, applyOptions, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default, init_source, require_old, require_fs, require_path, require_balanced_match, require_brace_expansion, require_minimatch, require_inherits_browser, require_inherits, require_common2, require_sync, require_wrappy, require_once, require_inflight, require_glob, require_readline, require_src2, require_utils, require_lodash, require_hanji, originUUID, snapshotVersion, mapValues, mapKeys, mapEntries, customMapEntries, init_global2, util4, objectUtil3, ZodParsedType3, getParsedType3, init_util2, ZodIssueCode3, ZodError4, init_ZodError2, errorMap3, en_default3, init_en2, overrideErrorMap3, init_errors4, makeIssue3, ParseStatus3, INVALID3, DIRTY3, OK3, isAborted3, isDirty3, isValid3, isAsync3, init_parseUtil2, init_typeAliases2, errorUtil3, init_errorUtil2, ParseInputLazyPath3, handleResult3, ZodType3, cuidRegex3, cuid2Regex3, ulidRegex3, uuidRegex3, nanoidRegex3, jwtRegex3, durationRegex3, emailRegex3, _emojiRegex3, emojiRegex3, ipv4Regex3, ipv4CidrRegex3, ipv6Regex3, ipv6CidrRegex3, base64Regex3, base64urlRegex3, dateRegexSource3, dateRegex3, ZodString3, ZodNumber3, ZodBigInt3, ZodBoolean3, ZodDate3, ZodSymbol3, ZodUndefined3, ZodNull3, ZodAny3, ZodUnknown3, ZodNever3, ZodVoid3, ZodArray3, ZodObject3, ZodUnion3, getDiscriminator3, ZodDiscriminatedUnion3, ZodIntersection3, ZodTuple3, ZodRecord3, ZodMap3, ZodSet3, ZodFunction3, ZodLazy3, ZodLiteral3, ZodEnum3, ZodNativeEnum3, ZodPromise3, ZodEffects3, ZodOptional3, ZodNullable3, ZodDefault3, ZodCatch3, ZodNaN3, BRAND3, ZodBranded3, ZodPipeline3, ZodReadonly3, late3, ZodFirstPartyTypeKind3, stringType3, numberType3, nanType3, bigIntType3, booleanType3, dateType3, symbolType3, undefinedType3, nullType3, anyType3, unknownType3, neverType3, voidType3, arrayType3, objectType3, strictObjectType3, unionType3, discriminatedUnionType3, intersectionType3, tupleType3, recordType3, mapType3, setType3, functionType3, lazyType3, literalType3, enumType3, nativeEnumType3, promiseType3, effectsType3, optionalType3, nullableType3, preprocessType3, pipelineType3, coerce3, init_types8, init_external2, init_v32, init_esm2, enumSchema, enumSchemaV1, indexColumn, index2, fk, sequenceSchema, roleSchema, sequenceSquashed, column2, checkConstraint, columnSquashed, compositePK, uniqueConstraint, policy, policySquashed, viewWithOption, matViewWithOption, mergedViewWithOption, view2, table15, schemaHash, kitInternals, gelSchemaExternal, gelSchemaInternal, tableSquashed, gelSchemaSquashed, gelSchema, dryGel, init_gelSchema, index22, fk2, column22, tableV3, compositePK2, uniqueConstraint2, checkConstraint2, tableV4, table22, viewMeta, view22, kitInternals2, dialect2, schemaHash2, schemaInternalV3, schemaInternalV4, schemaInternalV5, schemaInternal, schemaV3, schemaV4, schemaV5, schema2, tableSquashedV4, tableSquashed2, viewSquashed, schemaSquashed, schemaSquashedV4, MySqlSquasher, squashMysqlScheme, mysqlSchema, mysqlSchemaV5, mysqlSchemaSquashed, backwardCompatibleMysqlSchema, dryMySql, init_mysqlSchema, indexV2, columnV2, tableV2, enumSchemaV12, enumSchema2, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn2, index3, indexV4, indexV5, indexV6, fk3, sequenceSchema2, roleSchema2, sequenceSquashed2, columnV7, column3, checkConstraint3, columnSquashed2, tableV32, compositePK3, uniqueConstraint3, policy2, policySquashed2, viewWithOption2, matViewWithOption2, mergedViewWithOption2, view3, tableV42, tableV5, tableV6, tableV7, table32, schemaHash3, kitInternals3, pgSchemaInternalV3, pgSchemaInternalV4, pgSchemaInternalV5, pgSchemaInternalV6, pgSchemaExternal, pgSchemaInternalV7, pgSchemaInternal, tableSquashed3, tableSquashedV42, pgSchemaSquashedV4, pgSchemaSquashedV6, pgSchemaSquashed, pgSchemaV3, pgSchemaV4, pgSchemaV5, pgSchemaV6, pgSchemaV7, pgSchema, backwardCompatiblePgSchema, PgSquasher, squashPgScheme, dryPg, init_pgSchema, index4, column4, compositePK4, uniqueConstraint4, table42, viewMeta2, kitInternals4, dialect22, schemaHash4, schemaInternal2, schema22, tableSquashed4, schemaSquashed2, SingleStoreSquasher, squashSingleStoreScheme, singlestoreSchema, singlestoreSchemaSquashed, backwardCompatibleSingleStoreSchema, drySingleStore, init_singlestoreSchema, index5, fk4, compositePK5, column5, tableV33, uniqueConstraint5, checkConstraint4, table52, view4, dialect3, schemaHash5, schemaInternalV32, schemaInternalV42, schemaInternalV52, kitInternals5, latestVersion, schemaInternal3, schemaV32, schemaV42, schemaV52, schema3, tableSquashed5, schemaSquashed3, SQLiteSquasher, squashSqliteScheme, drySQLite, sqliteSchemaV5, sqliteSchema, SQLiteSchemaSquashed, backwardCompatibleSqliteSchema, init_sqliteSchema, copy, prepareMigrationMeta, schemaRenameKey, tableRenameKey, columnRenameKey, init_utils5, import_hanji, warning, error, isRenamePromptItem, ResolveColumnSelect, tableKey, ResolveSelectNamed, ResolveSelect, ResolveSchemasSelect, Spinner3, ProgressView, init_views, glob, init_serializer, fillPgSnapshot, init_migrationPreparator, require_heap, require_heap2, require_difflib, require_difflib2, require_util, require_styles, require_has_flag2, require_supports_colors, require_trap, require_zalgo, require_america, require_zebra, require_rainbow, require_random, require_colors, require_safe, require_colorize, require_lib, import_json_diff, mapArraysDiff, findAlternationsInTable, alternationsInColumn, init_jsonDiffer, parseType, Convertor, PgCreateRoleConvertor, PgDropRoleConvertor, PgRenameRoleConvertor, PgAlterRoleConvertor, PgCreatePolicyConvertor, PgDropPolicyConvertor, PgRenamePolicyConvertor, PgAlterPolicyConvertor, PgCreateIndPolicyConvertor, PgDropIndPolicyConvertor, PgRenameIndPolicyConvertor, PgAlterIndPolicyConvertor, PgEnableRlsConvertor, PgDisableRlsConvertor, PgCreateTableConvertor, MySqlCreateTableConvertor, SingleStoreCreateTableConvertor, SQLiteCreateTableConvertor, PgCreateViewConvertor, MySqlCreateViewConvertor, SqliteCreateViewConvertor, PgDropViewConvertor, MySqlDropViewConvertor, SqliteDropViewConvertor, MySqlAlterViewConvertor, PgRenameViewConvertor, MySqlRenameViewConvertor, PgAlterViewSchemaConvertor, PgAlterViewAddWithOptionConvertor, PgAlterViewDropWithOptionConvertor, PgAlterViewAlterTablespaceConvertor, PgAlterViewAlterUsingConvertor, PgAlterTableAlterColumnSetGenerated, PgAlterTableAlterColumnDropGenerated, PgAlterTableAlterColumnAlterGenerated, PgAlterTableAddUniqueConstraintConvertor, PgAlterTableDropUniqueConstraintConvertor, PgAlterTableAddCheckConstraintConvertor, PgAlterTableDeleteCheckConstraintConvertor, MySQLAlterTableAddUniqueConstraintConvertor, MySQLAlterTableDropUniqueConstraintConvertor, MySqlAlterTableAddCheckConstraintConvertor, SingleStoreAlterTableAddUniqueConstraintConvertor, SingleStoreAlterTableDropUniqueConstraintConvertor, MySqlAlterTableDeleteCheckConstraintConvertor, CreatePgSequenceConvertor, DropPgSequenceConvertor, RenamePgSequenceConvertor, MovePgSequenceConvertor, AlterPgSequenceConvertor, CreateTypeEnumConvertor, DropTypeEnumConvertor, AlterTypeAddValueConvertor, AlterTypeSetSchemaConvertor, AlterRenameTypeConvertor, AlterTypeDropValueConvertor, PgDropTableConvertor, MySQLDropTableConvertor, SingleStoreDropTableConvertor, SQLiteDropTableConvertor, PgRenameTableConvertor, SqliteRenameTableConvertor, MySqlRenameTableConvertor, SingleStoreRenameTableConvertor, PgAlterTableRenameColumnConvertor, MySqlAlterTableRenameColumnConvertor, SingleStoreAlterTableRenameColumnConvertor, SQLiteAlterTableRenameColumnConvertor, PgAlterTableDropColumnConvertor, MySqlAlterTableDropColumnConvertor, SingleStoreAlterTableDropColumnConvertor, SQLiteAlterTableDropColumnConvertor, PgAlterTableAddColumnConvertor, MySqlAlterTableAddColumnConvertor, SingleStoreAlterTableAddColumnConvertor, SQLiteAlterTableAddColumnConvertor, PgAlterTableAlterColumnSetTypeConvertor, PgAlterTableAlterColumnSetDefaultConvertor, PgAlterTableAlterColumnDropDefaultConvertor, PgAlterTableAlterColumnDropGeneratedConvertor, PgAlterTableAlterColumnSetExpressionConvertor, PgAlterTableAlterColumnAlterrGeneratedConvertor, SqliteAlterTableAlterColumnDropGeneratedConvertor, SqliteAlterTableAlterColumnSetExpressionConvertor, SqliteAlterTableAlterColumnAlterGeneratedConvertor, MySqlAlterTableAlterColumnAlterrGeneratedConvertor, MySqlAlterTableAddPk, MySqlAlterTableDropPk, LibSQLModifyColumn, MySqlModifyColumn, SingleStoreAlterTableAlterColumnAlterrGeneratedConvertor, SingleStoreAlterTableAddPk, SingleStoreAlterTableDropPk, SingleStoreModifyColumn, PgAlterTableCreateCompositePrimaryKeyConvertor, PgAlterTableDeleteCompositePrimaryKeyConvertor, PgAlterTableAlterCompositePrimaryKeyConvertor, MySqlAlterTableCreateCompositePrimaryKeyConvertor, MySqlAlterTableDeleteCompositePrimaryKeyConvertor, MySqlAlterTableAlterCompositePrimaryKeyConvertor, PgAlterTableAlterColumnSetPrimaryKeyConvertor, PgAlterTableAlterColumnDropPrimaryKeyConvertor, PgAlterTableAlterColumnSetNotNullConvertor, PgAlterTableAlterColumnDropNotNullConvertor, PgCreateForeignKeyConvertor, LibSQLCreateForeignKeyConvertor, MySqlCreateForeignKeyConvertor, PgAlterForeignKeyConvertor, PgDeleteForeignKeyConvertor, MySqlDeleteForeignKeyConvertor, CreatePgIndexConvertor, CreateMySqlIndexConvertor, CreateSingleStoreIndexConvertor, CreateSqliteIndexConvertor, PgDropIndexConvertor, PgCreateSchemaConvertor, PgRenameSchemaConvertor, PgDropSchemaConvertor, PgAlterTableSetSchemaConvertor, PgAlterTableSetNewSchemaConvertor, PgAlterTableRemoveFromSchemaConvertor, SqliteDropIndexConvertor, MySqlDropIndexConvertor, SingleStoreDropIndexConvertor, SQLiteRecreateTableConvertor, LibSQLRecreateTableConvertor, SingleStoreRecreateTableConvertor, convertors, init_sqlgenerator, _moveDataStatements, getOldTableName, getNewTableName, logSuggestionsAndReturn, init_sqlitePushUtils, preparePgCreateTableJson, prepareMySqlCreateTableJson, prepareSingleStoreCreateTableJson, prepareSQLiteCreateTable, prepareDropTableJson, prepareRenameTableJson, prepareCreateEnumJson, prepareAddValuesToEnumJson, prepareDropEnumValues, prepareDropEnumJson, prepareMoveEnumJson, prepareRenameEnumJson, prepareCreateSequenceJson, prepareAlterSequenceJson, prepareDropSequenceJson, prepareMoveSequenceJson, prepareRenameSequenceJson, prepareCreateRoleJson, prepareAlterRoleJson, prepareDropRoleJson, prepareRenameRoleJson, prepareCreateSchemasJson, prepareRenameSchemasJson, prepareDeleteSchemasJson, prepareRenameColumns, _prepareDropColumns, _prepareAddColumns, _prepareSqliteAddColumns, prepareAlterColumnsMysql, preparePgAlterColumns, prepareSqliteAlterColumns, prepareRenamePolicyJsons, prepareRenameIndPolicyJsons, prepareCreatePolicyJsons, prepareCreateIndPolicyJsons, prepareDropPolicyJsons, prepareDropIndPolicyJsons, prepareAlterPolicyJson, prepareAlterIndPolicyJson, preparePgCreateIndexesJson, prepareCreateIndexesJson, prepareCreateReferencesJson, prepareLibSQLCreateReferencesJson, prepareDropReferencesJson, prepareLibSQLDropReferencesJson, prepareAlterReferencesJson, prepareDropIndexesJson, prepareAddCompositePrimaryKeySqlite, prepareDeleteCompositePrimaryKeySqlite, prepareAlterCompositePrimaryKeySqlite, prepareAddCompositePrimaryKeyPg, prepareDeleteCompositePrimaryKeyPg, prepareAlterCompositePrimaryKeyPg, prepareAddUniqueConstraintPg, prepareDeleteUniqueConstraintPg, prepareAddCheckConstraint, prepareDeleteCheckConstraint, prepareAddCompositePrimaryKeyMySql, prepareDeleteCompositePrimaryKeyMySql, prepareAlterCompositePrimaryKeyMySql, preparePgCreateViewJson, prepareMySqlCreateViewJson, prepareSqliteCreateViewJson, prepareDropViewJson, prepareRenameViewJson, preparePgAlterViewAlterSchemaJson, preparePgAlterViewAddWithOptionJson, preparePgAlterViewDropWithOptionJson, preparePgAlterViewAlterTablespaceJson, preparePgAlterViewAlterUsingJson, prepareMySqlAlterView, init_jsonStatements, prepareLibSQLRecreateTable, prepareSQLiteRecreateTable, libSQLCombineStatements, sqliteCombineStatements, prepareSingleStoreRecreateTable, singleStoreCombineStatements, init_statementCombiner, snapshotsDiffer_exports, makeChanged, makeSelfOrChanged, makePatched, makeSelfOrPatched, columnSchema, alteredColumnSchema, enumSchema3, changedEnumSchema, tableScheme, alteredTableScheme, alteredViewCommon, alteredPgViewSchema, alteredMySqlViewSchema, diffResultScheme, diffResultSchemeMysql, diffResultSchemeSingleStore, diffResultSchemeSQLite, schemaChangeFor, nameChangeFor, nameSchemaChangeFor, columnChangeFor, applyPgSnapshotsDiff, applyMysqlSnapshotsDiff, applySingleStoreSnapshotsDiff, applySqliteSnapshotsDiff, applyLibSQLSnapshotsDiff, init_snapshotsDiffer, init_words, dialects, dialect4, commonSquashedSchema, commonSchema, init_schemaValidator, sqliteDriversLiterals, postgresqlDriversLiterals, prefixes, prefix, casingTypes, casingType, sqliteDriver, postgresDriver, driver2, configMigrations, configCommonSchema, casing, introspectParams, configIntrospectCliSchema, configGenerateSchema, configPushSchema, init_common2, withStyle, init_outputs, import_hanji2, schemasResolver, tablesResolver, viewsResolver, mySqlViewsResolver, sqliteViewsResolver, sequencesResolver, roleResolver, policyResolver, indPolicyResolver, enumsResolver, columnsResolver, promptColumnsConflicts, promptNamedConflict, promptNamedWithSchemasConflict, promptSchemasConflict, BREAKPOINT, init_migrate, posixClasses, braceEscape, regexpEscape, rangesToString, parseClass, init_brace_expressions, escape, init_escape, unescape, init_unescape, import_brace_expansion, minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path, sep, GLOBSTAR, plTypes, qmark, star, twoStarDot, twoStarNoDot, charSet, reSpecials, addPatternStartSet, filter, ext, defaults, braceExpand, MAX_PATTERN_LENGTH, assertValidPattern, makeRe, match2, globUnescape, globMagic, regExpEscape, Minimatch, init_mjs, entityKind2, hasOwnEntityKind2, init_entity2, _a, Column2, init_column2, _a2, ColumnBuilder2, init_column_builder2, TableName2, init_table_utils2, _a3, ForeignKeyBuilder2, _a4, ForeignKey2, init_foreign_keys2, init_tracing_utils2, _a5, UniqueConstraintBuilder, _a6, UniqueOnConstraintBuilder, _a7, UniqueConstraint, init_unique_constraint2, init_array2, _a8, _b, PgColumnBuilder2, _a9, _b2, PgColumn2, _a10, _b3, ExtraConfigColumn2, _a11, IndexedColumn2, _a12, _b4, PgArrayBuilder2, _a13, _b5, _PgArray, PgArray2, init_common22, _a14, _b6, PgEnumObjectColumnBuilder2, _a15, _b7, PgEnumObjectColumn2, isPgEnumSym2, _a16, _b8, PgEnumColumnBuilder2, _a17, _b9, PgEnumColumn2, init_enum2, _a18, Subquery2, _a19, _b10, WithSubquery2, init_subquery2, version2, init_version2, otel2, rawTracer2, tracer2, init_tracing2, ViewBaseConfig2, init_view_common3, Schema2, Columns2, ExtraConfigColumns2, OriginalName2, BaseName2, IsAlias2, ExtraConfigBuilder2, IsDrizzleTable2, _a20, _b11, _c, _d, _e2, _f, _g, _h, _i, _j, Table2, init_table15, _a21, FakePrimitiveParam, _a22, StringChunk2, _a23, _SQL, SQL2, _a24, Name2, noopDecoder2, noopEncoder2, noopMapper2, _a25, Param2, _a26, Placeholder2, IsDrizzleView2, _a27, _b12, _c2, View3, init_sql3, _a28, ColumnAliasProxyHandler2, _a29, TableAliasProxyHandler2, _a30, RelationTableAliasProxyHandler, init_alias3, _a31, _b13, DrizzleError2, DrizzleQueryError, _a32, _b14, TransactionRollbackError2, init_errors22, _a33, ConsoleLogWriter2, _a34, DefaultLogger2, _a35, NoopLogger2, init_logger3, init_operations, _a36, _b15, QueryPromise2, init_query_promise2, textDecoder, init_utils22, _a37, _b16, PgIntColumnBaseBuilder2, init_int_common2, _a38, _b17, PgBigInt53Builder2, _a39, _b18, PgBigInt532, _a40, _b19, PgBigInt64Builder2, _a41, _b20, PgBigInt642, init_bigint2, _a42, _b21, PgBigSerial53Builder2, _a43, _b22, PgBigSerial532, _a44, _b23, PgBigSerial64Builder2, _a45, _b24, PgBigSerial642, init_bigserial2, _a46, _b25, PgBooleanBuilder2, _a47, _b26, PgBoolean2, init_boolean2, _a48, _b27, PgCharBuilder2, _a49, _b28, PgChar2, init_char2, _a50, _b29, PgCidrBuilder2, _a51, _b30, PgCidr2, init_cidr2, _a52, _b31, PgCustomColumnBuilder2, _a53, _b32, PgCustomColumn2, init_custom2, _a54, _b33, PgDateColumnBaseBuilder2, init_date_common2, _a55, _b34, PgDateBuilder2, _a56, _b35, PgDate2, _a57, _b36, PgDateStringBuilder2, _a58, _b37, PgDateString2, init_date2, _a59, _b38, PgDoublePrecisionBuilder2, _a60, _b39, PgDoublePrecision2, init_double_precision2, _a61, _b40, PgInetBuilder2, _a62, _b41, PgInet2, init_inet2, _a63, _b42, PgIntegerBuilder2, _a64, _b43, PgInteger2, init_integer2, _a65, _b44, PgIntervalBuilder2, _a66, _b45, PgInterval2, init_interval2, _a67, _b46, PgJsonBuilder2, _a68, _b47, PgJson2, init_json2, _a69, _b48, PgJsonbBuilder2, _a70, _b49, PgJsonb2, init_jsonb2, _a71, _b50, PgLineBuilder2, _a72, _b51, PgLineTuple2, _a73, _b52, PgLineABCBuilder2, _a74, _b53, PgLineABC2, init_line2, _a75, _b54, PgMacaddrBuilder2, _a76, _b55, PgMacaddr2, init_macaddr2, _a77, _b56, PgMacaddr8Builder2, _a78, _b57, PgMacaddr82, init_macaddr82, _a79, _b58, PgNumericBuilder2, _a80, _b59, PgNumeric2, _a81, _b60, PgNumericNumberBuilder2, _a82, _b61, PgNumericNumber2, _a83, _b62, PgNumericBigIntBuilder2, _a84, _b63, PgNumericBigInt2, init_numeric2, _a85, _b64, PgPointTupleBuilder2, _a86, _b65, PgPointTuple2, _a87, _b66, PgPointObjectBuilder2, _a88, _b67, PgPointObject2, init_point2, init_utils32, _a89, _b68, PgGeometryBuilder2, _a90, _b69, PgGeometry2, _a91, _b70, PgGeometryObjectBuilder2, _a92, _b71, PgGeometryObject2, init_geometry2, _a93, _b72, PgRealBuilder2, _a94, _b73, PgReal2, init_real2, _a95, _b74, PgSerialBuilder2, _a96, _b75, PgSerial2, init_serial2, _a97, _b76, PgSmallIntBuilder2, _a98, _b77, PgSmallInt2, init_smallint2, _a99, _b78, PgSmallSerialBuilder2, _a100, _b79, PgSmallSerial2, init_smallserial2, _a101, _b80, PgTextBuilder2, _a102, _b81, PgText2, init_text2, _a103, _b82, PgTimeBuilder2, _a104, _b83, PgTime2, init_time2, _a105, _b84, PgTimestampBuilder2, _a106, _b85, PgTimestamp2, _a107, _b86, PgTimestampStringBuilder2, _a108, _b87, PgTimestampString2, init_timestamp2, _a109, _b88, PgUUIDBuilder2, _a110, _b89, PgUUID2, init_uuid3, _a111, _b90, PgVarcharBuilder2, _a112, _b91, PgVarchar2, init_varchar2, _a113, _b92, PgBinaryVectorBuilder2, _a114, _b93, PgBinaryVector2, init_bit2, _a115, _b94, PgHalfVectorBuilder2, _a116, _b95, PgHalfVector2, init_halfvec2, _a117, _b96, PgSparseVectorBuilder2, _a118, _b97, PgSparseVector2, init_sparsevec2, _a119, _b98, PgVectorBuilder2, _a120, _b99, PgVector2, init_vector3, init_all2, InlineForeignKeys2, EnableRLS2, _a121, _b100, _c3, _d2, _e22, _f2, PgTable2, pgTable2, init_table22, _a122, PrimaryKeyBuilder2, _a123, PrimaryKey2, init_primary_keys2, eq2, ne3, gt3, gte2, lt3, lte2, init_conditions2, init_select3, init_expressions2, _a124, Relation2, _a125, Relations2, _a126, _b101, _One, One2, _a127, _b102, _Many, Many2, init_relations2, init_aggregate2, init_vector22, init_functions2, init_sql22, dist_exports, init_dist6, init_alias22, _a128, CheckBuilder, _a129, Check, init_checks2, init_columns2, _a130, _SelectionProxyHandler, SelectionProxyHandler2, init_selection_proxy2, _a131, IndexBuilderOn2, _a132, IndexBuilder2, _a133, Index2, init_indexes2, _a134, PgPolicy, init_policies2, PgViewConfig2, init_view_common22, _a135, CasingCache2, init_casing2, _a136, _b103, PgViewBase2, init_view_base2, _a137, PgDialect2, init_dialect2, _a138, TypedQueryBuilder2, init_query_builder3, _a139, PgSelectBuilder2, _a140, _b104, PgSelectQueryBuilderBase2, _a141, _b105, PgSelectBase2, getPgSetOperators2, union2, unionAll2, intersect2, intersectAll2, except2, exceptAll2, init_select22, _a142, QueryBuilder2, init_query_builder22, _a143, DefaultViewBuilderCore, _a144, _b106, ViewBuilder, _a145, _b107, ManualViewBuilder, _a146, MaterializedViewBuilderCore, _a147, _b108, MaterializedViewBuilder, _a148, _b109, ManualMaterializedViewBuilder, _a149, _b110, _c4, PgView2, PgMaterializedViewConfig2, _a150, _b111, _c5, PgMaterializedView, init_view2, init_utils42, _a151, _b112, PgDeleteBase2, init_delete2, _a152, PgInsertBuilder2, _a153, _b113, PgInsertBase2, init_insert2, _a154, _b114, PgRefreshMaterializedView2, init_refresh_materialized_view2, init_select_types, _a155, PgUpdateBuilder2, _a156, _b115, PgUpdateBase2, init_update2, init_query_builders2, _a157, _b116, _c6, _PgCountBuilder, PgCountBuilder2, init_count2, _a158, RelationalQueryBuilder2, _a159, _b117, PgRelationalQuery2, init_query2, _a160, _b118, PgRaw2, init_raw2, _a161, PgDatabase2, init_db2, _a162, PgRole, init_roles2, _a163, PgSequence, init_sequence2, _a164, PgSchema5, init_schema3, _a165, Cache, _a166, _b119, NoopCache, init_cache, _a167, PgPreparedQuery2, _a168, PgSession2, _a169, _b120, PgTransaction2, init_session3, init_subquery22, init_utils52, init_pg_core2, vectorOps, init_vector32, sqlToStr, init_utils6, indexName, generatePgSnapshot, trimChar, fromDatabase, defaultForColumn, getColumnsInfoQuery, init_pgSerializer, import_hanji4, Select, init_selector_ui, init_alias32, _a170, CheckBuilder2, _a171, Check2, init_checks22, _a172, ForeignKeyBuilder22, _a173, ForeignKey22, init_foreign_keys22, _a174, UniqueConstraintBuilder2, _a175, UniqueOnConstraintBuilder2, _a176, UniqueConstraint2, init_unique_constraint22, _a177, _b121, SQLiteColumnBuilder, _a178, _b122, SQLiteColumn, init_common3, _a179, _b123, SQLiteBigIntBuilder, _a180, _b124, SQLiteBigInt, _a181, _b125, SQLiteBlobJsonBuilder, _a182, _b126, SQLiteBlobJson, _a183, _b127, SQLiteBlobBufferBuilder, _a184, _b128, SQLiteBlobBuffer, init_blob, _a185, _b129, SQLiteCustomColumnBuilder, _a186, _b130, SQLiteCustomColumn, init_custom22, _a187, _b131, SQLiteBaseIntegerBuilder, _a188, _b132, SQLiteBaseInteger, _a189, _b133, SQLiteIntegerBuilder, _a190, _b134, SQLiteInteger, _a191, _b135, SQLiteTimestampBuilder, _a192, _b136, SQLiteTimestamp, _a193, _b137, SQLiteBooleanBuilder, _a194, _b138, SQLiteBoolean, init_integer22, _a195, _b139, SQLiteNumericBuilder, _a196, _b140, SQLiteNumeric, _a197, _b141, SQLiteNumericNumberBuilder, _a198, _b142, SQLiteNumericNumber, _a199, _b143, SQLiteNumericBigIntBuilder, _a200, _b144, SQLiteNumericBigInt, init_numeric22, _a201, _b145, SQLiteRealBuilder, _a202, _b146, SQLiteReal, init_real22, _a203, _b147, SQLiteTextBuilder, _a204, _b148, SQLiteText, _a205, _b149, SQLiteTextJsonBuilder, _a206, _b150, SQLiteTextJson, init_text22, init_columns22, init_all22, InlineForeignKeys22, _a207, _b151, _c7, _d3, _e3, SQLiteTable, sqliteTable, init_table32, _a208, IndexBuilderOn22, _a209, IndexBuilder22, _a210, Index4, init_indexes22, _a211, PrimaryKeyBuilder22, _a212, PrimaryKey22, init_primary_keys22, init_utils7, _a213, _b152, SQLiteDeleteBase, init_delete22, _a214, _b153, SQLiteViewBase, init_view_base22, _a215, SQLiteDialect, _a216, _b154, SQLiteSyncDialect, _a217, _b155, SQLiteAsyncDialect, init_dialect22, _a218, SQLiteSelectBuilder, _a219, _b156, SQLiteSelectQueryBuilderBase, _a220, _b157, SQLiteSelectBase, getSQLiteSetOperators, union3, unionAll22, intersect22, except22, init_select32, _a221, QueryBuilder22, init_query_builder32, _a222, SQLiteInsertBuilder, _a223, _b158, SQLiteInsertBase, init_insert22, init_select_types2, _a224, SQLiteUpdateBuilder, _a225, _b159, SQLiteUpdateBase, init_update22, init_query_builders22, _a226, _b160, _c8, _SQLiteCountBuilder, SQLiteCountBuilder, init_count22, _a227, RelationalQueryBuilder22, _a228, _b161, SQLiteRelationalQuery, _a229, _b162, SQLiteSyncRelationalQuery, init_query22, _a230, _b163, SQLiteRaw, init_raw22, _a231, BaseSQLiteDatabase, init_db22, _a232, _b164, ExecuteResultSync, _a233, SQLitePreparedQuery, _a234, SQLiteSession, _a235, _b165, SQLiteTransaction, init_session22, init_subquery3, _a236, ViewBuilderCore, _a237, _b166, ViewBuilder2, _a238, _b167, ManualViewBuilder2, _a239, _b168, SQLiteView2, init_view22, init_sqlite_core, generateSqliteSnapshot, fromDatabase2, init_sqliteSerializer, getTablesFilterByExtensions, init_getTablesFilterByExtensions, init_alias4, _a240, CheckBuilder3, _a241, Check3, init_checks3, _a242, ForeignKeyBuilder3, _a243, ForeignKey3, init_foreign_keys3, _a244, UniqueConstraintBuilder3, _a245, UniqueOnConstraintBuilder3, _a246, UniqueConstraint3, init_unique_constraint3, _a247, _b169, MySqlColumnBuilder, _a248, _b170, MySqlColumn, _a249, _b171, MySqlColumnBuilderWithAutoIncrement, _a250, _b172, MySqlColumnWithAutoIncrement, init_common4, _a251, _b173, MySqlBigInt53Builder, _a252, _b174, MySqlBigInt53, _a253, _b175, MySqlBigInt64Builder, _a254, _b176, MySqlBigInt64, init_bigint22, _a255, _b177, MySqlBinaryBuilder, _a256, _b178, MySqlBinary, init_binary, _a257, _b179, MySqlBooleanBuilder, _a258, _b180, MySqlBoolean, init_boolean22, _a259, _b181, MySqlCharBuilder, _a260, _b182, MySqlChar, init_char22, _a261, _b183, MySqlCustomColumnBuilder, _a262, _b184, MySqlCustomColumn, init_custom3, _a263, _b185, MySqlDateBuilder, _a264, _b186, MySqlDate, _a265, _b187, MySqlDateStringBuilder, _a266, _b188, MySqlDateString, init_date22, _a267, _b189, MySqlDateTimeBuilder, _a268, _b190, MySqlDateTime, _a269, _b191, MySqlDateTimeStringBuilder, _a270, _b192, MySqlDateTimeString, init_datetime, _a271, _b193, MySqlDecimalBuilder, _a272, _b194, MySqlDecimal, _a273, _b195, MySqlDecimalNumberBuilder, _a274, _b196, MySqlDecimalNumber, _a275, _b197, MySqlDecimalBigIntBuilder, _a276, _b198, MySqlDecimalBigInt, init_decimal, _a277, _b199, MySqlDoubleBuilder, _a278, _b200, MySqlDouble, init_double, _a279, _b201, MySqlEnumColumnBuilder, _a280, _b202, MySqlEnumColumn, _a281, _b203, MySqlEnumObjectColumnBuilder, _a282, _b204, MySqlEnumObjectColumn, init_enum22, _a283, _b205, MySqlFloatBuilder, _a284, _b206, MySqlFloat, init_float, _a285, _b207, MySqlIntBuilder, _a286, _b208, MySqlInt, init_int, _a287, _b209, MySqlJsonBuilder, _a288, _b210, MySqlJson, init_json22, _a289, _b211, MySqlMediumIntBuilder, _a290, _b212, MySqlMediumInt, init_mediumint, _a291, _b213, MySqlRealBuilder, _a292, _b214, MySqlReal, init_real3, _a293, _b215, MySqlSerialBuilder, _a294, _b216, MySqlSerial, init_serial22, _a295, _b217, MySqlSmallIntBuilder, _a296, _b218, MySqlSmallInt, init_smallint22, _a297, _b219, MySqlTextBuilder, _a298, _b220, MySqlText, init_text3, _a299, _b221, MySqlTimeBuilder, _a300, _b222, MySqlTime, init_time22, _a301, _b223, MySqlDateColumnBaseBuilder, _a302, _b224, MySqlDateBaseColumn, init_date_common22, _a303, _b225, MySqlTimestampBuilder, _a304, _b226, MySqlTimestamp, _a305, _b227, MySqlTimestampStringBuilder, _a306, _b228, MySqlTimestampString, init_timestamp22, _a307, _b229, MySqlTinyIntBuilder, _a308, _b230, MySqlTinyInt, init_tinyint, _a309, _b231, MySqlVarBinaryBuilder, _a310, _b232, MySqlVarBinary, init_varbinary, _a311, _b233, MySqlVarCharBuilder, _a312, _b234, MySqlVarChar, init_varchar22, _a313, _b235, MySqlYearBuilder, _a314, _b236, MySqlYear, init_year, init_columns3, _a315, _b237, _c9, _MySqlCountBuilder, MySqlCountBuilder, init_count3, _a316, IndexBuilderOn3, _a317, IndexBuilder3, _a318, Index5, init_indexes3, init_all3, InlineForeignKeys3, _a319, _b238, _c10, _d4, _e4, MySqlTable, mysqlTable, init_table42, _a320, PrimaryKeyBuilder3, _a321, PrimaryKey3, init_primary_keys3, MySqlViewConfig, init_view_common32, init_utils8, _a322, _b239, MySqlDeleteBase, init_delete3, _a323, _b240, MySqlViewBase, init_view_base3, _a324, MySqlDialect, init_dialect3, _a325, MySqlSelectBuilder, _a326, _b241, MySqlSelectQueryBuilderBase, _a327, _b242, MySqlSelectBase, getMySqlSetOperators, union4, unionAll3, intersect3, intersectAll22, except3, exceptAll22, init_select4, _a328, QueryBuilder3, init_query_builder4, _a329, MySqlInsertBuilder, _a330, _b243, MySqlInsertBase, init_insert3, init_select_types3, _a331, MySqlUpdateBuilder, _a332, _b244, MySqlUpdateBase, init_update3, init_query_builders3, _a333, RelationalQueryBuilder3, _a334, _b245, MySqlRelationalQuery, init_query3, _a335, MySqlDatabase, init_db3, _a336, ViewBuilderCore2, _a337, _b246, ViewBuilder3, _a338, _b247, ManualViewBuilder3, _a339, _b248, _c11, MySqlView2, init_view3, _a340, MySqlSchema5, init_schema22, _a341, MySqlPreparedQuery, _a342, MySqlSession, _a343, _b249, MySqlTransaction, init_session32, init_subquery4, init_mysql_core, handleEnumType, generateMySqlSnapshot, fromDatabase3, init_mysqlSerializer, cliConfigGenerate, pushParams, pullParams, configCheck, cliConfigCheck, init_cli, gelCredentials, init_gel, libSQLCredentials, init_libsql, mysqlCredentials, init_mysql, postgresCredentials, init_postgres, singlestoreCredentials, init_singlestore, sqliteCredentials, init_sqlite, credentials, studioCliParams, studioConfig, init_studio, es5_exports, _3, es5_default, init_es5, import_hanji7, assertES5, safeRegister, migrateConfig, init_utils9, prepareFromExports, init_pgImports, init_alias5, _a344, UniqueConstraintBuilder4, _a345, UniqueOnConstraintBuilder4, _a346, UniqueConstraint4, init_unique_constraint4, _a347, _b250, SingleStoreColumnBuilder, _a348, _b251, SingleStoreColumn, _a349, _b252, SingleStoreColumnBuilderWithAutoIncrement, _a350, _b253, SingleStoreColumnWithAutoIncrement, init_common5, _a351, _b254, SingleStoreBigInt53Builder, _a352, _b255, SingleStoreBigInt53, _a353, _b256, SingleStoreBigInt64Builder, _a354, _b257, SingleStoreBigInt64, init_bigint3, _a355, _b258, SingleStoreBinaryBuilder, _a356, _b259, SingleStoreBinary, init_binary2, _a357, _b260, SingleStoreBooleanBuilder, _a358, _b261, SingleStoreBoolean, init_boolean3, _a359, _b262, SingleStoreCharBuilder, _a360, _b263, SingleStoreChar, init_char3, _a361, _b264, SingleStoreCustomColumnBuilder, _a362, _b265, SingleStoreCustomColumn, init_custom4, _a363, _b266, SingleStoreDateBuilder, _a364, _b267, SingleStoreDate, _a365, _b268, SingleStoreDateStringBuilder, _a366, _b269, SingleStoreDateString, init_date3, _a367, _b270, SingleStoreDateTimeBuilder, _a368, _b271, SingleStoreDateTime, _a369, _b272, SingleStoreDateTimeStringBuilder, _a370, _b273, SingleStoreDateTimeString, init_datetime2, _a371, _b274, SingleStoreDecimalBuilder, _a372, _b275, SingleStoreDecimal, _a373, _b276, SingleStoreDecimalNumberBuilder, _a374, _b277, SingleStoreDecimalNumber, _a375, _b278, SingleStoreDecimalBigIntBuilder, _a376, _b279, SingleStoreDecimalBigInt, init_decimal2, _a377, _b280, SingleStoreDoubleBuilder, _a378, _b281, SingleStoreDouble, init_double2, _a379, _b282, SingleStoreEnumColumnBuilder, _a380, _b283, SingleStoreEnumColumn, init_enum3, _a381, _b284, SingleStoreFloatBuilder, _a382, _b285, SingleStoreFloat, init_float2, _a383, _b286, SingleStoreIntBuilder, _a384, _b287, SingleStoreInt, init_int2, _a385, _b288, SingleStoreJsonBuilder, _a386, _b289, SingleStoreJson, init_json3, _a387, _b290, SingleStoreMediumIntBuilder, _a388, _b291, SingleStoreMediumInt, init_mediumint2, _a389, _b292, SingleStoreRealBuilder, _a390, _b293, SingleStoreReal, init_real4, _a391, _b294, SingleStoreSerialBuilder, _a392, _b295, SingleStoreSerial, init_serial3, _a393, _b296, SingleStoreSmallIntBuilder, _a394, _b297, SingleStoreSmallInt, init_smallint3, _a395, _b298, SingleStoreTextBuilder, _a396, _b299, SingleStoreText, init_text4, _a397, _b300, SingleStoreTimeBuilder, _a398, _b301, SingleStoreTime, init_time3, _a399, _b302, SingleStoreDateColumnBaseBuilder, _a400, _b303, SingleStoreDateBaseColumn, init_date_common3, _a401, _b304, SingleStoreTimestampBuilder, _a402, _b305, SingleStoreTimestamp, _a403, _b306, SingleStoreTimestampStringBuilder, _a404, _b307, SingleStoreTimestampString, init_timestamp3, _a405, _b308, SingleStoreTinyIntBuilder, _a406, _b309, SingleStoreTinyInt, init_tinyint2, _a407, _b310, SingleStoreVarBinaryBuilder, _a408, _b311, SingleStoreVarBinary, init_varbinary2, _a409, _b312, SingleStoreVarCharBuilder, _a410, _b313, SingleStoreVarChar, init_varchar3, _a411, _b314, SingleStoreVectorBuilder, _a412, _b315, SingleStoreVector, init_vector4, _a413, _b316, SingleStoreYearBuilder, _a414, _b317, SingleStoreYear, init_year2, init_columns4, _a415, _b318, _c12, _SingleStoreCountBuilder, SingleStoreCountBuilder, init_count4, _a416, IndexBuilderOn4, _a417, IndexBuilder4, _a418, Index6, init_indexes4, init_all4, _a419, _b319, _c13, _d5, SingleStoreTable, init_table52, _a420, PrimaryKeyBuilder4, _a421, PrimaryKey4, init_primary_keys4, init_utils10, _a422, _b320, SingleStoreDeleteBase, init_delete4, _a423, SingleStoreInsertBuilder, _a424, _b321, SingleStoreInsertBase, init_insert4, _a425, SingleStoreDialect, init_dialect4, _a426, SingleStoreSelectBuilder, _a427, _b322, SingleStoreSelectQueryBuilderBase, _a428, _b323, SingleStoreSelectBase, getSingleStoreSetOperators, union5, unionAll4, intersect4, except4, minus, init_select5, _a429, QueryBuilder4, init_query_builder5, init_select_types4, _a430, SingleStoreUpdateBuilder, _a431, _b324, SingleStoreUpdateBase, init_update4, init_query_builders4, _a432, SingleStoreDatabase, init_db4, _a433, SingleStoreSchema5, init_schema32, _a434, SingleStorePreparedQuery, _a435, SingleStoreSession, _a436, _b325, SingleStoreTransaction, init_session4, init_subquery5, init_singlestore_core, dialect5, generateSingleStoreSnapshot, fromDatabase4, init_singlestoreSerializer, sqliteImports_exports, prepareFromExports2, prepareFromSqliteImports, init_sqliteImports, mysqlImports_exports, prepareFromExports3, prepareFromMySqlImports, init_mysqlImports, mysqlPushUtils_exports, import_hanji8, filterStatements, logSuggestionsAndReturn2, init_mysqlPushUtils, mysqlIntrospect_exports, import_hanji9, mysqlPushIntrospect, init_mysqlIntrospect, singlestoreImports_exports, prepareFromExports4, prepareFromSingleStoreImports, init_singlestoreImports, singlestorePushUtils_exports, import_hanji10, filterStatements2, logSuggestionsAndReturn3, init_singlestorePushUtils, singlestoreIntrospect_exports, import_hanji11, singlestorePushIntrospect, init_singlestoreIntrospect, import_hanji3, pgPushIntrospect = async (db2, filters, schemaFilters, entities, tsSchema) => {
|
|
43783
44052
|
const matchers = filters.map((it2) => {
|
|
43784
44053
|
return new Minimatch(it2);
|
|
43785
44054
|
});
|
|
@@ -44248,7 +44517,7 @@ var init_api2 = __esm(() => {
|
|
|
44248
44517
|
wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
44249
44518
|
wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
44250
44519
|
wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
44251
|
-
|
|
44520
|
+
styles3 = {
|
|
44252
44521
|
modifier: {
|
|
44253
44522
|
reset: [0, 0],
|
|
44254
44523
|
bold: [1, 22],
|
|
@@ -44301,9 +44570,9 @@ var init_api2 = __esm(() => {
|
|
|
44301
44570
|
bgWhiteBright: [107, 49]
|
|
44302
44571
|
}
|
|
44303
44572
|
};
|
|
44304
|
-
modifierNames = Object.keys(
|
|
44305
|
-
foregroundColorNames = Object.keys(
|
|
44306
|
-
backgroundColorNames = Object.keys(
|
|
44573
|
+
modifierNames = Object.keys(styles3.modifier);
|
|
44574
|
+
foregroundColorNames = Object.keys(styles3.color);
|
|
44575
|
+
backgroundColorNames = Object.keys(styles3.bgColor);
|
|
44307
44576
|
colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
44308
44577
|
ansiStyles = assembleStyles();
|
|
44309
44578
|
ansi_styles_default = ansiStyles;
|
|
@@ -46782,7 +47051,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
46782
47051
|
exports.prepareReadLine = undefined;
|
|
46783
47052
|
var prepareReadLine = () => {
|
|
46784
47053
|
const stdin = process.stdin;
|
|
46785
|
-
const
|
|
47054
|
+
const stdout3 = process.stdout;
|
|
46786
47055
|
const readline = __require2("readline");
|
|
46787
47056
|
const rl = readline.createInterface({
|
|
46788
47057
|
input: stdin,
|
|
@@ -46791,7 +47060,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
46791
47060
|
readline.emitKeypressEvents(stdin, rl);
|
|
46792
47061
|
return {
|
|
46793
47062
|
stdin,
|
|
46794
|
-
stdout:
|
|
47063
|
+
stdout: stdout3,
|
|
46795
47064
|
closable: rl
|
|
46796
47065
|
};
|
|
46797
47066
|
};
|
|
@@ -46803,7 +47072,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
46803
47072
|
var ESC = "\x1B";
|
|
46804
47073
|
var CSI = `${ESC}[`;
|
|
46805
47074
|
var beep = "\x07";
|
|
46806
|
-
var
|
|
47075
|
+
var cursor3 = {
|
|
46807
47076
|
to(x5, y3) {
|
|
46808
47077
|
if (!y3)
|
|
46809
47078
|
return `${CSI}${x5 + 1}G`;
|
|
@@ -46847,13 +47116,13 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
46847
47116
|
lines(count2) {
|
|
46848
47117
|
let clear = "";
|
|
46849
47118
|
for (let i3 = 0;i3 < count2; i3++)
|
|
46850
|
-
clear += this.line + (i3 < count2 - 1 ?
|
|
47119
|
+
clear += this.line + (i3 < count2 - 1 ? cursor3.up() : "");
|
|
46851
47120
|
if (count2)
|
|
46852
|
-
clear +=
|
|
47121
|
+
clear += cursor3.left;
|
|
46853
47122
|
return clear;
|
|
46854
47123
|
}
|
|
46855
47124
|
};
|
|
46856
|
-
module2.exports = { cursor:
|
|
47125
|
+
module2.exports = { cursor: cursor3, scroll, erase, beep };
|
|
46857
47126
|
}
|
|
46858
47127
|
});
|
|
46859
47128
|
require_utils = __commonJS2({
|
|
@@ -47141,10 +47410,10 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
47141
47410
|
};
|
|
47142
47411
|
exports.deferred = deferred;
|
|
47143
47412
|
var Terminal = class {
|
|
47144
|
-
constructor(view5, stdin,
|
|
47413
|
+
constructor(view5, stdin, stdout3, closable) {
|
|
47145
47414
|
this.view = view5;
|
|
47146
47415
|
this.stdin = stdin;
|
|
47147
|
-
this.stdout =
|
|
47416
|
+
this.stdout = stdout3;
|
|
47148
47417
|
this.closable = closable;
|
|
47149
47418
|
this.text = "";
|
|
47150
47419
|
this.status = "idle";
|
|
@@ -47242,9 +47511,9 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
47242
47511
|
};
|
|
47243
47512
|
exports.TaskView = TaskView2;
|
|
47244
47513
|
var TaskTerminal = class {
|
|
47245
|
-
constructor(view5,
|
|
47514
|
+
constructor(view5, stdout3) {
|
|
47246
47515
|
this.view = view5;
|
|
47247
|
-
this.stdout =
|
|
47516
|
+
this.stdout = stdout3;
|
|
47248
47517
|
this.text = "";
|
|
47249
47518
|
this.view.attach(this);
|
|
47250
47519
|
}
|
|
@@ -47263,13 +47532,13 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
47263
47532
|
};
|
|
47264
47533
|
exports.TaskTerminal = TaskTerminal;
|
|
47265
47534
|
function render7(view5) {
|
|
47266
|
-
const { stdin, stdout:
|
|
47535
|
+
const { stdin, stdout: stdout3, closable } = (0, readline_1.prepareReadLine)();
|
|
47267
47536
|
if (view5 instanceof Prompt3) {
|
|
47268
|
-
const terminal = new Terminal(view5, stdin,
|
|
47537
|
+
const terminal = new Terminal(view5, stdin, stdout3, closable);
|
|
47269
47538
|
terminal.requestLayout();
|
|
47270
47539
|
return terminal.result();
|
|
47271
47540
|
}
|
|
47272
|
-
|
|
47541
|
+
stdout3.write(`${view5}
|
|
47273
47542
|
`);
|
|
47274
47543
|
closable.close();
|
|
47275
47544
|
return;
|
|
@@ -52927,7 +53196,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
52927
53196
|
return this.state.items[this.state.selectedIdx];
|
|
52928
53197
|
}
|
|
52929
53198
|
};
|
|
52930
|
-
|
|
53199
|
+
Spinner3 = class {
|
|
52931
53200
|
constructor(frames) {
|
|
52932
53201
|
this.frames = frames;
|
|
52933
53202
|
this.offset = 0;
|
|
@@ -52948,7 +53217,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
52948
53217
|
super();
|
|
52949
53218
|
this.progressText = progressText;
|
|
52950
53219
|
this.successText = successText;
|
|
52951
|
-
this.spinner = new
|
|
53220
|
+
this.spinner = new Spinner3("⣷⣯⣟⡿⢿⣻⣽⣾".split(""));
|
|
52952
53221
|
this.timeout = setInterval(() => {
|
|
52953
53222
|
this.spinner.tick();
|
|
52954
53223
|
this.requestLayout();
|
|
@@ -54038,8 +54307,8 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
54038
54307
|
});
|
|
54039
54308
|
require_styles = __commonJS2({
|
|
54040
54309
|
"../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/styles.js"(exports, module2) {
|
|
54041
|
-
var
|
|
54042
|
-
module2["exports"] =
|
|
54310
|
+
var styles32 = {};
|
|
54311
|
+
module2["exports"] = styles32;
|
|
54043
54312
|
var codes = {
|
|
54044
54313
|
reset: [0, 0],
|
|
54045
54314
|
bold: [1, 22],
|
|
@@ -54094,7 +54363,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
54094
54363
|
};
|
|
54095
54364
|
Object.keys(codes).forEach(function(key) {
|
|
54096
54365
|
var val = codes[key];
|
|
54097
|
-
var style =
|
|
54366
|
+
var style = styles32[key] = [];
|
|
54098
54367
|
style.open = "\x1B[" + val[0] + "m";
|
|
54099
54368
|
style.close = "\x1B[" + val[1] + "m";
|
|
54100
54369
|
});
|
|
@@ -54572,7 +54841,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
54572
54841
|
builder.__proto__ = proto2;
|
|
54573
54842
|
return builder;
|
|
54574
54843
|
}
|
|
54575
|
-
var
|
|
54844
|
+
var styles32 = function() {
|
|
54576
54845
|
var ret = {};
|
|
54577
54846
|
ansiStyles2.grey = ansiStyles2.gray;
|
|
54578
54847
|
Object.keys(ansiStyles2).forEach(function(key) {
|
|
@@ -54585,7 +54854,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
54585
54854
|
});
|
|
54586
54855
|
return ret;
|
|
54587
54856
|
}();
|
|
54588
|
-
var proto2 = defineProps(function colors2() {},
|
|
54857
|
+
var proto2 = defineProps(function colors2() {}, styles32);
|
|
54589
54858
|
function applyStyle2() {
|
|
54590
54859
|
var args2 = Array.prototype.slice.call(arguments);
|
|
54591
54860
|
var str = args2.map(function(arg) {
|
|
@@ -54635,7 +54904,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
54635
54904
|
};
|
|
54636
54905
|
function init2() {
|
|
54637
54906
|
var ret = {};
|
|
54638
|
-
Object.keys(
|
|
54907
|
+
Object.keys(styles32).forEach(function(name22) {
|
|
54639
54908
|
ret[name22] = {
|
|
54640
54909
|
get: function() {
|
|
54641
54910
|
return build([name22]);
|
|
@@ -81928,23 +82197,23 @@ var require_lexer = __commonJS((exports) => {
|
|
|
81928
82197
|
];
|
|
81929
82198
|
function tokenize(input) {
|
|
81930
82199
|
const tokens = [];
|
|
81931
|
-
let
|
|
81932
|
-
while (
|
|
82200
|
+
let cursor3 = 0;
|
|
82201
|
+
while (cursor3 < input.length) {
|
|
81933
82202
|
let matched = false;
|
|
81934
82203
|
for (const tokenType of tokenTypes) {
|
|
81935
|
-
const match3 = input.slice(
|
|
82204
|
+
const match3 = input.slice(cursor3).match(tokenType.regex);
|
|
81936
82205
|
if (match3) {
|
|
81937
82206
|
tokens.push({
|
|
81938
82207
|
type: tokenType.tokenType,
|
|
81939
82208
|
value: match3[0]
|
|
81940
82209
|
});
|
|
81941
|
-
|
|
82210
|
+
cursor3 += match3[0].length;
|
|
81942
82211
|
matched = true;
|
|
81943
82212
|
break;
|
|
81944
82213
|
}
|
|
81945
82214
|
}
|
|
81946
82215
|
if (!matched) {
|
|
81947
|
-
throw new Error(`Unexpected character at position ${
|
|
82216
|
+
throw new Error(`Unexpected character at position ${cursor3}`);
|
|
81948
82217
|
}
|
|
81949
82218
|
}
|
|
81950
82219
|
return tokens;
|
|
@@ -82207,13 +82476,13 @@ var require_picocolors = __commonJS((exports, module2) => {
|
|
|
82207
82476
|
return ~index6 ? open + replaceClose(string2, close, replace, index6) + close : open + string2 + close;
|
|
82208
82477
|
};
|
|
82209
82478
|
var replaceClose = (string2, close, replace, index6) => {
|
|
82210
|
-
let result = "",
|
|
82479
|
+
let result = "", cursor3 = 0;
|
|
82211
82480
|
do {
|
|
82212
|
-
result += string2.substring(
|
|
82213
|
-
|
|
82214
|
-
index6 = string2.indexOf(close,
|
|
82481
|
+
result += string2.substring(cursor3, index6) + replace;
|
|
82482
|
+
cursor3 = index6 + close.length;
|
|
82483
|
+
index6 = string2.indexOf(close, cursor3);
|
|
82215
82484
|
} while (~index6);
|
|
82216
|
-
return result + string2.substring(
|
|
82485
|
+
return result + string2.substring(cursor3);
|
|
82217
82486
|
};
|
|
82218
82487
|
var createColors = (enabled = isColorSupported) => {
|
|
82219
82488
|
let f3 = enabled ? formatter : () => String;
|
|
@@ -83016,9 +83285,31 @@ var init_schemas11 = __esm(() => {
|
|
|
83016
83285
|
});
|
|
83017
83286
|
|
|
83018
83287
|
// ../data/src/domains/timeback/schemas.ts
|
|
83019
|
-
|
|
83288
|
+
function isTimebackGrade3(value) {
|
|
83289
|
+
return Number.isInteger(value) && TIMEBACK_GRADES.includes(value);
|
|
83290
|
+
}
|
|
83291
|
+
function isTimebackSubject3(value) {
|
|
83292
|
+
return TIMEBACK_SUBJECTS3.includes(value);
|
|
83293
|
+
}
|
|
83294
|
+
var TIMEBACK_GRADES, TIMEBACK_SUBJECTS3, TimebackGradeSchema, TimebackSubjectSchema, UpdateTimebackXpRequestSchema, EndActivityRequestSchema, PopulateStudentRequestSchema, DerivedPlatformCourseConfigSchema, TimebackBaseConfigSchema, PlatformTimebackSetupRequestSchema;
|
|
83020
83295
|
var init_schemas12 = __esm(() => {
|
|
83021
83296
|
init_esm();
|
|
83297
|
+
TIMEBACK_GRADES = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];
|
|
83298
|
+
TIMEBACK_SUBJECTS3 = [
|
|
83299
|
+
"Reading",
|
|
83300
|
+
"Language",
|
|
83301
|
+
"Vocabulary",
|
|
83302
|
+
"Social Studies",
|
|
83303
|
+
"Writing",
|
|
83304
|
+
"Science",
|
|
83305
|
+
"FastMath",
|
|
83306
|
+
"Math",
|
|
83307
|
+
"None"
|
|
83308
|
+
];
|
|
83309
|
+
TimebackGradeSchema = exports_external.number().int().refine((val) => TIMEBACK_GRADES.includes(val), {
|
|
83310
|
+
message: `Grade must be one of: ${TIMEBACK_GRADES.join(", ")}`
|
|
83311
|
+
});
|
|
83312
|
+
TimebackSubjectSchema = exports_external.enum(TIMEBACK_SUBJECTS3);
|
|
83022
83313
|
UpdateTimebackXpRequestSchema = exports_external.object({
|
|
83023
83314
|
xp: exports_external.number().min(0, "XP must be a non-negative number"),
|
|
83024
83315
|
userTimestamp: exports_external.string().datetime().optional()
|
|
@@ -94224,7 +94515,7 @@ var init_sprite_controller = __esm(() => {
|
|
|
94224
94515
|
});
|
|
94225
94516
|
|
|
94226
94517
|
// ../api-core/src/controllers/timeback.controller.ts
|
|
94227
|
-
var logger60, getTodayXp, getTotalXp, updateTodayXp, getXpHistory, populateStudent, getUser, getUserById, setupIntegration, getIntegrations, verifyIntegration, getConfig2, deleteIntegrations, endActivity, timeback2;
|
|
94518
|
+
var logger60, getTodayXp, getTotalXp, updateTodayXp, getXpHistory, populateStudent, getUser, getUserById, setupIntegration, getIntegrations, verifyIntegration, getConfig2, deleteIntegrations, endActivity, getStudentXp, timeback2;
|
|
94228
94519
|
var init_timeback_controller = __esm(() => {
|
|
94229
94520
|
init_esm();
|
|
94230
94521
|
init_schemas_index();
|
|
@@ -94367,6 +94658,46 @@ var init_timeback_controller = __esm(() => {
|
|
|
94367
94658
|
logger60.debug("Ending activity", { userId: ctx.user.id, gameId });
|
|
94368
94659
|
return ctx.services.timeback.endActivity(gameId, studentId, activityData, scoreData, timingData, xpEarned, masteredUnits, ctx.user);
|
|
94369
94660
|
});
|
|
94661
|
+
getStudentXp = requireDeveloper(async (ctx) => {
|
|
94662
|
+
const timebackId = ctx.params.timebackId;
|
|
94663
|
+
if (!timebackId) {
|
|
94664
|
+
throw ApiError.badRequest("Missing timebackId parameter");
|
|
94665
|
+
}
|
|
94666
|
+
const gameId = ctx.url.searchParams.get("gameId") || undefined;
|
|
94667
|
+
const gradeParam = ctx.url.searchParams.get("grade");
|
|
94668
|
+
const subjectParam = ctx.url.searchParams.get("subject");
|
|
94669
|
+
if (gradeParam !== null !== (subjectParam !== null)) {
|
|
94670
|
+
throw ApiError.badRequest("Both grade and subject must be provided together");
|
|
94671
|
+
}
|
|
94672
|
+
let grade;
|
|
94673
|
+
let subject;
|
|
94674
|
+
if (gradeParam !== null && subjectParam !== null) {
|
|
94675
|
+
const parsedGrade = parseInt(gradeParam, 10);
|
|
94676
|
+
if (!isTimebackGrade3(parsedGrade)) {
|
|
94677
|
+
throw ApiError.badRequest(`Invalid grade: ${gradeParam}. Valid grades: ${TIMEBACK_GRADES.join(", ")}`);
|
|
94678
|
+
}
|
|
94679
|
+
if (!isTimebackSubject3(subjectParam)) {
|
|
94680
|
+
throw ApiError.badRequest(`Invalid subject: ${subjectParam}. Valid subjects: ${TIMEBACK_SUBJECTS3.join(", ")}`);
|
|
94681
|
+
}
|
|
94682
|
+
grade = parsedGrade;
|
|
94683
|
+
subject = subjectParam;
|
|
94684
|
+
}
|
|
94685
|
+
const includeParam = ctx.url.searchParams.get("include");
|
|
94686
|
+
const includeOptions = includeParam ? includeParam.split(",").map((opt) => opt.trim().toLowerCase()) : [];
|
|
94687
|
+
const include = {
|
|
94688
|
+
perCourse: includeOptions.includes("percourse"),
|
|
94689
|
+
today: includeOptions.includes("today")
|
|
94690
|
+
};
|
|
94691
|
+
logger60.debug("Getting student XP", {
|
|
94692
|
+
requesterId: ctx.user.id,
|
|
94693
|
+
timebackId,
|
|
94694
|
+
gameId,
|
|
94695
|
+
grade,
|
|
94696
|
+
subject,
|
|
94697
|
+
include
|
|
94698
|
+
});
|
|
94699
|
+
return ctx.services.timeback.getStudentXp(timebackId, { gameId, grade, subject, include });
|
|
94700
|
+
});
|
|
94370
94701
|
timeback2 = {
|
|
94371
94702
|
getTodayXp,
|
|
94372
94703
|
getTotalXp,
|
|
@@ -94380,7 +94711,8 @@ var init_timeback_controller = __esm(() => {
|
|
|
94380
94711
|
verifyIntegration,
|
|
94381
94712
|
getConfig: getConfig2,
|
|
94382
94713
|
deleteIntegrations,
|
|
94383
|
-
endActivity
|
|
94714
|
+
endActivity,
|
|
94715
|
+
getStudentXp
|
|
94384
94716
|
};
|
|
94385
94717
|
});
|
|
94386
94718
|
|
|
@@ -95532,6 +95864,56 @@ var init_timeback8 = __esm(() => {
|
|
|
95532
95864
|
}
|
|
95533
95865
|
return handle2(timeback2.getUserById)(c2);
|
|
95534
95866
|
});
|
|
95867
|
+
timebackRouter.get("/student-xp/:timebackId", async (c2) => {
|
|
95868
|
+
const user = c2.get("user");
|
|
95869
|
+
if (!user) {
|
|
95870
|
+
const error2 = ApiError.unauthorized("Must be logged in to get student XP");
|
|
95871
|
+
return c2.json(createErrorResponse(error2), error2.status);
|
|
95872
|
+
}
|
|
95873
|
+
if (shouldMockTimeback()) {
|
|
95874
|
+
const url = new URL(c2.req.url);
|
|
95875
|
+
const gradeParam = url.searchParams.get("grade");
|
|
95876
|
+
const subjectParam = url.searchParams.get("subject");
|
|
95877
|
+
const includeParam = url.searchParams.get("include") || "";
|
|
95878
|
+
const includeOptions = includeParam.split(",").map((opt) => opt.trim().toLowerCase());
|
|
95879
|
+
const includePerCourse = includeOptions.includes("percourse");
|
|
95880
|
+
const includeToday = includeOptions.includes("today");
|
|
95881
|
+
const db2 = c2.get("db");
|
|
95882
|
+
let enrollments = await getMockEnrollments(db2);
|
|
95883
|
+
if (gradeParam !== null && subjectParam !== null) {
|
|
95884
|
+
const grade = parseInt(gradeParam, 10);
|
|
95885
|
+
enrollments = enrollments.filter((e) => e.grade === grade && e.subject === subjectParam);
|
|
95886
|
+
}
|
|
95887
|
+
const hashCode = (str) => {
|
|
95888
|
+
let hash = 0;
|
|
95889
|
+
for (let i3 = 0;i3 < str.length; i3++) {
|
|
95890
|
+
hash = (hash << 5) - hash + str.charCodeAt(i3);
|
|
95891
|
+
hash |= 0;
|
|
95892
|
+
}
|
|
95893
|
+
return Math.abs(hash);
|
|
95894
|
+
};
|
|
95895
|
+
const mockCourses = enrollments.map((e) => {
|
|
95896
|
+
const seed3 = hashCode(`${e.grade}-${e.subject}`);
|
|
95897
|
+
const totalXp2 = 100 + seed3 % 900;
|
|
95898
|
+
const todayXp2 = seed3 % 50;
|
|
95899
|
+
return {
|
|
95900
|
+
grade: e.grade,
|
|
95901
|
+
subject: e.subject,
|
|
95902
|
+
title: `${e.subject} Grade ${e.grade}`,
|
|
95903
|
+
totalXp: totalXp2,
|
|
95904
|
+
...includeToday && { todayXp: todayXp2 }
|
|
95905
|
+
};
|
|
95906
|
+
});
|
|
95907
|
+
const totalXp = mockCourses.reduce((sum3, c3) => sum3 + c3.totalXp, 0);
|
|
95908
|
+
const todayXp = includeToday ? mockCourses.reduce((sum3, c3) => sum3 + (c3.todayXp ?? 0), 0) : undefined;
|
|
95909
|
+
return c2.json({
|
|
95910
|
+
totalXp,
|
|
95911
|
+
...includeToday && { todayXp },
|
|
95912
|
+
...includePerCourse && { courses: mockCourses }
|
|
95913
|
+
});
|
|
95914
|
+
}
|
|
95915
|
+
return handle2(timeback2.getStudentXp)(c2);
|
|
95916
|
+
});
|
|
95535
95917
|
});
|
|
95536
95918
|
|
|
95537
95919
|
// src/routes/integrations/lti.ts
|