@the-inkwell/shared 0.1.70 → 0.1.71
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/src/types/db.js +6 -0
- package/package.json +4 -1
- package/src/types/db.ts +487 -0
- package/src/types/models/admin/candidacies/index.ts +3 -16
- package/src/types/models/admin/persons/index.ts +5 -5
- package/src/types/models/admin/website/index.ts +7 -15
- package/src/types/models/auth/index.ts +1 -2
- package/src/types/_schema/Action.ts +0 -91
- package/src/types/_schema/ActionNames.ts +0 -11
- package/src/types/_schema/Admin.ts +0 -36
- package/src/types/_schema/Campaign.ts +0 -77
- package/src/types/_schema/CampaignStatuses.ts +0 -10
- package/src/types/_schema/CampaignToPosition.ts +0 -40
- package/src/types/_schema/Candidacy.ts +0 -84
- package/src/types/_schema/CandidacyFeedback.ts +0 -55
- package/src/types/_schema/CandidacyRatingToTag.ts +0 -40
- package/src/types/_schema/CandidacySources.ts +0 -11
- package/src/types/_schema/CandidacyStatuses.ts +0 -14
- package/src/types/_schema/Client.ts +0 -56
- package/src/types/_schema/ClientStatuses.ts +0 -10
- package/src/types/_schema/Contract.ts +0 -62
- package/src/types/_schema/Conversation.ts +0 -64
- package/src/types/_schema/EnrichmentSources.ts +0 -8
- package/src/types/_schema/Jwt.ts +0 -55
- package/src/types/_schema/ListView.ts +0 -74
- package/src/types/_schema/ListViewModels.ts +0 -11
- package/src/types/_schema/Message.ts +0 -70
- package/src/types/_schema/MessageChannels.ts +0 -9
- package/src/types/_schema/MessageTemplate.ts +0 -53
- package/src/types/_schema/Note.ts +0 -76
- package/src/types/_schema/Otp.ts +0 -61
- package/src/types/_schema/Person.ts +0 -293
- package/src/types/_schema/PersonCareerLevels.ts +0 -13
- package/src/types/_schema/PersonClub.ts +0 -53
- package/src/types/_schema/PersonDegrees.ts +0 -13
- package/src/types/_schema/PersonEnrichment.ts +0 -62
- package/src/types/_schema/PersonGenders.ts +0 -11
- package/src/types/_schema/PersonNetwork.ts +0 -53
- package/src/types/_schema/PersonSkill.ts +0 -53
- package/src/types/_schema/PersonSources.ts +0 -11
- package/src/types/_schema/PersonToBestPerson.ts +0 -32
- package/src/types/_schema/PersonToPersonClub.ts +0 -33
- package/src/types/_schema/PersonToPersonNetwork.ts +0 -33
- package/src/types/_schema/PersonToPersonSkill.ts +0 -33
- package/src/types/_schema/PersonToTag.ts +0 -33
- package/src/types/_schema/Position.ts +0 -77
- package/src/types/_schema/PositionStatuses.ts +0 -9
- package/src/types/_schema/PublicSchema.ts +0 -110
- package/src/types/_schema/Referral.ts +0 -78
- package/src/types/_schema/ReferralPayout.ts +0 -29
- package/src/types/_schema/ReferralSources.ts +0 -10
- package/src/types/_schema/ReferralToIntroMessage.ts +0 -40
- package/src/types/_schema/Sender.ts +0 -59
- package/src/types/_schema/Tag.ts +0 -47
- package/src/types/_schema/WebsiteBlock.ts +0 -45
- package/src/types/_schema/WebsiteLandingPage.ts +0 -47
- package/src/types/_schema/WebsiteStaticPage.ts +0 -53
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@the-inkwell/shared",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.71",
|
|
4
4
|
"description": "Shared code for Inkwell",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "Inkwell (Rob Yedlin)",
|
|
@@ -14,5 +14,8 @@
|
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/node": "^22.13.1",
|
|
16
16
|
"typescript": "^5.7.3"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"kysely": "^0.27.6"
|
|
17
20
|
}
|
|
18
21
|
}
|
package/src/types/db.ts
ADDED
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by kysely-codegen.
|
|
3
|
+
* Please do not edit it manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ColumnType } from 'kysely'
|
|
7
|
+
|
|
8
|
+
export type Actionnames =
|
|
9
|
+
| 'MESSAGE_SENT'
|
|
10
|
+
| 'PROFILE_UPDATE'
|
|
11
|
+
| 'SIGN_IN'
|
|
12
|
+
| 'STATUS_UPDATE'
|
|
13
|
+
|
|
14
|
+
export type ArrayType<T> = ArrayTypeImpl<T> extends (infer U)[]
|
|
15
|
+
? U[]
|
|
16
|
+
: ArrayTypeImpl<T>
|
|
17
|
+
|
|
18
|
+
export type ArrayTypeImpl<T> = T extends ColumnType<infer S, infer I, infer U>
|
|
19
|
+
? ColumnType<S[], I[], U[]>
|
|
20
|
+
: T[]
|
|
21
|
+
|
|
22
|
+
export type Campaignstatuses = 'CLOSED' | 'DRAFT' | 'SENT'
|
|
23
|
+
|
|
24
|
+
export type Candidacysources = 'INTERNET' | 'NETWORK' | 'STAFF' | 'WEBSITE'
|
|
25
|
+
|
|
26
|
+
export type Candidacystatuses =
|
|
27
|
+
| 'HIRED'
|
|
28
|
+
| 'INTERVIEWING'
|
|
29
|
+
| 'OFFERED'
|
|
30
|
+
| 'REJECTED'
|
|
31
|
+
| 'SCREENING'
|
|
32
|
+
| 'SUBMITTED'
|
|
33
|
+
| 'WITHDRAWN'
|
|
34
|
+
|
|
35
|
+
export type Clientstatuses = 'ACTIVE' | 'INACTIVE' | 'LEAD'
|
|
36
|
+
|
|
37
|
+
export type Enrichmentsources = 'PDL'
|
|
38
|
+
|
|
39
|
+
export type Generated<T> = T extends ColumnType<infer S, infer I, infer U>
|
|
40
|
+
? ColumnType<S, I | undefined, U>
|
|
41
|
+
: ColumnType<T, T | undefined, T>
|
|
42
|
+
|
|
43
|
+
export type Int8 = ColumnType<
|
|
44
|
+
string,
|
|
45
|
+
bigint | number | string,
|
|
46
|
+
bigint | number | string
|
|
47
|
+
>
|
|
48
|
+
|
|
49
|
+
export type Json = JsonValue
|
|
50
|
+
|
|
51
|
+
export type JsonArray = JsonValue[]
|
|
52
|
+
|
|
53
|
+
export type JsonObject = {
|
|
54
|
+
[x: string]: JsonValue | undefined
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type JsonPrimitive = boolean | number | string | null
|
|
58
|
+
|
|
59
|
+
export type JsonValue = JsonArray | JsonObject | JsonPrimitive
|
|
60
|
+
|
|
61
|
+
export type Listviewmodels = 'CANDIDACY' | 'PERSON' | 'POSITION' | 'REFERRAL'
|
|
62
|
+
|
|
63
|
+
export type Messagechannels = 'EMAIL' | 'SMS'
|
|
64
|
+
|
|
65
|
+
export type Personcareerlevels =
|
|
66
|
+
| 'CHIEF_SUITE'
|
|
67
|
+
| 'DIRECTOR'
|
|
68
|
+
| 'EXPERIENCED'
|
|
69
|
+
| 'MANAGER'
|
|
70
|
+
| 'VICE_PRESIDENT'
|
|
71
|
+
| 'VICE_PRESIDENT_SENIOR'
|
|
72
|
+
|
|
73
|
+
export type Persondegrees =
|
|
74
|
+
| 'ASSOCIATES'
|
|
75
|
+
| 'BACHELORS'
|
|
76
|
+
| 'DOCTORATE'
|
|
77
|
+
| 'HIGH_SCHOOL'
|
|
78
|
+
| 'JURIS_DOCTORATE'
|
|
79
|
+
| 'MASTERS'
|
|
80
|
+
|
|
81
|
+
export type Persongenders = 'MAN' | 'NON_BINARY' | 'UNDISCLOSED' | 'WOMAN'
|
|
82
|
+
|
|
83
|
+
export type Personsources = 'INTERNET' | 'NETWORK' | 'STAFF' | 'WEBSITE'
|
|
84
|
+
|
|
85
|
+
export type Positionstatuses = 'CLOSED' | 'OPEN'
|
|
86
|
+
|
|
87
|
+
export type Referralsources = 'ADMIN' | 'MESSAGE' | 'WEBSITE'
|
|
88
|
+
|
|
89
|
+
export type Timestamp = ColumnType<Date, Date | string, Date | string>
|
|
90
|
+
|
|
91
|
+
export interface Action {
|
|
92
|
+
candidacyId: string | null
|
|
93
|
+
clientId: string | null
|
|
94
|
+
createdAt: Generated<Timestamp>
|
|
95
|
+
data: Json
|
|
96
|
+
id: Generated<string>
|
|
97
|
+
messageId: string | null
|
|
98
|
+
name: Actionnames
|
|
99
|
+
noteId: string | null
|
|
100
|
+
personId: string | null
|
|
101
|
+
positionId: string | null
|
|
102
|
+
referralId: string | null
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface Admin {
|
|
106
|
+
createdAt: Generated<Timestamp>
|
|
107
|
+
id: Generated<string>
|
|
108
|
+
personId: string
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface Campaign {
|
|
112
|
+
channels: ArrayType<Messagechannels> | null
|
|
113
|
+
content: Json
|
|
114
|
+
createdAt: Generated<Timestamp>
|
|
115
|
+
deletedAt: Timestamp | null
|
|
116
|
+
id: Generated<string>
|
|
117
|
+
messageTemplateId: string | null
|
|
118
|
+
status: Generated<Campaignstatuses>
|
|
119
|
+
updatedAt: Generated<Timestamp>
|
|
120
|
+
urlId: Generated<number>
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface CampaignToPosition {
|
|
124
|
+
campaignId: string
|
|
125
|
+
createdAt: Generated<Timestamp>
|
|
126
|
+
positionId: string
|
|
127
|
+
updatedAt: Generated<Timestamp>
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface Candidacy {
|
|
131
|
+
createdAt: Generated<Timestamp>
|
|
132
|
+
currentStatus: Generated<Candidacystatuses | null>
|
|
133
|
+
deletedAt: Timestamp | null
|
|
134
|
+
id: Generated<string>
|
|
135
|
+
personId: string
|
|
136
|
+
positionId: string
|
|
137
|
+
rating: number | null
|
|
138
|
+
ratingNotes: string | null
|
|
139
|
+
source: Generated<Candidacysources | null>
|
|
140
|
+
updatedAt: Generated<Timestamp>
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface CandidacyFeedback {
|
|
144
|
+
candidacyId: string
|
|
145
|
+
content: string
|
|
146
|
+
createdAt: Generated<Timestamp>
|
|
147
|
+
deletedAt: Timestamp | null
|
|
148
|
+
id: Generated<string>
|
|
149
|
+
updatedAt: Generated<Timestamp>
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface CandidacyRatingToTag {
|
|
153
|
+
candidacyId: string
|
|
154
|
+
createdAt: Generated<Timestamp>
|
|
155
|
+
tagId: string
|
|
156
|
+
updatedAt: Generated<Timestamp>
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface Client {
|
|
160
|
+
createdAt: Generated<Timestamp>
|
|
161
|
+
currentStatus: Generated<Clientstatuses | null>
|
|
162
|
+
description: string
|
|
163
|
+
id: Generated<string>
|
|
164
|
+
name: string
|
|
165
|
+
updatedAt: Generated<Timestamp>
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface Contract {
|
|
169
|
+
clientId: string
|
|
170
|
+
createdAt: Generated<Timestamp>
|
|
171
|
+
data: Json
|
|
172
|
+
documentUrl: string
|
|
173
|
+
id: Generated<string>
|
|
174
|
+
positionId: string | null
|
|
175
|
+
updatedAt: Generated<Timestamp>
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface Conversation {
|
|
179
|
+
campaignId: string | null
|
|
180
|
+
channel: Messagechannels
|
|
181
|
+
createdAt: Generated<Timestamp>
|
|
182
|
+
id: Generated<string>
|
|
183
|
+
personId: string
|
|
184
|
+
updatedAt: Generated<Timestamp>
|
|
185
|
+
urlId: Generated<number>
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface DrizzleDrizzleMigrations {
|
|
189
|
+
created_at: Int8 | null
|
|
190
|
+
hash: string
|
|
191
|
+
id: Generated<number>
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export interface Jwt {
|
|
195
|
+
createdAt: Generated<Timestamp>
|
|
196
|
+
id: Generated<number>
|
|
197
|
+
jti: string
|
|
198
|
+
personId: string
|
|
199
|
+
revokedAt: Timestamp | null
|
|
200
|
+
updatedAt: Generated<Timestamp>
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface ListView {
|
|
204
|
+
archivedAt: Timestamp | null
|
|
205
|
+
createdAt: Generated<Timestamp>
|
|
206
|
+
deletedAt: Timestamp | null
|
|
207
|
+
id: Generated<string>
|
|
208
|
+
model: Listviewmodels
|
|
209
|
+
name: string
|
|
210
|
+
positionId: string | null
|
|
211
|
+
query: Json
|
|
212
|
+
updatedAt: Generated<Timestamp>
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface Message {
|
|
216
|
+
adminSenderId: string | null
|
|
217
|
+
conversationId: string
|
|
218
|
+
createdAt: Generated<Timestamp>
|
|
219
|
+
data: Json
|
|
220
|
+
id: Generated<string>
|
|
221
|
+
personId: string
|
|
222
|
+
updatedAt: Generated<Timestamp>
|
|
223
|
+
urlId: Generated<number>
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface MessageTemplate {
|
|
227
|
+
createdAt: Generated<Timestamp>
|
|
228
|
+
data: Json
|
|
229
|
+
deletedAt: Timestamp | null
|
|
230
|
+
id: Generated<string>
|
|
231
|
+
name: string
|
|
232
|
+
updatedAt: Generated<Timestamp>
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface Note {
|
|
236
|
+
adminId: string | null
|
|
237
|
+
candidacyId: string | null
|
|
238
|
+
clientId: string | null
|
|
239
|
+
content: string
|
|
240
|
+
createdAt: Generated<Timestamp>
|
|
241
|
+
deletedAt: Timestamp | null
|
|
242
|
+
id: Generated<string>
|
|
243
|
+
personId: string | null
|
|
244
|
+
updatedAt: Generated<Timestamp>
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface Otp {
|
|
248
|
+
code: string
|
|
249
|
+
createdAt: Generated<Timestamp>
|
|
250
|
+
expiresAt: Timestamp
|
|
251
|
+
id: Generated<number>
|
|
252
|
+
personId: string
|
|
253
|
+
updatedAt: Generated<Timestamp>
|
|
254
|
+
usedAt: Timestamp | null
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface Person {
|
|
258
|
+
additionalEmails: string[] | null
|
|
259
|
+
additionalPhones: string[] | null
|
|
260
|
+
careerLevel: Personcareerlevels | null
|
|
261
|
+
certifications: string[] | null
|
|
262
|
+
city: string | null
|
|
263
|
+
clientId: string | null
|
|
264
|
+
country: string | null
|
|
265
|
+
createdAt: Generated<Timestamp>
|
|
266
|
+
currentEmployer: string | null
|
|
267
|
+
currentSalary: number | null
|
|
268
|
+
currentTitle: string | null
|
|
269
|
+
deactivatedAt: Timestamp | null
|
|
270
|
+
deletedAt: Timestamp | null
|
|
271
|
+
email: string
|
|
272
|
+
emailOptOut: Generated<boolean>
|
|
273
|
+
emailVerified: Generated<boolean>
|
|
274
|
+
expectedSalary: number | null
|
|
275
|
+
firstName: string | null
|
|
276
|
+
gender: Persongenders | null
|
|
277
|
+
graduateInstitution: string | null
|
|
278
|
+
highestDegreeObtained: Persondegrees | null
|
|
279
|
+
howDidYouHearAboutUs: string | null
|
|
280
|
+
id: Generated<string>
|
|
281
|
+
lastName: string | null
|
|
282
|
+
lastSignedInAt: Timestamp | null
|
|
283
|
+
lat: number | null
|
|
284
|
+
linkedInUrl: string | null
|
|
285
|
+
lon: number | null
|
|
286
|
+
openToRelocate: boolean | null
|
|
287
|
+
phone: string | null
|
|
288
|
+
phoneVerified: Generated<boolean>
|
|
289
|
+
photoUrl: string | null
|
|
290
|
+
postalCode: string | null
|
|
291
|
+
resumeUrl: string | null
|
|
292
|
+
signInCount: Generated<number>
|
|
293
|
+
smsOptOut: Generated<boolean>
|
|
294
|
+
source: Generated<Personsources | null>
|
|
295
|
+
sourcePersonId: string | null
|
|
296
|
+
state: string | null
|
|
297
|
+
typeOfGraduateDegree: string | null
|
|
298
|
+
typeOfUndergraduateDegree: string | null
|
|
299
|
+
undergraduateInstitution: string | null
|
|
300
|
+
updatedAt: Generated<Timestamp>
|
|
301
|
+
website: string | null
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export interface PersonClub {
|
|
305
|
+
createdAt: Generated<Timestamp>
|
|
306
|
+
deletedAt: Timestamp | null
|
|
307
|
+
id: Generated<string>
|
|
308
|
+
name: string
|
|
309
|
+
slug: string
|
|
310
|
+
updatedAt: Generated<Timestamp>
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface PersonEnrichment {
|
|
314
|
+
createdAt: Generated<Timestamp>
|
|
315
|
+
data: Json | null
|
|
316
|
+
id: Generated<string>
|
|
317
|
+
likelihood: number | null
|
|
318
|
+
personId: string
|
|
319
|
+
source: Enrichmentsources
|
|
320
|
+
updatedAt: Generated<Timestamp>
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export interface PersonNetwork {
|
|
324
|
+
createdAt: Generated<Timestamp>
|
|
325
|
+
deletedAt: Timestamp | null
|
|
326
|
+
id: Generated<string>
|
|
327
|
+
name: string
|
|
328
|
+
slug: string
|
|
329
|
+
updatedAt: Generated<Timestamp>
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export interface PersonSkill {
|
|
333
|
+
createdAt: Generated<Timestamp>
|
|
334
|
+
deletedAt: Timestamp | null
|
|
335
|
+
id: Generated<string>
|
|
336
|
+
name: string
|
|
337
|
+
slug: string
|
|
338
|
+
updatedAt: Generated<Timestamp>
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export interface PersonToBestPerson {
|
|
342
|
+
bestiedByPersonId: string
|
|
343
|
+
bestPersonId: string
|
|
344
|
+
createdAt: Generated<Timestamp>
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export interface PersonToPersonClub {
|
|
348
|
+
clubId: string
|
|
349
|
+
createdAt: Generated<Timestamp>
|
|
350
|
+
personId: string
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export interface PersonToPersonNetwork {
|
|
354
|
+
createdAt: Generated<Timestamp>
|
|
355
|
+
networkId: string
|
|
356
|
+
personId: string
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export interface PersonToPersonSkill {
|
|
360
|
+
createdAt: Generated<Timestamp>
|
|
361
|
+
personId: string
|
|
362
|
+
skillId: string
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export interface PersonToTag {
|
|
366
|
+
createdAt: Generated<Timestamp>
|
|
367
|
+
personId: string
|
|
368
|
+
tagId: string
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export interface Position {
|
|
372
|
+
clientId: string
|
|
373
|
+
createdAt: Generated<Timestamp>
|
|
374
|
+
currentStatus: Generated<Positionstatuses | null>
|
|
375
|
+
deletedAt: Timestamp | null
|
|
376
|
+
id: Generated<string>
|
|
377
|
+
isHidden: Generated<boolean>
|
|
378
|
+
name: string
|
|
379
|
+
updatedAt: Generated<Timestamp>
|
|
380
|
+
urlId: Generated<number>
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export interface Referral {
|
|
384
|
+
campaignId: string | null
|
|
385
|
+
candidacyId: string
|
|
386
|
+
createdAt: Generated<Timestamp>
|
|
387
|
+
id: Generated<string>
|
|
388
|
+
messageId: string | null
|
|
389
|
+
positionId: string
|
|
390
|
+
referrerId: string
|
|
391
|
+
source: Generated<Referralsources | null>
|
|
392
|
+
updatedAt: Generated<Timestamp>
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export interface ReferralPayout {
|
|
396
|
+
id: Generated<string>
|
|
397
|
+
referralId: string | null
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export interface ReferralToIntroMessage {
|
|
401
|
+
createdAt: Generated<Timestamp>
|
|
402
|
+
messageId: string
|
|
403
|
+
referralId: string
|
|
404
|
+
updatedAt: Generated<Timestamp>
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export interface Sender {
|
|
408
|
+
createdAt: Generated<Timestamp>
|
|
409
|
+
email: string | null
|
|
410
|
+
id: Generated<string>
|
|
411
|
+
name: string
|
|
412
|
+
replyToEmail: string | null
|
|
413
|
+
smsNumber: string | null
|
|
414
|
+
updatedAt: Generated<Timestamp>
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export interface Tag {
|
|
418
|
+
createdAt: Generated<Timestamp>
|
|
419
|
+
id: Generated<string>
|
|
420
|
+
name: string
|
|
421
|
+
slug: string
|
|
422
|
+
updatedAt: Generated<Timestamp>
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export interface WebsiteBlock {
|
|
426
|
+
content: string
|
|
427
|
+
contentType: string
|
|
428
|
+
id: Generated<string>
|
|
429
|
+
name: string
|
|
430
|
+
slug: string
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export interface WebsiteLandingPage {
|
|
434
|
+
content: Generated<Json>
|
|
435
|
+
id: Generated<string>
|
|
436
|
+
meta: Generated<Json>
|
|
437
|
+
name: string
|
|
438
|
+
slug: string
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export interface WebsiteStaticPage {
|
|
442
|
+
content: Generated<Json>
|
|
443
|
+
id: Generated<string>
|
|
444
|
+
meta: Generated<Json>
|
|
445
|
+
name: string
|
|
446
|
+
path: string
|
|
447
|
+
slug: string
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export interface DB {
|
|
451
|
+
Action: Action
|
|
452
|
+
Admin: Admin
|
|
453
|
+
Campaign: Campaign
|
|
454
|
+
CampaignToPosition: CampaignToPosition
|
|
455
|
+
Candidacy: Candidacy
|
|
456
|
+
CandidacyFeedback: CandidacyFeedback
|
|
457
|
+
CandidacyRatingToTag: CandidacyRatingToTag
|
|
458
|
+
Client: Client
|
|
459
|
+
Contract: Contract
|
|
460
|
+
Conversation: Conversation
|
|
461
|
+
'drizzle.__drizzle_migrations': DrizzleDrizzleMigrations
|
|
462
|
+
Jwt: Jwt
|
|
463
|
+
ListView: ListView
|
|
464
|
+
Message: Message
|
|
465
|
+
MessageTemplate: MessageTemplate
|
|
466
|
+
Note: Note
|
|
467
|
+
Otp: Otp
|
|
468
|
+
Person: Person
|
|
469
|
+
PersonClub: PersonClub
|
|
470
|
+
PersonEnrichment: PersonEnrichment
|
|
471
|
+
PersonNetwork: PersonNetwork
|
|
472
|
+
PersonSkill: PersonSkill
|
|
473
|
+
PersonToBestPerson: PersonToBestPerson
|
|
474
|
+
PersonToPersonClub: PersonToPersonClub
|
|
475
|
+
PersonToPersonNetwork: PersonToPersonNetwork
|
|
476
|
+
PersonToPersonSkill: PersonToPersonSkill
|
|
477
|
+
PersonToTag: PersonToTag
|
|
478
|
+
Position: Position
|
|
479
|
+
Referral: Referral
|
|
480
|
+
ReferralPayout: ReferralPayout
|
|
481
|
+
ReferralToIntroMessage: ReferralToIntroMessage
|
|
482
|
+
Sender: Sender
|
|
483
|
+
Tag: Tag
|
|
484
|
+
WebsiteBlock: WebsiteBlock
|
|
485
|
+
WebsiteLandingPage: WebsiteLandingPage
|
|
486
|
+
WebsiteStaticPage: WebsiteStaticPage
|
|
487
|
+
}
|
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type Candidacy from '../../../_schema/Candidacy'
|
|
3
|
-
import type CandidacyFeedback from '../../../_schema/CandidacyFeedback'
|
|
4
|
-
import type Note from '../../../_schema/Note'
|
|
5
|
-
import type Person from '../../../_schema/Person'
|
|
6
|
-
import type Referral from '../../../_schema/Referral'
|
|
7
|
-
import type Tag from '../../../_schema/Tag'
|
|
1
|
+
import type { Candidacy } from '../../../db'
|
|
8
2
|
import { type ListRequest, type ListResponse } from '../../../utils'
|
|
9
3
|
|
|
10
4
|
// detail
|
|
11
5
|
|
|
12
|
-
export type AdminCandidacy = Candidacy
|
|
6
|
+
export type AdminCandidacy = Omit<Candidacy, 'id'> & { id: string }
|
|
13
7
|
export type AdminCandidacyQueryParams = Pick<AdminCandidacy, 'id'>
|
|
14
|
-
export type AdminCandidacyResponse = AdminCandidacy
|
|
15
|
-
referral?: Pick<Referral, 'id'>
|
|
16
|
-
person: Pick<Person, 'id' | 'firstName' | 'lastName' | 'photoUrl'>
|
|
17
|
-
ratingTags?: Pick<Tag, 'id' | 'name'>[]
|
|
18
|
-
actions?: Pick<Action, 'id' | 'name'>[]
|
|
19
|
-
feedbacks?: Pick<CandidacyFeedback, 'id' | 'content'>[]
|
|
20
|
-
notes?: Pick<Note, 'id' | 'content'>[]
|
|
21
|
-
}
|
|
8
|
+
export type AdminCandidacyResponse = AdminCandidacy
|
|
22
9
|
|
|
23
10
|
// list
|
|
24
11
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type Person from '../../../
|
|
2
|
-
import type {
|
|
1
|
+
import type { Person } from '../../../db'
|
|
2
|
+
import type { Insertable, Updateable } from 'kysely'
|
|
3
3
|
import { type ListRequest, type ListResponse } from '../../../utils'
|
|
4
4
|
|
|
5
5
|
// detail
|
|
6
6
|
|
|
7
|
-
export type AdminPerson =
|
|
7
|
+
export type AdminPerson = Person
|
|
8
8
|
export type AdminPersonQueryParams = Pick<AdminPerson, 'id'>
|
|
9
9
|
export type AdminPersonResponse = AdminPerson
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ export type AdminPersonListResponse = ListResponse<AdminPerson>
|
|
|
16
16
|
// create
|
|
17
17
|
|
|
18
18
|
export type AdminPersonCreateInput = Pick<
|
|
19
|
-
|
|
19
|
+
Insertable<AdminPerson>,
|
|
20
20
|
'firstName' | 'lastName' | 'email' | 'phone' | 'linkedInUrl' | 'photoUrl'
|
|
21
21
|
>
|
|
22
22
|
export type AdminPersonCreateResponse = Pick<AdminPerson, 'id'>
|
|
@@ -24,7 +24,7 @@ export type AdminPersonCreateResponse = Pick<AdminPerson, 'id'>
|
|
|
24
24
|
// update
|
|
25
25
|
|
|
26
26
|
export type AdminPersonUpdateInput = Pick<
|
|
27
|
-
|
|
27
|
+
Updateable<AdminPerson>,
|
|
28
28
|
'firstName' | 'lastName' | 'email' | 'phone' | 'linkedInUrl' | 'photoUrl'
|
|
29
29
|
>
|
|
30
30
|
|
|
@@ -1,30 +1,22 @@
|
|
|
1
|
-
import type WebsiteStaticPage from '../../../
|
|
2
|
-
import type {
|
|
1
|
+
import type { WebsiteStaticPage } from '../../../db'
|
|
2
|
+
import type { Updateable } from 'kysely'
|
|
3
3
|
import { type ListResponse } from '../../../utils'
|
|
4
4
|
|
|
5
5
|
// detail
|
|
6
6
|
|
|
7
|
-
export type AdminWebsiteStaticPage =
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export type AdminWebsiteStaticPageQueryParams = Pick<
|
|
11
|
-
AdminWebsiteStaticPage,
|
|
12
|
-
'slug'
|
|
13
|
-
>
|
|
7
|
+
export type AdminWebsiteStaticPage = WebsiteStaticPage
|
|
8
|
+
export type AdminWebsiteStaticPageQueryParams = Pick<WebsiteStaticPage, 'slug'>
|
|
14
9
|
export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
|
|
15
10
|
|
|
16
11
|
// list
|
|
17
12
|
|
|
18
|
-
export type AdminWebsiteStaticPageList = ListResponse<
|
|
19
|
-
export type AdminWebsiteStaticPageListInput = Pick<
|
|
20
|
-
AdminWebsiteStaticPage,
|
|
21
|
-
'slug'
|
|
22
|
-
>
|
|
13
|
+
export type AdminWebsiteStaticPageList = ListResponse<WebsiteStaticPage>
|
|
14
|
+
export type AdminWebsiteStaticPageListInput = Pick<WebsiteStaticPage, 'slug'>
|
|
23
15
|
export type AdminWebsiteStaticPageListResponse = AdminWebsiteStaticPageList
|
|
24
16
|
|
|
25
17
|
// update
|
|
26
18
|
|
|
27
19
|
export type AdminWebsiteStaticPageUpdateInput = Pick<
|
|
28
|
-
|
|
20
|
+
Updateable<WebsiteStaticPage>,
|
|
29
21
|
'content' | 'meta'
|
|
30
22
|
>
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { CandidacyId } from './Candidacy';
|
|
5
|
-
import type { ClientId } from './Client';
|
|
6
|
-
import type { MessageId } from './Message';
|
|
7
|
-
import type { NoteId } from './Note';
|
|
8
|
-
import type { PersonId } from './Person';
|
|
9
|
-
import type { PositionId } from './Position';
|
|
10
|
-
import type { ReferralId } from './Referral';
|
|
11
|
-
import type { default as ActionNames } from './ActionNames';
|
|
12
|
-
|
|
13
|
-
/** Identifier type for public.Action */
|
|
14
|
-
export type ActionId = string & { __brand: 'ActionId' };
|
|
15
|
-
|
|
16
|
-
/** Represents the table public.Action */
|
|
17
|
-
export default interface Action {
|
|
18
|
-
id: ActionId;
|
|
19
|
-
|
|
20
|
-
candidacyId: CandidacyId | null;
|
|
21
|
-
|
|
22
|
-
clientId: ClientId | null;
|
|
23
|
-
|
|
24
|
-
messageId: MessageId | null;
|
|
25
|
-
|
|
26
|
-
noteId: NoteId | null;
|
|
27
|
-
|
|
28
|
-
personId: PersonId | null;
|
|
29
|
-
|
|
30
|
-
positionId: PositionId | null;
|
|
31
|
-
|
|
32
|
-
referralId: ReferralId | null;
|
|
33
|
-
|
|
34
|
-
data: unknown;
|
|
35
|
-
|
|
36
|
-
createdAt: Date;
|
|
37
|
-
|
|
38
|
-
name: ActionNames;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/** Represents the initializer for the table public.Action */
|
|
42
|
-
export interface ActionInitializer {
|
|
43
|
-
/** Default value: gen_random_uuid() */
|
|
44
|
-
id?: ActionId;
|
|
45
|
-
|
|
46
|
-
candidacyId?: CandidacyId | null;
|
|
47
|
-
|
|
48
|
-
clientId?: ClientId | null;
|
|
49
|
-
|
|
50
|
-
messageId?: MessageId | null;
|
|
51
|
-
|
|
52
|
-
noteId?: NoteId | null;
|
|
53
|
-
|
|
54
|
-
personId?: PersonId | null;
|
|
55
|
-
|
|
56
|
-
positionId?: PositionId | null;
|
|
57
|
-
|
|
58
|
-
referralId?: ReferralId | null;
|
|
59
|
-
|
|
60
|
-
data: unknown;
|
|
61
|
-
|
|
62
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
63
|
-
createdAt?: Date;
|
|
64
|
-
|
|
65
|
-
name: ActionNames;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** Represents the mutator for the table public.Action */
|
|
69
|
-
export interface ActionMutator {
|
|
70
|
-
id?: ActionId;
|
|
71
|
-
|
|
72
|
-
candidacyId?: CandidacyId | null;
|
|
73
|
-
|
|
74
|
-
clientId?: ClientId | null;
|
|
75
|
-
|
|
76
|
-
messageId?: MessageId | null;
|
|
77
|
-
|
|
78
|
-
noteId?: NoteId | null;
|
|
79
|
-
|
|
80
|
-
personId?: PersonId | null;
|
|
81
|
-
|
|
82
|
-
positionId?: PositionId | null;
|
|
83
|
-
|
|
84
|
-
referralId?: ReferralId | null;
|
|
85
|
-
|
|
86
|
-
data?: unknown;
|
|
87
|
-
|
|
88
|
-
createdAt?: Date;
|
|
89
|
-
|
|
90
|
-
name?: ActionNames;
|
|
91
|
-
}
|