@betterinternship/core 1.2.17 → 1.2.19

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.
@@ -1,863 +0,0 @@
1
- import { PostgrestError } from "@supabase/supabase-js";
2
- import { Database } from "./db.types";
3
- export declare const db: import("@supabase/supabase-js").SupabaseClient<Database, "public", {
4
- Tables: {
5
- applications: {
6
- Row: {
7
- applied_at: string;
8
- cover_letter: string | null;
9
- id: string;
10
- job_id: string | null;
11
- notes: string | null;
12
- review: string | null;
13
- status: number;
14
- updated_at: string | null;
15
- user_id: string | null;
16
- };
17
- Insert: {
18
- applied_at?: string;
19
- cover_letter?: string | null;
20
- id?: string;
21
- job_id?: string | null;
22
- notes?: string | null;
23
- review?: string | null;
24
- status?: number;
25
- updated_at?: string | null;
26
- user_id?: string | null;
27
- };
28
- Update: {
29
- applied_at?: string;
30
- cover_letter?: string | null;
31
- id?: string;
32
- job_id?: string | null;
33
- notes?: string | null;
34
- review?: string | null;
35
- status?: number;
36
- updated_at?: string | null;
37
- user_id?: string | null;
38
- };
39
- Relationships: [{
40
- foreignKeyName: "applications_job_id_fkey";
41
- columns: ["job_id"];
42
- isOneToOne: false;
43
- referencedRelation: "jobs";
44
- referencedColumns: ["id"];
45
- }, {
46
- foreignKeyName: "applications_status_fkey";
47
- columns: ["status"];
48
- isOneToOne: false;
49
- referencedRelation: "ref_app_statuses";
50
- referencedColumns: ["id"];
51
- }, {
52
- foreignKeyName: "applications_user_id_fkey";
53
- columns: ["user_id"];
54
- isOneToOne: false;
55
- referencedRelation: "users";
56
- referencedColumns: ["id"];
57
- }];
58
- };
59
- conversations: {
60
- Row: {
61
- created_at: string;
62
- employer_id: string;
63
- id: string;
64
- user_id: string;
65
- };
66
- Insert: {
67
- created_at?: string;
68
- employer_id: string;
69
- id?: string;
70
- user_id: string;
71
- };
72
- Update: {
73
- created_at?: string;
74
- employer_id?: string;
75
- id?: string;
76
- user_id?: string;
77
- };
78
- Relationships: [{
79
- foreignKeyName: "chats_employer_id_fkey";
80
- columns: ["employer_id"];
81
- isOneToOne: false;
82
- referencedRelation: "employers";
83
- referencedColumns: ["id"];
84
- }, {
85
- foreignKeyName: "chats_user_id_fkey";
86
- columns: ["user_id"];
87
- isOneToOne: false;
88
- referencedRelation: "users";
89
- referencedColumns: ["id"];
90
- }];
91
- };
92
- employer_users: {
93
- Row: {
94
- created_at: string;
95
- email: string;
96
- employer_id: string;
97
- first_name: string | null;
98
- id: string;
99
- is_deactivated: boolean;
100
- is_verified: boolean;
101
- last_name: string | null;
102
- middle_name: string | null;
103
- password: string;
104
- profile_picture: string | null;
105
- updated_at: string;
106
- };
107
- Insert: {
108
- created_at?: string;
109
- email: string;
110
- employer_id: string;
111
- first_name?: string | null;
112
- id?: string;
113
- is_deactivated?: boolean;
114
- is_verified?: boolean;
115
- last_name?: string | null;
116
- middle_name?: string | null;
117
- password: string;
118
- profile_picture?: string | null;
119
- updated_at?: string;
120
- };
121
- Update: {
122
- created_at?: string;
123
- email?: string;
124
- employer_id?: string;
125
- first_name?: string | null;
126
- id?: string;
127
- is_deactivated?: boolean;
128
- is_verified?: boolean;
129
- last_name?: string | null;
130
- middle_name?: string | null;
131
- password?: string;
132
- profile_picture?: string | null;
133
- updated_at?: string;
134
- };
135
- Relationships: [{
136
- foreignKeyName: "employer_users_employer_id_fkey";
137
- columns: ["employer_id"];
138
- isOneToOne: false;
139
- referencedRelation: "employers";
140
- referencedColumns: ["id"];
141
- }];
142
- };
143
- employers: {
144
- Row: {
145
- accepted_universities: string[];
146
- accepts_non_university: boolean;
147
- created_at: string;
148
- description: string | null;
149
- email: string | null;
150
- id: string;
151
- industry: string | null;
152
- is_verified: boolean;
153
- job_count: number;
154
- legal_entity_name: string;
155
- location: string | null;
156
- logo: string | null;
157
- name: string;
158
- phone_number: string | null;
159
- updated_at: string;
160
- website: string | null;
161
- };
162
- Insert: {
163
- accepted_universities?: string[];
164
- accepts_non_university?: boolean;
165
- created_at?: string;
166
- description?: string | null;
167
- email?: string | null;
168
- id?: string;
169
- industry?: string | null;
170
- is_verified?: boolean;
171
- job_count?: number;
172
- legal_entity_name: string;
173
- location?: string | null;
174
- logo?: string | null;
175
- name: string;
176
- phone_number?: string | null;
177
- updated_at?: string;
178
- website?: string | null;
179
- };
180
- Update: {
181
- accepted_universities?: string[];
182
- accepts_non_university?: boolean;
183
- created_at?: string;
184
- description?: string | null;
185
- email?: string | null;
186
- id?: string;
187
- industry?: string | null;
188
- is_verified?: boolean;
189
- job_count?: number;
190
- legal_entity_name?: string;
191
- location?: string | null;
192
- logo?: string | null;
193
- name?: string;
194
- phone_number?: string | null;
195
- updated_at?: string;
196
- website?: string | null;
197
- };
198
- Relationships: [];
199
- };
200
- gods: {
201
- Row: {
202
- employer_user_id: string;
203
- id: string;
204
- };
205
- Insert: {
206
- employer_user_id: string;
207
- id?: string;
208
- };
209
- Update: {
210
- employer_user_id?: string;
211
- id?: string;
212
- };
213
- Relationships: [{
214
- foreignKeyName: "gods_employer_user_id_fkey";
215
- columns: ["employer_user_id"];
216
- isOneToOne: true;
217
- referencedRelation: "employer_users";
218
- referencedColumns: ["id"];
219
- }];
220
- };
221
- jobs: {
222
- Row: {
223
- allowance: number | null;
224
- category: string | null;
225
- created_at: string | null;
226
- description: string;
227
- employer_id: string | null;
228
- end_date: number | null;
229
- id: string;
230
- is_active: boolean | null;
231
- is_deleted: boolean;
232
- is_unlisted: boolean;
233
- is_year_round: boolean | null;
234
- location: string | null;
235
- mode: number | null;
236
- require_cover_letter: boolean | null;
237
- require_github: boolean | null;
238
- require_portfolio: boolean | null;
239
- requirements: string | null;
240
- salary: number | null;
241
- salary_freq: number | null;
242
- start_date: number | null;
243
- title: string;
244
- type: number | null;
245
- updated_at: string | null;
246
- view_count: number;
247
- };
248
- Insert: {
249
- allowance?: number | null;
250
- category?: string | null;
251
- created_at?: string | null;
252
- description: string;
253
- employer_id?: string | null;
254
- end_date?: number | null;
255
- id?: string;
256
- is_active?: boolean | null;
257
- is_deleted?: boolean;
258
- is_unlisted?: boolean;
259
- is_year_round?: boolean | null;
260
- location?: string | null;
261
- mode?: number | null;
262
- require_cover_letter?: boolean | null;
263
- require_github?: boolean | null;
264
- require_portfolio?: boolean | null;
265
- requirements?: string | null;
266
- salary?: number | null;
267
- salary_freq?: number | null;
268
- start_date?: number | null;
269
- title: string;
270
- type?: number | null;
271
- updated_at?: string | null;
272
- view_count?: number;
273
- };
274
- Update: {
275
- allowance?: number | null;
276
- category?: string | null;
277
- created_at?: string | null;
278
- description?: string;
279
- employer_id?: string | null;
280
- end_date?: number | null;
281
- id?: string;
282
- is_active?: boolean | null;
283
- is_deleted?: boolean;
284
- is_unlisted?: boolean;
285
- is_year_round?: boolean | null;
286
- location?: string | null;
287
- mode?: number | null;
288
- require_cover_letter?: boolean | null;
289
- require_github?: boolean | null;
290
- require_portfolio?: boolean | null;
291
- requirements?: string | null;
292
- salary?: number | null;
293
- salary_freq?: number | null;
294
- start_date?: number | null;
295
- title?: string;
296
- type?: number | null;
297
- updated_at?: string | null;
298
- view_count?: number;
299
- };
300
- Relationships: [{
301
- foreignKeyName: "jobs_allowance_fkey";
302
- columns: ["allowance"];
303
- isOneToOne: false;
304
- referencedRelation: "ref_job_allowances";
305
- referencedColumns: ["id"];
306
- }, {
307
- foreignKeyName: "jobs_category_fkey";
308
- columns: ["category"];
309
- isOneToOne: false;
310
- referencedRelation: "ref_job_categories";
311
- referencedColumns: ["id"];
312
- }, {
313
- foreignKeyName: "jobs_employer_id_fkey";
314
- columns: ["employer_id"];
315
- isOneToOne: false;
316
- referencedRelation: "employers";
317
- referencedColumns: ["id"];
318
- }, {
319
- foreignKeyName: "jobs_mode_fkey";
320
- columns: ["mode"];
321
- isOneToOne: false;
322
- referencedRelation: "ref_job_modes";
323
- referencedColumns: ["id"];
324
- }, {
325
- foreignKeyName: "jobs_salary_freq_fkey";
326
- columns: ["salary_freq"];
327
- isOneToOne: false;
328
- referencedRelation: "ref_job_pay_freq";
329
- referencedColumns: ["id"];
330
- }, {
331
- foreignKeyName: "jobs_type_fkey";
332
- columns: ["type"];
333
- isOneToOne: false;
334
- referencedRelation: "ref_job_types";
335
- referencedColumns: ["id"];
336
- }];
337
- };
338
- moa: {
339
- Row: {
340
- employer_id: string;
341
- expires_at: string;
342
- id: string;
343
- start_date: string;
344
- university_id: string;
345
- };
346
- Insert: {
347
- employer_id: string;
348
- expires_at?: string;
349
- id?: string;
350
- start_date?: string;
351
- university_id: string;
352
- };
353
- Update: {
354
- employer_id?: string;
355
- expires_at?: string;
356
- id?: string;
357
- start_date?: string;
358
- university_id?: string;
359
- };
360
- Relationships: [{
361
- foreignKeyName: "moa_employer_id_fkey";
362
- columns: ["employer_id"];
363
- isOneToOne: false;
364
- referencedRelation: "employers";
365
- referencedColumns: ["id"];
366
- }, {
367
- foreignKeyName: "moa_university_id_fkey";
368
- columns: ["university_id"];
369
- isOneToOne: false;
370
- referencedRelation: "ref_universities";
371
- referencedColumns: ["id"];
372
- }];
373
- };
374
- ref_app_statuses: {
375
- Row: {
376
- id: number;
377
- name: string;
378
- order: number;
379
- };
380
- Insert: {
381
- id?: number;
382
- name: string;
383
- order: number;
384
- };
385
- Update: {
386
- id?: number;
387
- name?: string;
388
- order?: number;
389
- };
390
- Relationships: [];
391
- };
392
- ref_colleges: {
393
- Row: {
394
- id: string;
395
- name: string;
396
- short_name: string;
397
- university_id: string;
398
- };
399
- Insert: {
400
- id?: string;
401
- name: string;
402
- short_name?: string;
403
- university_id: string;
404
- };
405
- Update: {
406
- id?: string;
407
- name?: string;
408
- short_name?: string;
409
- university_id?: string;
410
- };
411
- Relationships: [{
412
- foreignKeyName: "ref_colleges_university_id_fkey";
413
- columns: ["university_id"];
414
- isOneToOne: false;
415
- referencedRelation: "ref_universities";
416
- referencedColumns: ["id"];
417
- }];
418
- };
419
- ref_degrees: {
420
- Row: {
421
- id: string;
422
- name: string;
423
- type: string;
424
- university_id: string;
425
- };
426
- Insert: {
427
- id?: string;
428
- name: string;
429
- type: string;
430
- university_id: string;
431
- };
432
- Update: {
433
- id?: string;
434
- name?: string;
435
- type?: string;
436
- university_id?: string;
437
- };
438
- Relationships: [{
439
- foreignKeyName: "ref_degrees_university_id_fkey";
440
- columns: ["university_id"];
441
- isOneToOne: false;
442
- referencedRelation: "ref_universities";
443
- referencedColumns: ["id"];
444
- }];
445
- };
446
- ref_departments: {
447
- Row: {
448
- college_id: string;
449
- id: string;
450
- name: string;
451
- short_name: string;
452
- };
453
- Insert: {
454
- college_id?: string;
455
- id?: string;
456
- name: string;
457
- short_name: string;
458
- };
459
- Update: {
460
- college_id?: string;
461
- id?: string;
462
- name?: string;
463
- short_name?: string;
464
- };
465
- Relationships: [{
466
- foreignKeyName: "ref_departments_college_id_fkey";
467
- columns: ["college_id"];
468
- isOneToOne: false;
469
- referencedRelation: "ref_colleges";
470
- referencedColumns: ["id"];
471
- }];
472
- };
473
- ref_domains: {
474
- Row: {
475
- id: string;
476
- name: string;
477
- university_id: string;
478
- };
479
- Insert: {
480
- id?: string;
481
- name: string;
482
- university_id: string;
483
- };
484
- Update: {
485
- id?: string;
486
- name?: string;
487
- university_id?: string;
488
- };
489
- Relationships: [{
490
- foreignKeyName: "ref_domains_university_id_fkey";
491
- columns: ["university_id"];
492
- isOneToOne: false;
493
- referencedRelation: "ref_universities";
494
- referencedColumns: ["id"];
495
- }];
496
- };
497
- ref_industries: {
498
- Row: {
499
- id: string;
500
- name: string;
501
- };
502
- Insert: {
503
- id?: string;
504
- name: string;
505
- };
506
- Update: {
507
- id?: string;
508
- name?: string;
509
- };
510
- Relationships: [];
511
- };
512
- ref_job_allowances: {
513
- Row: {
514
- id: number;
515
- name: string;
516
- };
517
- Insert: {
518
- id?: number;
519
- name: string;
520
- };
521
- Update: {
522
- id?: number;
523
- name?: string;
524
- };
525
- Relationships: [];
526
- };
527
- ref_job_categories: {
528
- Row: {
529
- class: string;
530
- id: string;
531
- name: string;
532
- order: number;
533
- };
534
- Insert: {
535
- class: string;
536
- id?: string;
537
- name: string;
538
- order: number;
539
- };
540
- Update: {
541
- class?: string;
542
- id?: string;
543
- name?: string;
544
- order?: number;
545
- };
546
- Relationships: [];
547
- };
548
- ref_job_modes: {
549
- Row: {
550
- id: number;
551
- name: string;
552
- };
553
- Insert: {
554
- id?: number;
555
- name: string;
556
- };
557
- Update: {
558
- id?: number;
559
- name?: string;
560
- };
561
- Relationships: [];
562
- };
563
- ref_job_pay_freq: {
564
- Row: {
565
- description: string;
566
- factor: number | null;
567
- id: number;
568
- name: string;
569
- };
570
- Insert: {
571
- description: string;
572
- factor?: number | null;
573
- id?: number;
574
- name: string;
575
- };
576
- Update: {
577
- description?: string;
578
- factor?: number | null;
579
- id?: number;
580
- name?: string;
581
- };
582
- Relationships: [];
583
- };
584
- ref_job_types: {
585
- Row: {
586
- id: number;
587
- name: string;
588
- };
589
- Insert: {
590
- id?: number;
591
- name: string;
592
- };
593
- Update: {
594
- id?: number;
595
- name?: string;
596
- };
597
- Relationships: [];
598
- };
599
- ref_levels: {
600
- Row: {
601
- id: number;
602
- name: string;
603
- order: number;
604
- };
605
- Insert: {
606
- id?: number;
607
- name: string;
608
- order: number;
609
- };
610
- Update: {
611
- id?: number;
612
- name?: string;
613
- order?: number;
614
- };
615
- Relationships: [];
616
- };
617
- ref_universities: {
618
- Row: {
619
- id: string;
620
- name: string;
621
- };
622
- Insert: {
623
- id?: string;
624
- name: string;
625
- };
626
- Update: {
627
- id?: string;
628
- name?: string;
629
- };
630
- Relationships: [];
631
- };
632
- saved_jobs: {
633
- Row: {
634
- id: string;
635
- job_id: string | null;
636
- saved_at: string | null;
637
- user_id: string | null;
638
- };
639
- Insert: {
640
- id?: string;
641
- job_id?: string | null;
642
- saved_at?: string | null;
643
- user_id?: string | null;
644
- };
645
- Update: {
646
- id?: string;
647
- job_id?: string | null;
648
- saved_at?: string | null;
649
- user_id?: string | null;
650
- };
651
- Relationships: [{
652
- foreignKeyName: "saved_jobs_job_id_fkey";
653
- columns: ["job_id"];
654
- isOneToOne: false;
655
- referencedRelation: "jobs";
656
- referencedColumns: ["id"];
657
- }, {
658
- foreignKeyName: "saved_jobs_user_id_fkey";
659
- columns: ["user_id"];
660
- isOneToOne: false;
661
- referencedRelation: "users";
662
- referencedColumns: ["id"];
663
- }];
664
- };
665
- sessions: {
666
- Row: {
667
- employer_id: string | null;
668
- id: string;
669
- owner_id: string;
670
- timestamp: string;
671
- user_id: string | null;
672
- };
673
- Insert: {
674
- employer_id?: string | null;
675
- id?: string;
676
- owner_id: string;
677
- timestamp?: string;
678
- user_id?: string | null;
679
- };
680
- Update: {
681
- employer_id?: string | null;
682
- id?: string;
683
- owner_id?: string;
684
- timestamp?: string;
685
- user_id?: string | null;
686
- };
687
- Relationships: [{
688
- foreignKeyName: "sessions_employer_id_fkey";
689
- columns: ["employer_id"];
690
- isOneToOne: false;
691
- referencedRelation: "employers";
692
- referencedColumns: ["id"];
693
- }, {
694
- foreignKeyName: "sessions_user_id_fkey";
695
- columns: ["user_id"];
696
- isOneToOne: false;
697
- referencedRelation: "users";
698
- referencedColumns: ["id"];
699
- }];
700
- };
701
- user_activity: {
702
- Row: {
703
- activity_type: string | null;
704
- created_at: string | null;
705
- id: string;
706
- job_id: string | null;
707
- metadata: import("./db.types").Json | null;
708
- user_id: string | null;
709
- };
710
- Insert: {
711
- activity_type?: string | null;
712
- created_at?: string | null;
713
- id?: string;
714
- job_id?: string | null;
715
- metadata?: import("./db.types").Json | null;
716
- user_id?: string | null;
717
- };
718
- Update: {
719
- activity_type?: string | null;
720
- created_at?: string | null;
721
- id?: string;
722
- job_id?: string | null;
723
- metadata?: import("./db.types").Json | null;
724
- user_id?: string | null;
725
- };
726
- Relationships: [{
727
- foreignKeyName: "user_activity_job_id_fkey";
728
- columns: ["job_id"];
729
- isOneToOne: false;
730
- referencedRelation: "jobs";
731
- referencedColumns: ["id"];
732
- }, {
733
- foreignKeyName: "user_activity_user_id_fkey";
734
- columns: ["user_id"];
735
- isOneToOne: false;
736
- referencedRelation: "users";
737
- referencedColumns: ["id"];
738
- }];
739
- };
740
- users: {
741
- Row: {
742
- bio: string | null;
743
- calendar_link: string | null;
744
- college: string | null;
745
- created_at: string | null;
746
- degree: string | null;
747
- degree_notes: string | null;
748
- department: string | null;
749
- email: string;
750
- first_name: string | null;
751
- github_link: string | null;
752
- id: string;
753
- is_deactivated: boolean | null;
754
- is_verified: boolean;
755
- last_name: string | null;
756
- linkage_officer: string | null;
757
- linkedin_link: string | null;
758
- middle_name: string | null;
759
- phone_number: string | null;
760
- portfolio_link: string | null;
761
- profile_picture: string | null;
762
- resume: string | null;
763
- taking_for_credit: boolean;
764
- university: string | null;
765
- updated_at: string | null;
766
- verification_hash: string;
767
- year_level: number | null;
768
- };
769
- Insert: {
770
- bio?: string | null;
771
- calendar_link?: string | null;
772
- college?: string | null;
773
- created_at?: string | null;
774
- degree?: string | null;
775
- degree_notes?: string | null;
776
- department?: string | null;
777
- email: string;
778
- first_name?: string | null;
779
- github_link?: string | null;
780
- id?: string;
781
- is_deactivated?: boolean | null;
782
- is_verified?: boolean;
783
- last_name?: string | null;
784
- linkage_officer?: string | null;
785
- linkedin_link?: string | null;
786
- middle_name?: string | null;
787
- phone_number?: string | null;
788
- portfolio_link?: string | null;
789
- profile_picture?: string | null;
790
- resume?: string | null;
791
- taking_for_credit?: boolean;
792
- university?: string | null;
793
- updated_at?: string | null;
794
- verification_hash: string;
795
- year_level?: number | null;
796
- };
797
- Update: {
798
- bio?: string | null;
799
- calendar_link?: string | null;
800
- college?: string | null;
801
- created_at?: string | null;
802
- degree?: string | null;
803
- degree_notes?: string | null;
804
- department?: string | null;
805
- email?: string;
806
- first_name?: string | null;
807
- github_link?: string | null;
808
- id?: string;
809
- is_deactivated?: boolean | null;
810
- is_verified?: boolean;
811
- last_name?: string | null;
812
- linkage_officer?: string | null;
813
- linkedin_link?: string | null;
814
- middle_name?: string | null;
815
- phone_number?: string | null;
816
- portfolio_link?: string | null;
817
- profile_picture?: string | null;
818
- resume?: string | null;
819
- taking_for_credit?: boolean;
820
- university?: string | null;
821
- updated_at?: string | null;
822
- verification_hash?: string;
823
- year_level?: number | null;
824
- };
825
- Relationships: [{
826
- foreignKeyName: "users_college_fkey";
827
- columns: ["college"];
828
- isOneToOne: false;
829
- referencedRelation: "ref_colleges";
830
- referencedColumns: ["id"];
831
- }, {
832
- foreignKeyName: "users_degree_fkey";
833
- columns: ["degree"];
834
- isOneToOne: false;
835
- referencedRelation: "ref_degrees";
836
- referencedColumns: ["id"];
837
- }, {
838
- foreignKeyName: "users_department_fkey";
839
- columns: ["department"];
840
- isOneToOne: false;
841
- referencedRelation: "ref_departments";
842
- referencedColumns: ["id"];
843
- }, {
844
- foreignKeyName: "users_university_fkey";
845
- columns: ["university"];
846
- isOneToOne: false;
847
- referencedRelation: "ref_universities";
848
- referencedColumns: ["id"];
849
- }, {
850
- foreignKeyName: "users_year_level_fkey";
851
- columns: ["year_level"];
852
- isOneToOne: false;
853
- referencedRelation: "ref_levels";
854
- referencedColumns: ["id"];
855
- }];
856
- };
857
- };
858
- Views: { [_ in never]: never; };
859
- Functions: { [_ in never]: never; };
860
- Enums: { [_ in never]: never; };
861
- CompositeTypes: { [_ in never]: never; };
862
- }>;
863
- export declare const handleDBError: (error: PostgrestError, description?: string) => never;