@betterinternship/schema.moa 1.5.0 → 1.5.2
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 +65 -50
- package/dist/db.doc.types.d.ts +437 -410
- package/dist/db.doc.types.js.map +1 -1
- package/dist/db.ent.types.d.ts +21 -33
- package/dist/db.ent.types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/db.doc.types.d.ts
CHANGED
|
@@ -1,410 +1,437 @@
|
|
|
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.4";
|
|
7
|
-
};
|
|
8
|
-
public: {
|
|
9
|
-
Tables: {
|
|
10
|
-
base_documents: {
|
|
11
|
-
Row: {
|
|
12
|
-
created_at: string;
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
url: string;
|
|
16
|
-
};
|
|
17
|
-
Insert: {
|
|
18
|
-
created_at?: string;
|
|
19
|
-
id?: string;
|
|
20
|
-
name: string;
|
|
21
|
-
url: string;
|
|
22
|
-
};
|
|
23
|
-
Update: {
|
|
24
|
-
created_at?: string;
|
|
25
|
-
id?: string;
|
|
26
|
-
name?: string;
|
|
27
|
-
url?: string;
|
|
28
|
-
};
|
|
29
|
-
Relationships: [];
|
|
30
|
-
};
|
|
31
|
-
base_images: {
|
|
32
|
-
Row: {
|
|
33
|
-
filename: string;
|
|
34
|
-
id: string;
|
|
35
|
-
source_text: string;
|
|
36
|
-
url: string;
|
|
37
|
-
};
|
|
38
|
-
Insert: {
|
|
39
|
-
filename: string;
|
|
40
|
-
id?: string;
|
|
41
|
-
source_text: string;
|
|
42
|
-
url: string;
|
|
43
|
-
};
|
|
44
|
-
Update: {
|
|
45
|
-
filename?: string;
|
|
46
|
-
id?: string;
|
|
47
|
-
source_text?: string;
|
|
48
|
-
url?: string;
|
|
49
|
-
};
|
|
50
|
-
Relationships: [];
|
|
51
|
-
};
|
|
52
|
-
external_documents: {
|
|
53
|
-
Row: {
|
|
54
|
-
effective_date: string | null;
|
|
55
|
-
expiry_date: string | null;
|
|
56
|
-
id: string;
|
|
57
|
-
uploaded_at: string;
|
|
58
|
-
url: string;
|
|
59
|
-
};
|
|
60
|
-
Insert: {
|
|
61
|
-
effective_date?: string | null;
|
|
62
|
-
expiry_date?: string | null;
|
|
63
|
-
id?: string;
|
|
64
|
-
uploaded_at?: string;
|
|
65
|
-
url: string;
|
|
66
|
-
};
|
|
67
|
-
Update: {
|
|
68
|
-
effective_date?: string | null;
|
|
69
|
-
expiry_date?: string | null;
|
|
70
|
-
id?: string;
|
|
71
|
-
uploaded_at?: string;
|
|
72
|
-
url?: string;
|
|
73
|
-
};
|
|
74
|
-
Relationships: [];
|
|
75
|
-
};
|
|
76
|
-
field_repository: {
|
|
77
|
-
Row: {
|
|
78
|
-
helper: string | null;
|
|
79
|
-
id: string;
|
|
80
|
-
label: string | null;
|
|
81
|
-
name: string;
|
|
82
|
-
options: Json | null;
|
|
83
|
-
section: Database["public"]["Enums"]["section"] | null;
|
|
84
|
-
transformers: string[];
|
|
85
|
-
type: Database["public"]["Enums"]["input_type"] | null;
|
|
86
|
-
validators: string[] | null;
|
|
87
|
-
};
|
|
88
|
-
Insert: {
|
|
89
|
-
helper?: string | null;
|
|
90
|
-
id?: string;
|
|
91
|
-
label?: string | null;
|
|
92
|
-
name: string;
|
|
93
|
-
options?: Json | null;
|
|
94
|
-
section?: Database["public"]["Enums"]["section"] | null;
|
|
95
|
-
transformers?: string[];
|
|
96
|
-
type?: Database["public"]["Enums"]["input_type"] | null;
|
|
97
|
-
validators?: string[] | null;
|
|
98
|
-
};
|
|
99
|
-
Update: {
|
|
100
|
-
helper?: string | null;
|
|
101
|
-
id?: string;
|
|
102
|
-
label?: string | null;
|
|
103
|
-
name?: string;
|
|
104
|
-
options?: Json | null;
|
|
105
|
-
section?: Database["public"]["Enums"]["section"] | null;
|
|
106
|
-
transformers?: string[];
|
|
107
|
-
type?: Database["public"]["Enums"]["input_type"] | null;
|
|
108
|
-
validators?: string[] | null;
|
|
109
|
-
};
|
|
110
|
-
Relationships: [];
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
Row: {
|
|
114
|
-
id: string;
|
|
115
|
-
name: string;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
id?: string;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
} ?
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
schema: keyof DatabaseWithoutInternals;
|
|
397
|
-
}
|
|
398
|
-
schema: keyof DatabaseWithoutInternals;
|
|
399
|
-
} ?
|
|
400
|
-
|
|
401
|
-
} ?
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
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.4";
|
|
7
|
+
};
|
|
8
|
+
public: {
|
|
9
|
+
Tables: {
|
|
10
|
+
base_documents: {
|
|
11
|
+
Row: {
|
|
12
|
+
created_at: string;
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
url: string;
|
|
16
|
+
};
|
|
17
|
+
Insert: {
|
|
18
|
+
created_at?: string;
|
|
19
|
+
id?: string;
|
|
20
|
+
name: string;
|
|
21
|
+
url: string;
|
|
22
|
+
};
|
|
23
|
+
Update: {
|
|
24
|
+
created_at?: string;
|
|
25
|
+
id?: string;
|
|
26
|
+
name?: string;
|
|
27
|
+
url?: string;
|
|
28
|
+
};
|
|
29
|
+
Relationships: [];
|
|
30
|
+
};
|
|
31
|
+
base_images: {
|
|
32
|
+
Row: {
|
|
33
|
+
filename: string;
|
|
34
|
+
id: string;
|
|
35
|
+
source_text: string;
|
|
36
|
+
url: string;
|
|
37
|
+
};
|
|
38
|
+
Insert: {
|
|
39
|
+
filename: string;
|
|
40
|
+
id?: string;
|
|
41
|
+
source_text: string;
|
|
42
|
+
url: string;
|
|
43
|
+
};
|
|
44
|
+
Update: {
|
|
45
|
+
filename?: string;
|
|
46
|
+
id?: string;
|
|
47
|
+
source_text?: string;
|
|
48
|
+
url?: string;
|
|
49
|
+
};
|
|
50
|
+
Relationships: [];
|
|
51
|
+
};
|
|
52
|
+
external_documents: {
|
|
53
|
+
Row: {
|
|
54
|
+
effective_date: string | null;
|
|
55
|
+
expiry_date: string | null;
|
|
56
|
+
id: string;
|
|
57
|
+
uploaded_at: string;
|
|
58
|
+
url: string;
|
|
59
|
+
};
|
|
60
|
+
Insert: {
|
|
61
|
+
effective_date?: string | null;
|
|
62
|
+
expiry_date?: string | null;
|
|
63
|
+
id?: string;
|
|
64
|
+
uploaded_at?: string;
|
|
65
|
+
url: string;
|
|
66
|
+
};
|
|
67
|
+
Update: {
|
|
68
|
+
effective_date?: string | null;
|
|
69
|
+
expiry_date?: string | null;
|
|
70
|
+
id?: string;
|
|
71
|
+
uploaded_at?: string;
|
|
72
|
+
url?: string;
|
|
73
|
+
};
|
|
74
|
+
Relationships: [];
|
|
75
|
+
};
|
|
76
|
+
field_repository: {
|
|
77
|
+
Row: {
|
|
78
|
+
helper: string | null;
|
|
79
|
+
id: string;
|
|
80
|
+
label: string | null;
|
|
81
|
+
name: string;
|
|
82
|
+
options: Json | null;
|
|
83
|
+
section: Database["public"]["Enums"]["section"] | null;
|
|
84
|
+
transformers: string[];
|
|
85
|
+
type: Database["public"]["Enums"]["input_type"] | null;
|
|
86
|
+
validators: string[] | null;
|
|
87
|
+
};
|
|
88
|
+
Insert: {
|
|
89
|
+
helper?: string | null;
|
|
90
|
+
id?: string;
|
|
91
|
+
label?: string | null;
|
|
92
|
+
name: string;
|
|
93
|
+
options?: Json | null;
|
|
94
|
+
section?: Database["public"]["Enums"]["section"] | null;
|
|
95
|
+
transformers?: string[];
|
|
96
|
+
type?: Database["public"]["Enums"]["input_type"] | null;
|
|
97
|
+
validators?: string[] | null;
|
|
98
|
+
};
|
|
99
|
+
Update: {
|
|
100
|
+
helper?: string | null;
|
|
101
|
+
id?: string;
|
|
102
|
+
label?: string | null;
|
|
103
|
+
name?: string;
|
|
104
|
+
options?: Json | null;
|
|
105
|
+
section?: Database["public"]["Enums"]["section"] | null;
|
|
106
|
+
transformers?: string[];
|
|
107
|
+
type?: Database["public"]["Enums"]["input_type"] | null;
|
|
108
|
+
validators?: string[] | null;
|
|
109
|
+
};
|
|
110
|
+
Relationships: [];
|
|
111
|
+
};
|
|
112
|
+
field_template_registry: {
|
|
113
|
+
Row: {
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
prefiller: string | null;
|
|
117
|
+
preset: string;
|
|
118
|
+
tooltip_label: string | null;
|
|
119
|
+
validator: string | null;
|
|
120
|
+
};
|
|
121
|
+
Insert: {
|
|
122
|
+
id?: string;
|
|
123
|
+
name: string;
|
|
124
|
+
prefiller?: string | null;
|
|
125
|
+
preset?: string;
|
|
126
|
+
tooltip_label?: string | null;
|
|
127
|
+
validator?: string | null;
|
|
128
|
+
};
|
|
129
|
+
Update: {
|
|
130
|
+
id?: string;
|
|
131
|
+
name?: string;
|
|
132
|
+
prefiller?: string | null;
|
|
133
|
+
preset?: string;
|
|
134
|
+
tooltip_label?: string | null;
|
|
135
|
+
validator?: string | null;
|
|
136
|
+
};
|
|
137
|
+
Relationships: [];
|
|
138
|
+
};
|
|
139
|
+
field_transformers: {
|
|
140
|
+
Row: {
|
|
141
|
+
id: string;
|
|
142
|
+
name: string;
|
|
143
|
+
rule: string;
|
|
144
|
+
};
|
|
145
|
+
Insert: {
|
|
146
|
+
id?: string;
|
|
147
|
+
name: string;
|
|
148
|
+
rule: string;
|
|
149
|
+
};
|
|
150
|
+
Update: {
|
|
151
|
+
id?: string;
|
|
152
|
+
name?: string;
|
|
153
|
+
rule?: string;
|
|
154
|
+
};
|
|
155
|
+
Relationships: [];
|
|
156
|
+
};
|
|
157
|
+
field_validators: {
|
|
158
|
+
Row: {
|
|
159
|
+
id: string;
|
|
160
|
+
name: string;
|
|
161
|
+
rule: string;
|
|
162
|
+
};
|
|
163
|
+
Insert: {
|
|
164
|
+
id?: string;
|
|
165
|
+
name: string;
|
|
166
|
+
rule: string;
|
|
167
|
+
};
|
|
168
|
+
Update: {
|
|
169
|
+
id?: string;
|
|
170
|
+
name?: string;
|
|
171
|
+
rule?: string;
|
|
172
|
+
};
|
|
173
|
+
Relationships: [];
|
|
174
|
+
};
|
|
175
|
+
form_groups: {
|
|
176
|
+
Row: {
|
|
177
|
+
description: string;
|
|
178
|
+
forms: string[];
|
|
179
|
+
id: string;
|
|
180
|
+
};
|
|
181
|
+
Insert: {
|
|
182
|
+
description: string;
|
|
183
|
+
forms?: string[];
|
|
184
|
+
id?: string;
|
|
185
|
+
};
|
|
186
|
+
Update: {
|
|
187
|
+
description?: string;
|
|
188
|
+
forms?: string[];
|
|
189
|
+
id?: string;
|
|
190
|
+
};
|
|
191
|
+
Relationships: [];
|
|
192
|
+
};
|
|
193
|
+
form_schemas: {
|
|
194
|
+
Row: {
|
|
195
|
+
base_document_id: string | null;
|
|
196
|
+
fields: Json | null;
|
|
197
|
+
fields_filled_by_user: string[] | null;
|
|
198
|
+
form_metadata_id: string;
|
|
199
|
+
id: string;
|
|
200
|
+
initiators: string[] | null;
|
|
201
|
+
label: string | null;
|
|
202
|
+
name: string;
|
|
203
|
+
params: Json | null;
|
|
204
|
+
required_parties: string[] | null;
|
|
205
|
+
schema: Json | null;
|
|
206
|
+
subscribers: string[] | null;
|
|
207
|
+
version: number;
|
|
208
|
+
};
|
|
209
|
+
Insert: {
|
|
210
|
+
base_document_id?: string | null;
|
|
211
|
+
fields?: Json | null;
|
|
212
|
+
fields_filled_by_user?: string[] | null;
|
|
213
|
+
form_metadata_id?: string;
|
|
214
|
+
id?: string;
|
|
215
|
+
initiators?: string[] | null;
|
|
216
|
+
label?: string | null;
|
|
217
|
+
name: string;
|
|
218
|
+
params?: Json | null;
|
|
219
|
+
required_parties?: string[] | null;
|
|
220
|
+
schema?: Json | null;
|
|
221
|
+
subscribers?: string[] | null;
|
|
222
|
+
version?: number;
|
|
223
|
+
};
|
|
224
|
+
Update: {
|
|
225
|
+
base_document_id?: string | null;
|
|
226
|
+
fields?: Json | null;
|
|
227
|
+
fields_filled_by_user?: string[] | null;
|
|
228
|
+
form_metadata_id?: string;
|
|
229
|
+
id?: string;
|
|
230
|
+
initiators?: string[] | null;
|
|
231
|
+
label?: string | null;
|
|
232
|
+
name?: string;
|
|
233
|
+
params?: Json | null;
|
|
234
|
+
required_parties?: string[] | null;
|
|
235
|
+
schema?: Json | null;
|
|
236
|
+
subscribers?: string[] | null;
|
|
237
|
+
version?: number;
|
|
238
|
+
};
|
|
239
|
+
Relationships: [
|
|
240
|
+
{
|
|
241
|
+
foreignKeyName: "form_schemas_base_document_id_fkey";
|
|
242
|
+
columns: ["base_document_id"];
|
|
243
|
+
isOneToOne: false;
|
|
244
|
+
referencedRelation: "base_documents";
|
|
245
|
+
referencedColumns: ["id"];
|
|
246
|
+
}
|
|
247
|
+
];
|
|
248
|
+
};
|
|
249
|
+
pending_documents: {
|
|
250
|
+
Row: {
|
|
251
|
+
date_made: string;
|
|
252
|
+
form_name: string | null;
|
|
253
|
+
id: string;
|
|
254
|
+
inputs: Json;
|
|
255
|
+
latest_document_url: string | null;
|
|
256
|
+
pending_parties: Json;
|
|
257
|
+
signatories: Json;
|
|
258
|
+
subscribers: Json | null;
|
|
259
|
+
};
|
|
260
|
+
Insert: {
|
|
261
|
+
date_made?: string;
|
|
262
|
+
form_name?: string | null;
|
|
263
|
+
id?: string;
|
|
264
|
+
inputs?: Json;
|
|
265
|
+
latest_document_url?: string | null;
|
|
266
|
+
pending_parties?: Json;
|
|
267
|
+
signatories?: Json;
|
|
268
|
+
subscribers?: Json | null;
|
|
269
|
+
};
|
|
270
|
+
Update: {
|
|
271
|
+
date_made?: string;
|
|
272
|
+
form_name?: string | null;
|
|
273
|
+
id?: string;
|
|
274
|
+
inputs?: Json;
|
|
275
|
+
latest_document_url?: string | null;
|
|
276
|
+
pending_parties?: Json;
|
|
277
|
+
signatories?: Json;
|
|
278
|
+
subscribers?: Json | null;
|
|
279
|
+
};
|
|
280
|
+
Relationships: [];
|
|
281
|
+
};
|
|
282
|
+
prefilled_documents: {
|
|
283
|
+
Row: {
|
|
284
|
+
base_document_id: string;
|
|
285
|
+
id: string;
|
|
286
|
+
url: string;
|
|
287
|
+
};
|
|
288
|
+
Insert: {
|
|
289
|
+
base_document_id: string;
|
|
290
|
+
id?: string;
|
|
291
|
+
url: string;
|
|
292
|
+
};
|
|
293
|
+
Update: {
|
|
294
|
+
base_document_id?: string;
|
|
295
|
+
id?: string;
|
|
296
|
+
url?: string;
|
|
297
|
+
};
|
|
298
|
+
Relationships: [
|
|
299
|
+
{
|
|
300
|
+
foreignKeyName: "prefilled_documents_base_document_id_fkey";
|
|
301
|
+
columns: ["base_document_id"];
|
|
302
|
+
isOneToOne: false;
|
|
303
|
+
referencedRelation: "base_documents";
|
|
304
|
+
referencedColumns: ["id"];
|
|
305
|
+
}
|
|
306
|
+
];
|
|
307
|
+
};
|
|
308
|
+
signed_documents: {
|
|
309
|
+
Row: {
|
|
310
|
+
base_document_id: string | null;
|
|
311
|
+
date_made: string;
|
|
312
|
+
effective_date: string;
|
|
313
|
+
expiry_date: string;
|
|
314
|
+
id: string;
|
|
315
|
+
inputs: Json | null;
|
|
316
|
+
inputs_hash: string | null;
|
|
317
|
+
notarized_url: string | null;
|
|
318
|
+
schema: Json | null;
|
|
319
|
+
schema_hash: string | null;
|
|
320
|
+
signatories: Json;
|
|
321
|
+
url: string;
|
|
322
|
+
verification_code: string | null;
|
|
323
|
+
};
|
|
324
|
+
Insert: {
|
|
325
|
+
base_document_id?: string | null;
|
|
326
|
+
date_made?: string;
|
|
327
|
+
effective_date: string;
|
|
328
|
+
expiry_date: string;
|
|
329
|
+
id?: string;
|
|
330
|
+
inputs?: Json | null;
|
|
331
|
+
inputs_hash?: string | null;
|
|
332
|
+
notarized_url?: string | null;
|
|
333
|
+
schema?: Json | null;
|
|
334
|
+
schema_hash?: string | null;
|
|
335
|
+
signatories: Json;
|
|
336
|
+
url: string;
|
|
337
|
+
verification_code?: string | null;
|
|
338
|
+
};
|
|
339
|
+
Update: {
|
|
340
|
+
base_document_id?: string | null;
|
|
341
|
+
date_made?: string;
|
|
342
|
+
effective_date?: string;
|
|
343
|
+
expiry_date?: string;
|
|
344
|
+
id?: string;
|
|
345
|
+
inputs?: Json | null;
|
|
346
|
+
inputs_hash?: string | null;
|
|
347
|
+
notarized_url?: string | null;
|
|
348
|
+
schema?: Json | null;
|
|
349
|
+
schema_hash?: string | null;
|
|
350
|
+
signatories?: Json;
|
|
351
|
+
url?: string;
|
|
352
|
+
verification_code?: string | null;
|
|
353
|
+
};
|
|
354
|
+
Relationships: [
|
|
355
|
+
{
|
|
356
|
+
foreignKeyName: "signed_documents_base_document_id_fkey";
|
|
357
|
+
columns: ["base_document_id"];
|
|
358
|
+
isOneToOne: false;
|
|
359
|
+
referencedRelation: "base_documents";
|
|
360
|
+
referencedColumns: ["id"];
|
|
361
|
+
}
|
|
362
|
+
];
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
Views: {
|
|
366
|
+
[_ in never]: never;
|
|
367
|
+
};
|
|
368
|
+
Functions: {
|
|
369
|
+
[_ in never]: never;
|
|
370
|
+
};
|
|
371
|
+
Enums: {
|
|
372
|
+
input_type: "text" | "number" | "date" | "select" | "time" | "signature" | "reference" | "checkbox";
|
|
373
|
+
section: "student" | "entity" | "university" | "student-guardian" | "internship";
|
|
374
|
+
};
|
|
375
|
+
CompositeTypes: {
|
|
376
|
+
[_ in never]: never;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
381
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
382
|
+
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
383
|
+
schema: keyof DatabaseWithoutInternals;
|
|
384
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
385
|
+
schema: keyof DatabaseWithoutInternals;
|
|
386
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
387
|
+
schema: keyof DatabaseWithoutInternals;
|
|
388
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
389
|
+
Row: infer R;
|
|
390
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
391
|
+
Row: infer R;
|
|
392
|
+
} ? R : never : never;
|
|
393
|
+
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
394
|
+
schema: keyof DatabaseWithoutInternals;
|
|
395
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
396
|
+
schema: keyof DatabaseWithoutInternals;
|
|
397
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
398
|
+
schema: keyof DatabaseWithoutInternals;
|
|
399
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
400
|
+
Insert: infer I;
|
|
401
|
+
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
402
|
+
Insert: infer I;
|
|
403
|
+
} ? I : never : never;
|
|
404
|
+
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
405
|
+
schema: keyof DatabaseWithoutInternals;
|
|
406
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
407
|
+
schema: keyof DatabaseWithoutInternals;
|
|
408
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
409
|
+
schema: keyof DatabaseWithoutInternals;
|
|
410
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
411
|
+
Update: infer U;
|
|
412
|
+
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
413
|
+
Update: infer U;
|
|
414
|
+
} ? U : never : never;
|
|
415
|
+
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
416
|
+
schema: keyof DatabaseWithoutInternals;
|
|
417
|
+
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
418
|
+
schema: keyof DatabaseWithoutInternals;
|
|
419
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
420
|
+
schema: keyof DatabaseWithoutInternals;
|
|
421
|
+
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
422
|
+
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
423
|
+
schema: keyof DatabaseWithoutInternals;
|
|
424
|
+
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
425
|
+
schema: keyof DatabaseWithoutInternals;
|
|
426
|
+
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
427
|
+
schema: keyof DatabaseWithoutInternals;
|
|
428
|
+
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
429
|
+
export declare const Constants: {
|
|
430
|
+
readonly public: {
|
|
431
|
+
readonly Enums: {
|
|
432
|
+
readonly input_type: readonly ["text", "number", "date", "select", "time", "signature", "reference", "checkbox"];
|
|
433
|
+
readonly section: readonly ["student", "entity", "university", "student-guardian", "internship"];
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
export {};
|