@the-inkwell/shared 0.1.71 → 0.1.73

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 (55) hide show
  1. package/package.json +1 -4
  2. package/src/types/_schema/Action.ts +91 -0
  3. package/src/types/_schema/ActionNames.ts +11 -0
  4. package/src/types/_schema/Admin.ts +36 -0
  5. package/src/types/_schema/Campaign.ts +77 -0
  6. package/src/types/_schema/CampaignStatuses.ts +10 -0
  7. package/src/types/_schema/CampaignToPosition.ts +40 -0
  8. package/src/types/_schema/Candidacy.ts +84 -0
  9. package/src/types/_schema/CandidacyFeedback.ts +55 -0
  10. package/src/types/_schema/CandidacyRatingToTag.ts +40 -0
  11. package/src/types/_schema/CandidacySources.ts +11 -0
  12. package/src/types/_schema/CandidacyStatuses.ts +14 -0
  13. package/src/types/_schema/Client.ts +56 -0
  14. package/src/types/_schema/ClientStatuses.ts +10 -0
  15. package/src/types/_schema/Contract.ts +62 -0
  16. package/src/types/_schema/Conversation.ts +64 -0
  17. package/src/types/_schema/EnrichmentSources.ts +8 -0
  18. package/src/types/_schema/Jwt.ts +55 -0
  19. package/src/types/_schema/ListView.ts +74 -0
  20. package/src/types/_schema/ListViewModels.ts +11 -0
  21. package/src/types/_schema/Message.ts +70 -0
  22. package/src/types/_schema/MessageChannels.ts +9 -0
  23. package/src/types/_schema/MessageTemplate.ts +53 -0
  24. package/src/types/_schema/Note.ts +76 -0
  25. package/src/types/_schema/Otp.ts +61 -0
  26. package/src/types/_schema/Person.ts +293 -0
  27. package/src/types/_schema/PersonCareerLevels.ts +13 -0
  28. package/src/types/_schema/PersonClub.ts +53 -0
  29. package/src/types/_schema/PersonDegrees.ts +13 -0
  30. package/src/types/_schema/PersonEnrichment.ts +62 -0
  31. package/src/types/_schema/PersonGenders.ts +11 -0
  32. package/src/types/_schema/PersonNetwork.ts +53 -0
  33. package/src/types/_schema/PersonSkill.ts +53 -0
  34. package/src/types/_schema/PersonSources.ts +11 -0
  35. package/src/types/_schema/PersonToBestPerson.ts +32 -0
  36. package/src/types/_schema/PersonToPersonClub.ts +33 -0
  37. package/src/types/_schema/PersonToPersonNetwork.ts +33 -0
  38. package/src/types/_schema/PersonToPersonSkill.ts +33 -0
  39. package/src/types/_schema/PersonToTag.ts +33 -0
  40. package/src/types/_schema/Position.ts +77 -0
  41. package/src/types/_schema/PositionStatuses.ts +9 -0
  42. package/src/types/_schema/Referral.ts +78 -0
  43. package/src/types/_schema/ReferralPayout.ts +29 -0
  44. package/src/types/_schema/ReferralSources.ts +10 -0
  45. package/src/types/_schema/ReferralToIntroMessage.ts +40 -0
  46. package/src/types/_schema/Sender.ts +59 -0
  47. package/src/types/_schema/Tag.ts +47 -0
  48. package/src/types/_schema/WebsiteBlock.ts +45 -0
  49. package/src/types/_schema/WebsiteLandingPage.ts +47 -0
  50. package/src/types/_schema/WebsiteStaticPage.ts +53 -0
  51. package/src/types/models/admin/candidacies/index.ts +16 -3
  52. package/src/types/models/admin/persons/index.ts +4 -4
  53. package/src/types/models/admin/website/index.ts +3 -3
  54. package/src/types/models/auth/index.ts +4 -3
  55. package/src/types/db.ts +0 -487
package/src/types/db.ts DELETED
@@ -1,487 +0,0 @@
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
- }