@the-inkwell/shared 0.1.68 → 0.1.69
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/_schema/PublicSchema.js +4 -0
- package/package.json +1 -1
- package/src/types/_schema/Action.ts +16 -61
- package/src/types/_schema/Admin.ts +8 -21
- package/src/types/_schema/Campaign.ts +14 -54
- package/src/types/_schema/CampaignToPosition.ts +9 -26
- package/src/types/_schema/Candidacy.ts +15 -59
- package/src/types/_schema/CandidacyFeedback.ts +11 -37
- package/src/types/_schema/CandidacyRatingToTag.ts +9 -26
- package/src/types/_schema/Client.ts +11 -38
- package/src/types/_schema/Contract.ts +12 -42
- package/src/types/_schema/Conversation.ts +12 -43
- package/src/types/_schema/Jwt.ts +11 -37
- package/src/types/_schema/ListView.ts +14 -52
- package/src/types/_schema/Message.ts +13 -48
- package/src/types/_schema/MessageTemplate.ts +12 -37
- package/src/types/_schema/Note.ts +14 -52
- package/src/types/_schema/Otp.ts +12 -42
- package/src/types/_schema/Person.ts +49 -233
- package/src/types/_schema/PersonClub.ts +12 -37
- package/src/types/_schema/PersonEnrichment.ts +12 -42
- package/src/types/_schema/PersonNetwork.ts +12 -37
- package/src/types/_schema/PersonSkill.ts +12 -37
- package/src/types/_schema/PersonToBestPerson.ts +8 -20
- package/src/types/_schema/PersonToPersonClub.ts +8 -20
- package/src/types/_schema/PersonToPersonNetwork.ts +8 -20
- package/src/types/_schema/PersonToPersonSkill.ts +8 -20
- package/src/types/_schema/PersonToTag.ts +8 -20
- package/src/types/_schema/Position.ts +14 -55
- package/src/types/_schema/PublicSchema.ts +110 -0
- package/src/types/_schema/Referral.ts +14 -53
- package/src/types/_schema/ReferralPayout.ts +7 -15
- package/src/types/_schema/ReferralToIntroMessage.ts +9 -26
- package/src/types/_schema/Sender.ts +13 -42
- package/src/types/_schema/Tag.ts +11 -32
- package/src/types/_schema/WebsiteBlock.ts +11 -30
- package/src/types/_schema/WebsiteLandingPage.ts +11 -32
- package/src/types/_schema/WebsiteStaticPage.ts +12 -37
- package/src/types/models/admin/persons/index.ts +3 -4
- package/src/types/models/admin/website/index.ts +5 -3
|
@@ -6,288 +6,104 @@ import type { default as PersonCareerLevels } from './PersonCareerLevels';
|
|
|
6
6
|
import type { default as PersonDegrees } from './PersonDegrees';
|
|
7
7
|
import type { default as PersonGenders } from './PersonGenders';
|
|
8
8
|
import type { ClientId } from './Client';
|
|
9
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
9
10
|
|
|
10
11
|
/** Identifier type for public.Person */
|
|
11
12
|
export type PersonId = string & { __brand: 'PersonId' };
|
|
12
13
|
|
|
13
14
|
/** Represents the table public.Person */
|
|
14
|
-
export default interface
|
|
15
|
-
id: PersonId
|
|
15
|
+
export default interface PersonTable {
|
|
16
|
+
id: ColumnType<PersonId, PersonId | undefined, PersonId>;
|
|
16
17
|
|
|
17
|
-
email: string
|
|
18
|
+
email: ColumnType<string, string, string>;
|
|
18
19
|
|
|
19
|
-
emailVerified: boolean
|
|
20
|
+
emailVerified: ColumnType<boolean, boolean | undefined, boolean>;
|
|
20
21
|
|
|
21
|
-
firstName: string | null
|
|
22
|
+
firstName: ColumnType<string | null, string | null, string | null>;
|
|
22
23
|
|
|
23
|
-
lastName: string | null
|
|
24
|
+
lastName: ColumnType<string | null, string | null, string | null>;
|
|
24
25
|
|
|
25
|
-
linkedInUrl: string | null
|
|
26
|
+
linkedInUrl: ColumnType<string | null, string | null, string | null>;
|
|
26
27
|
|
|
27
|
-
phone: string | null
|
|
28
|
+
phone: ColumnType<string | null, string | null, string | null>;
|
|
28
29
|
|
|
29
|
-
phoneVerified: boolean
|
|
30
|
+
phoneVerified: ColumnType<boolean, boolean | undefined, boolean>;
|
|
30
31
|
|
|
31
|
-
emailOptOut: boolean
|
|
32
|
+
emailOptOut: ColumnType<boolean, boolean | undefined, boolean>;
|
|
32
33
|
|
|
33
|
-
smsOptOut: boolean
|
|
34
|
+
smsOptOut: ColumnType<boolean, boolean | undefined, boolean>;
|
|
34
35
|
|
|
35
|
-
resumeUrl: string | null
|
|
36
|
+
resumeUrl: ColumnType<string | null, string | null, string | null>;
|
|
36
37
|
|
|
37
|
-
photoUrl: string | null
|
|
38
|
+
photoUrl: ColumnType<string | null, string | null, string | null>;
|
|
38
39
|
|
|
39
|
-
lat: number | null
|
|
40
|
+
lat: ColumnType<number | null, number | null, number | null>;
|
|
40
41
|
|
|
41
|
-
lon: number | null
|
|
42
|
+
lon: ColumnType<number | null, number | null, number | null>;
|
|
42
43
|
|
|
43
|
-
city: string | null
|
|
44
|
+
city: ColumnType<string | null, string | null, string | null>;
|
|
44
45
|
|
|
45
|
-
state: string | null
|
|
46
|
+
state: ColumnType<string | null, string | null, string | null>;
|
|
46
47
|
|
|
47
|
-
postalCode: string | null
|
|
48
|
+
postalCode: ColumnType<string | null, string | null, string | null>;
|
|
48
49
|
|
|
49
|
-
country: string | null
|
|
50
|
+
country: ColumnType<string | null, string | null, string | null>;
|
|
50
51
|
|
|
51
|
-
additionalEmails: string[] | null
|
|
52
|
+
additionalEmails: ColumnType<string[] | null, string[] | null, string[] | null>;
|
|
52
53
|
|
|
53
|
-
additionalPhones: string[] | null
|
|
54
|
+
additionalPhones: ColumnType<string[] | null, string[] | null, string[] | null>;
|
|
54
55
|
|
|
55
|
-
source: PersonSources | null
|
|
56
|
+
source: ColumnType<PersonSources | null, PersonSources | null, PersonSources | null>;
|
|
56
57
|
|
|
57
|
-
website: string | null
|
|
58
|
+
website: ColumnType<string | null, string | null, string | null>;
|
|
58
59
|
|
|
59
|
-
currentSalary: number | null
|
|
60
|
+
currentSalary: ColumnType<number | null, number | null, number | null>;
|
|
60
61
|
|
|
61
|
-
expectedSalary: number | null
|
|
62
|
+
expectedSalary: ColumnType<number | null, number | null, number | null>;
|
|
62
63
|
|
|
63
|
-
currentEmployer: string | null
|
|
64
|
+
currentEmployer: ColumnType<string | null, string | null, string | null>;
|
|
64
65
|
|
|
65
|
-
currentTitle: string | null
|
|
66
|
+
currentTitle: ColumnType<string | null, string | null, string | null>;
|
|
66
67
|
|
|
67
|
-
careerLevel: PersonCareerLevels | null
|
|
68
|
+
careerLevel: ColumnType<PersonCareerLevels | null, PersonCareerLevels | null, PersonCareerLevels | null>;
|
|
68
69
|
|
|
69
|
-
certifications: string[] | null
|
|
70
|
+
certifications: ColumnType<string[] | null, string[] | null, string[] | null>;
|
|
70
71
|
|
|
71
|
-
openToRelocate: boolean | null
|
|
72
|
+
openToRelocate: ColumnType<boolean | null, boolean | null, boolean | null>;
|
|
72
73
|
|
|
73
|
-
highestDegreeObtained: PersonDegrees | null
|
|
74
|
+
highestDegreeObtained: ColumnType<PersonDegrees | null, PersonDegrees | null, PersonDegrees | null>;
|
|
74
75
|
|
|
75
|
-
undergraduateInstitution: string | null
|
|
76
|
+
undergraduateInstitution: ColumnType<string | null, string | null, string | null>;
|
|
76
77
|
|
|
77
|
-
typeOfUndergraduateDegree: string | null
|
|
78
|
+
typeOfUndergraduateDegree: ColumnType<string | null, string | null, string | null>;
|
|
78
79
|
|
|
79
|
-
graduateInstitution: string | null
|
|
80
|
+
graduateInstitution: ColumnType<string | null, string | null, string | null>;
|
|
80
81
|
|
|
81
|
-
typeOfGraduateDegree: string | null
|
|
82
|
+
typeOfGraduateDegree: ColumnType<string | null, string | null, string | null>;
|
|
82
83
|
|
|
83
|
-
gender: PersonGenders | null
|
|
84
|
+
gender: ColumnType<PersonGenders | null, PersonGenders | null, PersonGenders | null>;
|
|
84
85
|
|
|
85
|
-
howDidYouHearAboutUs: string | null
|
|
86
|
+
howDidYouHearAboutUs: ColumnType<string | null, string | null, string | null>;
|
|
86
87
|
|
|
87
|
-
sourcePersonId: PersonId | null
|
|
88
|
+
sourcePersonId: ColumnType<PersonId | null, PersonId | null, PersonId | null>;
|
|
88
89
|
|
|
89
|
-
deactivatedAt: Date | null
|
|
90
|
+
deactivatedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
90
91
|
|
|
91
|
-
lastSignedInAt: Date | null
|
|
92
|
+
lastSignedInAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
92
93
|
|
|
93
|
-
signInCount: number
|
|
94
|
+
signInCount: ColumnType<number, number | undefined, number>;
|
|
94
95
|
|
|
95
|
-
clientId: ClientId | null
|
|
96
|
+
clientId: ColumnType<ClientId | null, ClientId | null, ClientId | null>;
|
|
96
97
|
|
|
97
|
-
deletedAt: Date | null
|
|
98
|
+
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
98
99
|
|
|
99
|
-
createdAt: Date
|
|
100
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
100
101
|
|
|
101
|
-
updatedAt: Date
|
|
102
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
102
103
|
}
|
|
103
104
|
|
|
104
|
-
|
|
105
|
-
export interface PersonInitializer {
|
|
106
|
-
/** Default value: gen_random_uuid() */
|
|
107
|
-
id?: PersonId;
|
|
105
|
+
export type Person = Selectable<PersonTable>;
|
|
108
106
|
|
|
109
|
-
|
|
107
|
+
export type NewPerson = Insertable<PersonTable>;
|
|
110
108
|
|
|
111
|
-
|
|
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
|
-
}
|
|
109
|
+
export type PersonUpdate = Updateable<PersonTable>;
|
|
@@ -1,53 +1,28 @@
|
|
|
1
1
|
// @generated
|
|
2
2
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
3
|
|
|
4
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
5
|
+
|
|
4
6
|
/** Identifier type for public.PersonClub */
|
|
5
7
|
export type PersonClubId = string & { __brand: 'PersonClubId' };
|
|
6
8
|
|
|
7
9
|
/** Represents the table public.PersonClub */
|
|
8
|
-
export default interface
|
|
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;
|
|
10
|
+
export default interface PersonClubTable {
|
|
11
|
+
id: ColumnType<PersonClubId, PersonClubId | undefined, PersonClubId>;
|
|
26
12
|
|
|
27
|
-
slug: string
|
|
13
|
+
slug: ColumnType<string, string, string>;
|
|
28
14
|
|
|
29
|
-
name: string
|
|
15
|
+
name: ColumnType<string, string, string>;
|
|
30
16
|
|
|
31
|
-
deletedAt
|
|
17
|
+
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
32
18
|
|
|
33
|
-
|
|
34
|
-
createdAt?: Date;
|
|
19
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
35
20
|
|
|
36
|
-
|
|
37
|
-
updatedAt?: Date;
|
|
21
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
38
22
|
}
|
|
39
23
|
|
|
40
|
-
|
|
41
|
-
export interface PersonClubMutator {
|
|
42
|
-
id?: PersonClubId;
|
|
43
|
-
|
|
44
|
-
slug?: string;
|
|
24
|
+
export type PersonClub = Selectable<PersonClubTable>;
|
|
45
25
|
|
|
46
|
-
|
|
26
|
+
export type NewPersonClub = Insertable<PersonClubTable>;
|
|
47
27
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
createdAt?: Date;
|
|
51
|
-
|
|
52
|
-
updatedAt?: Date;
|
|
53
|
-
}
|
|
28
|
+
export type PersonClubUpdate = Updateable<PersonClubTable>;
|
|
@@ -3,60 +3,30 @@
|
|
|
3
3
|
|
|
4
4
|
import type { default as EnrichmentSources } from './EnrichmentSources';
|
|
5
5
|
import type { PersonId } from './Person';
|
|
6
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
6
7
|
|
|
7
8
|
/** Identifier type for public.PersonEnrichment */
|
|
8
9
|
export type PersonEnrichmentId = string & { __brand: 'PersonEnrichmentId' };
|
|
9
10
|
|
|
10
11
|
/** Represents the table public.PersonEnrichment */
|
|
11
|
-
export default interface
|
|
12
|
-
id: PersonEnrichmentId
|
|
12
|
+
export default interface PersonEnrichmentTable {
|
|
13
|
+
id: ColumnType<PersonEnrichmentId, PersonEnrichmentId | undefined, PersonEnrichmentId>;
|
|
13
14
|
|
|
14
|
-
data: unknown | null
|
|
15
|
+
data: ColumnType<unknown | null, unknown | null, unknown | null>;
|
|
15
16
|
|
|
16
|
-
likelihood: number | null
|
|
17
|
+
likelihood: ColumnType<number | null, number | null, number | null>;
|
|
17
18
|
|
|
18
|
-
source: EnrichmentSources
|
|
19
|
+
source: ColumnType<EnrichmentSources, EnrichmentSources, EnrichmentSources>;
|
|
19
20
|
|
|
20
|
-
personId: PersonId
|
|
21
|
+
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
21
22
|
|
|
22
|
-
createdAt: Date
|
|
23
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
23
24
|
|
|
24
|
-
updatedAt: Date
|
|
25
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
export interface PersonEnrichmentInitializer {
|
|
29
|
-
/** Default value: gen_random_uuid() */
|
|
30
|
-
id?: PersonEnrichmentId;
|
|
28
|
+
export type PersonEnrichment = Selectable<PersonEnrichmentTable>;
|
|
31
29
|
|
|
32
|
-
|
|
30
|
+
export type NewPersonEnrichment = Insertable<PersonEnrichmentTable>;
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
source: EnrichmentSources;
|
|
37
|
-
|
|
38
|
-
personId: PersonId;
|
|
39
|
-
|
|
40
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
41
|
-
createdAt?: Date;
|
|
42
|
-
|
|
43
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
44
|
-
updatedAt?: Date;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** Represents the mutator for the table public.PersonEnrichment */
|
|
48
|
-
export interface PersonEnrichmentMutator {
|
|
49
|
-
id?: PersonEnrichmentId;
|
|
50
|
-
|
|
51
|
-
data?: unknown | null;
|
|
52
|
-
|
|
53
|
-
likelihood?: number | null;
|
|
54
|
-
|
|
55
|
-
source?: EnrichmentSources;
|
|
56
|
-
|
|
57
|
-
personId?: PersonId;
|
|
58
|
-
|
|
59
|
-
createdAt?: Date;
|
|
60
|
-
|
|
61
|
-
updatedAt?: Date;
|
|
62
|
-
}
|
|
32
|
+
export type PersonEnrichmentUpdate = Updateable<PersonEnrichmentTable>;
|
|
@@ -1,53 +1,28 @@
|
|
|
1
1
|
// @generated
|
|
2
2
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
3
|
|
|
4
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
5
|
+
|
|
4
6
|
/** Identifier type for public.PersonNetwork */
|
|
5
7
|
export type PersonNetworkId = string & { __brand: 'PersonNetworkId' };
|
|
6
8
|
|
|
7
9
|
/** Represents the table public.PersonNetwork */
|
|
8
|
-
export default interface
|
|
9
|
-
id: PersonNetworkId
|
|
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.PersonNetwork */
|
|
23
|
-
export interface PersonNetworkInitializer {
|
|
24
|
-
/** Default value: gen_random_uuid() */
|
|
25
|
-
id?: PersonNetworkId;
|
|
10
|
+
export default interface PersonNetworkTable {
|
|
11
|
+
id: ColumnType<PersonNetworkId, PersonNetworkId | undefined, PersonNetworkId>;
|
|
26
12
|
|
|
27
|
-
slug: string
|
|
13
|
+
slug: ColumnType<string, string, string>;
|
|
28
14
|
|
|
29
|
-
name: string
|
|
15
|
+
name: ColumnType<string, string, string>;
|
|
30
16
|
|
|
31
|
-
deletedAt
|
|
17
|
+
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
32
18
|
|
|
33
|
-
|
|
34
|
-
createdAt?: Date;
|
|
19
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
35
20
|
|
|
36
|
-
|
|
37
|
-
updatedAt?: Date;
|
|
21
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
38
22
|
}
|
|
39
23
|
|
|
40
|
-
|
|
41
|
-
export interface PersonNetworkMutator {
|
|
42
|
-
id?: PersonNetworkId;
|
|
43
|
-
|
|
44
|
-
slug?: string;
|
|
24
|
+
export type PersonNetwork = Selectable<PersonNetworkTable>;
|
|
45
25
|
|
|
46
|
-
|
|
26
|
+
export type NewPersonNetwork = Insertable<PersonNetworkTable>;
|
|
47
27
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
createdAt?: Date;
|
|
51
|
-
|
|
52
|
-
updatedAt?: Date;
|
|
53
|
-
}
|
|
28
|
+
export type PersonNetworkUpdate = Updateable<PersonNetworkTable>;
|
|
@@ -1,53 +1,28 @@
|
|
|
1
1
|
// @generated
|
|
2
2
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
3
|
|
|
4
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
5
|
+
|
|
4
6
|
/** Identifier type for public.PersonSkill */
|
|
5
7
|
export type PersonSkillId = string & { __brand: 'PersonSkillId' };
|
|
6
8
|
|
|
7
9
|
/** Represents the table public.PersonSkill */
|
|
8
|
-
export default interface
|
|
9
|
-
id: PersonSkillId
|
|
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.PersonSkill */
|
|
23
|
-
export interface PersonSkillInitializer {
|
|
24
|
-
/** Default value: gen_random_uuid() */
|
|
25
|
-
id?: PersonSkillId;
|
|
10
|
+
export default interface PersonSkillTable {
|
|
11
|
+
id: ColumnType<PersonSkillId, PersonSkillId | undefined, PersonSkillId>;
|
|
26
12
|
|
|
27
|
-
slug: string
|
|
13
|
+
slug: ColumnType<string, string, string>;
|
|
28
14
|
|
|
29
|
-
name: string
|
|
15
|
+
name: ColumnType<string, string, string>;
|
|
30
16
|
|
|
31
|
-
deletedAt
|
|
17
|
+
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
32
18
|
|
|
33
|
-
|
|
34
|
-
createdAt?: Date;
|
|
19
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
35
20
|
|
|
36
|
-
|
|
37
|
-
updatedAt?: Date;
|
|
21
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
38
22
|
}
|
|
39
23
|
|
|
40
|
-
|
|
41
|
-
export interface PersonSkillMutator {
|
|
42
|
-
id?: PersonSkillId;
|
|
43
|
-
|
|
44
|
-
slug?: string;
|
|
24
|
+
export type PersonSkill = Selectable<PersonSkillTable>;
|
|
45
25
|
|
|
46
|
-
|
|
26
|
+
export type NewPersonSkill = Insertable<PersonSkillTable>;
|
|
47
27
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
createdAt?: Date;
|
|
51
|
-
|
|
52
|
-
updatedAt?: Date;
|
|
53
|
-
}
|
|
28
|
+
export type PersonSkillUpdate = Updateable<PersonSkillTable>;
|
|
@@ -2,31 +2,19 @@
|
|
|
2
2
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
3
|
|
|
4
4
|
import type { PersonId } from './Person';
|
|
5
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
5
6
|
|
|
6
7
|
/** Represents the table public.PersonToBestPerson */
|
|
7
|
-
export default interface
|
|
8
|
-
bestiedByPersonId: PersonId
|
|
8
|
+
export default interface PersonToBestPersonTable {
|
|
9
|
+
bestiedByPersonId: ColumnType<PersonId, PersonId, PersonId>;
|
|
9
10
|
|
|
10
|
-
bestPersonId: PersonId
|
|
11
|
+
bestPersonId: ColumnType<PersonId, PersonId, PersonId>;
|
|
11
12
|
|
|
12
|
-
createdAt: Date
|
|
13
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
export interface PersonToBestPersonInitializer {
|
|
17
|
-
bestiedByPersonId: PersonId;
|
|
16
|
+
export type PersonToBestPerson = Selectable<PersonToBestPersonTable>;
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
export type NewPersonToBestPerson = Insertable<PersonToBestPersonTable>;
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
createdAt?: Date;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/** Represents the mutator for the table public.PersonToBestPerson */
|
|
26
|
-
export interface PersonToBestPersonMutator {
|
|
27
|
-
bestiedByPersonId?: PersonId;
|
|
28
|
-
|
|
29
|
-
bestPersonId?: PersonId;
|
|
30
|
-
|
|
31
|
-
createdAt?: Date;
|
|
32
|
-
}
|
|
20
|
+
export type PersonToBestPersonUpdate = Updateable<PersonToBestPersonTable>;
|
|
@@ -3,31 +3,19 @@
|
|
|
3
3
|
|
|
4
4
|
import type { PersonId } from './Person';
|
|
5
5
|
import type { PersonClubId } from './PersonClub';
|
|
6
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
6
7
|
|
|
7
8
|
/** Represents the table public.PersonToPersonClub */
|
|
8
|
-
export default interface
|
|
9
|
-
personId: PersonId
|
|
9
|
+
export default interface PersonToPersonClubTable {
|
|
10
|
+
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
10
11
|
|
|
11
|
-
clubId: PersonClubId
|
|
12
|
+
clubId: ColumnType<PersonClubId, PersonClubId, PersonClubId>;
|
|
12
13
|
|
|
13
|
-
createdAt: Date
|
|
14
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
export interface PersonToPersonClubInitializer {
|
|
18
|
-
personId: PersonId;
|
|
17
|
+
export type PersonToPersonClub = Selectable<PersonToPersonClubTable>;
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
export type NewPersonToPersonClub = Insertable<PersonToPersonClubTable>;
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
createdAt?: Date;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/** Represents the mutator for the table public.PersonToPersonClub */
|
|
27
|
-
export interface PersonToPersonClubMutator {
|
|
28
|
-
personId?: PersonId;
|
|
29
|
-
|
|
30
|
-
clubId?: PersonClubId;
|
|
31
|
-
|
|
32
|
-
createdAt?: Date;
|
|
33
|
-
}
|
|
21
|
+
export type PersonToPersonClubUpdate = Updateable<PersonToPersonClubTable>;
|