@adaptware/eagles-db 0.4.24 → 0.4.26
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/client/edge.js +11 -3
- package/client/index-browser.js +8 -0
- package/client/index.d.ts +227 -2
- package/client/index.js +11 -3
- package/client/package.json +1 -1
- package/client/schema.prisma +20 -10
- package/client/wasm.js +11 -3
- package/package.json +1 -1
- package/prisma/schema/applications.prisma +1 -0
- package/prisma/schema/evaluationPlan.prisma +9 -0
- package/prisma/schema/migrations/20260626120000_add_evaluation_plan_share_scope/migration.sql +14 -0
- package/prisma/schema/migrations/20260626140000_add_evaluation_comment/migration.sql +2 -0
package/package.json
CHANGED
|
@@ -48,6 +48,12 @@ enum EvaluationPlanType {
|
|
|
48
48
|
DELETED
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
enum EvaluationPlanShareScope {
|
|
52
|
+
PRIVATE
|
|
53
|
+
CREATOR
|
|
54
|
+
ORGANIZATION
|
|
55
|
+
}
|
|
56
|
+
|
|
51
57
|
enum DurationUnit {
|
|
52
58
|
MINUTES
|
|
53
59
|
HOURS
|
|
@@ -71,6 +77,7 @@ model EvaluationPlan {
|
|
|
71
77
|
order_no Int?
|
|
72
78
|
details Json?
|
|
73
79
|
plan_type EvaluationPlanType @default(GENERIC)
|
|
80
|
+
share_scope EvaluationPlanShareScope @default(PRIVATE)
|
|
74
81
|
duration Int?
|
|
75
82
|
duration_unit DurationUnit?
|
|
76
83
|
deadline Int?
|
|
@@ -90,4 +97,6 @@ model EvaluationPlan {
|
|
|
90
97
|
ongoing_evaluations OngoingEvaluation[]
|
|
91
98
|
|
|
92
99
|
@@index([job_description_id])
|
|
100
|
+
@@index([job_description_id, plan_type, share_scope])
|
|
101
|
+
@@index([created_by, share_scope])
|
|
93
102
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
CREATE TYPE "EvaluationPlanShareScope" AS ENUM (
|
|
2
|
+
'PRIVATE',
|
|
3
|
+
'CREATOR',
|
|
4
|
+
'ORGANIZATION'
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
ALTER TABLE "EvaluationPlan"
|
|
8
|
+
ADD COLUMN "share_scope" "EvaluationPlanShareScope" NOT NULL DEFAULT 'PRIVATE';
|
|
9
|
+
|
|
10
|
+
CREATE INDEX "EvaluationPlan_job_description_id_plan_type_share_scope_idx"
|
|
11
|
+
ON "EvaluationPlan"("job_description_id", "plan_type", "share_scope");
|
|
12
|
+
|
|
13
|
+
CREATE INDEX "EvaluationPlan_created_by_share_scope_idx"
|
|
14
|
+
ON "EvaluationPlan"("created_by", "share_scope");
|