@the-inkwell/shared 0.1.74 → 0.1.75

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 (95) hide show
  1. package/dist/src/types/_schema/Actions.js +4 -0
  2. package/dist/src/types/_schema/Admins.js +4 -0
  3. package/dist/src/types/_schema/Campaigns.js +4 -0
  4. package/dist/src/types/_schema/CampaignsToPositions.js +4 -0
  5. package/dist/src/types/_schema/Candidacies.js +4 -0
  6. package/dist/src/types/_schema/CandidacyRatingsToTags.js +4 -0
  7. package/dist/src/types/_schema/Clients.js +4 -0
  8. package/dist/src/types/_schema/Contracts.js +4 -0
  9. package/dist/src/types/_schema/Conversations.js +4 -0
  10. package/dist/src/types/_schema/Jwts.js +4 -0
  11. package/dist/src/types/_schema/ListViews.js +4 -0
  12. package/dist/src/types/_schema/MessageTemplates.js +4 -0
  13. package/dist/src/types/_schema/Messages.js +4 -0
  14. package/dist/src/types/_schema/Notes.js +4 -0
  15. package/dist/src/types/_schema/Otps.js +4 -0
  16. package/dist/src/types/_schema/PersonClubs.js +4 -0
  17. package/dist/src/types/_schema/PersonEnrichments.js +4 -0
  18. package/dist/src/types/_schema/PersonNetworks.js +4 -0
  19. package/dist/src/types/_schema/PersonSkills.js +4 -0
  20. package/dist/src/types/_schema/Persons.js +4 -0
  21. package/dist/src/types/_schema/PersonsToBestPersons.js +4 -0
  22. package/dist/src/types/_schema/PersonsToPersonClubs.js +4 -0
  23. package/dist/src/types/_schema/PersonsToPersonNetworks.js +4 -0
  24. package/dist/src/types/_schema/PersonsToPersonSkills.js +4 -0
  25. package/dist/src/types/_schema/PersonsToTags.js +4 -0
  26. package/dist/src/types/_schema/Positions.js +4 -0
  27. package/dist/src/types/_schema/ReferralPayouts.js +4 -0
  28. package/dist/src/types/_schema/Referrals.js +4 -0
  29. package/dist/src/types/_schema/ReferralsToIntroMessages.js +4 -0
  30. package/dist/src/types/_schema/Senders.js +4 -0
  31. package/dist/src/types/_schema/Tags.js +4 -0
  32. package/dist/src/types/_schema/WebsiteBlocks.js +4 -0
  33. package/dist/src/types/_schema/WebsiteLandingPages.js +4 -0
  34. package/dist/src/types/_schema/WebsiteStaticPages.js +4 -0
  35. package/package.json +1 -1
  36. package/src/types/_schema/Actions.ts +91 -0
  37. package/src/types/_schema/Admins.ts +36 -0
  38. package/src/types/_schema/{Campaign.ts → Campaigns.ts} +16 -16
  39. package/src/types/_schema/CampaignsToPositions.ts +40 -0
  40. package/src/types/_schema/{Candidacy.ts → Candidacies.ts} +19 -19
  41. package/src/types/_schema/CandidacyFeedback.ts +9 -9
  42. package/src/types/_schema/CandidacyRatingsToTags.ts +40 -0
  43. package/src/types/_schema/{Client.ts → Clients.ts} +11 -11
  44. package/src/types/_schema/Contracts.ts +62 -0
  45. package/src/types/_schema/Conversations.ts +64 -0
  46. package/src/types/_schema/Jwts.ts +55 -0
  47. package/src/types/_schema/{ListView.ts → ListViews.ts} +15 -15
  48. package/src/types/_schema/{MessageTemplate.ts → MessageTemplates.ts} +11 -11
  49. package/src/types/_schema/Messages.ts +70 -0
  50. package/src/types/_schema/Notes.ts +76 -0
  51. package/src/types/_schema/Otps.ts +61 -0
  52. package/src/types/_schema/{PersonClub.ts → PersonClubs.ts} +11 -11
  53. package/src/types/_schema/{PersonEnrichment.ts → PersonEnrichments.ts} +15 -15
  54. package/src/types/_schema/{PersonNetwork.ts → PersonNetworks.ts} +11 -11
  55. package/src/types/_schema/{PersonSkill.ts → PersonSkills.ts} +11 -11
  56. package/src/types/_schema/{Person.ts → Persons.ts} +18 -18
  57. package/src/types/_schema/PersonsToBestPersons.ts +32 -0
  58. package/src/types/_schema/PersonsToPersonClubs.ts +33 -0
  59. package/src/types/_schema/PersonsToPersonNetworks.ts +33 -0
  60. package/src/types/_schema/PersonsToPersonSkills.ts +33 -0
  61. package/src/types/_schema/PersonsToTags.ts +33 -0
  62. package/src/types/_schema/{Position.ts → Positions.ts} +16 -16
  63. package/src/types/_schema/ReferralPayouts.ts +29 -0
  64. package/src/types/_schema/Referrals.ts +78 -0
  65. package/src/types/_schema/ReferralsToIntroMessages.ts +40 -0
  66. package/src/types/_schema/{Sender.ts → Senders.ts} +11 -11
  67. package/src/types/_schema/{Tag.ts → Tags.ts} +11 -11
  68. package/src/types/_schema/WebsiteBlocks.ts +45 -0
  69. package/src/types/_schema/WebsiteLandingPages.ts +47 -0
  70. package/src/types/_schema/WebsiteStaticPages.ts +53 -0
  71. package/src/types/models/admin/candidacies/index.ts +7 -7
  72. package/src/types/models/admin/persons/index.ts +11 -5
  73. package/src/types/models/admin/website/index.ts +5 -3
  74. package/src/types/models/auth/index.ts +2 -2
  75. package/src/types/_schema/Action.ts +0 -91
  76. package/src/types/_schema/Admin.ts +0 -36
  77. package/src/types/_schema/CampaignToPosition.ts +0 -40
  78. package/src/types/_schema/CandidacyRatingToTag.ts +0 -40
  79. package/src/types/_schema/Contract.ts +0 -62
  80. package/src/types/_schema/Conversation.ts +0 -64
  81. package/src/types/_schema/Jwt.ts +0 -55
  82. package/src/types/_schema/Message.ts +0 -70
  83. package/src/types/_schema/Note.ts +0 -76
  84. package/src/types/_schema/Otp.ts +0 -61
  85. package/src/types/_schema/PersonToBestPerson.ts +0 -32
  86. package/src/types/_schema/PersonToPersonClub.ts +0 -33
  87. package/src/types/_schema/PersonToPersonNetwork.ts +0 -33
  88. package/src/types/_schema/PersonToPersonSkill.ts +0 -33
  89. package/src/types/_schema/PersonToTag.ts +0 -33
  90. package/src/types/_schema/Referral.ts +0 -78
  91. package/src/types/_schema/ReferralPayout.ts +0 -29
  92. package/src/types/_schema/ReferralToIntroMessage.ts +0 -40
  93. package/src/types/_schema/WebsiteBlock.ts +0 -45
  94. package/src/types/_schema/WebsiteLandingPage.ts +0 -47
  95. package/src/types/_schema/WebsiteStaticPage.ts +0 -53
@@ -1,12 +1,12 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- /** Identifier type for public.PersonNetwork */
5
- export type PersonNetworkId = string & { __brand: 'PersonNetworkId' };
4
+ /** Identifier type for public.person_networks */
5
+ export type PersonNetworksId = string | number;
6
6
 
7
- /** Represents the table public.PersonNetwork */
8
- export default interface PersonNetwork {
9
- id: PersonNetworkId;
7
+ /** Represents the table public.person_networks */
8
+ export default interface PersonNetworks {
9
+ id: PersonNetworksId;
10
10
 
11
11
  slug: string;
12
12
 
@@ -19,10 +19,10 @@ export default interface PersonNetwork {
19
19
  updatedAt: Date;
20
20
  }
21
21
 
22
- /** Represents the initializer for the table public.PersonNetwork */
23
- export interface PersonNetworkInitializer {
22
+ /** Represents the initializer for the table public.person_networks */
23
+ export interface PersonNetworksInitializer {
24
24
  /** Default value: gen_random_uuid() */
25
- id?: PersonNetworkId;
25
+ id?: PersonNetworksId;
26
26
 
27
27
  slug: string;
28
28
 
@@ -37,9 +37,9 @@ export interface PersonNetworkInitializer {
37
37
  updatedAt?: Date;
38
38
  }
39
39
 
40
- /** Represents the mutator for the table public.PersonNetwork */
41
- export interface PersonNetworkMutator {
42
- id?: PersonNetworkId;
40
+ /** Represents the mutator for the table public.person_networks */
41
+ export interface PersonNetworksMutator {
42
+ id?: PersonNetworksId;
43
43
 
44
44
  slug?: string;
45
45
 
@@ -1,12 +1,12 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- /** Identifier type for public.PersonSkill */
5
- export type PersonSkillId = string & { __brand: 'PersonSkillId' };
4
+ /** Identifier type for public.person_skills */
5
+ export type PersonSkillsId = string | number;
6
6
 
7
- /** Represents the table public.PersonSkill */
8
- export default interface PersonSkill {
9
- id: PersonSkillId;
7
+ /** Represents the table public.person_skills */
8
+ export default interface PersonSkills {
9
+ id: PersonSkillsId;
10
10
 
11
11
  slug: string;
12
12
 
@@ -19,10 +19,10 @@ export default interface PersonSkill {
19
19
  updatedAt: Date;
20
20
  }
21
21
 
22
- /** Represents the initializer for the table public.PersonSkill */
23
- export interface PersonSkillInitializer {
22
+ /** Represents the initializer for the table public.person_skills */
23
+ export interface PersonSkillsInitializer {
24
24
  /** Default value: gen_random_uuid() */
25
- id?: PersonSkillId;
25
+ id?: PersonSkillsId;
26
26
 
27
27
  slug: string;
28
28
 
@@ -37,9 +37,9 @@ export interface PersonSkillInitializer {
37
37
  updatedAt?: Date;
38
38
  }
39
39
 
40
- /** Represents the mutator for the table public.PersonSkill */
41
- export interface PersonSkillMutator {
42
- id?: PersonSkillId;
40
+ /** Represents the mutator for the table public.person_skills */
41
+ export interface PersonSkillsMutator {
42
+ id?: PersonSkillsId;
43
43
 
44
44
  slug?: string;
45
45
 
@@ -5,14 +5,14 @@ import type { default as PersonSources } from './PersonSources';
5
5
  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
- import type { ClientId } from './Client';
8
+ import type { ClientsId } from './Clients';
9
9
 
10
- /** Identifier type for public.Person */
11
- export type PersonId = string & { __brand: 'PersonId' };
10
+ /** Identifier type for public.persons */
11
+ export type PersonsId = string | number;
12
12
 
13
- /** Represents the table public.Person */
14
- export default interface Person {
15
- id: PersonId;
13
+ /** Represents the table public.persons */
14
+ export default interface Persons {
15
+ id: PersonsId;
16
16
 
17
17
  email: string;
18
18
 
@@ -84,7 +84,7 @@ export default interface Person {
84
84
 
85
85
  howDidYouHearAboutUs: string | null;
86
86
 
87
- sourcePersonId: PersonId | null;
87
+ sourcePersonId: PersonsId | null;
88
88
 
89
89
  deactivatedAt: Date | null;
90
90
 
@@ -92,7 +92,7 @@ export default interface Person {
92
92
 
93
93
  signInCount: number;
94
94
 
95
- clientId: ClientId | null;
95
+ clientId: ClientsId | null;
96
96
 
97
97
  deletedAt: Date | null;
98
98
 
@@ -101,10 +101,10 @@ export default interface Person {
101
101
  updatedAt: Date;
102
102
  }
103
103
 
104
- /** Represents the initializer for the table public.Person */
105
- export interface PersonInitializer {
104
+ /** Represents the initializer for the table public.persons */
105
+ export interface PersonsInitializer {
106
106
  /** Default value: gen_random_uuid() */
107
- id?: PersonId;
107
+ id?: PersonsId;
108
108
 
109
109
  email: string;
110
110
 
@@ -181,7 +181,7 @@ export interface PersonInitializer {
181
181
 
182
182
  howDidYouHearAboutUs?: string | null;
183
183
 
184
- sourcePersonId?: PersonId | null;
184
+ sourcePersonId?: PersonsId | null;
185
185
 
186
186
  deactivatedAt?: Date | null;
187
187
 
@@ -190,7 +190,7 @@ export interface PersonInitializer {
190
190
  /** Default value: 0 */
191
191
  signInCount?: number;
192
192
 
193
- clientId?: ClientId | null;
193
+ clientId?: ClientsId | null;
194
194
 
195
195
  deletedAt?: Date | null;
196
196
 
@@ -201,9 +201,9 @@ export interface PersonInitializer {
201
201
  updatedAt?: Date;
202
202
  }
203
203
 
204
- /** Represents the mutator for the table public.Person */
205
- export interface PersonMutator {
206
- id?: PersonId;
204
+ /** Represents the mutator for the table public.persons */
205
+ export interface PersonsMutator {
206
+ id?: PersonsId;
207
207
 
208
208
  email?: string;
209
209
 
@@ -275,7 +275,7 @@ export interface PersonMutator {
275
275
 
276
276
  howDidYouHearAboutUs?: string | null;
277
277
 
278
- sourcePersonId?: PersonId | null;
278
+ sourcePersonId?: PersonsId | null;
279
279
 
280
280
  deactivatedAt?: Date | null;
281
281
 
@@ -283,7 +283,7 @@ export interface PersonMutator {
283
283
 
284
284
  signInCount?: number;
285
285
 
286
- clientId?: ClientId | null;
286
+ clientId?: ClientsId | null;
287
287
 
288
288
  deletedAt?: Date | null;
289
289
 
@@ -0,0 +1,32 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PersonsId } from './Persons';
5
+
6
+ /** Represents the table public.persons_to_best_persons */
7
+ export default interface PersonsToBestPersons {
8
+ bestiedByPersonId: PersonsId;
9
+
10
+ bestPersonId: PersonsId;
11
+
12
+ createdAt: Date;
13
+ }
14
+
15
+ /** Represents the initializer for the table public.persons_to_best_persons */
16
+ export interface PersonsToBestPersonsInitializer {
17
+ bestiedByPersonId: PersonsId;
18
+
19
+ bestPersonId: PersonsId;
20
+
21
+ /** Default value: CURRENT_TIMESTAMP */
22
+ createdAt?: Date;
23
+ }
24
+
25
+ /** Represents the mutator for the table public.persons_to_best_persons */
26
+ export interface PersonsToBestPersonsMutator {
27
+ bestiedByPersonId?: PersonsId;
28
+
29
+ bestPersonId?: PersonsId;
30
+
31
+ createdAt?: Date;
32
+ }
@@ -0,0 +1,33 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PersonsId } from './Persons';
5
+ import type { PersonClubsId } from './PersonClubs';
6
+
7
+ /** Represents the table public.persons_to_person_clubs */
8
+ export default interface PersonsToPersonClubs {
9
+ personId: PersonsId;
10
+
11
+ clubId: PersonClubsId;
12
+
13
+ createdAt: Date;
14
+ }
15
+
16
+ /** Represents the initializer for the table public.persons_to_person_clubs */
17
+ export interface PersonsToPersonClubsInitializer {
18
+ personId: PersonsId;
19
+
20
+ clubId: PersonClubsId;
21
+
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.persons_to_person_clubs */
27
+ export interface PersonsToPersonClubsMutator {
28
+ personId?: PersonsId;
29
+
30
+ clubId?: PersonClubsId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -0,0 +1,33 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PersonsId } from './Persons';
5
+ import type { PersonNetworksId } from './PersonNetworks';
6
+
7
+ /** Represents the table public.persons_to_person_networks */
8
+ export default interface PersonsToPersonNetworks {
9
+ personId: PersonsId;
10
+
11
+ networkId: PersonNetworksId;
12
+
13
+ createdAt: Date;
14
+ }
15
+
16
+ /** Represents the initializer for the table public.persons_to_person_networks */
17
+ export interface PersonsToPersonNetworksInitializer {
18
+ personId: PersonsId;
19
+
20
+ networkId: PersonNetworksId;
21
+
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.persons_to_person_networks */
27
+ export interface PersonsToPersonNetworksMutator {
28
+ personId?: PersonsId;
29
+
30
+ networkId?: PersonNetworksId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -0,0 +1,33 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PersonsId } from './Persons';
5
+ import type { PersonSkillsId } from './PersonSkills';
6
+
7
+ /** Represents the table public.persons_to_person_skills */
8
+ export default interface PersonsToPersonSkills {
9
+ personId: PersonsId;
10
+
11
+ skillId: PersonSkillsId;
12
+
13
+ createdAt: Date;
14
+ }
15
+
16
+ /** Represents the initializer for the table public.persons_to_person_skills */
17
+ export interface PersonsToPersonSkillsInitializer {
18
+ personId: PersonsId;
19
+
20
+ skillId: PersonSkillsId;
21
+
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.persons_to_person_skills */
27
+ export interface PersonsToPersonSkillsMutator {
28
+ personId?: PersonsId;
29
+
30
+ skillId?: PersonSkillsId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -0,0 +1,33 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PersonsId } from './Persons';
5
+ import type { TagsId } from './Tags';
6
+
7
+ /** Represents the table public.persons_to_tags */
8
+ export default interface PersonsToTags {
9
+ personId: PersonsId;
10
+
11
+ tagId: TagsId;
12
+
13
+ createdAt: Date;
14
+ }
15
+
16
+ /** Represents the initializer for the table public.persons_to_tags */
17
+ export interface PersonsToTagsInitializer {
18
+ personId: PersonsId;
19
+
20
+ tagId: TagsId;
21
+
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.persons_to_tags */
27
+ export interface PersonsToTagsMutator {
28
+ personId?: PersonsId;
29
+
30
+ tagId?: TagsId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -2,14 +2,14 @@
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
4
  import type { default as PositionStatuses } from './PositionStatuses';
5
- import type { ClientId } from './Client';
5
+ import type { ClientsId } from './Clients';
6
6
 
7
- /** Identifier type for public.Position */
8
- export type PositionId = string & { __brand: 'PositionId' };
7
+ /** Identifier type for public.positions */
8
+ export type PositionsId = string | number;
9
9
 
10
- /** Represents the table public.Position */
11
- export default interface Position {
12
- id: PositionId;
10
+ /** Represents the table public.positions */
11
+ export default interface Positions {
12
+ id: PositionsId;
13
13
 
14
14
  urlId: number;
15
15
 
@@ -19,7 +19,7 @@ export default interface Position {
19
19
 
20
20
  isHidden: boolean;
21
21
 
22
- clientId: ClientId;
22
+ clientId: ClientsId;
23
23
 
24
24
  createdAt: Date;
25
25
 
@@ -28,12 +28,12 @@ export default interface Position {
28
28
  deletedAt: Date | null;
29
29
  }
30
30
 
31
- /** Represents the initializer for the table public.Position */
32
- export interface PositionInitializer {
31
+ /** Represents the initializer for the table public.positions */
32
+ export interface PositionsInitializer {
33
33
  /** Default value: gen_random_uuid() */
34
- id?: PositionId;
34
+ id?: PositionsId;
35
35
 
36
- /** Default value: nextval('"Position_urlId_seq"'::regclass) */
36
+ /** Default value: nextval('"positions_urlId_seq"'::regclass) */
37
37
  urlId?: number;
38
38
 
39
39
  name: string;
@@ -44,7 +44,7 @@ export interface PositionInitializer {
44
44
  /** Default value: false */
45
45
  isHidden?: boolean;
46
46
 
47
- clientId: ClientId;
47
+ clientId: ClientsId;
48
48
 
49
49
  /** Default value: CURRENT_TIMESTAMP */
50
50
  createdAt?: Date;
@@ -55,9 +55,9 @@ export interface PositionInitializer {
55
55
  deletedAt?: Date | null;
56
56
  }
57
57
 
58
- /** Represents the mutator for the table public.Position */
59
- export interface PositionMutator {
60
- id?: PositionId;
58
+ /** Represents the mutator for the table public.positions */
59
+ export interface PositionsMutator {
60
+ id?: PositionsId;
61
61
 
62
62
  urlId?: number;
63
63
 
@@ -67,7 +67,7 @@ export interface PositionMutator {
67
67
 
68
68
  isHidden?: boolean;
69
69
 
70
- clientId?: ClientId;
70
+ clientId?: ClientsId;
71
71
 
72
72
  createdAt?: Date;
73
73
 
@@ -0,0 +1,29 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { ReferralsId } from './Referrals';
5
+
6
+ /** Identifier type for public.referral_payouts */
7
+ export type ReferralPayoutsId = string | number;
8
+
9
+ /** Represents the table public.referral_payouts */
10
+ export default interface ReferralPayouts {
11
+ id: ReferralPayoutsId;
12
+
13
+ referralId: ReferralsId | null;
14
+ }
15
+
16
+ /** Represents the initializer for the table public.referral_payouts */
17
+ export interface ReferralPayoutsInitializer {
18
+ /** Default value: gen_random_uuid() */
19
+ id?: ReferralPayoutsId;
20
+
21
+ referralId?: ReferralsId | null;
22
+ }
23
+
24
+ /** Represents the mutator for the table public.referral_payouts */
25
+ export interface ReferralPayoutsMutator {
26
+ id?: ReferralPayoutsId;
27
+
28
+ referralId?: ReferralsId | null;
29
+ }
@@ -0,0 +1,78 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { default as ReferralSources } from './ReferralSources';
5
+ import type { PersonsId } from './Persons';
6
+ import type { CandidaciesId } from './Candidacies';
7
+ import type { CampaignsId } from './Campaigns';
8
+ import type { PositionsId } from './Positions';
9
+
10
+ /** Identifier type for public.referrals */
11
+ export type ReferralsId = string | number;
12
+
13
+ /** Represents the table public.referrals */
14
+ export default interface Referrals {
15
+ id: ReferralsId;
16
+
17
+ source: ReferralSources | null;
18
+
19
+ referrerId: PersonsId;
20
+
21
+ candidacyId: CandidaciesId;
22
+
23
+ campaignId: CampaignsId | null;
24
+
25
+ positionId: PositionsId;
26
+
27
+ createdAt: Date;
28
+
29
+ updatedAt: Date;
30
+
31
+ messageId: string | null;
32
+ }
33
+
34
+ /** Represents the initializer for the table public.referrals */
35
+ export interface ReferralsInitializer {
36
+ /** Default value: gen_random_uuid() */
37
+ id?: ReferralsId;
38
+
39
+ /** Default value: 'ADMIN'::"ReferralSources" */
40
+ source?: ReferralSources | null;
41
+
42
+ referrerId: PersonsId;
43
+
44
+ candidacyId: CandidaciesId;
45
+
46
+ campaignId?: CampaignsId | null;
47
+
48
+ positionId: PositionsId;
49
+
50
+ /** Default value: CURRENT_TIMESTAMP */
51
+ createdAt?: Date;
52
+
53
+ /** Default value: CURRENT_TIMESTAMP */
54
+ updatedAt?: Date;
55
+
56
+ messageId?: string | null;
57
+ }
58
+
59
+ /** Represents the mutator for the table public.referrals */
60
+ export interface ReferralsMutator {
61
+ id?: ReferralsId;
62
+
63
+ source?: ReferralSources | null;
64
+
65
+ referrerId?: PersonsId;
66
+
67
+ candidacyId?: CandidaciesId;
68
+
69
+ campaignId?: CampaignsId | null;
70
+
71
+ positionId?: PositionsId;
72
+
73
+ createdAt?: Date;
74
+
75
+ updatedAt?: Date;
76
+
77
+ messageId?: string | null;
78
+ }
@@ -0,0 +1,40 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { MessagesId } from './Messages';
5
+ import type { ReferralsId } from './Referrals';
6
+
7
+ /** Represents the table public.referrals_to_intro_messages */
8
+ export default interface ReferralsToIntroMessages {
9
+ messageId: MessagesId;
10
+
11
+ referralId: ReferralsId;
12
+
13
+ createdAt: Date;
14
+
15
+ updatedAt: Date;
16
+ }
17
+
18
+ /** Represents the initializer for the table public.referrals_to_intro_messages */
19
+ export interface ReferralsToIntroMessagesInitializer {
20
+ messageId: MessagesId;
21
+
22
+ referralId: ReferralsId;
23
+
24
+ /** Default value: CURRENT_TIMESTAMP */
25
+ createdAt?: Date;
26
+
27
+ /** Default value: CURRENT_TIMESTAMP */
28
+ updatedAt?: Date;
29
+ }
30
+
31
+ /** Represents the mutator for the table public.referrals_to_intro_messages */
32
+ export interface ReferralsToIntroMessagesMutator {
33
+ messageId?: MessagesId;
34
+
35
+ referralId?: ReferralsId;
36
+
37
+ createdAt?: Date;
38
+
39
+ updatedAt?: Date;
40
+ }
@@ -1,12 +1,12 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- /** Identifier type for public.Sender */
5
- export type SenderId = string & { __brand: 'SenderId' };
4
+ /** Identifier type for public.senders */
5
+ export type SendersId = string | number;
6
6
 
7
- /** Represents the table public.Sender */
8
- export default interface Sender {
9
- id: SenderId;
7
+ /** Represents the table public.senders */
8
+ export default interface Senders {
9
+ id: SendersId;
10
10
 
11
11
  name: string;
12
12
 
@@ -21,10 +21,10 @@ export default interface Sender {
21
21
  updatedAt: Date;
22
22
  }
23
23
 
24
- /** Represents the initializer for the table public.Sender */
25
- export interface SenderInitializer {
24
+ /** Represents the initializer for the table public.senders */
25
+ export interface SendersInitializer {
26
26
  /** Default value: gen_random_uuid() */
27
- id?: SenderId;
27
+ id?: SendersId;
28
28
 
29
29
  name: string;
30
30
 
@@ -41,9 +41,9 @@ export interface SenderInitializer {
41
41
  updatedAt?: Date;
42
42
  }
43
43
 
44
- /** Represents the mutator for the table public.Sender */
45
- export interface SenderMutator {
46
- id?: SenderId;
44
+ /** Represents the mutator for the table public.senders */
45
+ export interface SendersMutator {
46
+ id?: SendersId;
47
47
 
48
48
  name?: string;
49
49
 
@@ -1,12 +1,12 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- /** Identifier type for public.Tag */
5
- export type TagId = string & { __brand: 'TagId' };
4
+ /** Identifier type for public.tags */
5
+ export type TagsId = string | number;
6
6
 
7
- /** Represents the table public.Tag */
8
- export default interface Tag {
9
- id: TagId;
7
+ /** Represents the table public.tags */
8
+ export default interface Tags {
9
+ id: TagsId;
10
10
 
11
11
  slug: string;
12
12
 
@@ -17,10 +17,10 @@ export default interface Tag {
17
17
  updatedAt: Date;
18
18
  }
19
19
 
20
- /** Represents the initializer for the table public.Tag */
21
- export interface TagInitializer {
20
+ /** Represents the initializer for the table public.tags */
21
+ export interface TagsInitializer {
22
22
  /** Default value: gen_random_uuid() */
23
- id?: TagId;
23
+ id?: TagsId;
24
24
 
25
25
  slug: string;
26
26
 
@@ -33,9 +33,9 @@ export interface TagInitializer {
33
33
  updatedAt?: Date;
34
34
  }
35
35
 
36
- /** Represents the mutator for the table public.Tag */
37
- export interface TagMutator {
38
- id?: TagId;
36
+ /** Represents the mutator for the table public.tags */
37
+ export interface TagsMutator {
38
+ id?: TagsId;
39
39
 
40
40
  slug?: string;
41
41