@adaptware/eagles-db 0.1.57 → 0.1.59
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 +88 -8
- package/client/index-browser.js +83 -3
- package/client/index.d.ts +6884 -700
- package/client/index.js +88 -8
- package/client/libquery_engine-darwin.dylib.node +0 -0
- package/client/package.json +1 -1
- package/client/schema.prisma +119 -24
- package/client/wasm.js +83 -3
- package/package.json +1 -1
- package/prisma/.DS_Store +0 -0
|
Binary file
|
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -265,9 +265,8 @@ model Assignment {
|
|
|
265
265
|
job_description_id String
|
|
266
266
|
organisation_id String
|
|
267
267
|
ongoing_evaluation_id String? @unique
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
ai_reasoning String?
|
|
268
|
+
overallScore Int?
|
|
269
|
+
feedback Json?
|
|
271
270
|
status AssignmentStatus @default(AVAILABLE)
|
|
272
271
|
cancel_reason String?
|
|
273
272
|
solution_url String?
|
|
@@ -592,6 +591,99 @@ model Google {
|
|
|
592
591
|
is_active Boolean @default(true)
|
|
593
592
|
}
|
|
594
593
|
|
|
594
|
+
enum IntegrationProvider {
|
|
595
|
+
NAUKRI
|
|
596
|
+
ZOHO_RECRUIT
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
enum IntegrationAuthType {
|
|
600
|
+
OAUTH2
|
|
601
|
+
API_KEY
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
enum SyncDirection {
|
|
605
|
+
PUSH
|
|
606
|
+
PULL
|
|
607
|
+
BIDIRECTIONAL
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
enum SyncEntityType {
|
|
611
|
+
CANDIDATE
|
|
612
|
+
JOB_OPENING
|
|
613
|
+
INTERVIEW
|
|
614
|
+
APPLICATION
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
enum SyncStatus {
|
|
618
|
+
SYNCED
|
|
619
|
+
PENDING
|
|
620
|
+
FAILED
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
model IntegrationCredential {
|
|
624
|
+
id String @id @default(uuid())
|
|
625
|
+
organisation_id String?
|
|
626
|
+
provider IntegrationProvider
|
|
627
|
+
auth_type IntegrationAuthType
|
|
628
|
+
access_token String?
|
|
629
|
+
refresh_token String?
|
|
630
|
+
token_expires_at DateTime?
|
|
631
|
+
api_key String?
|
|
632
|
+
api_secret String?
|
|
633
|
+
metadata Json @default("{}")
|
|
634
|
+
is_active Boolean @default(true)
|
|
635
|
+
|
|
636
|
+
organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade)
|
|
637
|
+
|
|
638
|
+
created_at DateTime @default(now())
|
|
639
|
+
updated_at DateTime @updatedAt
|
|
640
|
+
created_by String
|
|
641
|
+
updated_by String
|
|
642
|
+
|
|
643
|
+
@@unique([organisation_id, provider])
|
|
644
|
+
@@index([provider])
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
model IntegrationJobSync {
|
|
648
|
+
id String @id @default(uuid())
|
|
649
|
+
job_description_id String
|
|
650
|
+
provider IntegrationProvider
|
|
651
|
+
external_id String?
|
|
652
|
+
sync_enabled Boolean @default(true)
|
|
653
|
+
last_synced_at DateTime?
|
|
654
|
+
sync_direction SyncDirection @default(PUSH)
|
|
655
|
+
metadata Json @default("{}")
|
|
656
|
+
|
|
657
|
+
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade)
|
|
658
|
+
|
|
659
|
+
created_at DateTime @default(now())
|
|
660
|
+
updated_at DateTime @updatedAt
|
|
661
|
+
|
|
662
|
+
@@unique([job_description_id, provider])
|
|
663
|
+
@@index([provider])
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
model ZohoSyncMapping {
|
|
667
|
+
id String @id @default(uuid())
|
|
668
|
+
organisation_id String
|
|
669
|
+
entity_type SyncEntityType
|
|
670
|
+
treadspace_id String
|
|
671
|
+
zoho_module String
|
|
672
|
+
zoho_record_id String
|
|
673
|
+
last_synced_at DateTime @default(now())
|
|
674
|
+
sync_status SyncStatus @default(PENDING)
|
|
675
|
+
error_message String?
|
|
676
|
+
|
|
677
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade)
|
|
678
|
+
|
|
679
|
+
created_at DateTime @default(now())
|
|
680
|
+
updated_at DateTime @updatedAt
|
|
681
|
+
|
|
682
|
+
@@unique([organisation_id, entity_type, treadspace_id])
|
|
683
|
+
@@index([zoho_record_id])
|
|
684
|
+
@@index([sync_status])
|
|
685
|
+
}
|
|
686
|
+
|
|
595
687
|
enum InterviewStatus {
|
|
596
688
|
INTERVIEW_REQUESTED
|
|
597
689
|
SCHEDULED
|
|
@@ -725,6 +817,7 @@ model JobDescription {
|
|
|
725
817
|
hiring_manager User? @relation("HiringManager", fields: [hiring_manager_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
726
818
|
recruiters User[]
|
|
727
819
|
transcripts Transcript[]
|
|
820
|
+
integration_job_syncs IntegrationJobSync[]
|
|
728
821
|
|
|
729
822
|
@@index([organisation_id])
|
|
730
823
|
@@index([hiring_manager_id])
|
|
@@ -855,27 +948,29 @@ model Organisation {
|
|
|
855
948
|
address String
|
|
856
949
|
company_values Json[]
|
|
857
950
|
|
|
858
|
-
interviewers
|
|
859
|
-
created_at
|
|
860
|
-
updated_at
|
|
861
|
-
created_by
|
|
862
|
-
updated_by
|
|
863
|
-
is_active
|
|
864
|
-
alias
|
|
865
|
-
logo
|
|
866
|
-
applications
|
|
867
|
-
user_roles
|
|
868
|
-
job_descriptions
|
|
869
|
-
assessment_library
|
|
870
|
-
assignment_library
|
|
871
|
-
interviews
|
|
872
|
-
assignments
|
|
873
|
-
fit_check
|
|
874
|
-
resumes
|
|
875
|
-
approvals
|
|
876
|
-
suggestions
|
|
877
|
-
ongoing_evaluations
|
|
878
|
-
actions
|
|
951
|
+
interviewers User[]
|
|
952
|
+
created_at DateTime @default(now())
|
|
953
|
+
updated_at DateTime @updatedAt
|
|
954
|
+
created_by String
|
|
955
|
+
updated_by String
|
|
956
|
+
is_active Boolean @default(true)
|
|
957
|
+
alias String? @unique
|
|
958
|
+
logo String?
|
|
959
|
+
applications Application[]
|
|
960
|
+
user_roles UserRole[]
|
|
961
|
+
job_descriptions JobDescription[]
|
|
962
|
+
assessment_library AssessmentLibrary[]
|
|
963
|
+
assignment_library AssignmentLibrary[]
|
|
964
|
+
interviews Interview[]
|
|
965
|
+
assignments Assignment[]
|
|
966
|
+
fit_check FitCheck[] // one-to-many link
|
|
967
|
+
resumes Resume[] // one-to-many link
|
|
968
|
+
approvals Approval[] // one-to-many link
|
|
969
|
+
suggestions Suggestion[]
|
|
970
|
+
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
|
971
|
+
actions Action[]
|
|
972
|
+
integration_credentials IntegrationCredential[]
|
|
973
|
+
zoho_sync_mappings ZohoSyncMapping[]
|
|
879
974
|
|
|
880
975
|
@@index([name])
|
|
881
976
|
}
|
package/client/wasm.js
CHANGED
|
@@ -259,9 +259,8 @@ exports.Prisma.AssignmentScalarFieldEnum = {
|
|
|
259
259
|
job_description_id: 'job_description_id',
|
|
260
260
|
organisation_id: 'organisation_id',
|
|
261
261
|
ongoing_evaluation_id: 'ongoing_evaluation_id',
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
ai_reasoning: 'ai_reasoning',
|
|
262
|
+
overallScore: 'overallScore',
|
|
263
|
+
feedback: 'feedback',
|
|
265
264
|
status: 'status',
|
|
266
265
|
cancel_reason: 'cancel_reason',
|
|
267
266
|
solution_url: 'solution_url',
|
|
@@ -444,6 +443,51 @@ exports.Prisma.GoogleScalarFieldEnum = {
|
|
|
444
443
|
is_active: 'is_active'
|
|
445
444
|
};
|
|
446
445
|
|
|
446
|
+
exports.Prisma.IntegrationCredentialScalarFieldEnum = {
|
|
447
|
+
id: 'id',
|
|
448
|
+
organisation_id: 'organisation_id',
|
|
449
|
+
provider: 'provider',
|
|
450
|
+
auth_type: 'auth_type',
|
|
451
|
+
access_token: 'access_token',
|
|
452
|
+
refresh_token: 'refresh_token',
|
|
453
|
+
token_expires_at: 'token_expires_at',
|
|
454
|
+
api_key: 'api_key',
|
|
455
|
+
api_secret: 'api_secret',
|
|
456
|
+
metadata: 'metadata',
|
|
457
|
+
is_active: 'is_active',
|
|
458
|
+
created_at: 'created_at',
|
|
459
|
+
updated_at: 'updated_at',
|
|
460
|
+
created_by: 'created_by',
|
|
461
|
+
updated_by: 'updated_by'
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
exports.Prisma.IntegrationJobSyncScalarFieldEnum = {
|
|
465
|
+
id: 'id',
|
|
466
|
+
job_description_id: 'job_description_id',
|
|
467
|
+
provider: 'provider',
|
|
468
|
+
external_id: 'external_id',
|
|
469
|
+
sync_enabled: 'sync_enabled',
|
|
470
|
+
last_synced_at: 'last_synced_at',
|
|
471
|
+
sync_direction: 'sync_direction',
|
|
472
|
+
metadata: 'metadata',
|
|
473
|
+
created_at: 'created_at',
|
|
474
|
+
updated_at: 'updated_at'
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
exports.Prisma.ZohoSyncMappingScalarFieldEnum = {
|
|
478
|
+
id: 'id',
|
|
479
|
+
organisation_id: 'organisation_id',
|
|
480
|
+
entity_type: 'entity_type',
|
|
481
|
+
treadspace_id: 'treadspace_id',
|
|
482
|
+
zoho_module: 'zoho_module',
|
|
483
|
+
zoho_record_id: 'zoho_record_id',
|
|
484
|
+
last_synced_at: 'last_synced_at',
|
|
485
|
+
sync_status: 'sync_status',
|
|
486
|
+
error_message: 'error_message',
|
|
487
|
+
created_at: 'created_at',
|
|
488
|
+
updated_at: 'updated_at'
|
|
489
|
+
};
|
|
490
|
+
|
|
447
491
|
exports.Prisma.InterviewScalarFieldEnum = {
|
|
448
492
|
id: 'id',
|
|
449
493
|
organisation_id: 'organisation_id',
|
|
@@ -753,6 +797,10 @@ exports.Prisma.NullableJsonNullValueInput = {
|
|
|
753
797
|
JsonNull: Prisma.JsonNull
|
|
754
798
|
};
|
|
755
799
|
|
|
800
|
+
exports.Prisma.JsonNullValueInput = {
|
|
801
|
+
JsonNull: Prisma.JsonNull
|
|
802
|
+
};
|
|
803
|
+
|
|
756
804
|
exports.Prisma.QueryMode = {
|
|
757
805
|
default: 'default',
|
|
758
806
|
insensitive: 'insensitive'
|
|
@@ -871,6 +919,35 @@ exports.EvaluationPlanType = exports.$Enums.EvaluationPlanType = {
|
|
|
871
919
|
DELETED: 'DELETED'
|
|
872
920
|
};
|
|
873
921
|
|
|
922
|
+
exports.IntegrationProvider = exports.$Enums.IntegrationProvider = {
|
|
923
|
+
NAUKRI: 'NAUKRI',
|
|
924
|
+
ZOHO_RECRUIT: 'ZOHO_RECRUIT'
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
exports.IntegrationAuthType = exports.$Enums.IntegrationAuthType = {
|
|
928
|
+
OAUTH2: 'OAUTH2',
|
|
929
|
+
API_KEY: 'API_KEY'
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
exports.SyncDirection = exports.$Enums.SyncDirection = {
|
|
933
|
+
PUSH: 'PUSH',
|
|
934
|
+
PULL: 'PULL',
|
|
935
|
+
BIDIRECTIONAL: 'BIDIRECTIONAL'
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
exports.SyncEntityType = exports.$Enums.SyncEntityType = {
|
|
939
|
+
CANDIDATE: 'CANDIDATE',
|
|
940
|
+
JOB_OPENING: 'JOB_OPENING',
|
|
941
|
+
INTERVIEW: 'INTERVIEW',
|
|
942
|
+
APPLICATION: 'APPLICATION'
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
exports.SyncStatus = exports.$Enums.SyncStatus = {
|
|
946
|
+
SYNCED: 'SYNCED',
|
|
947
|
+
PENDING: 'PENDING',
|
|
948
|
+
FAILED: 'FAILED'
|
|
949
|
+
};
|
|
950
|
+
|
|
874
951
|
exports.InterviewStatus = exports.$Enums.InterviewStatus = {
|
|
875
952
|
INTERVIEW_REQUESTED: 'INTERVIEW_REQUESTED',
|
|
876
953
|
SCHEDULED: 'SCHEDULED',
|
|
@@ -978,6 +1055,9 @@ exports.Prisma.ModelName = {
|
|
|
978
1055
|
Feedback: 'Feedback',
|
|
979
1056
|
FitCheck: 'FitCheck',
|
|
980
1057
|
Google: 'Google',
|
|
1058
|
+
IntegrationCredential: 'IntegrationCredential',
|
|
1059
|
+
IntegrationJobSync: 'IntegrationJobSync',
|
|
1060
|
+
ZohoSyncMapping: 'ZohoSyncMapping',
|
|
981
1061
|
Interview: 'Interview',
|
|
982
1062
|
InterviewNotes: 'InterviewNotes',
|
|
983
1063
|
JobDescription: 'JobDescription',
|
package/package.json
CHANGED
package/prisma/.DS_Store
DELETED
|
Binary file
|