@betterinternship/schema.moa 1.6.1 → 2.0.1
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 +356 -22
- package/dist/db.ent.types.d.ts +0 -21
- package/dist/db.ent.types.js.map +1 -1
- package/dist/db.internship.types.d.ts +207 -0
- package/dist/db.internship.types.js +9 -0
- package/dist/db.internship.types.js.map +1 -0
- package/dist/db.js +12 -2
- package/dist/db.js.map +1 -1
- package/dist/db.uni.types.d.ts +295 -295
- package/dist/db.uni.types.js +8 -8
- package/dist/env.d.ts +1 -1
- package/dist/env.js +6 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/db.d.ts
CHANGED
|
@@ -2,18 +2,23 @@ import { PostgrestError } from "@supabase/supabase-js";
|
|
|
2
2
|
import { Database as _EntityDatabase, Tables as _EntityTables } from "./db.ent.types";
|
|
3
3
|
import { Database as _SchoolDatabase, Tables as _SchoolTables } from "./db.uni.types";
|
|
4
4
|
import { Database as _DocumentDatabase, Tables as _DocumentTables } from "./db.doc.types";
|
|
5
|
+
import { Tables as _InternshipTables } from "./db.internship.types";
|
|
5
6
|
export type DocumentDatabase = _DocumentDatabase;
|
|
6
7
|
export type EntityDatabase = _EntityDatabase;
|
|
7
8
|
export type SchoolDatabase = _SchoolDatabase;
|
|
9
|
+
export type InternshipDatabase = _DocumentDatabase;
|
|
8
10
|
export type DocumentTables<T extends "base_documents" | "base_images" | "signed_documents" | "field_template_registry" | "form_schemas" | "pending_documents" | "form_groups" | "prefilled_documents" | "form_group_accounts" | {
|
|
9
11
|
schema: "public";
|
|
10
12
|
}> = _DocumentTables<T>;
|
|
11
|
-
export type EntityTables<T extends "entities" | "entity_logs" | "messages" | "threads" | "moa_requests" | "new_entity_requests" |
|
|
13
|
+
export type EntityTables<T extends "entities" | "entity_logs" | "messages" | "threads" | "moa_requests" | "new_entity_requests" | {
|
|
12
14
|
schema: "public";
|
|
13
15
|
}> = _EntityTables<T>;
|
|
14
16
|
export type SchoolTables<T extends "moa_histories" | "schools" | "private_entity_notes" | "school_accounts" | "school_entities" | "school_logs" | {
|
|
15
17
|
schema: "public";
|
|
16
18
|
}> = _SchoolTables<T>;
|
|
19
|
+
export type InternshipTables<T extends "coordinator_accounts" | "signatory_accounts" | "signatory_forms" | "student_forms" | {
|
|
20
|
+
schema: "public";
|
|
21
|
+
}> = _InternshipTables<T>;
|
|
17
22
|
export declare const entityDb: import("@supabase/supabase-js").SupabaseClient<_EntityDatabase, "public", {
|
|
18
23
|
Tables: {
|
|
19
24
|
entities: {
|
|
@@ -70,27 +75,6 @@ export declare const entityDb: import("@supabase/supabase-js").SupabaseClient<_E
|
|
|
70
75
|
referencedColumns: ["id"];
|
|
71
76
|
}];
|
|
72
77
|
};
|
|
73
|
-
entity_autofill: {
|
|
74
|
-
Row: {
|
|
75
|
-
autofill: import("./db.ent.types").Json;
|
|
76
|
-
email: string | null;
|
|
77
|
-
id: string;
|
|
78
|
-
name: string | null;
|
|
79
|
-
};
|
|
80
|
-
Insert: {
|
|
81
|
-
autofill: import("./db.ent.types").Json;
|
|
82
|
-
email?: string | null;
|
|
83
|
-
id?: string;
|
|
84
|
-
name?: string | null;
|
|
85
|
-
};
|
|
86
|
-
Update: {
|
|
87
|
-
autofill?: import("./db.ent.types").Json;
|
|
88
|
-
email?: string | null;
|
|
89
|
-
id?: string;
|
|
90
|
-
name?: string | null;
|
|
91
|
-
};
|
|
92
|
-
Relationships: [];
|
|
93
|
-
};
|
|
94
78
|
entity_logs: {
|
|
95
79
|
Row: {
|
|
96
80
|
entity_id: string;
|
|
@@ -887,4 +871,354 @@ export declare const documentDb: import("@supabase/supabase-js").SupabaseClient<
|
|
|
887
871
|
};
|
|
888
872
|
CompositeTypes: { [_ in never]: never; };
|
|
889
873
|
}>;
|
|
874
|
+
export declare const internshipDb: import("@supabase/supabase-js").SupabaseClient<_DocumentDatabase, "public", {
|
|
875
|
+
Tables: {
|
|
876
|
+
base_documents: {
|
|
877
|
+
Row: {
|
|
878
|
+
created_at: string;
|
|
879
|
+
id: string;
|
|
880
|
+
name: string;
|
|
881
|
+
url: string;
|
|
882
|
+
};
|
|
883
|
+
Insert: {
|
|
884
|
+
created_at?: string;
|
|
885
|
+
id?: string;
|
|
886
|
+
name: string;
|
|
887
|
+
url: string;
|
|
888
|
+
};
|
|
889
|
+
Update: {
|
|
890
|
+
created_at?: string;
|
|
891
|
+
id?: string;
|
|
892
|
+
name?: string;
|
|
893
|
+
url?: string;
|
|
894
|
+
};
|
|
895
|
+
Relationships: [];
|
|
896
|
+
};
|
|
897
|
+
base_images: {
|
|
898
|
+
Row: {
|
|
899
|
+
filename: string;
|
|
900
|
+
id: string;
|
|
901
|
+
source_text: string;
|
|
902
|
+
url: string;
|
|
903
|
+
};
|
|
904
|
+
Insert: {
|
|
905
|
+
filename: string;
|
|
906
|
+
id?: string;
|
|
907
|
+
source_text: string;
|
|
908
|
+
url: string;
|
|
909
|
+
};
|
|
910
|
+
Update: {
|
|
911
|
+
filename?: string;
|
|
912
|
+
id?: string;
|
|
913
|
+
source_text?: string;
|
|
914
|
+
url?: string;
|
|
915
|
+
};
|
|
916
|
+
Relationships: [];
|
|
917
|
+
};
|
|
918
|
+
external_documents: {
|
|
919
|
+
Row: {
|
|
920
|
+
effective_date: string | null;
|
|
921
|
+
expiry_date: string | null;
|
|
922
|
+
id: string;
|
|
923
|
+
uploaded_at: string;
|
|
924
|
+
url: string;
|
|
925
|
+
};
|
|
926
|
+
Insert: {
|
|
927
|
+
effective_date?: string | null;
|
|
928
|
+
expiry_date?: string | null;
|
|
929
|
+
id?: string;
|
|
930
|
+
uploaded_at?: string;
|
|
931
|
+
url: string;
|
|
932
|
+
};
|
|
933
|
+
Update: {
|
|
934
|
+
effective_date?: string | null;
|
|
935
|
+
expiry_date?: string | null;
|
|
936
|
+
id?: string;
|
|
937
|
+
uploaded_at?: string;
|
|
938
|
+
url?: string;
|
|
939
|
+
};
|
|
940
|
+
Relationships: [];
|
|
941
|
+
};
|
|
942
|
+
field_template_registry: {
|
|
943
|
+
Row: {
|
|
944
|
+
id: string;
|
|
945
|
+
is_phantom: boolean;
|
|
946
|
+
label: string;
|
|
947
|
+
name: string;
|
|
948
|
+
party: string | null;
|
|
949
|
+
prefiller: string | null;
|
|
950
|
+
preset: string;
|
|
951
|
+
shared: boolean;
|
|
952
|
+
source: string;
|
|
953
|
+
tooltip_label: string | null;
|
|
954
|
+
type: string;
|
|
955
|
+
validator: string | null;
|
|
956
|
+
};
|
|
957
|
+
Insert: {
|
|
958
|
+
id?: string;
|
|
959
|
+
is_phantom?: boolean;
|
|
960
|
+
label: string;
|
|
961
|
+
name: string;
|
|
962
|
+
party?: string | null;
|
|
963
|
+
prefiller?: string | null;
|
|
964
|
+
preset?: string;
|
|
965
|
+
shared?: boolean;
|
|
966
|
+
source: string;
|
|
967
|
+
tooltip_label?: string | null;
|
|
968
|
+
type?: string;
|
|
969
|
+
validator?: string | null;
|
|
970
|
+
};
|
|
971
|
+
Update: {
|
|
972
|
+
id?: string;
|
|
973
|
+
is_phantom?: boolean;
|
|
974
|
+
label?: string;
|
|
975
|
+
name?: string;
|
|
976
|
+
party?: string | null;
|
|
977
|
+
prefiller?: string | null;
|
|
978
|
+
preset?: string;
|
|
979
|
+
shared?: boolean;
|
|
980
|
+
source?: string;
|
|
981
|
+
tooltip_label?: string | null;
|
|
982
|
+
type?: string;
|
|
983
|
+
validator?: string | null;
|
|
984
|
+
};
|
|
985
|
+
Relationships: [];
|
|
986
|
+
};
|
|
987
|
+
form_group_accounts: {
|
|
988
|
+
Row: {
|
|
989
|
+
created_at: string;
|
|
990
|
+
email: string;
|
|
991
|
+
form_group_id: string;
|
|
992
|
+
id: string;
|
|
993
|
+
name: string | null;
|
|
994
|
+
};
|
|
995
|
+
Insert: {
|
|
996
|
+
created_at?: string;
|
|
997
|
+
email: string;
|
|
998
|
+
form_group_id: string;
|
|
999
|
+
id?: string;
|
|
1000
|
+
name?: string | null;
|
|
1001
|
+
};
|
|
1002
|
+
Update: {
|
|
1003
|
+
created_at?: string;
|
|
1004
|
+
email?: string;
|
|
1005
|
+
form_group_id?: string;
|
|
1006
|
+
id?: string;
|
|
1007
|
+
name?: string | null;
|
|
1008
|
+
};
|
|
1009
|
+
Relationships: [{
|
|
1010
|
+
foreignKeyName: "form_group_accounts_form_group_id_fkey";
|
|
1011
|
+
columns: ["form_group_id"];
|
|
1012
|
+
isOneToOne: false;
|
|
1013
|
+
referencedRelation: "form_groups";
|
|
1014
|
+
referencedColumns: ["id"];
|
|
1015
|
+
}];
|
|
1016
|
+
};
|
|
1017
|
+
form_groups: {
|
|
1018
|
+
Row: {
|
|
1019
|
+
description: string;
|
|
1020
|
+
forms: string[];
|
|
1021
|
+
id: string;
|
|
1022
|
+
};
|
|
1023
|
+
Insert: {
|
|
1024
|
+
description: string;
|
|
1025
|
+
forms: string[];
|
|
1026
|
+
id?: string;
|
|
1027
|
+
};
|
|
1028
|
+
Update: {
|
|
1029
|
+
description?: string;
|
|
1030
|
+
forms?: string[];
|
|
1031
|
+
id?: string;
|
|
1032
|
+
};
|
|
1033
|
+
Relationships: [];
|
|
1034
|
+
};
|
|
1035
|
+
form_schemas: {
|
|
1036
|
+
Row: {
|
|
1037
|
+
base_document_id: string | null;
|
|
1038
|
+
form_metadata_id: string;
|
|
1039
|
+
id: string;
|
|
1040
|
+
label: string | null;
|
|
1041
|
+
name: string;
|
|
1042
|
+
time_generated: string | null;
|
|
1043
|
+
version: number;
|
|
1044
|
+
};
|
|
1045
|
+
Insert: {
|
|
1046
|
+
base_document_id?: string | null;
|
|
1047
|
+
form_metadata_id?: string;
|
|
1048
|
+
id?: string;
|
|
1049
|
+
label?: string | null;
|
|
1050
|
+
name: string;
|
|
1051
|
+
time_generated?: string | null;
|
|
1052
|
+
version?: number;
|
|
1053
|
+
};
|
|
1054
|
+
Update: {
|
|
1055
|
+
base_document_id?: string | null;
|
|
1056
|
+
form_metadata_id?: string;
|
|
1057
|
+
id?: string;
|
|
1058
|
+
label?: string | null;
|
|
1059
|
+
name?: string;
|
|
1060
|
+
time_generated?: string | null;
|
|
1061
|
+
version?: number;
|
|
1062
|
+
};
|
|
1063
|
+
Relationships: [{
|
|
1064
|
+
foreignKeyName: "form_schemas_base_document_id_fkey";
|
|
1065
|
+
columns: ["base_document_id"];
|
|
1066
|
+
isOneToOne: false;
|
|
1067
|
+
referencedRelation: "base_documents";
|
|
1068
|
+
referencedColumns: ["id"];
|
|
1069
|
+
}];
|
|
1070
|
+
};
|
|
1071
|
+
pending_documents: {
|
|
1072
|
+
Row: {
|
|
1073
|
+
audit: import("./db.doc.types").Json | null;
|
|
1074
|
+
base_document_id: string | null;
|
|
1075
|
+
date_made: string;
|
|
1076
|
+
descriptors: import("./db.doc.types").Json;
|
|
1077
|
+
form_label: string | null;
|
|
1078
|
+
form_name: string | null;
|
|
1079
|
+
id: string;
|
|
1080
|
+
inputs: import("./db.doc.types").Json;
|
|
1081
|
+
latest_document_url: string | null;
|
|
1082
|
+
pending_parties: import("./db.doc.types").Json;
|
|
1083
|
+
signatories: import("./db.doc.types").Json;
|
|
1084
|
+
subscribers: import("./db.doc.types").Json | null;
|
|
1085
|
+
version: number | null;
|
|
1086
|
+
};
|
|
1087
|
+
Insert: {
|
|
1088
|
+
audit?: import("./db.doc.types").Json | null;
|
|
1089
|
+
base_document_id?: string | null;
|
|
1090
|
+
date_made?: string;
|
|
1091
|
+
descriptors?: import("./db.doc.types").Json;
|
|
1092
|
+
form_label?: string | null;
|
|
1093
|
+
form_name?: string | null;
|
|
1094
|
+
id?: string;
|
|
1095
|
+
inputs?: import("./db.doc.types").Json;
|
|
1096
|
+
latest_document_url?: string | null;
|
|
1097
|
+
pending_parties?: import("./db.doc.types").Json;
|
|
1098
|
+
signatories?: import("./db.doc.types").Json;
|
|
1099
|
+
subscribers?: import("./db.doc.types").Json | null;
|
|
1100
|
+
version?: number | null;
|
|
1101
|
+
};
|
|
1102
|
+
Update: {
|
|
1103
|
+
audit?: import("./db.doc.types").Json | null;
|
|
1104
|
+
base_document_id?: string | null;
|
|
1105
|
+
date_made?: string;
|
|
1106
|
+
descriptors?: import("./db.doc.types").Json;
|
|
1107
|
+
form_label?: string | null;
|
|
1108
|
+
form_name?: string | null;
|
|
1109
|
+
id?: string;
|
|
1110
|
+
inputs?: import("./db.doc.types").Json;
|
|
1111
|
+
latest_document_url?: string | null;
|
|
1112
|
+
pending_parties?: import("./db.doc.types").Json;
|
|
1113
|
+
signatories?: import("./db.doc.types").Json;
|
|
1114
|
+
subscribers?: import("./db.doc.types").Json | null;
|
|
1115
|
+
version?: number | null;
|
|
1116
|
+
};
|
|
1117
|
+
Relationships: [{
|
|
1118
|
+
foreignKeyName: "pending_documents_base_document_id_fkey";
|
|
1119
|
+
columns: ["base_document_id"];
|
|
1120
|
+
isOneToOne: false;
|
|
1121
|
+
referencedRelation: "base_documents";
|
|
1122
|
+
referencedColumns: ["id"];
|
|
1123
|
+
}];
|
|
1124
|
+
};
|
|
1125
|
+
prefilled_documents: {
|
|
1126
|
+
Row: {
|
|
1127
|
+
base_document_id: string;
|
|
1128
|
+
descriptors: import("./db.doc.types").Json;
|
|
1129
|
+
id: string;
|
|
1130
|
+
url: string;
|
|
1131
|
+
};
|
|
1132
|
+
Insert: {
|
|
1133
|
+
base_document_id: string;
|
|
1134
|
+
descriptors?: import("./db.doc.types").Json;
|
|
1135
|
+
id?: string;
|
|
1136
|
+
url: string;
|
|
1137
|
+
};
|
|
1138
|
+
Update: {
|
|
1139
|
+
base_document_id?: string;
|
|
1140
|
+
descriptors?: import("./db.doc.types").Json;
|
|
1141
|
+
id?: string;
|
|
1142
|
+
url?: string;
|
|
1143
|
+
};
|
|
1144
|
+
Relationships: [{
|
|
1145
|
+
foreignKeyName: "prefilled_documents_base_document_id_fkey";
|
|
1146
|
+
columns: ["base_document_id"];
|
|
1147
|
+
isOneToOne: false;
|
|
1148
|
+
referencedRelation: "base_documents";
|
|
1149
|
+
referencedColumns: ["id"];
|
|
1150
|
+
}];
|
|
1151
|
+
};
|
|
1152
|
+
signed_documents: {
|
|
1153
|
+
Row: {
|
|
1154
|
+
base_document_id: string | null;
|
|
1155
|
+
date_made: string;
|
|
1156
|
+
descriptors: import("./db.doc.types").Json;
|
|
1157
|
+
effective_date: string;
|
|
1158
|
+
expiry_date: string;
|
|
1159
|
+
form_label: string | null;
|
|
1160
|
+
form_name: string | null;
|
|
1161
|
+
id: string;
|
|
1162
|
+
inputs: import("./db.doc.types").Json | null;
|
|
1163
|
+
inputs_hash: string | null;
|
|
1164
|
+
notarized_url: string | null;
|
|
1165
|
+
schema: import("./db.doc.types").Json | null;
|
|
1166
|
+
schema_hash: string | null;
|
|
1167
|
+
signatories: import("./db.doc.types").Json | null;
|
|
1168
|
+
url: string;
|
|
1169
|
+
verification_code: string | null;
|
|
1170
|
+
};
|
|
1171
|
+
Insert: {
|
|
1172
|
+
base_document_id?: string | null;
|
|
1173
|
+
date_made?: string;
|
|
1174
|
+
descriptors?: import("./db.doc.types").Json;
|
|
1175
|
+
effective_date: string;
|
|
1176
|
+
expiry_date: string;
|
|
1177
|
+
form_label?: string | null;
|
|
1178
|
+
form_name?: string | null;
|
|
1179
|
+
id?: string;
|
|
1180
|
+
inputs?: import("./db.doc.types").Json | null;
|
|
1181
|
+
inputs_hash?: string | null;
|
|
1182
|
+
notarized_url?: string | null;
|
|
1183
|
+
schema?: import("./db.doc.types").Json | null;
|
|
1184
|
+
schema_hash?: string | null;
|
|
1185
|
+
signatories?: import("./db.doc.types").Json | null;
|
|
1186
|
+
url: string;
|
|
1187
|
+
verification_code?: string | null;
|
|
1188
|
+
};
|
|
1189
|
+
Update: {
|
|
1190
|
+
base_document_id?: string | null;
|
|
1191
|
+
date_made?: string;
|
|
1192
|
+
descriptors?: import("./db.doc.types").Json;
|
|
1193
|
+
effective_date?: string;
|
|
1194
|
+
expiry_date?: string;
|
|
1195
|
+
form_label?: string | null;
|
|
1196
|
+
form_name?: string | null;
|
|
1197
|
+
id?: string;
|
|
1198
|
+
inputs?: import("./db.doc.types").Json | null;
|
|
1199
|
+
inputs_hash?: string | null;
|
|
1200
|
+
notarized_url?: string | null;
|
|
1201
|
+
schema?: import("./db.doc.types").Json | null;
|
|
1202
|
+
schema_hash?: string | null;
|
|
1203
|
+
signatories?: import("./db.doc.types").Json | null;
|
|
1204
|
+
url?: string;
|
|
1205
|
+
verification_code?: string | null;
|
|
1206
|
+
};
|
|
1207
|
+
Relationships: [{
|
|
1208
|
+
foreignKeyName: "signed_documents_base_document_id_fkey";
|
|
1209
|
+
columns: ["base_document_id"];
|
|
1210
|
+
isOneToOne: false;
|
|
1211
|
+
referencedRelation: "base_documents";
|
|
1212
|
+
referencedColumns: ["id"];
|
|
1213
|
+
}];
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
Views: { [_ in never]: never; };
|
|
1217
|
+
Functions: { [_ in never]: never; };
|
|
1218
|
+
Enums: {
|
|
1219
|
+
input_type: "text" | "number" | "date" | "select" | "time" | "signature" | "reference" | "checkbox";
|
|
1220
|
+
section: "student" | "entity" | "university" | "student-guardian" | "internship";
|
|
1221
|
+
};
|
|
1222
|
+
CompositeTypes: { [_ in never]: never; };
|
|
1223
|
+
}>;
|
|
890
1224
|
export declare const handleDBError: (error: PostgrestError, description?: string) => never;
|
package/dist/db.ent.types.d.ts
CHANGED
|
@@ -63,27 +63,6 @@ export type Database = {
|
|
|
63
63
|
}
|
|
64
64
|
];
|
|
65
65
|
};
|
|
66
|
-
entity_autofill: {
|
|
67
|
-
Row: {
|
|
68
|
-
autofill: Json;
|
|
69
|
-
email: string | null;
|
|
70
|
-
id: string;
|
|
71
|
-
name: string | null;
|
|
72
|
-
};
|
|
73
|
-
Insert: {
|
|
74
|
-
autofill: Json;
|
|
75
|
-
email?: string | null;
|
|
76
|
-
id?: string;
|
|
77
|
-
name?: string | null;
|
|
78
|
-
};
|
|
79
|
-
Update: {
|
|
80
|
-
autofill?: Json;
|
|
81
|
-
email?: string | null;
|
|
82
|
-
id?: string;
|
|
83
|
-
name?: string | null;
|
|
84
|
-
};
|
|
85
|
-
Relationships: [];
|
|
86
|
-
};
|
|
87
66
|
entity_logs: {
|
|
88
67
|
Row: {
|
|
89
68
|
entity_id: string;
|
package/dist/db.ent.types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db.ent.types.js","sourceRoot":"","sources":["../lib/db.ent.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"db.ent.types.js","sourceRoot":"","sources":["../lib/db.ent.types.ts"],"names":[],"mappings":";;;AA6ba,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;KACV;CACO,CAAA"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
export type Json = string | number | boolean | null | {
|
|
2
|
+
[key: string]: Json | undefined;
|
|
3
|
+
} | Json[];
|
|
4
|
+
export type Database = {
|
|
5
|
+
__InternalSupabase: {
|
|
6
|
+
PostgrestVersion: "13.0.5";
|
|
7
|
+
};
|
|
8
|
+
public: {
|
|
9
|
+
Tables: {
|
|
10
|
+
coordinator_accounts: {
|
|
11
|
+
Row: {
|
|
12
|
+
created_at: string;
|
|
13
|
+
email: string;
|
|
14
|
+
forms: string[];
|
|
15
|
+
id: string;
|
|
16
|
+
name: string | null;
|
|
17
|
+
};
|
|
18
|
+
Insert: {
|
|
19
|
+
created_at?: string;
|
|
20
|
+
email: string;
|
|
21
|
+
forms: string[];
|
|
22
|
+
id?: string;
|
|
23
|
+
name?: string | null;
|
|
24
|
+
};
|
|
25
|
+
Update: {
|
|
26
|
+
created_at?: string;
|
|
27
|
+
email?: string;
|
|
28
|
+
forms?: string[];
|
|
29
|
+
id?: string;
|
|
30
|
+
name?: string | null;
|
|
31
|
+
};
|
|
32
|
+
Relationships: [];
|
|
33
|
+
};
|
|
34
|
+
signatory_accounts: {
|
|
35
|
+
Row: {
|
|
36
|
+
allow_autofill: boolean;
|
|
37
|
+
allow_autosign: boolean | null;
|
|
38
|
+
autofill: Json;
|
|
39
|
+
created_at: string;
|
|
40
|
+
email: string;
|
|
41
|
+
honorific: string | null;
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
title: string | null;
|
|
45
|
+
};
|
|
46
|
+
Insert: {
|
|
47
|
+
allow_autofill?: boolean;
|
|
48
|
+
allow_autosign?: boolean | null;
|
|
49
|
+
autofill?: Json;
|
|
50
|
+
created_at?: string;
|
|
51
|
+
email: string;
|
|
52
|
+
honorific?: string | null;
|
|
53
|
+
id?: string;
|
|
54
|
+
name: string;
|
|
55
|
+
title?: string | null;
|
|
56
|
+
};
|
|
57
|
+
Update: {
|
|
58
|
+
allow_autofill?: boolean;
|
|
59
|
+
allow_autosign?: boolean | null;
|
|
60
|
+
autofill?: Json;
|
|
61
|
+
created_at?: string;
|
|
62
|
+
email?: string;
|
|
63
|
+
honorific?: string | null;
|
|
64
|
+
id?: string;
|
|
65
|
+
name?: string;
|
|
66
|
+
title?: string | null;
|
|
67
|
+
};
|
|
68
|
+
Relationships: [];
|
|
69
|
+
};
|
|
70
|
+
signatory_forms: {
|
|
71
|
+
Row: {
|
|
72
|
+
form_label: string | null;
|
|
73
|
+
form_name: string;
|
|
74
|
+
id: string;
|
|
75
|
+
signatory_id: string;
|
|
76
|
+
student_form_id: string;
|
|
77
|
+
timestamp: string;
|
|
78
|
+
};
|
|
79
|
+
Insert: {
|
|
80
|
+
form_label?: string | null;
|
|
81
|
+
form_name: string;
|
|
82
|
+
id?: string;
|
|
83
|
+
signatory_id: string;
|
|
84
|
+
student_form_id: string;
|
|
85
|
+
timestamp?: string;
|
|
86
|
+
};
|
|
87
|
+
Update: {
|
|
88
|
+
form_label?: string | null;
|
|
89
|
+
form_name?: string;
|
|
90
|
+
id?: string;
|
|
91
|
+
signatory_id?: string;
|
|
92
|
+
student_form_id?: string;
|
|
93
|
+
timestamp?: string;
|
|
94
|
+
};
|
|
95
|
+
Relationships: [
|
|
96
|
+
{
|
|
97
|
+
foreignKeyName: "signatory_forms_student_form_id_fkey";
|
|
98
|
+
columns: ["student_form_id"];
|
|
99
|
+
isOneToOne: false;
|
|
100
|
+
referencedRelation: "student_forms";
|
|
101
|
+
referencedColumns: ["id"];
|
|
102
|
+
}
|
|
103
|
+
];
|
|
104
|
+
};
|
|
105
|
+
student_forms: {
|
|
106
|
+
Row: {
|
|
107
|
+
form_label: string | null;
|
|
108
|
+
form_name: string;
|
|
109
|
+
id: string;
|
|
110
|
+
pending_document_id: string | null;
|
|
111
|
+
prefilled_document_id: string | null;
|
|
112
|
+
signed_document_id: string | null;
|
|
113
|
+
timestamp: string;
|
|
114
|
+
user_id: string;
|
|
115
|
+
};
|
|
116
|
+
Insert: {
|
|
117
|
+
form_label?: string | null;
|
|
118
|
+
form_name: string;
|
|
119
|
+
id?: string;
|
|
120
|
+
pending_document_id?: string | null;
|
|
121
|
+
prefilled_document_id?: string | null;
|
|
122
|
+
signed_document_id?: string | null;
|
|
123
|
+
timestamp?: string;
|
|
124
|
+
user_id: string;
|
|
125
|
+
};
|
|
126
|
+
Update: {
|
|
127
|
+
form_label?: string | null;
|
|
128
|
+
form_name?: string;
|
|
129
|
+
id?: string;
|
|
130
|
+
pending_document_id?: string | null;
|
|
131
|
+
prefilled_document_id?: string | null;
|
|
132
|
+
signed_document_id?: string | null;
|
|
133
|
+
timestamp?: string;
|
|
134
|
+
user_id?: string;
|
|
135
|
+
};
|
|
136
|
+
Relationships: [];
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
Views: {
|
|
140
|
+
[_ in never]: never;
|
|
141
|
+
};
|
|
142
|
+
Functions: {
|
|
143
|
+
[_ in never]: never;
|
|
144
|
+
};
|
|
145
|
+
Enums: {
|
|
146
|
+
[_ in never]: never;
|
|
147
|
+
};
|
|
148
|
+
CompositeTypes: {
|
|
149
|
+
[_ in never]: never;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
154
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
155
|
+
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
156
|
+
schema: keyof DatabaseWithoutInternals;
|
|
157
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
158
|
+
schema: keyof DatabaseWithoutInternals;
|
|
159
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
160
|
+
schema: keyof DatabaseWithoutInternals;
|
|
161
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
162
|
+
Row: infer R;
|
|
163
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
164
|
+
Row: infer R;
|
|
165
|
+
} ? R : never : never;
|
|
166
|
+
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
167
|
+
schema: keyof DatabaseWithoutInternals;
|
|
168
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
169
|
+
schema: keyof DatabaseWithoutInternals;
|
|
170
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
171
|
+
schema: keyof DatabaseWithoutInternals;
|
|
172
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
173
|
+
Insert: infer I;
|
|
174
|
+
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
175
|
+
Insert: infer I;
|
|
176
|
+
} ? I : never : never;
|
|
177
|
+
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
178
|
+
schema: keyof DatabaseWithoutInternals;
|
|
179
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
180
|
+
schema: keyof DatabaseWithoutInternals;
|
|
181
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
182
|
+
schema: keyof DatabaseWithoutInternals;
|
|
183
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
184
|
+
Update: infer U;
|
|
185
|
+
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
186
|
+
Update: infer U;
|
|
187
|
+
} ? U : never : never;
|
|
188
|
+
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
189
|
+
schema: keyof DatabaseWithoutInternals;
|
|
190
|
+
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
191
|
+
schema: keyof DatabaseWithoutInternals;
|
|
192
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
193
|
+
schema: keyof DatabaseWithoutInternals;
|
|
194
|
+
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
195
|
+
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
196
|
+
schema: keyof DatabaseWithoutInternals;
|
|
197
|
+
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
198
|
+
schema: keyof DatabaseWithoutInternals;
|
|
199
|
+
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
200
|
+
schema: keyof DatabaseWithoutInternals;
|
|
201
|
+
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
202
|
+
export declare const Constants: {
|
|
203
|
+
readonly public: {
|
|
204
|
+
readonly Enums: {};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.internship.types.js","sourceRoot":"","sources":["../lib/db.internship.types.ts"],"names":[],"mappings":";;;AAqRa,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;KACV;CACO,CAAA"}
|