@betterinternship/schema 1.12.0 → 1.13.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.
Files changed (44) hide show
  1. package/dist/db.d.ts +16 -0
  2. package/dist/db.doc.types.d.ts +107 -0
  3. package/dist/db.doc.types.js +3 -0
  4. package/dist/db.doc.types.js.map +1 -0
  5. package/dist/db.internal.types.d.ts +77 -0
  6. package/dist/db.internal.types.js +3 -0
  7. package/dist/db.internal.types.js.map +1 -0
  8. package/dist/db.internship.types.d.ts +96 -0
  9. package/dist/db.internship.types.js +3 -0
  10. package/dist/db.internship.types.js.map +1 -0
  11. package/dist/db.iom.types.d.ts +312 -0
  12. package/dist/db.iom.types.js +3 -0
  13. package/dist/db.iom.types.js.map +1 -0
  14. package/dist/db.js +67 -0
  15. package/dist/db.js.map +1 -0
  16. package/dist/db.types.d.ts +355 -0
  17. package/dist/db.types.js +3 -0
  18. package/dist/db.types.js.map +1 -0
  19. package/dist/env.d.ts +1 -0
  20. package/dist/env.js +7 -0
  21. package/dist/env.js.map +1 -0
  22. package/dist/index.d.ts +7 -0
  23. package/dist/index.js +25 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/repository/base.d.ts +57 -0
  26. package/dist/repository/base.js +388 -0
  27. package/dist/repository/base.js.map +1 -0
  28. package/dist/repository/errors.d.ts +1 -0
  29. package/dist/repository/errors.js +16 -0
  30. package/dist/repository/errors.js.map +1 -0
  31. package/dist/repository/factories.d.ts +14 -0
  32. package/dist/repository/factories.js +45 -0
  33. package/dist/repository/factories.js.map +1 -0
  34. package/dist/repository/index.d.ts +3 -0
  35. package/dist/repository/index.js +20 -0
  36. package/dist/repository/index.js.map +1 -0
  37. package/dist/repository/json-columns.d.ts +5 -0
  38. package/dist/repository/json-columns.js +44 -0
  39. package/dist/repository/json-columns.js.map +1 -0
  40. package/dist/repository/paginator.d.ts +4 -0
  41. package/dist/repository/paginator.js +3 -0
  42. package/dist/repository/paginator.js.map +1 -0
  43. package/dist/tsconfig.tsbuildinfo +1 -0
  44. package/package.json +1 -1
package/dist/db.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ import { Kysely } from "kysely";
2
+ import { DB } from "./db.types";
3
+ import { DB as _InternshipDB } from "./db.internship.types";
4
+ import { DB as _DocumentDB } from "./db.doc.types";
5
+ import { DB as _InternalDB } from "./db.internal.types";
6
+ import { DB as _IomDB } from "./db.iom.types";
7
+ export type InternshipDB = _InternshipDB;
8
+ export type DocumentDB = _DocumentDB;
9
+ export type InternalDB = _InternalDB;
10
+ export type IomDB = _IomDB;
11
+ export declare const db: Kysely<DB>;
12
+ export declare const internshipDb: Kysely<_InternshipDB>;
13
+ export declare const documentDb: Kysely<_DocumentDB>;
14
+ export declare const internalDb: Kysely<_InternalDB>;
15
+ export declare const iomDb: Kysely<_IomDB>;
16
+ export declare const handleDBError: (error: any, description?: string) => never;
@@ -0,0 +1,107 @@
1
+ import type { ColumnType } from "kysely";
2
+ export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
3
+ export type Json = JsonValue;
4
+ export type JsonArray = JsonValue[];
5
+ export type JsonObject = {
6
+ [x: string]: JsonValue | undefined;
7
+ };
8
+ export type JsonPrimitive = boolean | number | string | null;
9
+ export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
10
+ export type Timestamp = ColumnType<Date, Date | string, Date | string>;
11
+ export interface BaseDocuments {
12
+ created_at: Generated<Timestamp>;
13
+ id: Generated<string>;
14
+ name: string;
15
+ url: string;
16
+ }
17
+ export interface BaseImages {
18
+ filename: string;
19
+ id: Generated<string>;
20
+ source_text: string;
21
+ url: string;
22
+ }
23
+ export interface ExternalDocuments {
24
+ code: string | null;
25
+ effective_date: Timestamp | null;
26
+ expiry_date: Timestamp | null;
27
+ form_label: string | null;
28
+ id: Generated<string>;
29
+ uploaded_at: Generated<Timestamp>;
30
+ url: string;
31
+ }
32
+ export interface FieldTemplateRegistry {
33
+ field_schema_defaults: Json | null;
34
+ id: Generated<string>;
35
+ is_phantom: Generated<boolean>;
36
+ label: string;
37
+ name: string;
38
+ party: Generated<string | null>;
39
+ prefiller: string | null;
40
+ preset: Generated<string>;
41
+ shared: Generated<boolean>;
42
+ source: string;
43
+ tag: string | null;
44
+ tooltip_label: string | null;
45
+ type: Generated<string>;
46
+ validator: string | null;
47
+ validator_ir: Json | null;
48
+ }
49
+ export interface FormGroups {
50
+ code: string | null;
51
+ coordinator_id: string | null;
52
+ description: string;
53
+ forms: string[];
54
+ id: Generated<string>;
55
+ }
56
+ export interface FormTemplateRegistry {
57
+ base_document_id: string | null;
58
+ form_metadata_id: Generated<string>;
59
+ id: Generated<string>;
60
+ label: string | null;
61
+ name: string;
62
+ time_generated: Generated<Timestamp | null>;
63
+ version: Generated<number>;
64
+ }
65
+ export interface PendingDocuments {
66
+ audit: Json | null;
67
+ base_document_id: string | null;
68
+ date_made: Generated<Timestamp>;
69
+ descriptors: Generated<Json>;
70
+ form_label: string | null;
71
+ form_name: string | null;
72
+ id: Generated<string>;
73
+ inputs: Generated<Json>;
74
+ latest_document_url: string | null;
75
+ pending_parties: Generated<Json>;
76
+ signatories: Generated<Json>;
77
+ subscribers: Json | null;
78
+ version: number | null;
79
+ }
80
+ export interface SignedDocuments {
81
+ base_document_id: string | null;
82
+ date_made: Generated<Timestamp>;
83
+ descriptors: Generated<Json>;
84
+ effective_date: Timestamp | null;
85
+ expiry_date: Timestamp | null;
86
+ form_label: string | null;
87
+ form_name: string | null;
88
+ id: Generated<string>;
89
+ inputs: Json | null;
90
+ inputs_hash: string | null;
91
+ notarized_url: string | null;
92
+ schema: Json | null;
93
+ schema_hash: string | null;
94
+ signatories: Json | null;
95
+ url: string;
96
+ verification_code: string | null;
97
+ }
98
+ export interface DB {
99
+ "documents.base_documents": BaseDocuments;
100
+ "documents.base_images": BaseImages;
101
+ "documents.external_documents": ExternalDocuments;
102
+ "documents.field_template_registry": FieldTemplateRegistry;
103
+ "documents.form_groups": FormGroups;
104
+ "documents.form_template_registry": FormTemplateRegistry;
105
+ "documents.pending_documents": PendingDocuments;
106
+ "documents.signed_documents": SignedDocuments;
107
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=db.doc.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db.doc.types.js","sourceRoot":"","sources":["../lib/db.doc.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,77 @@
1
+ import type { ColumnType } from "kysely";
2
+ export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
3
+ export type InternalLinkDomain = "employer" | "student";
4
+ export type InternalMqJobStatus = "done" | "failed" | "processing" | "queued";
5
+ export type InternalProcessStatus = "canceled" | "failed" | "handled" | "pending";
6
+ export type InternalTaskStatus = "failed" | "handled" | "pending" | "retrying";
7
+ export type Json = JsonValue;
8
+ export type JsonArray = JsonValue[];
9
+ export type JsonObject = {
10
+ [x: string]: JsonValue | undefined;
11
+ };
12
+ export type JsonPrimitive = boolean | number | string | null;
13
+ export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
14
+ export type Timestamp = ColumnType<Date, Date | string, Date | string>;
15
+ export interface InternalEmailDeliveryEvents {
16
+ attempts: number | null;
17
+ correlation_detail: string | null;
18
+ correlation_id: string | null;
19
+ correlation_type: string | null;
20
+ created_at: Generated<Timestamp>;
21
+ error_message: string | null;
22
+ event_type: string;
23
+ feedback_id: string;
24
+ handled_at: Timestamp | null;
25
+ id: Generated<string>;
26
+ message_id: string | null;
27
+ recipient_email: string;
28
+ resolved_at: Timestamp | null;
29
+ }
30
+ export interface InternalMqJobs {
31
+ created_at: Generated<Timestamp>;
32
+ error: string | null;
33
+ id: Generated<string>;
34
+ owner_id: string | null;
35
+ progress_done: number | null;
36
+ progress_failed: number | null;
37
+ progress_total: number | null;
38
+ result: Json | null;
39
+ status: Generated<InternalMqJobStatus>;
40
+ type: string;
41
+ updated_at: Generated<Timestamp>;
42
+ }
43
+ export interface InternalProcesses {
44
+ base_inputs: Generated<Json | null>;
45
+ error: Json | null;
46
+ id: Generated<string>;
47
+ name: string;
48
+ result: Json | null;
49
+ status: Generated<InternalProcessStatus>;
50
+ timestamp: Generated<Timestamp>;
51
+ }
52
+ export interface InternalSlugs {
53
+ created_at: Generated<Timestamp>;
54
+ domain: InternalLinkDomain;
55
+ slug: string;
56
+ url: string;
57
+ }
58
+ export interface InternalTasks {
59
+ error: string | null;
60
+ handler_id: string;
61
+ id: Generated<string>;
62
+ inputs: Json | null;
63
+ internal_id: string;
64
+ parent_ids: string[] | null;
65
+ process_id: string;
66
+ process_name: string;
67
+ result: Json | null;
68
+ status: Generated<InternalTaskStatus>;
69
+ timestamp: Generated<Timestamp>;
70
+ }
71
+ export interface DB {
72
+ "internal.email_delivery_events": InternalEmailDeliveryEvents;
73
+ "internal.mq_jobs": InternalMqJobs;
74
+ "internal.processes": InternalProcesses;
75
+ "internal.slugs": InternalSlugs;
76
+ "internal.tasks": InternalTasks;
77
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=db.internal.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db.internal.types.js","sourceRoot":"","sources":["../lib/db.internal.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,96 @@
1
+ import type { ColumnType } from "kysely";
2
+ export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
3
+ export type Json = JsonValue;
4
+ export type JsonArray = JsonValue[];
5
+ export type JsonObject = {
6
+ [x: string]: JsonValue | undefined;
7
+ };
8
+ export type JsonPrimitive = boolean | number | string | null;
9
+ export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
10
+ export type Timestamp = ColumnType<Date, Date | string, Date | string>;
11
+ export interface FormsCoordinatorAccounts {
12
+ created_at: Generated<Timestamp>;
13
+ email: string;
14
+ forms: string[];
15
+ id: Generated<string>;
16
+ name: string | null;
17
+ signatory_account_id: string | null;
18
+ }
19
+ export interface FormsFormProcesses {
20
+ created_at: Generated<Timestamp>;
21
+ display_information: Json | null;
22
+ form_inputs: Generated<Json | null>;
23
+ form_label: string | null;
24
+ form_name: string;
25
+ form_version: Generated<number>;
26
+ id: Generated<string>;
27
+ initiator_id: string | null;
28
+ latest_document_url: string | null;
29
+ prefilled_document_id: string | null;
30
+ rejection_reason: string | null;
31
+ schema_version: Generated<number>;
32
+ signed_document_id: string | null;
33
+ signees: Generated<Json>;
34
+ signing_parties: Generated<Json>;
35
+ subscribers: Generated<Json>;
36
+ timestamp: Generated<Timestamp>;
37
+ }
38
+ export interface FormsGods {
39
+ id: Generated<string>;
40
+ signatory_account: Generated<string>;
41
+ }
42
+ export interface FormsSignatoryAccounts {
43
+ auto_form_permissions: Json | null;
44
+ autofill: Generated<Json | null>;
45
+ created_at: Generated<Timestamp>;
46
+ email: string;
47
+ honorific: string | null;
48
+ id: Generated<string>;
49
+ name: string | null;
50
+ signature: string | null;
51
+ title: string | null;
52
+ }
53
+ export interface FormsSignatoryAudits {
54
+ audit: Generated<Json>;
55
+ created_at: Generated<Timestamp>;
56
+ id: Generated<string>;
57
+ ip_address: string | null;
58
+ signatory_id: string;
59
+ }
60
+ export interface FormsSignatoryForms {
61
+ first_viewed: Timestamp | null;
62
+ form_label: string | null;
63
+ form_name: string;
64
+ form_process_id: string;
65
+ form_process_status: string | null;
66
+ id: Generated<string>;
67
+ signatory_id: string | null;
68
+ signing_keyring_id: string | null;
69
+ signing_party_id: string | null;
70
+ timestamp: Generated<Timestamp>;
71
+ }
72
+ export interface FormsSignatoryFormSettings {
73
+ created_at: Generated<Timestamp>;
74
+ form_name: string;
75
+ id: Generated<string>;
76
+ settings: Json;
77
+ signatory_id: string;
78
+ }
79
+ export interface FormsSignatoryKeyring {
80
+ consumed: Generated<boolean>;
81
+ consumed_at: Timestamp | null;
82
+ created_at: Generated<Timestamp>;
83
+ hash: string;
84
+ id: Generated<string>;
85
+ signatory_account_id: string;
86
+ }
87
+ export interface DB {
88
+ "forms.coordinator_accounts": FormsCoordinatorAccounts;
89
+ "forms.form_processes": FormsFormProcesses;
90
+ "forms.gods": FormsGods;
91
+ "forms.signatory_accounts": FormsSignatoryAccounts;
92
+ "forms.signatory_audits": FormsSignatoryAudits;
93
+ "forms.signatory_form_settings": FormsSignatoryFormSettings;
94
+ "forms.signatory_forms": FormsSignatoryForms;
95
+ "forms.signatory_keyring": FormsSignatoryKeyring;
96
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=db.internship.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db.internship.types.js","sourceRoot":"","sources":["../lib/db.internship.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,312 @@
1
+ import type { ColumnType } from "kysely";
2
+ export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
3
+ 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";
4
+ export type IomAuthPurpose = "auto_sign_revoke" | "invite" | "moa_signature" | "password_reset";
5
+ export type IomAuthSubjectType = "auto_sign_consent" | "company" | "company_invite" | "company_listing_invite" | "company_moa_invite" | "moa_request" | "university_account";
6
+ export type IomAutoConsentKind = "delegate" | "owner";
7
+ export type IomCompanyInviteKind = "listing" | "moa";
8
+ export type IomCompanyInviteStatus = "accepted" | "cancelled" | "expired" | "pending" | "used_waiting";
9
+ export type IomCompanyReviewStatus = "approved" | "rejected" | "superseded";
10
+ export type IomCompanyType = "corporation" | "government_agency" | "partnership" | "sole_proprietorship";
11
+ export type IomMoaRequestStatus = "awaiting_signature" | "awaiting_verification" | "cancelled" | "expired" | "failed" | "issued";
12
+ export type IomMoaStatus = "active" | "rejected";
13
+ export type IomQueuedMoaRequestStatus = "failed" | "fulfilled" | "pending";
14
+ export type IomUniversityRole = "admin" | "staff" | "superadmin";
15
+ export type Json = JsonValue;
16
+ export type JsonArray = JsonValue[];
17
+ export type JsonObject = {
18
+ [x: string]: JsonValue | undefined;
19
+ };
20
+ export type JsonPrimitive = boolean | number | string | null;
21
+ export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
22
+ export type Timestamp = ColumnType<Date, Date | string, Date | string>;
23
+ export interface IomAuditLogs {
24
+ actor_email: string | null;
25
+ company_id: string | null;
26
+ created_at: Generated<Timestamp>;
27
+ detail: string | null;
28
+ event_type: IomAuditEventType;
29
+ id: Generated<string>;
30
+ moa_id: string | null;
31
+ platform_admin_id: string | null;
32
+ university_id: string | null;
33
+ }
34
+ export interface IomAuthTokens {
35
+ consumed_at: Timestamp | null;
36
+ created_at: Generated<Timestamp>;
37
+ expires_at: Timestamp;
38
+ hash: string;
39
+ id: Generated<string>;
40
+ purpose: IomAuthPurpose;
41
+ subject_id: string;
42
+ subject_type: IomAuthSubjectType;
43
+ }
44
+ export interface IomAutoConsents {
45
+ auto_renew: Generated<boolean>;
46
+ company_id: string;
47
+ created_at: Generated<Timestamp>;
48
+ email: string;
49
+ id: Generated<string>;
50
+ kind: Generated<IomAutoConsentKind>;
51
+ proactive: Generated<boolean>;
52
+ revoked_at: Timestamp | null;
53
+ signatory_name: string;
54
+ signatory_title: string;
55
+ signature_data: string;
56
+ signature_type: string;
57
+ template_id: string;
58
+ tin: string | null;
59
+ }
60
+ export interface IomCompanies {
61
+ company_type: IomCompanyType | null;
62
+ cosmetic: Generated<Json>;
63
+ created_at: Generated<Timestamp>;
64
+ document_review_details: Generated<Json>;
65
+ email: string | null;
66
+ email_verified: Generated<boolean>;
67
+ iat_threshold: Timestamp | null;
68
+ id: Generated<string>;
69
+ is_deactivated: boolean | null;
70
+ password: string | null;
71
+ registered_address: string | null;
72
+ registered_name: string | null;
73
+ tin: string | null;
74
+ updated_at: Generated<Timestamp>;
75
+ }
76
+ export interface IomCompanyBlacklists {
77
+ company_id: string;
78
+ created_at: Generated<Timestamp>;
79
+ id: Generated<string>;
80
+ reason: string | null;
81
+ university_id: string;
82
+ }
83
+ export interface IomCompanyDocuments {
84
+ company_id: string;
85
+ expires_at: Timestamp | null;
86
+ filename: string;
87
+ id: Generated<string>;
88
+ type: string;
89
+ uploaded_at: Generated<Timestamp>;
90
+ url: string;
91
+ }
92
+ export interface IomCompanyHistorySnapshots {
93
+ company_id: string;
94
+ created_at: Generated<Timestamp>;
95
+ document_ids: Generated<Json>;
96
+ hash: string;
97
+ id: Generated<string>;
98
+ snapshot_json: Json;
99
+ }
100
+ export interface IomCompanyInvites {
101
+ company_name: string | null;
102
+ created_at: Generated<Timestamp>;
103
+ expires_at: Timestamp;
104
+ id: Generated<string>;
105
+ invited_email: string;
106
+ kind: Generated<IomCompanyInviteKind>;
107
+ legacy_company_id: string | null;
108
+ personal_message: string | null;
109
+ status: Generated<IomCompanyInviteStatus>;
110
+ template_id: string | null;
111
+ university_id: string;
112
+ }
113
+ export interface IomCompanyListingInvites {
114
+ accepted_company_id: string | null;
115
+ company_name: string | null;
116
+ created_at: Generated<Timestamp>;
117
+ expires_at: Timestamp;
118
+ id: Generated<string>;
119
+ invited_email: string;
120
+ legacy_company_id: string | null;
121
+ personal_message: string | null;
122
+ status: Generated<IomCompanyInviteStatus>;
123
+ university_id: string;
124
+ }
125
+ export interface IomCompanyMoaInvites {
126
+ accepted_company_id: string | null;
127
+ company_name: string | null;
128
+ created_at: Generated<Timestamp>;
129
+ expires_at: Timestamp;
130
+ id: Generated<string>;
131
+ invited_email: string;
132
+ personal_message: string | null;
133
+ status: Generated<IomCompanyInviteStatus>;
134
+ template_id: string | null;
135
+ university_id: string;
136
+ }
137
+ export interface IomCompanyReviews {
138
+ approval_expires_at: Timestamp | null;
139
+ company_id: string;
140
+ created_at: Generated<Timestamp>;
141
+ document_rejections: Generated<Json>;
142
+ document_review_details: Generated<Json>;
143
+ history_snapshot_id: string | null;
144
+ id: Generated<string>;
145
+ material_hash: string;
146
+ rejection_reason: string | null;
147
+ reviewed_at: Timestamp | null;
148
+ reviewed_by_id: string | null;
149
+ status: IomCompanyReviewStatus | null;
150
+ updated_at: Generated<Timestamp>;
151
+ }
152
+ export interface IomExpiryReminders {
153
+ company_review_id: string | null;
154
+ document_type: string | null;
155
+ id: Generated<string>;
156
+ marker: number;
157
+ moa_id: string | null;
158
+ recipient_email: string;
159
+ sent_at: Generated<Timestamp>;
160
+ }
161
+ export interface IomLegacyCompanies {
162
+ company_details: Generated<Json>;
163
+ company_documents: Generated<Json>;
164
+ company_name: string;
165
+ created_at: Generated<Timestamp>;
166
+ id: Generated<string>;
167
+ moas: Generated<Json>;
168
+ registered_company_id: string | null;
169
+ university_id: string;
170
+ updated_at: Generated<Timestamp>;
171
+ valid_until: Timestamp | null;
172
+ }
173
+ export interface IomMoaRequests {
174
+ auto_signed: Generated<boolean>;
175
+ company_id: string;
176
+ created_at: Generated<Timestamp>;
177
+ expires_at: Timestamp | null;
178
+ failure_reason: string | null;
179
+ id: Generated<string>;
180
+ invite_id: string | null;
181
+ moa_id: string | null;
182
+ signatory_email: string | null;
183
+ signatory_name: string | null;
184
+ signatory_title: string | null;
185
+ signature_data: string | null;
186
+ signature_type: string | null;
187
+ signed_at: Timestamp | null;
188
+ status: Generated<IomMoaRequestStatus>;
189
+ template_id: string;
190
+ university_id: string;
191
+ updated_at: Generated<Timestamp>;
192
+ }
193
+ export interface IomMoas {
194
+ company_id: string;
195
+ created_at: Generated<Timestamp>;
196
+ effective_date: Timestamp;
197
+ expiry_date: Timestamp | null;
198
+ generated_pdf_url: string;
199
+ id: Generated<string>;
200
+ is_expired: boolean | null;
201
+ signatories: Json | null;
202
+ status: IomMoaStatus;
203
+ template_id: string;
204
+ university_id: string;
205
+ verification_code: string | null;
206
+ }
207
+ export interface IomMoaTemplates {
208
+ created_at: Generated<Timestamp>;
209
+ description: string | null;
210
+ field_schema: Generated<Json>;
211
+ id: Generated<string>;
212
+ is_deleted: boolean | null;
213
+ name: string;
214
+ page_count: number;
215
+ page_h: number;
216
+ page_w: number;
217
+ pdf_url: string;
218
+ retired_at: Timestamp | null;
219
+ supersedes_id: string | null;
220
+ term_months: number | null;
221
+ updated_at: Generated<Timestamp>;
222
+ }
223
+ export interface IomPlatformAdmins {
224
+ created_at: Generated<Timestamp>;
225
+ display_name: string;
226
+ email: string;
227
+ id: Generated<string>;
228
+ password: string;
229
+ }
230
+ export interface IomPlatformSettings {
231
+ default_template_id: string | null;
232
+ id: Generated<string>;
233
+ updated_at: Generated<Timestamp>;
234
+ witness_name: string | null;
235
+ witness_signature_url: string | null;
236
+ witness_title: string | null;
237
+ }
238
+ export interface IomQueuedMoaRequests {
239
+ company_id: string;
240
+ created_at: Generated<Timestamp>;
241
+ failure_reason: string | null;
242
+ id: Generated<string>;
243
+ invite_id: string | null;
244
+ rep_name: string;
245
+ rep_signature_data: string;
246
+ rep_signature_type: string;
247
+ rep_title: string;
248
+ signatories: Generated<Json>;
249
+ status: Generated<IomQueuedMoaRequestStatus>;
250
+ template_id: string;
251
+ university_id: string;
252
+ }
253
+ export interface IomUniversities {
254
+ account_holder_name: string | null;
255
+ account_holder_title: string | null;
256
+ address: string | null;
257
+ created_at: Generated<Timestamp>;
258
+ id: Generated<string>;
259
+ is_deactivated: boolean | null;
260
+ logo_url: string | null;
261
+ registered_name: string;
262
+ rep_name: string | null;
263
+ rep_signature_url: string | null;
264
+ rep_title: string | null;
265
+ signatories: Generated<Json>;
266
+ updated_at: Generated<Timestamp>;
267
+ }
268
+ export interface IomUniversityAccounts {
269
+ activated_at: Timestamp | null;
270
+ created_at: Generated<Timestamp>;
271
+ display_name: string;
272
+ email: string;
273
+ iat_threshold: Timestamp | null;
274
+ id: Generated<string>;
275
+ is_deactivated: boolean | null;
276
+ password: string | null;
277
+ role: IomUniversityRole;
278
+ university_id: string;
279
+ updated_at: Generated<Timestamp>;
280
+ }
281
+ export interface IomUniversityTemplates {
282
+ created_at: Generated<Timestamp>;
283
+ id: Generated<string>;
284
+ is_available: Generated<boolean>;
285
+ template_id: string;
286
+ university_id: string;
287
+ updated_at: Generated<Timestamp>;
288
+ }
289
+ export interface DB {
290
+ "iom.audit_logs": IomAuditLogs;
291
+ "iom.auth_tokens": IomAuthTokens;
292
+ "iom.auto_consents": IomAutoConsents;
293
+ "iom.companies": IomCompanies;
294
+ "iom.company_blacklists": IomCompanyBlacklists;
295
+ "iom.company_documents": IomCompanyDocuments;
296
+ "iom.company_history_snapshots": IomCompanyHistorySnapshots;
297
+ "iom.company_invites": IomCompanyInvites;
298
+ "iom.company_listing_invites": IomCompanyListingInvites;
299
+ "iom.company_moa_invites": IomCompanyMoaInvites;
300
+ "iom.company_reviews": IomCompanyReviews;
301
+ "iom.expiry_reminders": IomExpiryReminders;
302
+ "iom.legacy_companies": IomLegacyCompanies;
303
+ "iom.moa_requests": IomMoaRequests;
304
+ "iom.moa_templates": IomMoaTemplates;
305
+ "iom.moas": IomMoas;
306
+ "iom.platform_admins": IomPlatformAdmins;
307
+ "iom.platform_settings": IomPlatformSettings;
308
+ "iom.queued_moa_requests": IomQueuedMoaRequests;
309
+ "iom.universities": IomUniversities;
310
+ "iom.university_accounts": IomUniversityAccounts;
311
+ "iom.university_templates": IomUniversityTemplates;
312
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=db.iom.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db.iom.types.js","sourceRoot":"","sources":["../lib/db.iom.types.ts"],"names":[],"mappings":""}