@betterinternship/schema 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -33
- package/dist/db.internal.types.d.ts +0 -8
- package/dist/db.iom.types.d.ts +2 -12
- package/dist/db.js +31 -46
- package/dist/db.js.map +1 -1
- package/dist/db.types.d.ts +0 -53
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +38 -38
- package/dist/repository/base.d.ts +0 -50
- package/dist/repository/base.js +0 -345
- package/dist/repository/base.js.map +0 -1
- package/dist/repository/errors.d.ts +0 -1
- package/dist/repository/errors.js +0 -16
- package/dist/repository/errors.js.map +0 -1
- package/dist/repository/factories.d.ts +0 -14
- package/dist/repository/factories.js +0 -45
- package/dist/repository/factories.js.map +0 -1
- package/dist/repository/index.d.ts +0 -3
- package/dist/repository/index.js +0 -20
- package/dist/repository/index.js.map +0 -1
- package/dist/repository/json-columns.d.ts +0 -5
- package/dist/repository/json-columns.js +0 -44
- package/dist/repository/json-columns.js.map +0 -1
- package/dist/repository/paginator.d.ts +0 -4
- package/dist/repository/paginator.js +0 -3
- package/dist/repository/paginator.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
# @betterinternship/schema
|
|
2
|
-
|
|
3
|
-
Consolidated database schema package for BetterInternship. Replaces the previous `@betterinternship/schema.base` and `@betterinternship/schema.moa` packages.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `db` — Kysely client over the `career.*` schema
|
|
8
|
-
- `internshipDb` — Kysely client over the `forms.*` schema
|
|
9
|
-
- `documentDb` — Kysely client over the `documents.*` schema
|
|
10
|
-
- `internalDb` — Kysely client over the `internal.*` schema
|
|
11
|
-
- `handleDBError` — shared Postgres error translator
|
|
12
|
-
- Types: `DB` (career), `InternshipDB`, `DocumentDB`, all `Career*` table interfaces, `Json`, `Generated`, `Timestamp`, etc.
|
|
13
|
-
- Namespaces: `Internship`, `Document`, `Internal` (full re-exports of their respective generated type files)
|
|
14
|
-
|
|
15
|
-
## Environment
|
|
16
|
-
|
|
17
|
-
Requires a single `DATABASE_URL` pointing at the unified Postgres database.
|
|
18
|
-
|
|
19
|
-
## Codegen
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
npm run generate # career.* -> lib/db.types.ts
|
|
23
|
-
npm run generate:internship # forms.* -> lib/db.internship.types.ts
|
|
24
|
-
npm run generate:documents # documents.* -> lib/db.doc.types.ts
|
|
25
|
-
npm run generate:internal # internal.* -> lib/db.internal.types.ts
|
|
26
|
-
npm run generate:iom # iom.* -> lib/db.iom.types.ts
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Each script reads `DATABASE_URL` from `dev.env`. Create `dev.env` with your dev database URL:
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
DATABASE_URL="postgres://..."
|
|
33
|
-
```
|
|
1
|
+
# @betterinternship/schema
|
|
2
|
+
|
|
3
|
+
Consolidated database schema package for BetterInternship. Replaces the previous `@betterinternship/schema.base` and `@betterinternship/schema.moa` packages.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `db` — Kysely client over the `career.*` schema
|
|
8
|
+
- `internshipDb` — Kysely client over the `forms.*` schema
|
|
9
|
+
- `documentDb` — Kysely client over the `documents.*` schema
|
|
10
|
+
- `internalDb` — Kysely client over the `internal.*` schema
|
|
11
|
+
- `handleDBError` — shared Postgres error translator
|
|
12
|
+
- Types: `DB` (career), `InternshipDB`, `DocumentDB`, all `Career*` table interfaces, `Json`, `Generated`, `Timestamp`, etc.
|
|
13
|
+
- Namespaces: `Internship`, `Document`, `Internal` (full re-exports of their respective generated type files)
|
|
14
|
+
|
|
15
|
+
## Environment
|
|
16
|
+
|
|
17
|
+
Requires a single `DATABASE_URL` pointing at the unified Postgres database.
|
|
18
|
+
|
|
19
|
+
## Codegen
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
npm run generate # career.* -> lib/db.types.ts
|
|
23
|
+
npm run generate:internship # forms.* -> lib/db.internship.types.ts
|
|
24
|
+
npm run generate:documents # documents.* -> lib/db.doc.types.ts
|
|
25
|
+
npm run generate:internal # internal.* -> lib/db.internal.types.ts
|
|
26
|
+
npm run generate:iom # iom.* -> lib/db.iom.types.ts
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Each script reads `DATABASE_URL` from `dev.env`. Create `dev.env` with your dev database URL:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
DATABASE_URL="postgres://..."
|
|
33
|
+
```
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ColumnType } from "kysely";
|
|
2
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
3
|
export type Timestamp = ColumnType<Date, Date | string, Date | string>;
|
|
5
4
|
export interface InternalEmailDeliveryEvents {
|
|
6
5
|
attempts: number | null;
|
|
@@ -16,13 +15,6 @@ export interface InternalEmailDeliveryEvents {
|
|
|
16
15
|
recipient_email: string;
|
|
17
16
|
resolved_at: Timestamp | null;
|
|
18
17
|
}
|
|
19
|
-
export interface InternalSlugs {
|
|
20
|
-
created_at: Generated<Timestamp>;
|
|
21
|
-
domain: InternalLinkDomain;
|
|
22
|
-
slug: string;
|
|
23
|
-
url: string;
|
|
24
|
-
}
|
|
25
18
|
export interface DB {
|
|
26
19
|
"internal.email_delivery_events": InternalEmailDeliveryEvents;
|
|
27
|
-
"internal.slugs": InternalSlugs;
|
|
28
20
|
}
|
package/dist/db.iom.types.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { ColumnType } from "kysely";
|
|
2
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 = "
|
|
3
|
+
export type IomAuditEventType = "company_blacklisted" | "company_invite_accepted" | "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_revoked";
|
|
4
4
|
export type IomAuthPurpose = "invite" | "password_reset";
|
|
5
5
|
export type IomAuthSubjectType = "company" | "company_invite" | "university_account";
|
|
6
|
-
export type
|
|
7
|
-
export type IomCompanyInviteStatus = "accepted" | "cancelled" | "expired" | "pending" | "used_waiting";
|
|
6
|
+
export type IomCompanyInviteStatus = "accepted" | "expired" | "pending" | "used_waiting";
|
|
8
7
|
export type IomCompanyReviewStatus = "approved" | "rejected" | "superseded";
|
|
9
8
|
export type IomCompanyType = "corporation" | "government_agency" | "partnership" | "sole_proprietorship";
|
|
10
9
|
export type IomMoaStatus = "active" | "rejected";
|
|
@@ -84,8 +83,6 @@ export interface IomCompanyInvites {
|
|
|
84
83
|
expires_at: Timestamp;
|
|
85
84
|
id: Generated<string>;
|
|
86
85
|
invited_email: string;
|
|
87
|
-
kind: Generated<IomCompanyInviteKind>;
|
|
88
|
-
legacy_company_id: string | null;
|
|
89
86
|
personal_message: string | null;
|
|
90
87
|
status: Generated<IomCompanyInviteStatus>;
|
|
91
88
|
template_id: string | null;
|
|
@@ -120,7 +117,6 @@ export interface IomLegacyCompanies {
|
|
|
120
117
|
created_at: Generated<Timestamp>;
|
|
121
118
|
id: Generated<string>;
|
|
122
119
|
moas: Generated<Json>;
|
|
123
|
-
registered_company_id: string | null;
|
|
124
120
|
university_id: string;
|
|
125
121
|
updated_at: Generated<Timestamp>;
|
|
126
122
|
valid_until: Timestamp | null;
|
|
@@ -133,11 +129,9 @@ export interface IomMoas {
|
|
|
133
129
|
generated_pdf_url: string;
|
|
134
130
|
id: Generated<string>;
|
|
135
131
|
is_expired: boolean | null;
|
|
136
|
-
signatories: Json | null;
|
|
137
132
|
status: IomMoaStatus;
|
|
138
133
|
template_id: string;
|
|
139
134
|
university_id: string;
|
|
140
|
-
verification_code: string | null;
|
|
141
135
|
}
|
|
142
136
|
export interface IomMoaTemplates {
|
|
143
137
|
created_at: Generated<Timestamp>;
|
|
@@ -170,14 +164,11 @@ export interface IomQueuedMoaRequests {
|
|
|
170
164
|
rep_signature_data: string;
|
|
171
165
|
rep_signature_type: string;
|
|
172
166
|
rep_title: string;
|
|
173
|
-
signatories: Generated<Json>;
|
|
174
167
|
status: Generated<IomQueuedMoaRequestStatus>;
|
|
175
168
|
template_id: string;
|
|
176
169
|
university_id: string;
|
|
177
170
|
}
|
|
178
171
|
export interface IomUniversities {
|
|
179
|
-
account_holder_name: string | null;
|
|
180
|
-
account_holder_title: string | null;
|
|
181
172
|
address: string | null;
|
|
182
173
|
created_at: Generated<Timestamp>;
|
|
183
174
|
id: Generated<string>;
|
|
@@ -187,7 +178,6 @@ export interface IomUniversities {
|
|
|
187
178
|
rep_name: string | null;
|
|
188
179
|
rep_signature_url: string | null;
|
|
189
180
|
rep_title: string | null;
|
|
190
|
-
signatories: Generated<Json>;
|
|
191
181
|
updated_at: Generated<Timestamp>;
|
|
192
182
|
}
|
|
193
183
|
export interface IomUniversityAccounts {
|
package/dist/db.js
CHANGED
|
@@ -4,53 +4,38 @@ exports.handleDBError = exports.iomDb = exports.internalDb = exports.documentDb
|
|
|
4
4
|
const kysely_1 = require("kysely");
|
|
5
5
|
const pg_1 = require("pg");
|
|
6
6
|
const env_1 = require("./env");
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
: {
|
|
23
|
-
rejectUnauthorized: true,
|
|
24
|
-
ca: DATABASE_CA_CERT?.replace(/\\n/g, "\n"),
|
|
25
|
-
checkServerIdentity: () => undefined,
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
return pool;
|
|
29
|
-
};
|
|
30
|
-
const lazyKysely = () => {
|
|
31
|
-
let instance;
|
|
32
|
-
const build = () => (instance ??= new kysely_1.Kysely({
|
|
33
|
-
dialect: new kysely_1.PostgresDialect({ pool: getPool() }),
|
|
34
|
-
}));
|
|
35
|
-
return new Proxy({}, {
|
|
36
|
-
get(_target, prop) {
|
|
37
|
-
const inst = build();
|
|
38
|
-
const value = Reflect.get(inst, prop, inst);
|
|
39
|
-
return typeof value === "function" ? value.bind(inst) : value;
|
|
40
|
-
},
|
|
41
|
-
has(_target, prop) {
|
|
42
|
-
return Reflect.has(build(), prop);
|
|
7
|
+
const DATABASE_URL = env_1.ENV.DATABASE_URL;
|
|
8
|
+
const DATABASE_CA_CERT = env_1.ENV.DATABASE_CA_CERT;
|
|
9
|
+
if (!DATABASE_URL)
|
|
10
|
+
throw new Error("[ERROR:ENV] Missing DATABASE_URL.");
|
|
11
|
+
const isNoVerify = DATABASE_URL.includes('sslmode=no-verify');
|
|
12
|
+
if (!DATABASE_CA_CERT && !isNoVerify)
|
|
13
|
+
throw new Error("[ERROR:ENV] Missing DATABASE_CA_CERT.");
|
|
14
|
+
const pool = new pg_1.Pool({
|
|
15
|
+
connectionString: DATABASE_URL,
|
|
16
|
+
ssl: isNoVerify
|
|
17
|
+
? { rejectUnauthorized: false }
|
|
18
|
+
: {
|
|
19
|
+
rejectUnauthorized: true,
|
|
20
|
+
ca: DATABASE_CA_CERT?.replace(/\\n/g, '\n'),
|
|
21
|
+
checkServerIdentity: () => undefined,
|
|
43
22
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
exports.documentDb =
|
|
52
|
-
|
|
53
|
-
|
|
23
|
+
});
|
|
24
|
+
exports.db = new kysely_1.Kysely({
|
|
25
|
+
dialect: new kysely_1.PostgresDialect({ pool }),
|
|
26
|
+
});
|
|
27
|
+
exports.internshipDb = new kysely_1.Kysely({
|
|
28
|
+
dialect: new kysely_1.PostgresDialect({ pool }),
|
|
29
|
+
});
|
|
30
|
+
exports.documentDb = new kysely_1.Kysely({
|
|
31
|
+
dialect: new kysely_1.PostgresDialect({ pool }),
|
|
32
|
+
});
|
|
33
|
+
exports.internalDb = new kysely_1.Kysely({
|
|
34
|
+
dialect: new kysely_1.PostgresDialect({ pool }),
|
|
35
|
+
});
|
|
36
|
+
exports.iomDb = new kysely_1.Kysely({
|
|
37
|
+
dialect: new kysely_1.PostgresDialect({ pool }),
|
|
38
|
+
});
|
|
54
39
|
const handleDBError = (error, description = "") => {
|
|
55
40
|
switch (error.code) {
|
|
56
41
|
case "PGRST116":
|
package/dist/db.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db.js","sourceRoot":"","sources":["../lib/db.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"db.js","sourceRoot":"","sources":["../lib/db.ts"],"names":[],"mappings":";;;AAIA,mCAAiD;AACjD,2BAA0B;AAC1B,+BAA4B;AAO5B,MAAM,YAAY,GAAG,SAAG,CAAC,YAAY,CAAC;AACtC,MAAM,gBAAgB,GAAG,SAAG,CAAC,gBAAgB,CAAC;AAC9C,IAAI,CAAC,YAAY;IAAE,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;AAGxE,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAC9D,IAAI,CAAC,gBAAgB,IAAI,CAAC,UAAU;IAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;AAE/F,MAAM,IAAI,GAAG,IAAI,SAAI,CAAC;IACpB,gBAAgB,EAAE,YAAY;IAC9B,GAAG,EAAE,UAAU;QACb,CAAC,CAAC,EAAE,kBAAkB,EAAE,KAAK,EAAE;QAC/B,CAAC,CAAC;YACA,kBAAkB,EAAE,IAAI;YACxB,EAAE,EAAE,gBAAgB,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC;YAE3C,mBAAmB,EAAE,GAAG,EAAE,CAAC,SAAS;SACrC;CACJ,CAAC,CAAC;AAOU,QAAA,EAAE,GAAG,IAAI,eAAM,CAAK;IAC/B,OAAO,EAAE,IAAI,wBAAe,CAAC,EAAE,IAAI,EAAE,CAAC;CACvC,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,IAAI,eAAM,CAAe;IACnD,OAAO,EAAE,IAAI,wBAAe,CAAC,EAAE,IAAI,EAAE,CAAC;CACvC,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,IAAI,eAAM,CAAa;IAC/C,OAAO,EAAE,IAAI,wBAAe,CAAC,EAAE,IAAI,EAAE,CAAC;CACvC,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,IAAI,eAAM,CAAa;IAC/C,OAAO,EAAE,IAAI,wBAAe,CAAC,EAAE,IAAI,EAAE,CAAC;CACvC,CAAC,CAAC;AAEU,QAAA,KAAK,GAAG,IAAI,eAAM,CAAQ;IACrC,OAAO,EAAE,IAAI,wBAAe,CAAC,EAAE,IAAI,EAAE,CAAC;CACvC,CAAC,CAAC;AAEI,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,cAAsB,EAAE,EAAE,EAAE;IACpE,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,UAAU;YACb,MAAM,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC,CAAC;QACjE,KAAK,OAAO;YACV,MAAM,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,0BAA0B,EAAE,CAAC,CAAC;QACtE,KAAK,OAAO;YACV,MAAM,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,+BAA+B,EAAE,CAAC,CAAC;QAC3E;YACE,MAAM,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC,CAAC;IACnE,CAAC;AACH,CAAC,CAAC;AAXW,QAAA,aAAa,iBAWxB"}
|
package/dist/db.types.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import type { ColumnType } from "kysely";
|
|
2
|
-
export type CareerApplicationSource = "discord" | "mass" | "normal";
|
|
3
2
|
export type CareerApplicationVisibility = "archived" | "deleted" | "visible";
|
|
4
|
-
export type CareerJobActivationEvent = "activated" | "deactivated";
|
|
5
|
-
export type CareerJobActivationSource = "employer" | "god";
|
|
6
3
|
export type CareerJobPauseReason = "dormant" | "neglected" | "unresponsive";
|
|
7
|
-
export type CareerJobWaitlistRemovalReason = "left" | "listing_deleted" | "notified";
|
|
8
4
|
export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
|
|
9
5
|
export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
|
|
10
6
|
export type Json = JsonValue;
|
|
@@ -24,7 +20,6 @@ export interface CareerApplications {
|
|
|
24
20
|
notes: string | null;
|
|
25
21
|
resume_id: string | null;
|
|
26
22
|
review: string | null;
|
|
27
|
-
source: CareerApplicationSource | null;
|
|
28
23
|
status: Generated<number>;
|
|
29
24
|
updated_at: Generated<Timestamp | null>;
|
|
30
25
|
user_id: string | null;
|
|
@@ -41,15 +36,6 @@ export interface CareerConversations {
|
|
|
41
36
|
id: Generated<string>;
|
|
42
37
|
user_id: string;
|
|
43
38
|
}
|
|
44
|
-
export interface CareerEmployerIomLinkRequests {
|
|
45
|
-
consumed_at: Timestamp | null;
|
|
46
|
-
created_at: Generated<Timestamp>;
|
|
47
|
-
employer_id: string;
|
|
48
|
-
expires_at: Timestamp;
|
|
49
|
-
id: Generated<string>;
|
|
50
|
-
iom_tin: string;
|
|
51
|
-
token_hash: string;
|
|
52
|
-
}
|
|
53
39
|
export interface CareerEmployers {
|
|
54
40
|
accepted_universities: Generated<string[]>;
|
|
55
41
|
accepts_non_university: Generated<boolean>;
|
|
@@ -58,16 +44,13 @@ export interface CareerEmployers {
|
|
|
58
44
|
email: string | null;
|
|
59
45
|
id: Generated<string>;
|
|
60
46
|
industry: string | null;
|
|
61
|
-
is_deactivated: Generated<boolean>;
|
|
62
47
|
is_verified: Generated<boolean>;
|
|
63
48
|
job_count: Generated<number>;
|
|
64
49
|
legal_entity_name: string;
|
|
65
50
|
location: string | null;
|
|
66
51
|
logo: string | null;
|
|
67
52
|
name: string;
|
|
68
|
-
owner_user_id: string | null;
|
|
69
53
|
phone_number: string | null;
|
|
70
|
-
tin: string | null;
|
|
71
54
|
updated_at: Generated<Timestamp>;
|
|
72
55
|
website: string | null;
|
|
73
56
|
}
|
|
@@ -75,7 +58,6 @@ export interface CareerEmployerUserKeyrings {
|
|
|
75
58
|
consumed_at: Timestamp | null;
|
|
76
59
|
created_at: Generated<Timestamp>;
|
|
77
60
|
employer_user_id: string;
|
|
78
|
-
expires_at: Timestamp | null;
|
|
79
61
|
hash: string;
|
|
80
62
|
id: Generated<string>;
|
|
81
63
|
}
|
|
@@ -91,18 +73,9 @@ export interface CareerEmployerUsers {
|
|
|
91
73
|
middle_name: string | null;
|
|
92
74
|
password: string;
|
|
93
75
|
profile_picture: string | null;
|
|
94
|
-
receives_applicant_digest: Generated<boolean>;
|
|
95
76
|
role: Generated<string>;
|
|
96
77
|
updated_at: Generated<Timestamp>;
|
|
97
78
|
}
|
|
98
|
-
export interface CareerGodKeyrings {
|
|
99
|
-
created_at: Generated<Timestamp>;
|
|
100
|
-
employer_user_id: string;
|
|
101
|
-
hash: string;
|
|
102
|
-
id: Generated<string>;
|
|
103
|
-
last_used_at: Timestamp | null;
|
|
104
|
-
ref_employer_id: string | null;
|
|
105
|
-
}
|
|
106
79
|
export interface CareerGods {
|
|
107
80
|
employer_user_id: string;
|
|
108
81
|
id: Generated<string>;
|
|
@@ -114,16 +87,6 @@ export interface CareerInternshipFormMappings {
|
|
|
114
87
|
id: Generated<string>;
|
|
115
88
|
university_id: string | null;
|
|
116
89
|
}
|
|
117
|
-
export interface CareerJobActivationEvents {
|
|
118
|
-
actor_employer_user_id: string | null;
|
|
119
|
-
employer_id: string;
|
|
120
|
-
event: CareerJobActivationEvent;
|
|
121
|
-
id: Generated<string>;
|
|
122
|
-
job_id: string;
|
|
123
|
-
occurred_at: Generated<Timestamp>;
|
|
124
|
-
qualified: Generated<boolean>;
|
|
125
|
-
source: CareerJobActivationSource;
|
|
126
|
-
}
|
|
127
90
|
export interface CareerJobPauses {
|
|
128
91
|
employer_id: string;
|
|
129
92
|
id: Generated<string>;
|
|
@@ -145,7 +108,6 @@ export interface CareerJobs {
|
|
|
145
108
|
is_deleted: Generated<boolean>;
|
|
146
109
|
is_unlisted: Generated<boolean>;
|
|
147
110
|
is_year_round: boolean | null;
|
|
148
|
-
last_activated_at: Generated<Timestamp>;
|
|
149
111
|
location: string | null;
|
|
150
112
|
requirements: string | null;
|
|
151
113
|
salary: Numeric | null;
|
|
@@ -161,15 +123,6 @@ export interface CareerJobsChallenge {
|
|
|
161
123
|
jobs_id: string;
|
|
162
124
|
title: string;
|
|
163
125
|
}
|
|
164
|
-
export interface CareerJobWaitlists {
|
|
165
|
-
created_at: Generated<Timestamp>;
|
|
166
|
-
id: Generated<string>;
|
|
167
|
-
job_id: string;
|
|
168
|
-
notified_at: Timestamp | null;
|
|
169
|
-
removal_reason: CareerJobWaitlistRemovalReason | null;
|
|
170
|
-
removed_at: Timestamp | null;
|
|
171
|
-
user_id: string;
|
|
172
|
-
}
|
|
173
126
|
export interface CareerMoa {
|
|
174
127
|
employer_id: string;
|
|
175
128
|
expires_at: Generated<Timestamp>;
|
|
@@ -251,7 +204,6 @@ export interface CareerRefLevels {
|
|
|
251
204
|
}
|
|
252
205
|
export interface CareerRefUniversities {
|
|
253
206
|
id: Generated<string>;
|
|
254
|
-
iom_university_id: string | null;
|
|
255
207
|
name: string;
|
|
256
208
|
}
|
|
257
209
|
export interface CareerResumes {
|
|
@@ -272,7 +224,6 @@ export interface CareerSessions {
|
|
|
272
224
|
employer_id: string | null;
|
|
273
225
|
id: Generated<string>;
|
|
274
226
|
owner_id: string;
|
|
275
|
-
subaccount_id: string | null;
|
|
276
227
|
timestamp: Generated<Timestamp>;
|
|
277
228
|
user_id: string | null;
|
|
278
229
|
}
|
|
@@ -318,16 +269,12 @@ export interface DB {
|
|
|
318
269
|
"career.applications": CareerApplications;
|
|
319
270
|
"career.applications_challenge_submission": CareerApplicationsChallengeSubmission;
|
|
320
271
|
"career.conversations": CareerConversations;
|
|
321
|
-
"career.employer_iom_link_requests": CareerEmployerIomLinkRequests;
|
|
322
272
|
"career.employer_user_keyrings": CareerEmployerUserKeyrings;
|
|
323
273
|
"career.employer_users": CareerEmployerUsers;
|
|
324
274
|
"career.employers": CareerEmployers;
|
|
325
|
-
"career.god_keyrings": CareerGodKeyrings;
|
|
326
275
|
"career.gods": CareerGods;
|
|
327
276
|
"career.internship_form_mappings": CareerInternshipFormMappings;
|
|
328
|
-
"career.job_activation_events": CareerJobActivationEvents;
|
|
329
277
|
"career.job_pauses": CareerJobPauses;
|
|
330
|
-
"career.job_waitlists": CareerJobWaitlists;
|
|
331
278
|
"career.jobs": CareerJobs;
|
|
332
279
|
"career.jobs_challenge": CareerJobsChallenge;
|
|
333
280
|
"career.moa": CareerMoa;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.IOM = exports.Internal = exports.Document = exports.Internship = void 0;
|
|
18
18
|
__exportStar(require("./db"), exports);
|
|
19
19
|
__exportStar(require("./db.types"), exports);
|
|
20
|
-
__exportStar(require("./repository"), exports);
|
|
21
20
|
exports.Internship = require("./db.internship.types");
|
|
22
21
|
exports.Document = require("./db.doc.types");
|
|
23
22
|
exports.Internal = require("./db.internal.types");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,6CAA2B;AAC3B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,6CAA2B;AAC3B,sDAAoD;AACpD,6CAA2C;AAC3C,kDAAgD;AAChD,wCAAsC"}
|