@the-inkwell/shared 0.1.69 → 0.1.70

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 (38) hide show
  1. package/package.json +1 -1
  2. package/src/types/_schema/Action.ts +61 -16
  3. package/src/types/_schema/Admin.ts +21 -8
  4. package/src/types/_schema/Campaign.ts +54 -14
  5. package/src/types/_schema/CampaignToPosition.ts +26 -9
  6. package/src/types/_schema/Candidacy.ts +59 -15
  7. package/src/types/_schema/CandidacyFeedback.ts +37 -11
  8. package/src/types/_schema/CandidacyRatingToTag.ts +26 -9
  9. package/src/types/_schema/Client.ts +38 -11
  10. package/src/types/_schema/Contract.ts +42 -12
  11. package/src/types/_schema/Conversation.ts +43 -12
  12. package/src/types/_schema/Jwt.ts +37 -11
  13. package/src/types/_schema/ListView.ts +52 -14
  14. package/src/types/_schema/Message.ts +48 -13
  15. package/src/types/_schema/MessageTemplate.ts +37 -12
  16. package/src/types/_schema/Note.ts +52 -14
  17. package/src/types/_schema/Otp.ts +42 -12
  18. package/src/types/_schema/Person.ts +233 -49
  19. package/src/types/_schema/PersonClub.ts +37 -12
  20. package/src/types/_schema/PersonEnrichment.ts +42 -12
  21. package/src/types/_schema/PersonNetwork.ts +37 -12
  22. package/src/types/_schema/PersonSkill.ts +37 -12
  23. package/src/types/_schema/PersonToBestPerson.ts +20 -8
  24. package/src/types/_schema/PersonToPersonClub.ts +20 -8
  25. package/src/types/_schema/PersonToPersonNetwork.ts +20 -8
  26. package/src/types/_schema/PersonToPersonSkill.ts +20 -8
  27. package/src/types/_schema/PersonToTag.ts +20 -8
  28. package/src/types/_schema/Position.ts +55 -14
  29. package/src/types/_schema/Referral.ts +53 -14
  30. package/src/types/_schema/ReferralPayout.ts +15 -7
  31. package/src/types/_schema/ReferralToIntroMessage.ts +26 -9
  32. package/src/types/_schema/Sender.ts +42 -13
  33. package/src/types/_schema/Tag.ts +32 -11
  34. package/src/types/_schema/WebsiteBlock.ts +30 -11
  35. package/src/types/_schema/WebsiteLandingPage.ts +32 -11
  36. package/src/types/_schema/WebsiteStaticPage.ts +37 -12
  37. package/src/types/models/admin/persons/index.ts +5 -4
  38. package/src/types/models/admin/website/index.ts +15 -9
@@ -4,30 +4,61 @@
4
4
  import type { default as MessageChannels } from './MessageChannels';
5
5
  import type { PersonId } from './Person';
6
6
  import type { CampaignId } from './Campaign';
7
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
8
7
 
9
8
  /** Identifier type for public.Conversation */
10
9
  export type ConversationId = string & { __brand: 'ConversationId' };
11
10
 
12
11
  /** Represents the table public.Conversation */
13
- export default interface ConversationTable {
14
- id: ColumnType<ConversationId, ConversationId | undefined, ConversationId>;
12
+ export default interface Conversation {
13
+ id: ConversationId;
15
14
 
16
- urlId: ColumnType<number, number | undefined, number>;
15
+ urlId: number;
17
16
 
18
- channel: ColumnType<MessageChannels, MessageChannels, MessageChannels>;
17
+ channel: MessageChannels;
19
18
 
20
- personId: ColumnType<PersonId, PersonId, PersonId>;
19
+ personId: PersonId;
21
20
 
22
- campaignId: ColumnType<CampaignId | null, CampaignId | null, CampaignId | null>;
21
+ campaignId: CampaignId | null;
23
22
 
24
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
23
+ createdAt: Date;
25
24
 
26
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
25
+ updatedAt: Date;
27
26
  }
28
27
 
29
- export type Conversation = Selectable<ConversationTable>;
28
+ /** Represents the initializer for the table public.Conversation */
29
+ export interface ConversationInitializer {
30
+ /** Default value: gen_random_uuid() */
31
+ id?: ConversationId;
30
32
 
31
- export type NewConversation = Insertable<ConversationTable>;
33
+ /** Default value: nextval('"Conversation_urlId_seq"'::regclass) */
34
+ urlId?: number;
32
35
 
33
- export type ConversationUpdate = Updateable<ConversationTable>;
36
+ channel: MessageChannels;
37
+
38
+ personId: PersonId;
39
+
40
+ campaignId?: CampaignId | null;
41
+
42
+ /** Default value: CURRENT_TIMESTAMP */
43
+ createdAt?: Date;
44
+
45
+ /** Default value: CURRENT_TIMESTAMP */
46
+ updatedAt?: Date;
47
+ }
48
+
49
+ /** Represents the mutator for the table public.Conversation */
50
+ export interface ConversationMutator {
51
+ id?: ConversationId;
52
+
53
+ urlId?: number;
54
+
55
+ channel?: MessageChannels;
56
+
57
+ personId?: PersonId;
58
+
59
+ campaignId?: CampaignId | null;
60
+
61
+ createdAt?: Date;
62
+
63
+ updatedAt?: Date;
64
+ }
@@ -2,28 +2,54 @@
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';
6
5
 
7
6
  /** Identifier type for public.Jwt */
8
7
  export type JwtId = number & { __brand: 'JwtId' };
9
8
 
10
9
  /** Represents the table public.Jwt */
11
- export default interface JwtTable {
12
- id: ColumnType<JwtId, JwtId | undefined, JwtId>;
10
+ export default interface Jwt {
11
+ id: JwtId;
13
12
 
14
- jti: ColumnType<string, string, string>;
13
+ jti: string;
15
14
 
16
- revokedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
15
+ revokedAt: Date | null;
17
16
 
18
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
17
+ createdAt: Date;
19
18
 
20
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
19
+ updatedAt: Date;
21
20
 
22
- personId: ColumnType<PersonId, PersonId, PersonId>;
21
+ personId: PersonId;
23
22
  }
24
23
 
25
- export type Jwt = Selectable<JwtTable>;
24
+ /** Represents the initializer for the table public.Jwt */
25
+ export interface JwtInitializer {
26
+ /** Default value: nextval('"Jwt_id_seq"'::regclass) */
27
+ id?: JwtId;
26
28
 
27
- export type NewJwt = Insertable<JwtTable>;
29
+ jti: string;
28
30
 
29
- export type JwtUpdate = Updateable<JwtTable>;
31
+ revokedAt?: Date | null;
32
+
33
+ /** Default value: CURRENT_TIMESTAMP */
34
+ createdAt?: Date;
35
+
36
+ /** Default value: CURRENT_TIMESTAMP */
37
+ updatedAt?: Date;
38
+
39
+ personId: PersonId;
40
+ }
41
+
42
+ /** Represents the mutator for the table public.Jwt */
43
+ export interface JwtMutator {
44
+ id?: JwtId;
45
+
46
+ jti?: string;
47
+
48
+ revokedAt?: Date | null;
49
+
50
+ createdAt?: Date;
51
+
52
+ updatedAt?: Date;
53
+
54
+ personId?: PersonId;
55
+ }
@@ -3,34 +3,72 @@
3
3
 
4
4
  import type { default as ListViewModels } from './ListViewModels';
5
5
  import type { PositionId } from './Position';
6
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
7
6
 
8
7
  /** Identifier type for public.ListView */
9
8
  export type ListViewId = string & { __brand: 'ListViewId' };
10
9
 
11
10
  /** Represents the table public.ListView */
12
- export default interface ListViewTable {
13
- id: ColumnType<ListViewId, ListViewId | undefined, ListViewId>;
11
+ export default interface ListView {
12
+ id: ListViewId;
14
13
 
15
- model: ColumnType<ListViewModels, ListViewModels, ListViewModels>;
14
+ model: ListViewModels;
16
15
 
17
- name: ColumnType<string, string, string>;
16
+ name: string;
18
17
 
19
- query: ColumnType<unknown, unknown, unknown>;
18
+ query: unknown;
20
19
 
21
- positionId: ColumnType<PositionId | null, PositionId | null, PositionId | null>;
20
+ positionId: PositionId | null;
22
21
 
23
- archivedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
22
+ archivedAt: Date | null;
24
23
 
25
- deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
24
+ deletedAt: Date | null;
26
25
 
27
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
26
+ createdAt: Date;
28
27
 
29
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
28
+ updatedAt: Date;
30
29
  }
31
30
 
32
- export type ListView = Selectable<ListViewTable>;
31
+ /** Represents the initializer for the table public.ListView */
32
+ export interface ListViewInitializer {
33
+ /** Default value: gen_random_uuid() */
34
+ id?: ListViewId;
33
35
 
34
- export type NewListView = Insertable<ListViewTable>;
36
+ model: ListViewModels;
35
37
 
36
- export type ListViewUpdate = Updateable<ListViewTable>;
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
+ }
@@ -4,32 +4,67 @@
4
4
  import type { SenderId } from './Sender';
5
5
  import type { PersonId } from './Person';
6
6
  import type { ConversationId } from './Conversation';
7
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
8
7
 
9
8
  /** Identifier type for public.Message */
10
9
  export type MessageId = string & { __brand: 'MessageId' };
11
10
 
12
11
  /** Represents the table public.Message */
13
- export default interface MessageTable {
14
- id: ColumnType<MessageId, MessageId | undefined, MessageId>;
12
+ export default interface Message {
13
+ id: MessageId;
15
14
 
16
- urlId: ColumnType<number, number | undefined, number>;
15
+ urlId: number;
17
16
 
18
- data: ColumnType<unknown, unknown, unknown>;
17
+ data: unknown;
19
18
 
20
- adminSenderId: ColumnType<SenderId | null, SenderId | null, SenderId | null>;
19
+ adminSenderId: SenderId | null;
21
20
 
22
- personId: ColumnType<PersonId, PersonId, PersonId>;
21
+ personId: PersonId;
23
22
 
24
- conversationId: ColumnType<ConversationId, ConversationId, ConversationId>;
23
+ conversationId: ConversationId;
25
24
 
26
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
25
+ createdAt: Date;
27
26
 
28
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
27
+ updatedAt: Date;
29
28
  }
30
29
 
31
- export type Message = Selectable<MessageTable>;
30
+ /** Represents the initializer for the table public.Message */
31
+ export interface MessageInitializer {
32
+ /** Default value: gen_random_uuid() */
33
+ id?: MessageId;
32
34
 
33
- export type NewMessage = Insertable<MessageTable>;
35
+ /** Default value: nextval('"Message_urlId_seq"'::regclass) */
36
+ urlId?: number;
34
37
 
35
- export type MessageUpdate = Updateable<MessageTable>;
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,28 +1,53 @@
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
-
6
4
  /** Identifier type for public.MessageTemplate */
7
5
  export type MessageTemplateId = string & { __brand: 'MessageTemplateId' };
8
6
 
9
7
  /** Represents the table public.MessageTemplate */
10
- export default interface MessageTemplateTable {
11
- id: ColumnType<MessageTemplateId, MessageTemplateId | undefined, MessageTemplateId>;
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;
12
26
 
13
- name: ColumnType<string, string, string>;
27
+ name: string;
14
28
 
15
- data: ColumnType<unknown, unknown, unknown>;
29
+ data: unknown;
16
30
 
17
- deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
31
+ deletedAt?: Date | null;
18
32
 
19
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
33
+ /** Default value: CURRENT_TIMESTAMP */
34
+ createdAt?: Date;
20
35
 
21
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
36
+ /** Default value: CURRENT_TIMESTAMP */
37
+ updatedAt?: Date;
22
38
  }
23
39
 
24
- export type MessageTemplate = Selectable<MessageTemplateTable>;
40
+ /** Represents the mutator for the table public.MessageTemplate */
41
+ export interface MessageTemplateMutator {
42
+ id?: MessageTemplateId;
43
+
44
+ name?: string;
25
45
 
26
- export type NewMessageTemplate = Insertable<MessageTemplateTable>;
46
+ data?: unknown;
27
47
 
28
- export type MessageTemplateUpdate = Updateable<MessageTemplateTable>;
48
+ deletedAt?: Date | null;
49
+
50
+ createdAt?: Date;
51
+
52
+ updatedAt?: Date;
53
+ }
@@ -5,34 +5,72 @@ import type { AdminId } from './Admin';
5
5
  import type { CandidacyId } from './Candidacy';
6
6
  import type { PersonId } from './Person';
7
7
  import type { ClientId } from './Client';
8
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
9
8
 
10
9
  /** Identifier type for public.Note */
11
10
  export type NoteId = string & { __brand: 'NoteId' };
12
11
 
13
12
  /** Represents the table public.Note */
14
- export default interface NoteTable {
15
- id: ColumnType<NoteId, NoteId | undefined, NoteId>;
13
+ export default interface Note {
14
+ id: NoteId;
16
15
 
17
- content: ColumnType<string, string, string>;
16
+ content: string;
18
17
 
19
- adminId: ColumnType<AdminId | null, AdminId | null, AdminId | null>;
18
+ adminId: AdminId | null;
20
19
 
21
- candidacyId: ColumnType<CandidacyId | null, CandidacyId | null, CandidacyId | null>;
20
+ candidacyId: CandidacyId | null;
22
21
 
23
- personId: ColumnType<PersonId | null, PersonId | null, PersonId | null>;
22
+ personId: PersonId | null;
24
23
 
25
- clientId: ColumnType<ClientId | null, ClientId | null, ClientId | null>;
24
+ clientId: ClientId | null;
26
25
 
27
- deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
26
+ deletedAt: Date | null;
28
27
 
29
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
28
+ createdAt: Date;
30
29
 
31
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
30
+ updatedAt: Date;
32
31
  }
33
32
 
34
- export type Note = Selectable<NoteTable>;
33
+ /** Represents the initializer for the table public.Note */
34
+ export interface NoteInitializer {
35
+ /** Default value: gen_random_uuid() */
36
+ id?: NoteId;
35
37
 
36
- export type NewNote = Insertable<NoteTable>;
38
+ content: string;
37
39
 
38
- export type NoteUpdate = Updateable<NoteTable>;
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
+ }
@@ -2,30 +2,60 @@
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';
6
5
 
7
6
  /** Identifier type for public.Otp */
8
7
  export type OtpId = number & { __brand: 'OtpId' };
9
8
 
10
9
  /** Represents the table public.Otp */
11
- export default interface OtpTable {
12
- id: ColumnType<OtpId, OtpId | undefined, OtpId>;
10
+ export default interface Otp {
11
+ id: OtpId;
13
12
 
14
- code: ColumnType<string, string, string>;
13
+ code: string;
15
14
 
16
- usedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
15
+ usedAt: Date | null;
17
16
 
18
- expiresAt: ColumnType<Date, Date | string, Date | string>;
17
+ expiresAt: Date;
19
18
 
20
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
19
+ createdAt: Date;
21
20
 
22
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
21
+ updatedAt: Date;
23
22
 
24
- personId: ColumnType<PersonId, PersonId, PersonId>;
23
+ personId: PersonId;
25
24
  }
26
25
 
27
- export type Otp = Selectable<OtpTable>;
26
+ /** Represents the initializer for the table public.Otp */
27
+ export interface OtpInitializer {
28
+ /** Default value: nextval('"Otp_id_seq"'::regclass) */
29
+ id?: OtpId;
28
30
 
29
- export type NewOtp = Insertable<OtpTable>;
31
+ code: string;
30
32
 
31
- export type OtpUpdate = Updateable<OtpTable>;
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
+ }