@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.
Files changed (57) hide show
  1. package/dist/src/types/db.js +6 -0
  2. package/package.json +4 -1
  3. package/src/types/db.ts +487 -0
  4. package/src/types/models/admin/candidacies/index.ts +3 -16
  5. package/src/types/models/admin/persons/index.ts +5 -5
  6. package/src/types/models/admin/website/index.ts +7 -15
  7. package/src/types/models/auth/index.ts +1 -2
  8. package/src/types/_schema/Action.ts +0 -91
  9. package/src/types/_schema/ActionNames.ts +0 -11
  10. package/src/types/_schema/Admin.ts +0 -36
  11. package/src/types/_schema/Campaign.ts +0 -77
  12. package/src/types/_schema/CampaignStatuses.ts +0 -10
  13. package/src/types/_schema/CampaignToPosition.ts +0 -40
  14. package/src/types/_schema/Candidacy.ts +0 -84
  15. package/src/types/_schema/CandidacyFeedback.ts +0 -55
  16. package/src/types/_schema/CandidacyRatingToTag.ts +0 -40
  17. package/src/types/_schema/CandidacySources.ts +0 -11
  18. package/src/types/_schema/CandidacyStatuses.ts +0 -14
  19. package/src/types/_schema/Client.ts +0 -56
  20. package/src/types/_schema/ClientStatuses.ts +0 -10
  21. package/src/types/_schema/Contract.ts +0 -62
  22. package/src/types/_schema/Conversation.ts +0 -64
  23. package/src/types/_schema/EnrichmentSources.ts +0 -8
  24. package/src/types/_schema/Jwt.ts +0 -55
  25. package/src/types/_schema/ListView.ts +0 -74
  26. package/src/types/_schema/ListViewModels.ts +0 -11
  27. package/src/types/_schema/Message.ts +0 -70
  28. package/src/types/_schema/MessageChannels.ts +0 -9
  29. package/src/types/_schema/MessageTemplate.ts +0 -53
  30. package/src/types/_schema/Note.ts +0 -76
  31. package/src/types/_schema/Otp.ts +0 -61
  32. package/src/types/_schema/Person.ts +0 -293
  33. package/src/types/_schema/PersonCareerLevels.ts +0 -13
  34. package/src/types/_schema/PersonClub.ts +0 -53
  35. package/src/types/_schema/PersonDegrees.ts +0 -13
  36. package/src/types/_schema/PersonEnrichment.ts +0 -62
  37. package/src/types/_schema/PersonGenders.ts +0 -11
  38. package/src/types/_schema/PersonNetwork.ts +0 -53
  39. package/src/types/_schema/PersonSkill.ts +0 -53
  40. package/src/types/_schema/PersonSources.ts +0 -11
  41. package/src/types/_schema/PersonToBestPerson.ts +0 -32
  42. package/src/types/_schema/PersonToPersonClub.ts +0 -33
  43. package/src/types/_schema/PersonToPersonNetwork.ts +0 -33
  44. package/src/types/_schema/PersonToPersonSkill.ts +0 -33
  45. package/src/types/_schema/PersonToTag.ts +0 -33
  46. package/src/types/_schema/Position.ts +0 -77
  47. package/src/types/_schema/PositionStatuses.ts +0 -9
  48. package/src/types/_schema/PublicSchema.ts +0 -110
  49. package/src/types/_schema/Referral.ts +0 -78
  50. package/src/types/_schema/ReferralPayout.ts +0 -29
  51. package/src/types/_schema/ReferralSources.ts +0 -10
  52. package/src/types/_schema/ReferralToIntroMessage.ts +0 -40
  53. package/src/types/_schema/Sender.ts +0 -59
  54. package/src/types/_schema/Tag.ts +0 -47
  55. package/src/types/_schema/WebsiteBlock.ts +0 -45
  56. package/src/types/_schema/WebsiteLandingPage.ts +0 -47
  57. package/src/types/_schema/WebsiteStaticPage.ts +0 -53
@@ -1,74 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- import type { default as ListViewModels } from './ListViewModels';
5
- import type { PositionId } from './Position';
6
-
7
- /** Identifier type for public.ListView */
8
- export type ListViewId = string & { __brand: 'ListViewId' };
9
-
10
- /** Represents the table public.ListView */
11
- export default interface ListView {
12
- id: ListViewId;
13
-
14
- model: ListViewModels;
15
-
16
- name: string;
17
-
18
- query: unknown;
19
-
20
- positionId: PositionId | null;
21
-
22
- archivedAt: Date | null;
23
-
24
- deletedAt: Date | null;
25
-
26
- createdAt: Date;
27
-
28
- updatedAt: Date;
29
- }
30
-
31
- /** Represents the initializer for the table public.ListView */
32
- export interface ListViewInitializer {
33
- /** Default value: gen_random_uuid() */
34
- id?: ListViewId;
35
-
36
- model: ListViewModels;
37
-
38
- name: string;
39
-
40
- query: unknown;
41
-
42
- positionId?: PositionId | null;
43
-
44
- archivedAt?: Date | null;
45
-
46
- deletedAt?: Date | null;
47
-
48
- /** Default value: CURRENT_TIMESTAMP */
49
- createdAt?: Date;
50
-
51
- /** Default value: CURRENT_TIMESTAMP */
52
- updatedAt?: Date;
53
- }
54
-
55
- /** Represents the mutator for the table public.ListView */
56
- export interface ListViewMutator {
57
- id?: ListViewId;
58
-
59
- model?: ListViewModels;
60
-
61
- name?: string;
62
-
63
- query?: unknown;
64
-
65
- positionId?: PositionId | null;
66
-
67
- archivedAt?: Date | null;
68
-
69
- deletedAt?: Date | null;
70
-
71
- createdAt?: Date;
72
-
73
- updatedAt?: Date;
74
- }
@@ -1,11 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- /** Represents the enum public.ListViewModels */
5
- type ListViewModels =
6
- | 'PERSON'
7
- | 'POSITION'
8
- | 'CANDIDACY'
9
- | 'REFERRAL';
10
-
11
- export default ListViewModels;
@@ -1,70 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- import type { SenderId } from './Sender';
5
- import type { PersonId } from './Person';
6
- import type { ConversationId } from './Conversation';
7
-
8
- /** Identifier type for public.Message */
9
- export type MessageId = string & { __brand: 'MessageId' };
10
-
11
- /** Represents the table public.Message */
12
- export default interface Message {
13
- id: MessageId;
14
-
15
- urlId: number;
16
-
17
- data: unknown;
18
-
19
- adminSenderId: SenderId | null;
20
-
21
- personId: PersonId;
22
-
23
- conversationId: ConversationId;
24
-
25
- createdAt: Date;
26
-
27
- updatedAt: Date;
28
- }
29
-
30
- /** Represents the initializer for the table public.Message */
31
- export interface MessageInitializer {
32
- /** Default value: gen_random_uuid() */
33
- id?: MessageId;
34
-
35
- /** Default value: nextval('"Message_urlId_seq"'::regclass) */
36
- urlId?: number;
37
-
38
- data: unknown;
39
-
40
- adminSenderId?: SenderId | null;
41
-
42
- personId: PersonId;
43
-
44
- conversationId: ConversationId;
45
-
46
- /** Default value: CURRENT_TIMESTAMP */
47
- createdAt?: Date;
48
-
49
- /** Default value: CURRENT_TIMESTAMP */
50
- updatedAt?: Date;
51
- }
52
-
53
- /** Represents the mutator for the table public.Message */
54
- export interface MessageMutator {
55
- id?: MessageId;
56
-
57
- urlId?: number;
58
-
59
- data?: unknown;
60
-
61
- adminSenderId?: SenderId | null;
62
-
63
- personId?: PersonId;
64
-
65
- conversationId?: ConversationId;
66
-
67
- createdAt?: Date;
68
-
69
- updatedAt?: Date;
70
- }
@@ -1,9 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- /** Represents the enum public.MessageChannels */
5
- type MessageChannels =
6
- | 'EMAIL'
7
- | 'SMS';
8
-
9
- export default MessageChannels;
@@ -1,53 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- /** Identifier type for public.MessageTemplate */
5
- export type MessageTemplateId = string & { __brand: 'MessageTemplateId' };
6
-
7
- /** Represents the table public.MessageTemplate */
8
- export default interface MessageTemplate {
9
- id: MessageTemplateId;
10
-
11
- name: string;
12
-
13
- data: unknown;
14
-
15
- deletedAt: Date | null;
16
-
17
- createdAt: Date;
18
-
19
- updatedAt: Date;
20
- }
21
-
22
- /** Represents the initializer for the table public.MessageTemplate */
23
- export interface MessageTemplateInitializer {
24
- /** Default value: gen_random_uuid() */
25
- id?: MessageTemplateId;
26
-
27
- name: string;
28
-
29
- data: unknown;
30
-
31
- deletedAt?: Date | null;
32
-
33
- /** Default value: CURRENT_TIMESTAMP */
34
- createdAt?: Date;
35
-
36
- /** Default value: CURRENT_TIMESTAMP */
37
- updatedAt?: Date;
38
- }
39
-
40
- /** Represents the mutator for the table public.MessageTemplate */
41
- export interface MessageTemplateMutator {
42
- id?: MessageTemplateId;
43
-
44
- name?: string;
45
-
46
- data?: unknown;
47
-
48
- deletedAt?: Date | null;
49
-
50
- createdAt?: Date;
51
-
52
- updatedAt?: Date;
53
- }
@@ -1,76 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- import type { AdminId } from './Admin';
5
- import type { CandidacyId } from './Candidacy';
6
- import type { PersonId } from './Person';
7
- import type { ClientId } from './Client';
8
-
9
- /** Identifier type for public.Note */
10
- export type NoteId = string & { __brand: 'NoteId' };
11
-
12
- /** Represents the table public.Note */
13
- export default interface Note {
14
- id: NoteId;
15
-
16
- content: string;
17
-
18
- adminId: AdminId | null;
19
-
20
- candidacyId: CandidacyId | null;
21
-
22
- personId: PersonId | null;
23
-
24
- clientId: ClientId | null;
25
-
26
- deletedAt: Date | null;
27
-
28
- createdAt: Date;
29
-
30
- updatedAt: Date;
31
- }
32
-
33
- /** Represents the initializer for the table public.Note */
34
- export interface NoteInitializer {
35
- /** Default value: gen_random_uuid() */
36
- id?: NoteId;
37
-
38
- content: string;
39
-
40
- adminId?: AdminId | null;
41
-
42
- candidacyId?: CandidacyId | null;
43
-
44
- personId?: PersonId | null;
45
-
46
- clientId?: ClientId | null;
47
-
48
- deletedAt?: Date | null;
49
-
50
- /** Default value: CURRENT_TIMESTAMP */
51
- createdAt?: Date;
52
-
53
- /** Default value: CURRENT_TIMESTAMP */
54
- updatedAt?: Date;
55
- }
56
-
57
- /** Represents the mutator for the table public.Note */
58
- export interface NoteMutator {
59
- id?: NoteId;
60
-
61
- content?: string;
62
-
63
- adminId?: AdminId | null;
64
-
65
- candidacyId?: CandidacyId | null;
66
-
67
- personId?: PersonId | null;
68
-
69
- clientId?: ClientId | null;
70
-
71
- deletedAt?: Date | null;
72
-
73
- createdAt?: Date;
74
-
75
- updatedAt?: Date;
76
- }
@@ -1,61 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- import type { PersonId } from './Person';
5
-
6
- /** Identifier type for public.Otp */
7
- export type OtpId = number & { __brand: 'OtpId' };
8
-
9
- /** Represents the table public.Otp */
10
- export default interface Otp {
11
- id: OtpId;
12
-
13
- code: string;
14
-
15
- usedAt: Date | null;
16
-
17
- expiresAt: Date;
18
-
19
- createdAt: Date;
20
-
21
- updatedAt: Date;
22
-
23
- personId: PersonId;
24
- }
25
-
26
- /** Represents the initializer for the table public.Otp */
27
- export interface OtpInitializer {
28
- /** Default value: nextval('"Otp_id_seq"'::regclass) */
29
- id?: OtpId;
30
-
31
- code: string;
32
-
33
- usedAt?: Date | null;
34
-
35
- expiresAt: Date;
36
-
37
- /** Default value: CURRENT_TIMESTAMP */
38
- createdAt?: Date;
39
-
40
- /** Default value: CURRENT_TIMESTAMP */
41
- updatedAt?: Date;
42
-
43
- personId: PersonId;
44
- }
45
-
46
- /** Represents the mutator for the table public.Otp */
47
- export interface OtpMutator {
48
- id?: OtpId;
49
-
50
- code?: string;
51
-
52
- usedAt?: Date | null;
53
-
54
- expiresAt?: Date;
55
-
56
- createdAt?: Date;
57
-
58
- updatedAt?: Date;
59
-
60
- personId?: PersonId;
61
- }
@@ -1,293 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- import type { default as PersonSources } from './PersonSources';
5
- import type { default as PersonCareerLevels } from './PersonCareerLevels';
6
- import type { default as PersonDegrees } from './PersonDegrees';
7
- import type { default as PersonGenders } from './PersonGenders';
8
- import type { ClientId } from './Client';
9
-
10
- /** Identifier type for public.Person */
11
- export type PersonId = string & { __brand: 'PersonId' };
12
-
13
- /** Represents the table public.Person */
14
- export default interface Person {
15
- id: PersonId;
16
-
17
- email: string;
18
-
19
- emailVerified: boolean;
20
-
21
- firstName: string | null;
22
-
23
- lastName: string | null;
24
-
25
- linkedInUrl: string | null;
26
-
27
- phone: string | null;
28
-
29
- phoneVerified: boolean;
30
-
31
- emailOptOut: boolean;
32
-
33
- smsOptOut: boolean;
34
-
35
- resumeUrl: string | null;
36
-
37
- photoUrl: string | null;
38
-
39
- lat: number | null;
40
-
41
- lon: number | null;
42
-
43
- city: string | null;
44
-
45
- state: string | null;
46
-
47
- postalCode: string | null;
48
-
49
- country: string | null;
50
-
51
- additionalEmails: string[] | null;
52
-
53
- additionalPhones: string[] | null;
54
-
55
- source: PersonSources | null;
56
-
57
- website: string | null;
58
-
59
- currentSalary: number | null;
60
-
61
- expectedSalary: number | null;
62
-
63
- currentEmployer: string | null;
64
-
65
- currentTitle: string | null;
66
-
67
- careerLevel: PersonCareerLevels | null;
68
-
69
- certifications: string[] | null;
70
-
71
- openToRelocate: boolean | null;
72
-
73
- highestDegreeObtained: PersonDegrees | null;
74
-
75
- undergraduateInstitution: string | null;
76
-
77
- typeOfUndergraduateDegree: string | null;
78
-
79
- graduateInstitution: string | null;
80
-
81
- typeOfGraduateDegree: string | null;
82
-
83
- gender: PersonGenders | null;
84
-
85
- howDidYouHearAboutUs: string | null;
86
-
87
- sourcePersonId: PersonId | null;
88
-
89
- deactivatedAt: Date | null;
90
-
91
- lastSignedInAt: Date | null;
92
-
93
- signInCount: number;
94
-
95
- clientId: ClientId | null;
96
-
97
- deletedAt: Date | null;
98
-
99
- createdAt: Date;
100
-
101
- updatedAt: Date;
102
- }
103
-
104
- /** Represents the initializer for the table public.Person */
105
- export interface PersonInitializer {
106
- /** Default value: gen_random_uuid() */
107
- id?: PersonId;
108
-
109
- email: string;
110
-
111
- /** Default value: false */
112
- emailVerified?: boolean;
113
-
114
- firstName?: string | null;
115
-
116
- lastName?: string | null;
117
-
118
- linkedInUrl?: string | null;
119
-
120
- phone?: string | null;
121
-
122
- /** Default value: false */
123
- phoneVerified?: boolean;
124
-
125
- /** Default value: false */
126
- emailOptOut?: boolean;
127
-
128
- /** Default value: false */
129
- smsOptOut?: boolean;
130
-
131
- resumeUrl?: string | null;
132
-
133
- photoUrl?: string | null;
134
-
135
- lat?: number | null;
136
-
137
- lon?: number | null;
138
-
139
- city?: string | null;
140
-
141
- state?: string | null;
142
-
143
- postalCode?: string | null;
144
-
145
- country?: string | null;
146
-
147
- additionalEmails?: string[] | null;
148
-
149
- additionalPhones?: string[] | null;
150
-
151
- /** Default value: 'STAFF'::"PersonSources" */
152
- source?: PersonSources | null;
153
-
154
- website?: string | null;
155
-
156
- currentSalary?: number | null;
157
-
158
- expectedSalary?: number | null;
159
-
160
- currentEmployer?: string | null;
161
-
162
- currentTitle?: string | null;
163
-
164
- careerLevel?: PersonCareerLevels | null;
165
-
166
- certifications?: string[] | null;
167
-
168
- openToRelocate?: boolean | null;
169
-
170
- highestDegreeObtained?: PersonDegrees | null;
171
-
172
- undergraduateInstitution?: string | null;
173
-
174
- typeOfUndergraduateDegree?: string | null;
175
-
176
- graduateInstitution?: string | null;
177
-
178
- typeOfGraduateDegree?: string | null;
179
-
180
- gender?: PersonGenders | null;
181
-
182
- howDidYouHearAboutUs?: string | null;
183
-
184
- sourcePersonId?: PersonId | null;
185
-
186
- deactivatedAt?: Date | null;
187
-
188
- lastSignedInAt?: Date | null;
189
-
190
- /** Default value: 0 */
191
- signInCount?: number;
192
-
193
- clientId?: ClientId | null;
194
-
195
- deletedAt?: Date | null;
196
-
197
- /** Default value: CURRENT_TIMESTAMP */
198
- createdAt?: Date;
199
-
200
- /** Default value: CURRENT_TIMESTAMP */
201
- updatedAt?: Date;
202
- }
203
-
204
- /** Represents the mutator for the table public.Person */
205
- export interface PersonMutator {
206
- id?: PersonId;
207
-
208
- email?: string;
209
-
210
- emailVerified?: boolean;
211
-
212
- firstName?: string | null;
213
-
214
- lastName?: string | null;
215
-
216
- linkedInUrl?: string | null;
217
-
218
- phone?: string | null;
219
-
220
- phoneVerified?: boolean;
221
-
222
- emailOptOut?: boolean;
223
-
224
- smsOptOut?: boolean;
225
-
226
- resumeUrl?: string | null;
227
-
228
- photoUrl?: string | null;
229
-
230
- lat?: number | null;
231
-
232
- lon?: number | null;
233
-
234
- city?: string | null;
235
-
236
- state?: string | null;
237
-
238
- postalCode?: string | null;
239
-
240
- country?: string | null;
241
-
242
- additionalEmails?: string[] | null;
243
-
244
- additionalPhones?: string[] | null;
245
-
246
- source?: PersonSources | null;
247
-
248
- website?: string | null;
249
-
250
- currentSalary?: number | null;
251
-
252
- expectedSalary?: number | null;
253
-
254
- currentEmployer?: string | null;
255
-
256
- currentTitle?: string | null;
257
-
258
- careerLevel?: PersonCareerLevels | null;
259
-
260
- certifications?: string[] | null;
261
-
262
- openToRelocate?: boolean | null;
263
-
264
- highestDegreeObtained?: PersonDegrees | null;
265
-
266
- undergraduateInstitution?: string | null;
267
-
268
- typeOfUndergraduateDegree?: string | null;
269
-
270
- graduateInstitution?: string | null;
271
-
272
- typeOfGraduateDegree?: string | null;
273
-
274
- gender?: PersonGenders | null;
275
-
276
- howDidYouHearAboutUs?: string | null;
277
-
278
- sourcePersonId?: PersonId | null;
279
-
280
- deactivatedAt?: Date | null;
281
-
282
- lastSignedInAt?: Date | null;
283
-
284
- signInCount?: number;
285
-
286
- clientId?: ClientId | null;
287
-
288
- deletedAt?: Date | null;
289
-
290
- createdAt?: Date;
291
-
292
- updatedAt?: Date;
293
- }
@@ -1,13 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- /** Represents the enum public.PersonCareerLevels */
5
- type PersonCareerLevels =
6
- | 'EXPERIENCED'
7
- | 'MANAGER'
8
- | 'DIRECTOR'
9
- | 'VICE_PRESIDENT'
10
- | 'VICE_PRESIDENT_SENIOR'
11
- | 'CHIEF_SUITE';
12
-
13
- export default PersonCareerLevels;
@@ -1,53 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- /** Identifier type for public.PersonClub */
5
- export type PersonClubId = string & { __brand: 'PersonClubId' };
6
-
7
- /** Represents the table public.PersonClub */
8
- export default interface PersonClub {
9
- id: PersonClubId;
10
-
11
- slug: string;
12
-
13
- name: string;
14
-
15
- deletedAt: Date | null;
16
-
17
- createdAt: Date;
18
-
19
- updatedAt: Date;
20
- }
21
-
22
- /** Represents the initializer for the table public.PersonClub */
23
- export interface PersonClubInitializer {
24
- /** Default value: gen_random_uuid() */
25
- id?: PersonClubId;
26
-
27
- slug: string;
28
-
29
- name: string;
30
-
31
- deletedAt?: Date | null;
32
-
33
- /** Default value: CURRENT_TIMESTAMP */
34
- createdAt?: Date;
35
-
36
- /** Default value: CURRENT_TIMESTAMP */
37
- updatedAt?: Date;
38
- }
39
-
40
- /** Represents the mutator for the table public.PersonClub */
41
- export interface PersonClubMutator {
42
- id?: PersonClubId;
43
-
44
- slug?: string;
45
-
46
- name?: string;
47
-
48
- deletedAt?: Date | null;
49
-
50
- createdAt?: Date;
51
-
52
- updatedAt?: Date;
53
- }