@adaptware/eagles-db 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/db-cli.js +3 -24
- package/client/edge.js +25 -7
- package/client/index-browser.js +20 -2
- package/client/index.d.ts +2335 -229
- package/client/index.js +25 -7
- package/client/package.json +1 -1
- package/client/schema.prisma +25 -0
- package/client/wasm.js +20 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -6
- package/package.json +4 -4
- package/prisma/.DS_Store +0 -0
- package/prisma/schema/assessment.prisma +4 -0
- package/prisma/schema/interview.prisma +6 -0
- package/prisma/schema/migrations/20260415120000_remove_job_profile_current_phase/migration.sql +2 -0
- package/prisma/schema/migrations/20260422120000_add_integration_provider_zoom/migration.sql +2 -0
- package/prisma/schema/migrations/20260422140000_add_zoom_meeting_tables/migration.sql +57 -0
- package/prisma/schema/migrations/20260422180000_add_zoom_webhook_event/migration.sql +18 -0
- package/prisma/schema/migrations/20260423140000_add_interview_platform/migration.sql +6 -0
- package/prisma/schema/migrations/20260423150000_remove_interview_zoom_topic/migration.sql +2 -0
- package/prisma/schema/migrations/20260423160000_zoom_meeting_uuid/migration.sql +4 -0
- package/prisma/schema/migrations/20260423170000_zoom_meeting_uuid_prisma_sync/migration.sql +2 -0
- package/prisma/schema/migrations/20260424120000_auth_module_user_provider_unique/migration.sql +5 -0
- package/prisma/schema/migrations/20260424130000_zoom_meeting_zoom_host_user_id/migration.sql +6 -0
- package/prisma/schema/migrations/20260425100000_zoom_participant_user_enum/migration.sql +22 -0
- package/prisma/schema/migrations/20260425110000_zoom_participant_zoom_id_required/migration.sql +13 -0
- package/prisma/schema/migrations/20260425120000_zoom_participant_id_nullable/migration.sql +4 -0
- package/prisma/schema/migrations/20260429140000_drop_evaluation_plan_job_order_unique/migration.sql +5 -0
- package/prisma/schema/migrations/20260429180000_eval_plan_timeline_optional_ongoing_duration/migration.sql +15 -0
- package/prisma/schema/migrations/20260430120000_drop_assessment_library_metadata_fields/migration.sql +8 -0
- package/prisma/schema/migrations/20260430140000_drop_question_question_type/migration.sql +5 -0
- package/prisma/schema/migrations/20260513120000_add_organisation_config/migration.sql +56 -0
- package/prisma/schema/migrations/20260514120000_dedupe_organisation_config/migration.sql +20 -0
- package/prisma/schema/migrations/20260515120000_add_interview_ai_assistance_mode/migration.sql +5 -0
- package/prisma/schema/migrations/migration_lock.toml +3 -0
- package/prisma/schema/organisation.prisma +2 -0
- package/prisma/schema/organisationConfig.prisma +12 -0
- package/client/libquery_engine-darwin.dylib.node +0 -0
package/bin/db-cli.js
CHANGED
|
@@ -35,10 +35,7 @@ function resolveLocalPrismaBin() {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
function runPrisma(subcommandParts, extra = []) {
|
|
38
|
-
|
|
39
|
-
if (subcommandParts != "migrate") {
|
|
40
|
-
finalArgs = ensureSchemaArg(extra);
|
|
41
|
-
}
|
|
38
|
+
const finalArgs = ensureSchemaArg(extra);
|
|
42
39
|
const localBin = resolveLocalPrismaBin();
|
|
43
40
|
const command = localBin || "npx";
|
|
44
41
|
const args = localBin
|
|
@@ -56,6 +53,7 @@ const [cmd, ...rest] = args;
|
|
|
56
53
|
switch (cmd) {
|
|
57
54
|
case "migrate":
|
|
58
55
|
runPrisma(["migrate"], rest);
|
|
56
|
+
break;
|
|
59
57
|
case "migrate:deploy":
|
|
60
58
|
runPrisma(["migrate", "deploy"], rest);
|
|
61
59
|
break;
|
|
@@ -65,25 +63,6 @@ switch (cmd) {
|
|
|
65
63
|
case "migrate:reset":
|
|
66
64
|
runPrisma(["migrate", "reset"], rest);
|
|
67
65
|
break;
|
|
68
|
-
case "migrate": {
|
|
69
|
-
const sub = (rest[0] || "").toLowerCase();
|
|
70
|
-
if (sub === "dev") {
|
|
71
|
-
runPrisma(["migrate", "dev"], rest.slice(1));
|
|
72
|
-
} else if (sub === "deploy") {
|
|
73
|
-
runPrisma(["migrate", "deploy"], rest.slice(1));
|
|
74
|
-
} else if (sub === "reset") {
|
|
75
|
-
const filtered = rest.filter(
|
|
76
|
-
(a) => a.toLowerCase() !== "reset" && a.toLowerCase() !== "all"
|
|
77
|
-
);
|
|
78
|
-
runPrisma(["migrate", "reset"], filtered);
|
|
79
|
-
} else {
|
|
80
|
-
console.log(
|
|
81
|
-
"Unknown migrate subcommand. Available: migrate dev|deploy|reset [all]"
|
|
82
|
-
);
|
|
83
|
-
process.exit(1);
|
|
84
|
-
}
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
66
|
case "studio":
|
|
88
67
|
runPrisma(["studio"], rest);
|
|
89
68
|
break;
|
|
@@ -108,6 +87,6 @@ switch (cmd) {
|
|
|
108
87
|
default:
|
|
109
88
|
console.log(`Unknown command: ${cmd}`);
|
|
110
89
|
console.log(
|
|
111
|
-
"Available: migrate:deploy | migrate:dev | migrate:reset | db:push | db push | studio | generate | reset:all"
|
|
90
|
+
"Available: migrate | migrate:deploy | migrate:dev | migrate:reset | db:push | db push | studio | generate | reset:all"
|
|
112
91
|
);
|
|
113
92
|
}
|