@betterinternship/schema 1.30.0 → 1.31.0
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/db.d.ts +12 -12
- package/dist/db.doc.types.d.ts +12 -110
- package/dist/db.doc.types.js +15 -0
- package/dist/db.doc.types.js.map +1 -1
- package/dist/db.internal.types.d.ts +3 -185
- package/dist/db.internal.types.js +15 -0
- package/dist/db.internal.types.js.map +1 -1
- package/dist/db.internship.types.d.ts +3 -96
- package/dist/db.internship.types.js +15 -0
- package/dist/db.internship.types.js.map +1 -1
- package/dist/db.iom.types.d.ts +3 -315
- package/dist/db.iom.types.js +15 -0
- package/dist/db.iom.types.js.map +1 -1
- package/dist/db.js +4 -4
- package/dist/db.js.map +1 -1
- package/dist/db.types.d.ts +658 -0
- package/dist/index.js.map +1 -1
- package/dist/repository/factories.d.ts +8 -6
- package/dist/repository/factories.js +21 -18
- package/dist/repository/factories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -6
package/dist/db.types.d.ts
CHANGED
|
@@ -9,6 +9,27 @@ export type CareerJobPauseReason = "dormant" | "neglected" | "unresponsive";
|
|
|
9
9
|
export type CareerJobWaitlistRemovalReason = "left" | "listing_deleted" | "notified";
|
|
10
10
|
export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
|
|
11
11
|
export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
|
|
12
|
+
export type InternalAuthEventType = "expired" | "impersonation_ended" | "impersonation_started" | "login" | "logout" | "revoked";
|
|
13
|
+
export type InternalAuthRealm = "company" | "employer" | "god" | "signatory" | "student" | "university";
|
|
14
|
+
export type InternalLinkClickOutcome = "expired" | "invalid" | "revoked" | "valid";
|
|
15
|
+
export type InternalLinkDomain = "admin" | "career_api" | "docs" | "employer" | "moa" | "student" | "uni";
|
|
16
|
+
export type InternalMqJobStatus = "done" | "failed" | "processing" | "queued";
|
|
17
|
+
export type InternalProcessStatus = "canceled" | "failed" | "handled" | "pending";
|
|
18
|
+
export type InternalSocialChannel = "facebook" | "telegram";
|
|
19
|
+
export type InternalSocialPostStatus = "cancelled" | "failed" | "posted" | "queued" | "released" | "sending" | "skipped";
|
|
20
|
+
export type InternalTaskStatus = "failed" | "handled" | "pending" | "retrying";
|
|
21
|
+
export type IomAuditEventType = "auto_request_enabled" | "auto_request_revoked" | "auto_sign_enabled" | "auto_sign_revoked" | "career_nudge_sent" | "company_blacklisted" | "company_invite_accepted" | "company_invite_cancelled" | "company_invite_registered" | "company_invite_sent" | "company_review_approved" | "company_review_rejected" | "company_review_requested" | "company_unblacklisted" | "legacy_document_uploaded" | "legacy_moa_bulk_uploaded" | "legacy_moa_created" | "moa_issued" | "moa_renewal_requested" | "moa_revoked" | "university_account_deactivated" | "university_account_invited" | "university_account_reactivated" | "university_account_role_changed" | "university_account_signed_in" | "university_profile_updated";
|
|
22
|
+
export type IomAuthPurpose = "auto_sign_revoke" | "invite" | "moa_signature" | "password_reset";
|
|
23
|
+
export type IomAuthSubjectType = "auto_sign_consent" | "company" | "company_invite" | "company_listing_invite" | "company_moa_invite" | "moa_request" | "university_account";
|
|
24
|
+
export type IomAutoConsentKind = "delegate" | "owner";
|
|
25
|
+
export type IomCompanyInviteKind = "listing" | "moa";
|
|
26
|
+
export type IomCompanyInviteStatus = "accepted" | "cancelled" | "expired" | "pending" | "used_waiting";
|
|
27
|
+
export type IomCompanyReviewStatus = "approved" | "rejected" | "superseded";
|
|
28
|
+
export type IomCompanyType = "corporation" | "government_agency" | "partnership" | "sole_proprietorship";
|
|
29
|
+
export type IomMoaRequestStatus = "awaiting_signature" | "awaiting_verification" | "cancelled" | "expired" | "failed" | "issued";
|
|
30
|
+
export type IomMoaStatus = "active" | "rejected";
|
|
31
|
+
export type IomQueuedMoaRequestStatus = "failed" | "fulfilled" | "pending";
|
|
32
|
+
export type IomUniversityRole = "admin" | "staff" | "superadmin";
|
|
12
33
|
export type Json = JsonValue;
|
|
13
34
|
export type JsonArray = JsonValue[];
|
|
14
35
|
export type JsonObject = {
|
|
@@ -388,6 +409,591 @@ export interface CareerUsers {
|
|
|
388
409
|
verification_hash: string;
|
|
389
410
|
year_level: number | null;
|
|
390
411
|
}
|
|
412
|
+
export interface DocumentsBaseDocuments {
|
|
413
|
+
created_at: Generated<Timestamp>;
|
|
414
|
+
id: Generated<string>;
|
|
415
|
+
name: string;
|
|
416
|
+
url: string;
|
|
417
|
+
}
|
|
418
|
+
export interface DocumentsBaseImages {
|
|
419
|
+
filename: string;
|
|
420
|
+
id: Generated<string>;
|
|
421
|
+
source_text: string;
|
|
422
|
+
url: string;
|
|
423
|
+
}
|
|
424
|
+
export interface DocumentsExternalDocuments {
|
|
425
|
+
code: string | null;
|
|
426
|
+
effective_date: Timestamp | null;
|
|
427
|
+
expiry_date: Timestamp | null;
|
|
428
|
+
form_label: string | null;
|
|
429
|
+
id: Generated<string>;
|
|
430
|
+
uploaded_at: Generated<Timestamp>;
|
|
431
|
+
url: string;
|
|
432
|
+
}
|
|
433
|
+
export interface DocumentsFieldTemplateRegistry {
|
|
434
|
+
field_schema_defaults: Json | null;
|
|
435
|
+
id: Generated<string>;
|
|
436
|
+
is_phantom: Generated<boolean>;
|
|
437
|
+
label: string;
|
|
438
|
+
name: string;
|
|
439
|
+
party: Generated<string | null>;
|
|
440
|
+
prefiller: string | null;
|
|
441
|
+
preset: Generated<string>;
|
|
442
|
+
shared: Generated<boolean>;
|
|
443
|
+
source: string;
|
|
444
|
+
tag: string | null;
|
|
445
|
+
tooltip_label: string | null;
|
|
446
|
+
type: Generated<string>;
|
|
447
|
+
validator: string | null;
|
|
448
|
+
validator_ir: Json | null;
|
|
449
|
+
}
|
|
450
|
+
export interface DocumentsFormGroups {
|
|
451
|
+
code: string | null;
|
|
452
|
+
coordinator_id: string | null;
|
|
453
|
+
description: string;
|
|
454
|
+
forms: string[];
|
|
455
|
+
id: Generated<string>;
|
|
456
|
+
}
|
|
457
|
+
export interface DocumentsFormTemplateRegistry {
|
|
458
|
+
base_document_id: string | null;
|
|
459
|
+
created_by: string | null;
|
|
460
|
+
form_metadata_id: Generated<string>;
|
|
461
|
+
id: Generated<string>;
|
|
462
|
+
label: string | null;
|
|
463
|
+
name: string;
|
|
464
|
+
source_kind: string | null;
|
|
465
|
+
source_template_id: string | null;
|
|
466
|
+
time_generated: Generated<Timestamp | null>;
|
|
467
|
+
version: Generated<number>;
|
|
468
|
+
}
|
|
469
|
+
export interface DocumentsPendingDocuments {
|
|
470
|
+
audit: Json | null;
|
|
471
|
+
base_document_id: string | null;
|
|
472
|
+
date_made: Generated<Timestamp>;
|
|
473
|
+
descriptors: Generated<Json>;
|
|
474
|
+
form_label: string | null;
|
|
475
|
+
form_name: string | null;
|
|
476
|
+
id: Generated<string>;
|
|
477
|
+
inputs: Generated<Json>;
|
|
478
|
+
latest_document_url: string | null;
|
|
479
|
+
pending_parties: Generated<Json>;
|
|
480
|
+
signatories: Generated<Json>;
|
|
481
|
+
subscribers: Json | null;
|
|
482
|
+
version: number | null;
|
|
483
|
+
}
|
|
484
|
+
export interface DocumentsSignedDocuments {
|
|
485
|
+
base_document_id: string | null;
|
|
486
|
+
date_made: Generated<Timestamp>;
|
|
487
|
+
descriptors: Generated<Json>;
|
|
488
|
+
effective_date: Timestamp | null;
|
|
489
|
+
expiry_date: Timestamp | null;
|
|
490
|
+
form_label: string | null;
|
|
491
|
+
form_name: string | null;
|
|
492
|
+
id: Generated<string>;
|
|
493
|
+
inputs: Json | null;
|
|
494
|
+
inputs_hash: string | null;
|
|
495
|
+
notarized_url: string | null;
|
|
496
|
+
schema: Json | null;
|
|
497
|
+
schema_hash: string | null;
|
|
498
|
+
signatories: Json | null;
|
|
499
|
+
url: string;
|
|
500
|
+
verification_code: string | null;
|
|
501
|
+
}
|
|
502
|
+
export interface FormsCoordinatorAccounts {
|
|
503
|
+
created_at: Generated<Timestamp>;
|
|
504
|
+
email: string;
|
|
505
|
+
forms: string[];
|
|
506
|
+
id: Generated<string>;
|
|
507
|
+
name: string | null;
|
|
508
|
+
signatory_account_id: string | null;
|
|
509
|
+
}
|
|
510
|
+
export interface FormsFormProcesses {
|
|
511
|
+
created_at: Generated<Timestamp>;
|
|
512
|
+
display_information: Json | null;
|
|
513
|
+
form_inputs: Generated<Json | null>;
|
|
514
|
+
form_label: string | null;
|
|
515
|
+
form_name: string;
|
|
516
|
+
form_version: Generated<number>;
|
|
517
|
+
id: Generated<string>;
|
|
518
|
+
initiator_id: string | null;
|
|
519
|
+
latest_document_url: string | null;
|
|
520
|
+
prefilled_document_id: string | null;
|
|
521
|
+
rejection_reason: string | null;
|
|
522
|
+
schema_version: Generated<number>;
|
|
523
|
+
signed_document_id: string | null;
|
|
524
|
+
signees: Generated<Json>;
|
|
525
|
+
signing_parties: Generated<Json>;
|
|
526
|
+
subscribers: Generated<Json>;
|
|
527
|
+
timestamp: Generated<Timestamp>;
|
|
528
|
+
}
|
|
529
|
+
export interface FormsGods {
|
|
530
|
+
id: Generated<string>;
|
|
531
|
+
signatory_account: Generated<string>;
|
|
532
|
+
}
|
|
533
|
+
export interface FormsSignatoryAccounts {
|
|
534
|
+
auto_form_permissions: Json | null;
|
|
535
|
+
autofill: Generated<Json | null>;
|
|
536
|
+
created_at: Generated<Timestamp>;
|
|
537
|
+
email: string;
|
|
538
|
+
honorific: string | null;
|
|
539
|
+
id: Generated<string>;
|
|
540
|
+
name: string | null;
|
|
541
|
+
signature: string | null;
|
|
542
|
+
title: string | null;
|
|
543
|
+
}
|
|
544
|
+
export interface FormsSignatoryAudits {
|
|
545
|
+
audit: Generated<Json>;
|
|
546
|
+
created_at: Generated<Timestamp>;
|
|
547
|
+
id: Generated<string>;
|
|
548
|
+
ip_address: string | null;
|
|
549
|
+
signatory_id: string;
|
|
550
|
+
}
|
|
551
|
+
export interface FormsSignatoryForms {
|
|
552
|
+
first_viewed: Timestamp | null;
|
|
553
|
+
form_label: string | null;
|
|
554
|
+
form_name: string;
|
|
555
|
+
form_process_id: string;
|
|
556
|
+
form_process_status: string | null;
|
|
557
|
+
id: Generated<string>;
|
|
558
|
+
signatory_id: string | null;
|
|
559
|
+
signing_keyring_id: string | null;
|
|
560
|
+
signing_party_id: string | null;
|
|
561
|
+
timestamp: Generated<Timestamp>;
|
|
562
|
+
}
|
|
563
|
+
export interface FormsSignatoryFormSettings {
|
|
564
|
+
created_at: Generated<Timestamp>;
|
|
565
|
+
form_name: string;
|
|
566
|
+
id: Generated<string>;
|
|
567
|
+
settings: Json;
|
|
568
|
+
signatory_id: string;
|
|
569
|
+
}
|
|
570
|
+
export interface FormsSignatoryKeyring {
|
|
571
|
+
consumed: Generated<boolean>;
|
|
572
|
+
consumed_at: Timestamp | null;
|
|
573
|
+
created_at: Generated<Timestamp>;
|
|
574
|
+
hash: string;
|
|
575
|
+
id: Generated<string>;
|
|
576
|
+
signatory_account_id: string;
|
|
577
|
+
}
|
|
578
|
+
export interface InternalAppConfig {
|
|
579
|
+
key: string;
|
|
580
|
+
updated_at: Generated<Timestamp>;
|
|
581
|
+
updated_by: string | null;
|
|
582
|
+
value: string;
|
|
583
|
+
}
|
|
584
|
+
export interface InternalAuthEventLog {
|
|
585
|
+
at: Generated<Timestamp>;
|
|
586
|
+
email: string | null;
|
|
587
|
+
event: InternalAuthEventType;
|
|
588
|
+
god_id: string | null;
|
|
589
|
+
id: Generated<string>;
|
|
590
|
+
realm: InternalAuthRealm;
|
|
591
|
+
reason: string | null;
|
|
592
|
+
session_id: string | null;
|
|
593
|
+
subject_id: string;
|
|
594
|
+
}
|
|
595
|
+
export interface InternalAuthSessions {
|
|
596
|
+
created_at: Generated<Timestamp>;
|
|
597
|
+
email: string | null;
|
|
598
|
+
expires_at: Timestamp;
|
|
599
|
+
id: Generated<string>;
|
|
600
|
+
impersonated_by_session_id: string | null;
|
|
601
|
+
last_seen_at: Generated<Timestamp>;
|
|
602
|
+
realm: InternalAuthRealm;
|
|
603
|
+
subject_id: string;
|
|
604
|
+
token_hash: string;
|
|
605
|
+
}
|
|
606
|
+
export interface InternalEmailDeliveryEvents {
|
|
607
|
+
attempts: number | null;
|
|
608
|
+
correlation_detail: string | null;
|
|
609
|
+
correlation_id: string | null;
|
|
610
|
+
correlation_type: string | null;
|
|
611
|
+
created_at: Generated<Timestamp>;
|
|
612
|
+
error_message: string | null;
|
|
613
|
+
event_type: string;
|
|
614
|
+
feedback_id: string;
|
|
615
|
+
first_opened_at: Timestamp | null;
|
|
616
|
+
handled_at: Timestamp | null;
|
|
617
|
+
id: Generated<string>;
|
|
618
|
+
message_id: string | null;
|
|
619
|
+
open_count: Generated<number>;
|
|
620
|
+
recipient_email: string;
|
|
621
|
+
resolved_at: Timestamp | null;
|
|
622
|
+
subject: string | null;
|
|
623
|
+
}
|
|
624
|
+
export interface InternalGodAuditLog {
|
|
625
|
+
action: string;
|
|
626
|
+
at: Generated<Timestamp>;
|
|
627
|
+
god_id: string;
|
|
628
|
+
id: Generated<string>;
|
|
629
|
+
outcome: string;
|
|
630
|
+
params: Json | null;
|
|
631
|
+
session_id: string | null;
|
|
632
|
+
target_id: string | null;
|
|
633
|
+
target_type: string | null;
|
|
634
|
+
}
|
|
635
|
+
export interface InternalGods {
|
|
636
|
+
created_at: Generated<Timestamp>;
|
|
637
|
+
display_name: string;
|
|
638
|
+
email: string;
|
|
639
|
+
id: Generated<string>;
|
|
640
|
+
is_deactivated: Generated<boolean>;
|
|
641
|
+
preferences: Generated<Json>;
|
|
642
|
+
}
|
|
643
|
+
export interface InternalMqJobs {
|
|
644
|
+
created_at: Generated<Timestamp>;
|
|
645
|
+
error: string | null;
|
|
646
|
+
id: Generated<string>;
|
|
647
|
+
owner_id: string | null;
|
|
648
|
+
progress_done: number | null;
|
|
649
|
+
progress_failed: number | null;
|
|
650
|
+
progress_total: number | null;
|
|
651
|
+
result: Json | null;
|
|
652
|
+
status: Generated<InternalMqJobStatus>;
|
|
653
|
+
type: string;
|
|
654
|
+
updated_at: Generated<Timestamp>;
|
|
655
|
+
}
|
|
656
|
+
export interface InternalProcesses {
|
|
657
|
+
base_inputs: Generated<Json | null>;
|
|
658
|
+
error: Json | null;
|
|
659
|
+
id: Generated<string>;
|
|
660
|
+
name: string;
|
|
661
|
+
result: Json | null;
|
|
662
|
+
status: Generated<InternalProcessStatus>;
|
|
663
|
+
timestamp: Generated<Timestamp>;
|
|
664
|
+
}
|
|
665
|
+
export interface InternalRecipientLinkClicks {
|
|
666
|
+
context: Json | null;
|
|
667
|
+
created_at: Generated<Timestamp>;
|
|
668
|
+
id: Generated<string>;
|
|
669
|
+
ip: string | null;
|
|
670
|
+
link_id: string | null;
|
|
671
|
+
link_type: string;
|
|
672
|
+
outcome: InternalLinkClickOutcome;
|
|
673
|
+
recipient_id: string;
|
|
674
|
+
user_agent: string | null;
|
|
675
|
+
}
|
|
676
|
+
export interface InternalSlugs {
|
|
677
|
+
created_at: Generated<Timestamp>;
|
|
678
|
+
destination_host: InternalLinkDomain | null;
|
|
679
|
+
domain: InternalLinkDomain;
|
|
680
|
+
slug: string;
|
|
681
|
+
url: string;
|
|
682
|
+
}
|
|
683
|
+
export interface InternalSocialPosts {
|
|
684
|
+
cancelled_by: string | null;
|
|
685
|
+
channel: InternalSocialChannel;
|
|
686
|
+
error: string | null;
|
|
687
|
+
external_post_id: string | null;
|
|
688
|
+
finished_at: Timestamp | null;
|
|
689
|
+
id: Generated<string>;
|
|
690
|
+
job_id: string;
|
|
691
|
+
queued_at: Generated<Timestamp>;
|
|
692
|
+
released_at: Timestamp | null;
|
|
693
|
+
sending_at: Timestamp | null;
|
|
694
|
+
skip_reason: string | null;
|
|
695
|
+
status: Generated<InternalSocialPostStatus>;
|
|
696
|
+
}
|
|
697
|
+
export interface InternalTasks {
|
|
698
|
+
error: string | null;
|
|
699
|
+
handler_id: string;
|
|
700
|
+
id: Generated<string>;
|
|
701
|
+
inputs: Json | null;
|
|
702
|
+
internal_id: string;
|
|
703
|
+
parent_ids: string[] | null;
|
|
704
|
+
process_id: string;
|
|
705
|
+
process_name: string;
|
|
706
|
+
result: Json | null;
|
|
707
|
+
status: Generated<InternalTaskStatus>;
|
|
708
|
+
timestamp: Generated<Timestamp>;
|
|
709
|
+
}
|
|
710
|
+
export interface InternalTestInboxes {
|
|
711
|
+
added_by: string;
|
|
712
|
+
created_at: Generated<Timestamp>;
|
|
713
|
+
email: string;
|
|
714
|
+
id: Generated<string>;
|
|
715
|
+
kind: string;
|
|
716
|
+
note: string | null;
|
|
717
|
+
verified_at: Timestamp | null;
|
|
718
|
+
}
|
|
719
|
+
export interface InternalTestPresets {
|
|
720
|
+
created_by: string;
|
|
721
|
+
id: Generated<string>;
|
|
722
|
+
name: string;
|
|
723
|
+
panel: string;
|
|
724
|
+
updated_at: Generated<Timestamp>;
|
|
725
|
+
updated_by: string;
|
|
726
|
+
values: Json;
|
|
727
|
+
}
|
|
728
|
+
export interface IomAuditLogs {
|
|
729
|
+
actor_email: string | null;
|
|
730
|
+
company_id: string | null;
|
|
731
|
+
created_at: Generated<Timestamp>;
|
|
732
|
+
detail: string | null;
|
|
733
|
+
event_type: IomAuditEventType;
|
|
734
|
+
id: Generated<string>;
|
|
735
|
+
moa_id: string | null;
|
|
736
|
+
platform_admin_id: string | null;
|
|
737
|
+
university_id: string | null;
|
|
738
|
+
}
|
|
739
|
+
export interface IomAuthTokens {
|
|
740
|
+
consumed_at: Timestamp | null;
|
|
741
|
+
created_at: Generated<Timestamp>;
|
|
742
|
+
expires_at: Timestamp;
|
|
743
|
+
hash: string;
|
|
744
|
+
id: Generated<string>;
|
|
745
|
+
purpose: IomAuthPurpose;
|
|
746
|
+
subject_id: string;
|
|
747
|
+
subject_type: IomAuthSubjectType;
|
|
748
|
+
}
|
|
749
|
+
export interface IomAutoConsents {
|
|
750
|
+
auto_renew: Generated<boolean>;
|
|
751
|
+
company_id: string;
|
|
752
|
+
created_at: Generated<Timestamp>;
|
|
753
|
+
email: string;
|
|
754
|
+
id: Generated<string>;
|
|
755
|
+
kind: Generated<IomAutoConsentKind>;
|
|
756
|
+
proactive: Generated<boolean>;
|
|
757
|
+
revoked_at: Timestamp | null;
|
|
758
|
+
signatory_name: string;
|
|
759
|
+
signatory_title: string;
|
|
760
|
+
signature_data: string;
|
|
761
|
+
signature_type: string;
|
|
762
|
+
template_id: string;
|
|
763
|
+
tin: string | null;
|
|
764
|
+
}
|
|
765
|
+
export interface IomCompanies {
|
|
766
|
+
company_type: IomCompanyType | null;
|
|
767
|
+
cosmetic: Generated<Json>;
|
|
768
|
+
created_at: Generated<Timestamp>;
|
|
769
|
+
document_review_details: Generated<Json>;
|
|
770
|
+
email: string | null;
|
|
771
|
+
email_verified: Generated<boolean>;
|
|
772
|
+
iat_threshold: Timestamp | null;
|
|
773
|
+
id: Generated<string>;
|
|
774
|
+
identity_claims: Generated<Json>;
|
|
775
|
+
is_deactivated: boolean | null;
|
|
776
|
+
is_demo: Generated<boolean>;
|
|
777
|
+
password: string | null;
|
|
778
|
+
registered_address: string | null;
|
|
779
|
+
registered_name: string | null;
|
|
780
|
+
tin: string | null;
|
|
781
|
+
updated_at: Generated<Timestamp>;
|
|
782
|
+
}
|
|
783
|
+
export interface IomCompanyBlacklists {
|
|
784
|
+
company_id: string;
|
|
785
|
+
created_at: Generated<Timestamp>;
|
|
786
|
+
id: Generated<string>;
|
|
787
|
+
reason: string | null;
|
|
788
|
+
university_id: string;
|
|
789
|
+
}
|
|
790
|
+
export interface IomCompanyDocuments {
|
|
791
|
+
company_id: string;
|
|
792
|
+
expires_at: Timestamp | null;
|
|
793
|
+
filename: string;
|
|
794
|
+
id: Generated<string>;
|
|
795
|
+
type: string;
|
|
796
|
+
uploaded_at: Generated<Timestamp>;
|
|
797
|
+
url: string;
|
|
798
|
+
}
|
|
799
|
+
export interface IomCompanyHistorySnapshots {
|
|
800
|
+
company_id: string;
|
|
801
|
+
created_at: Generated<Timestamp>;
|
|
802
|
+
document_ids: Generated<Json>;
|
|
803
|
+
hash: string;
|
|
804
|
+
id: Generated<string>;
|
|
805
|
+
snapshot_json: Json;
|
|
806
|
+
}
|
|
807
|
+
export interface IomCompanyInvites {
|
|
808
|
+
company_name: string | null;
|
|
809
|
+
created_at: Generated<Timestamp>;
|
|
810
|
+
expires_at: Timestamp;
|
|
811
|
+
id: Generated<string>;
|
|
812
|
+
invited_email: string;
|
|
813
|
+
kind: Generated<IomCompanyInviteKind>;
|
|
814
|
+
legacy_company_id: string | null;
|
|
815
|
+
personal_message: string | null;
|
|
816
|
+
status: Generated<IomCompanyInviteStatus>;
|
|
817
|
+
template_id: string | null;
|
|
818
|
+
university_id: string;
|
|
819
|
+
}
|
|
820
|
+
export interface IomCompanyListingInvites {
|
|
821
|
+
accepted_company_id: string | null;
|
|
822
|
+
company_name: string | null;
|
|
823
|
+
created_at: Generated<Timestamp>;
|
|
824
|
+
expires_at: Timestamp;
|
|
825
|
+
id: Generated<string>;
|
|
826
|
+
invited_email: string;
|
|
827
|
+
legacy_company_id: string | null;
|
|
828
|
+
personal_message: string | null;
|
|
829
|
+
status: Generated<IomCompanyInviteStatus>;
|
|
830
|
+
university_id: string;
|
|
831
|
+
}
|
|
832
|
+
export interface IomCompanyMoaInvites {
|
|
833
|
+
accepted_company_id: string | null;
|
|
834
|
+
company_name: string | null;
|
|
835
|
+
created_at: Generated<Timestamp>;
|
|
836
|
+
expires_at: Timestamp;
|
|
837
|
+
id: Generated<string>;
|
|
838
|
+
invited_email: string;
|
|
839
|
+
personal_message: string | null;
|
|
840
|
+
status: Generated<IomCompanyInviteStatus>;
|
|
841
|
+
template_id: string | null;
|
|
842
|
+
university_id: string;
|
|
843
|
+
}
|
|
844
|
+
export interface IomCompanyReviews {
|
|
845
|
+
approval_expires_at: Timestamp | null;
|
|
846
|
+
company_id: string;
|
|
847
|
+
created_at: Generated<Timestamp>;
|
|
848
|
+
document_rejections: Generated<Json>;
|
|
849
|
+
document_review_details: Generated<Json>;
|
|
850
|
+
history_snapshot_id: string | null;
|
|
851
|
+
id: Generated<string>;
|
|
852
|
+
material_hash: string;
|
|
853
|
+
rejection_reason: string | null;
|
|
854
|
+
reviewed_at: Timestamp | null;
|
|
855
|
+
reviewed_by_id: string | null;
|
|
856
|
+
status: IomCompanyReviewStatus | null;
|
|
857
|
+
updated_at: Generated<Timestamp>;
|
|
858
|
+
}
|
|
859
|
+
export interface IomExpiryReminders {
|
|
860
|
+
company_review_id: string | null;
|
|
861
|
+
document_type: string | null;
|
|
862
|
+
id: Generated<string>;
|
|
863
|
+
marker: number;
|
|
864
|
+
moa_id: string | null;
|
|
865
|
+
recipient_email: string;
|
|
866
|
+
sent_at: Generated<Timestamp>;
|
|
867
|
+
}
|
|
868
|
+
export interface IomLegacyCompanies {
|
|
869
|
+
company_details: Generated<Json>;
|
|
870
|
+
company_documents: Generated<Json>;
|
|
871
|
+
company_name: string;
|
|
872
|
+
created_at: Generated<Timestamp>;
|
|
873
|
+
id: Generated<string>;
|
|
874
|
+
moas: Generated<Json>;
|
|
875
|
+
registered_company_id: string | null;
|
|
876
|
+
university_id: string;
|
|
877
|
+
updated_at: Generated<Timestamp>;
|
|
878
|
+
valid_until: Timestamp | null;
|
|
879
|
+
}
|
|
880
|
+
export interface IomMoaRequests {
|
|
881
|
+
auto_signed: Generated<boolean>;
|
|
882
|
+
company_id: string;
|
|
883
|
+
created_at: Generated<Timestamp>;
|
|
884
|
+
expires_at: Timestamp | null;
|
|
885
|
+
failure_reason: string | null;
|
|
886
|
+
id: Generated<string>;
|
|
887
|
+
invite_id: string | null;
|
|
888
|
+
moa_id: string | null;
|
|
889
|
+
signatory_email: string | null;
|
|
890
|
+
signatory_name: string | null;
|
|
891
|
+
signatory_title: string | null;
|
|
892
|
+
signature_data: string | null;
|
|
893
|
+
signature_type: string | null;
|
|
894
|
+
signed_at: Timestamp | null;
|
|
895
|
+
status: Generated<IomMoaRequestStatus>;
|
|
896
|
+
template_id: string;
|
|
897
|
+
university_id: string;
|
|
898
|
+
updated_at: Generated<Timestamp>;
|
|
899
|
+
}
|
|
900
|
+
export interface IomMoas {
|
|
901
|
+
company_id: string;
|
|
902
|
+
created_at: Generated<Timestamp>;
|
|
903
|
+
effective_date: Timestamp;
|
|
904
|
+
expiry_date: Timestamp | null;
|
|
905
|
+
generated_pdf_url: string;
|
|
906
|
+
id: Generated<string>;
|
|
907
|
+
is_expired: boolean | null;
|
|
908
|
+
signatories: Json | null;
|
|
909
|
+
status: IomMoaStatus;
|
|
910
|
+
template_id: string;
|
|
911
|
+
university_id: string;
|
|
912
|
+
verification_code: string | null;
|
|
913
|
+
}
|
|
914
|
+
export interface IomMoaTemplates {
|
|
915
|
+
created_at: Generated<Timestamp>;
|
|
916
|
+
description: string | null;
|
|
917
|
+
field_schema: Generated<Json>;
|
|
918
|
+
id: Generated<string>;
|
|
919
|
+
is_deleted: boolean | null;
|
|
920
|
+
name: string;
|
|
921
|
+
page_count: number;
|
|
922
|
+
page_h: number;
|
|
923
|
+
page_w: number;
|
|
924
|
+
pdf_url: string;
|
|
925
|
+
retired_at: Timestamp | null;
|
|
926
|
+
supersedes_id: string | null;
|
|
927
|
+
term_months: number | null;
|
|
928
|
+
updated_at: Generated<Timestamp>;
|
|
929
|
+
}
|
|
930
|
+
export interface IomPlatformAdmins {
|
|
931
|
+
created_at: Generated<Timestamp>;
|
|
932
|
+
display_name: string;
|
|
933
|
+
email: string;
|
|
934
|
+
id: Generated<string>;
|
|
935
|
+
password: string;
|
|
936
|
+
}
|
|
937
|
+
export interface IomPlatformSettings {
|
|
938
|
+
default_template_id: string | null;
|
|
939
|
+
id: Generated<string>;
|
|
940
|
+
updated_at: Generated<Timestamp>;
|
|
941
|
+
witness_name: string | null;
|
|
942
|
+
witness_signature_url: string | null;
|
|
943
|
+
witness_title: string | null;
|
|
944
|
+
}
|
|
945
|
+
export interface IomQueuedMoaRequests {
|
|
946
|
+
company_id: string;
|
|
947
|
+
created_at: Generated<Timestamp>;
|
|
948
|
+
failure_reason: string | null;
|
|
949
|
+
id: Generated<string>;
|
|
950
|
+
invite_id: string | null;
|
|
951
|
+
rep_name: string;
|
|
952
|
+
rep_signature_data: string;
|
|
953
|
+
rep_signature_type: string;
|
|
954
|
+
rep_title: string;
|
|
955
|
+
signatories: Generated<Json>;
|
|
956
|
+
status: Generated<IomQueuedMoaRequestStatus>;
|
|
957
|
+
template_id: string;
|
|
958
|
+
university_id: string;
|
|
959
|
+
}
|
|
960
|
+
export interface IomUniversities {
|
|
961
|
+
account_holder_name: string | null;
|
|
962
|
+
account_holder_title: string | null;
|
|
963
|
+
address: string | null;
|
|
964
|
+
created_at: Generated<Timestamp>;
|
|
965
|
+
id: Generated<string>;
|
|
966
|
+
is_deactivated: boolean | null;
|
|
967
|
+
is_demo: Generated<boolean>;
|
|
968
|
+
logo_url: string | null;
|
|
969
|
+
registered_name: string;
|
|
970
|
+
rep_name: string | null;
|
|
971
|
+
rep_signature_url: string | null;
|
|
972
|
+
rep_title: string | null;
|
|
973
|
+
signatories: Generated<Json>;
|
|
974
|
+
updated_at: Generated<Timestamp>;
|
|
975
|
+
}
|
|
976
|
+
export interface IomUniversityAccounts {
|
|
977
|
+
activated_at: Timestamp | null;
|
|
978
|
+
created_at: Generated<Timestamp>;
|
|
979
|
+
display_name: string;
|
|
980
|
+
email: string;
|
|
981
|
+
iat_threshold: Timestamp | null;
|
|
982
|
+
id: Generated<string>;
|
|
983
|
+
is_deactivated: boolean | null;
|
|
984
|
+
password: string | null;
|
|
985
|
+
role: IomUniversityRole;
|
|
986
|
+
university_id: string;
|
|
987
|
+
updated_at: Generated<Timestamp>;
|
|
988
|
+
}
|
|
989
|
+
export interface IomUniversityTemplates {
|
|
990
|
+
created_at: Generated<Timestamp>;
|
|
991
|
+
id: Generated<string>;
|
|
992
|
+
is_available: Generated<boolean>;
|
|
993
|
+
template_id: string;
|
|
994
|
+
university_id: string;
|
|
995
|
+
updated_at: Generated<Timestamp>;
|
|
996
|
+
}
|
|
391
997
|
export interface DB {
|
|
392
998
|
"career._prisma_migrations": CareerPrismaMigrations;
|
|
393
999
|
"career.applications": CareerApplications;
|
|
@@ -431,4 +1037,56 @@ export interface DB {
|
|
|
431
1037
|
"career.top_page_universities": CareerTopPageUniversities;
|
|
432
1038
|
"career.top_pages": CareerTopPages;
|
|
433
1039
|
"career.users": CareerUsers;
|
|
1040
|
+
"documents.base_documents": DocumentsBaseDocuments;
|
|
1041
|
+
"documents.base_images": DocumentsBaseImages;
|
|
1042
|
+
"documents.external_documents": DocumentsExternalDocuments;
|
|
1043
|
+
"documents.field_template_registry": DocumentsFieldTemplateRegistry;
|
|
1044
|
+
"documents.form_groups": DocumentsFormGroups;
|
|
1045
|
+
"documents.form_template_registry": DocumentsFormTemplateRegistry;
|
|
1046
|
+
"documents.pending_documents": DocumentsPendingDocuments;
|
|
1047
|
+
"documents.signed_documents": DocumentsSignedDocuments;
|
|
1048
|
+
"forms.coordinator_accounts": FormsCoordinatorAccounts;
|
|
1049
|
+
"forms.form_processes": FormsFormProcesses;
|
|
1050
|
+
"forms.gods": FormsGods;
|
|
1051
|
+
"forms.signatory_accounts": FormsSignatoryAccounts;
|
|
1052
|
+
"forms.signatory_audits": FormsSignatoryAudits;
|
|
1053
|
+
"forms.signatory_form_settings": FormsSignatoryFormSettings;
|
|
1054
|
+
"forms.signatory_forms": FormsSignatoryForms;
|
|
1055
|
+
"forms.signatory_keyring": FormsSignatoryKeyring;
|
|
1056
|
+
"internal.app_config": InternalAppConfig;
|
|
1057
|
+
"internal.auth_event_log": InternalAuthEventLog;
|
|
1058
|
+
"internal.auth_sessions": InternalAuthSessions;
|
|
1059
|
+
"internal.email_delivery_events": InternalEmailDeliveryEvents;
|
|
1060
|
+
"internal.god_audit_log": InternalGodAuditLog;
|
|
1061
|
+
"internal.gods": InternalGods;
|
|
1062
|
+
"internal.mq_jobs": InternalMqJobs;
|
|
1063
|
+
"internal.processes": InternalProcesses;
|
|
1064
|
+
"internal.recipient_link_clicks": InternalRecipientLinkClicks;
|
|
1065
|
+
"internal.slugs": InternalSlugs;
|
|
1066
|
+
"internal.social_posts": InternalSocialPosts;
|
|
1067
|
+
"internal.tasks": InternalTasks;
|
|
1068
|
+
"internal.test_inboxes": InternalTestInboxes;
|
|
1069
|
+
"internal.test_presets": InternalTestPresets;
|
|
1070
|
+
"iom.audit_logs": IomAuditLogs;
|
|
1071
|
+
"iom.auth_tokens": IomAuthTokens;
|
|
1072
|
+
"iom.auto_consents": IomAutoConsents;
|
|
1073
|
+
"iom.companies": IomCompanies;
|
|
1074
|
+
"iom.company_blacklists": IomCompanyBlacklists;
|
|
1075
|
+
"iom.company_documents": IomCompanyDocuments;
|
|
1076
|
+
"iom.company_history_snapshots": IomCompanyHistorySnapshots;
|
|
1077
|
+
"iom.company_invites": IomCompanyInvites;
|
|
1078
|
+
"iom.company_listing_invites": IomCompanyListingInvites;
|
|
1079
|
+
"iom.company_moa_invites": IomCompanyMoaInvites;
|
|
1080
|
+
"iom.company_reviews": IomCompanyReviews;
|
|
1081
|
+
"iom.expiry_reminders": IomExpiryReminders;
|
|
1082
|
+
"iom.legacy_companies": IomLegacyCompanies;
|
|
1083
|
+
"iom.moa_requests": IomMoaRequests;
|
|
1084
|
+
"iom.moa_templates": IomMoaTemplates;
|
|
1085
|
+
"iom.moas": IomMoas;
|
|
1086
|
+
"iom.platform_admins": IomPlatformAdmins;
|
|
1087
|
+
"iom.platform_settings": IomPlatformSettings;
|
|
1088
|
+
"iom.queued_moa_requests": IomQueuedMoaRequests;
|
|
1089
|
+
"iom.universities": IomUniversities;
|
|
1090
|
+
"iom.university_accounts": IomUniversityAccounts;
|
|
1091
|
+
"iom.university_templates": IomUniversityTemplates;
|
|
434
1092
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,6CAA2B;AAC3B,+CAA6B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,6CAA2B;AAC3B,+CAA6B;AAM7B,sDAAoD;AAEpD,6CAA2C;AAE3C,kDAAgD;AAEhD,wCAAsC"}
|
|
@@ -2,13 +2,15 @@ import { Insertable, Selectable, Updateable } from "kysely";
|
|
|
2
2
|
import { DocumentDB, InternalDB, InternshipDB, IomDB } from "../db";
|
|
3
3
|
import { DB } from "../db.types";
|
|
4
4
|
import { Repository } from "./base";
|
|
5
|
-
export type
|
|
5
|
+
export type DBTable = keyof DB & string;
|
|
6
|
+
export declare function createRepository<T extends DBTable, Entity = Selectable<DB[T]>, Insert = Insertable<DB[T]>, Update = Updateable<DB[T]>>(table: T): new () => Repository<DB, T, Entity, Insert, Update>;
|
|
7
|
+
export type CareerTable = Extract<DBTable, `career.${string}`>;
|
|
6
8
|
export type InternshipTable = keyof InternshipDB & string;
|
|
7
9
|
export type DocumentTable = keyof DocumentDB & string;
|
|
8
10
|
export type InternalTable = keyof InternalDB & string;
|
|
9
11
|
export type IomTable = keyof IomDB & string;
|
|
10
|
-
export declare function createCareerRepository<
|
|
11
|
-
export declare function createInternshipFormsRepository<
|
|
12
|
-
export declare function createDocumentRepository<
|
|
13
|
-
export declare function createInternalRepository<
|
|
14
|
-
export declare function createIomRepository<
|
|
12
|
+
export declare function createCareerRepository<T extends CareerTable, Entity = Selectable<DB[T]>>(table: T): new () => Repository<DB, T, Entity, Insertable<Entity>, Updateable<Entity>>;
|
|
13
|
+
export declare function createInternshipFormsRepository<T extends InternshipTable>(table: T): new () => Repository<InternshipDB, T>;
|
|
14
|
+
export declare function createDocumentRepository<T extends DocumentTable>(table: T): new () => Repository<DocumentDB, T>;
|
|
15
|
+
export declare function createInternalRepository<T extends InternalTable>(table: T): new () => Repository<InternalDB, T>;
|
|
16
|
+
export declare function createIomRepository<T extends IomTable>(table: T): new () => Repository<IomDB, T>;
|