@the-inkwell/shared 0.1.65 → 0.1.67

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 (180) hide show
  1. package/dist/src/types/_schema/Action.js +4 -0
  2. package/dist/src/types/_schema/ActionNames.js +4 -0
  3. package/dist/src/types/_schema/Admin.js +4 -0
  4. package/dist/src/types/_schema/Campaign.js +4 -0
  5. package/dist/src/types/_schema/CampaignStatuses.js +4 -0
  6. package/dist/src/types/_schema/CampaignToPosition.js +4 -0
  7. package/dist/src/types/_schema/Candidacy.js +4 -0
  8. package/dist/src/types/_schema/CandidacyFeedback.js +4 -0
  9. package/dist/src/types/_schema/CandidacyRatingToTag.js +4 -0
  10. package/dist/src/types/_schema/CandidacySources.js +4 -0
  11. package/dist/src/types/_schema/CandidacyStatuses.js +4 -0
  12. package/dist/src/types/_schema/Client.js +4 -0
  13. package/dist/src/types/_schema/ClientStatuses.js +4 -0
  14. package/dist/src/types/_schema/Contract.js +4 -0
  15. package/dist/src/types/_schema/Conversation.js +4 -0
  16. package/dist/src/types/_schema/EnrichmentSources.js +4 -0
  17. package/dist/src/types/_schema/Jwt.js +4 -0
  18. package/dist/src/types/_schema/ListView.js +4 -0
  19. package/dist/src/types/_schema/ListViewModels.js +4 -0
  20. package/dist/src/types/_schema/Message.js +4 -0
  21. package/dist/src/types/_schema/MessageChannels.js +4 -0
  22. package/dist/src/types/_schema/MessageTemplate.js +4 -0
  23. package/dist/src/types/_schema/Note.js +4 -0
  24. package/dist/src/types/_schema/Otp.js +4 -0
  25. package/dist/src/types/_schema/Person.js +4 -0
  26. package/dist/src/types/_schema/PersonCareerLevels.js +4 -0
  27. package/dist/src/types/_schema/PersonClub.js +4 -0
  28. package/dist/src/types/_schema/PersonDegrees.js +4 -0
  29. package/dist/src/types/_schema/PersonEnrichment.js +4 -0
  30. package/dist/src/types/_schema/PersonGenders.js +4 -0
  31. package/dist/src/types/_schema/PersonNetwork.js +4 -0
  32. package/dist/src/types/_schema/PersonSkill.js +4 -0
  33. package/dist/src/types/_schema/PersonSources.js +4 -0
  34. package/dist/src/types/_schema/PersonToBestPerson.js +4 -0
  35. package/dist/src/types/_schema/PersonToPersonClub.js +4 -0
  36. package/dist/src/types/_schema/PersonToPersonNetwork.js +4 -0
  37. package/dist/src/types/_schema/PersonToPersonSkill.js +4 -0
  38. package/dist/src/types/_schema/PersonToTag.js +4 -0
  39. package/dist/src/types/_schema/Position.js +4 -0
  40. package/dist/src/types/_schema/PositionStatuses.js +4 -0
  41. package/dist/src/types/_schema/Referral.js +4 -0
  42. package/dist/src/types/_schema/ReferralPayout.js +4 -0
  43. package/dist/src/types/_schema/ReferralSources.js +4 -0
  44. package/dist/src/types/_schema/ReferralToIntroMessage.js +4 -0
  45. package/dist/src/types/_schema/Sender.js +4 -0
  46. package/dist/src/types/_schema/Tag.js +4 -0
  47. package/dist/src/types/_schema/WebsiteBlock.js +4 -0
  48. package/dist/src/types/_schema/WebsiteLandingPage.js +4 -0
  49. package/dist/src/types/_schema/WebsiteStaticPage.js +4 -0
  50. package/dist/src/types/http/admin/candidacies/index.js +2 -0
  51. package/dist/src/types/http/admin/index.js +19 -0
  52. package/dist/src/types/http/admin/persons/index.js +2 -0
  53. package/dist/src/types/http/admin/website/index.js +2 -0
  54. package/dist/src/types/http/auth/index.js +2 -0
  55. package/dist/src/types/http/index.js +19 -0
  56. package/dist/src/types/http/utils/index.js +2 -0
  57. package/dist/src/types/index.js +2 -3
  58. package/dist/src/types/models/admin/candidacies/index.js +2 -0
  59. package/dist/src/types/models/admin/index.js +19 -0
  60. package/dist/src/types/models/admin/persons/index.js +2 -0
  61. package/dist/src/types/models/admin/website/index.js +2 -0
  62. package/dist/src/types/models/auth/index.js +2 -0
  63. package/dist/src/types/models/index.js +19 -0
  64. package/dist/src/types/schemas/Database.js +4 -0
  65. package/dist/src/types/schemas/index.js +23 -0
  66. package/dist/src/types/schemas/public/Action.js +4 -0
  67. package/dist/src/types/schemas/public/ActionNames.js +4 -0
  68. package/dist/src/types/schemas/public/Admin.js +4 -0
  69. package/dist/src/types/schemas/public/Campaign.js +4 -0
  70. package/dist/src/types/schemas/public/CampaignStatuses.js +4 -0
  71. package/dist/src/types/schemas/public/CampaignToPosition.js +4 -0
  72. package/dist/src/types/schemas/public/Candidacy.js +4 -0
  73. package/dist/src/types/schemas/public/CandidacyFeedback.js +4 -0
  74. package/dist/src/types/schemas/public/CandidacyRatingToTag.js +4 -0
  75. package/dist/src/types/schemas/public/CandidacySources.js +4 -0
  76. package/dist/src/types/schemas/public/CandidacyStatuses.js +4 -0
  77. package/dist/src/types/schemas/public/Client.js +4 -0
  78. package/dist/src/types/schemas/public/ClientStatuses.js +4 -0
  79. package/dist/src/types/schemas/public/Contract.js +4 -0
  80. package/dist/src/types/schemas/public/Conversation.js +4 -0
  81. package/dist/src/types/schemas/public/EnrichmentSources.js +4 -0
  82. package/dist/src/types/schemas/public/Jwt.js +4 -0
  83. package/dist/src/types/schemas/public/ListView.js +4 -0
  84. package/dist/src/types/schemas/public/ListViewModels.js +4 -0
  85. package/dist/src/types/schemas/public/Message.js +4 -0
  86. package/dist/src/types/schemas/public/MessageChannels.js +4 -0
  87. package/dist/src/types/schemas/public/MessageSender.js +4 -0
  88. package/dist/src/types/schemas/public/MessageTemplate.js +4 -0
  89. package/dist/src/types/schemas/public/Note.js +4 -0
  90. package/dist/src/types/schemas/public/Otp.js +4 -0
  91. package/dist/src/types/schemas/public/Person.js +4 -0
  92. package/dist/src/types/schemas/public/PersonCareerLevels.js +4 -0
  93. package/dist/src/types/schemas/public/PersonClub.js +4 -0
  94. package/dist/src/types/schemas/public/PersonDegrees.js +4 -0
  95. package/dist/src/types/schemas/public/PersonEnrichment.js +4 -0
  96. package/dist/src/types/schemas/public/PersonGenders.js +4 -0
  97. package/dist/src/types/schemas/public/PersonNetwork.js +4 -0
  98. package/dist/src/types/schemas/public/PersonSkill.js +4 -0
  99. package/dist/src/types/schemas/public/PersonSources.js +4 -0
  100. package/dist/src/types/schemas/public/PersonToBestPerson.js +4 -0
  101. package/dist/src/types/schemas/public/PersonToPersonClub.js +4 -0
  102. package/dist/src/types/schemas/public/PersonToPersonNetwork.js +4 -0
  103. package/dist/src/types/schemas/public/PersonToPersonSkill.js +4 -0
  104. package/dist/src/types/schemas/public/PersonToTag.js +4 -0
  105. package/dist/src/types/schemas/public/Position.js +4 -0
  106. package/dist/src/types/schemas/public/PositionStatuses.js +4 -0
  107. package/dist/src/types/schemas/public/PrismaMigrations.js +4 -0
  108. package/dist/src/types/schemas/public/PublicSchema.js +4 -0
  109. package/dist/src/types/schemas/public/Referral.js +4 -0
  110. package/dist/src/types/schemas/public/ReferralPayout.js +4 -0
  111. package/dist/src/types/schemas/public/ReferralSources.js +4 -0
  112. package/dist/src/types/schemas/public/ReferralToIntroMessage.js +4 -0
  113. package/dist/src/types/schemas/public/Sender.js +4 -0
  114. package/dist/src/types/schemas/public/Tag.js +4 -0
  115. package/dist/src/types/schemas/public/WebsiteBlock.js +4 -0
  116. package/dist/src/types/schemas/public/WebsiteLandingPage.js +4 -0
  117. package/dist/src/types/schemas/public/WebsiteStaticPage.js +4 -0
  118. package/dist/src/types/utils/index.js +2 -0
  119. package/package.json +4 -1
  120. package/src/types/_schema/Action.ts +91 -0
  121. package/src/types/_schema/ActionNames.ts +11 -0
  122. package/src/types/_schema/Admin.ts +36 -0
  123. package/src/types/_schema/Campaign.ts +77 -0
  124. package/src/types/_schema/CampaignStatuses.ts +10 -0
  125. package/src/types/_schema/CampaignToPosition.ts +40 -0
  126. package/src/types/_schema/Candidacy.ts +84 -0
  127. package/src/types/_schema/CandidacyFeedback.ts +55 -0
  128. package/src/types/_schema/CandidacyRatingToTag.ts +40 -0
  129. package/src/types/_schema/CandidacySources.ts +11 -0
  130. package/src/types/_schema/CandidacyStatuses.ts +14 -0
  131. package/src/types/_schema/Client.ts +56 -0
  132. package/src/types/_schema/ClientStatuses.ts +10 -0
  133. package/src/types/_schema/Contract.ts +62 -0
  134. package/src/types/_schema/Conversation.ts +64 -0
  135. package/src/types/_schema/EnrichmentSources.ts +8 -0
  136. package/src/types/_schema/Jwt.ts +55 -0
  137. package/src/types/_schema/ListView.ts +74 -0
  138. package/src/types/_schema/ListViewModels.ts +11 -0
  139. package/src/types/_schema/Message.ts +70 -0
  140. package/src/types/_schema/MessageChannels.ts +9 -0
  141. package/src/types/_schema/MessageTemplate.ts +53 -0
  142. package/src/types/_schema/Note.ts +76 -0
  143. package/src/types/_schema/Otp.ts +61 -0
  144. package/src/types/_schema/Person.ts +293 -0
  145. package/src/types/_schema/PersonCareerLevels.ts +13 -0
  146. package/src/types/_schema/PersonClub.ts +53 -0
  147. package/src/types/_schema/PersonDegrees.ts +13 -0
  148. package/src/types/_schema/PersonEnrichment.ts +62 -0
  149. package/src/types/_schema/PersonGenders.ts +11 -0
  150. package/src/types/_schema/PersonNetwork.ts +53 -0
  151. package/src/types/_schema/PersonSkill.ts +53 -0
  152. package/src/types/_schema/PersonSources.ts +11 -0
  153. package/src/types/_schema/PersonToBestPerson.ts +32 -0
  154. package/src/types/_schema/PersonToPersonClub.ts +33 -0
  155. package/src/types/_schema/PersonToPersonNetwork.ts +33 -0
  156. package/src/types/_schema/PersonToPersonSkill.ts +33 -0
  157. package/src/types/_schema/PersonToTag.ts +33 -0
  158. package/src/types/_schema/Position.ts +77 -0
  159. package/src/types/_schema/PositionStatuses.ts +9 -0
  160. package/src/types/_schema/Referral.ts +78 -0
  161. package/src/types/_schema/ReferralPayout.ts +29 -0
  162. package/src/types/_schema/ReferralSources.ts +10 -0
  163. package/src/types/_schema/ReferralToIntroMessage.ts +40 -0
  164. package/src/types/_schema/Sender.ts +59 -0
  165. package/src/types/_schema/Tag.ts +47 -0
  166. package/src/types/_schema/WebsiteBlock.ts +45 -0
  167. package/src/types/_schema/WebsiteLandingPage.ts +47 -0
  168. package/src/types/_schema/WebsiteStaticPage.ts +53 -0
  169. package/src/types/index.ts +2 -3
  170. package/src/types/models/admin/candidacies/index.ts +26 -0
  171. package/src/types/models/admin/persons/index.ts +33 -0
  172. package/src/types/models/admin/website/index.ts +22 -0
  173. package/src/types/models/auth/index.ts +6 -0
  174. package/src/types/models/index.ts +3 -0
  175. package/src/types/admin/candidacies/index.ts +0 -38
  176. package/src/types/admin/persons/index.ts +0 -111
  177. package/src/types/admin/website/index.ts +0 -43
  178. package/src/types/auth/index.ts +0 -7
  179. /package/src/types/{admin → models/admin}/index.ts +0 -0
  180. /package/src/types/{shared → utils}/index.ts +0 -0
@@ -0,0 +1,14 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Represents the enum public.CandidacyStatuses */
5
+ type CandidacyStatuses =
6
+ | 'SUBMITTED'
7
+ | 'SCREENING'
8
+ | 'INTERVIEWING'
9
+ | 'OFFERED'
10
+ | 'HIRED'
11
+ | 'REJECTED'
12
+ | 'WITHDRAWN';
13
+
14
+ export default CandidacyStatuses;
@@ -0,0 +1,56 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { default as ClientStatuses } from './ClientStatuses';
5
+
6
+ /** Identifier type for public.Client */
7
+ export type ClientId = string & { __brand: 'ClientId' };
8
+
9
+ /** Represents the table public.Client */
10
+ export default interface Client {
11
+ id: ClientId;
12
+
13
+ name: string;
14
+
15
+ description: string;
16
+
17
+ currentStatus: ClientStatuses | null;
18
+
19
+ createdAt: Date;
20
+
21
+ updatedAt: Date;
22
+ }
23
+
24
+ /** Represents the initializer for the table public.Client */
25
+ export interface ClientInitializer {
26
+ /** Default value: gen_random_uuid() */
27
+ id?: ClientId;
28
+
29
+ name: string;
30
+
31
+ description: string;
32
+
33
+ /** Default value: 'ACTIVE'::"ClientStatuses" */
34
+ currentStatus?: ClientStatuses | null;
35
+
36
+ /** Default value: CURRENT_TIMESTAMP */
37
+ createdAt?: Date;
38
+
39
+ /** Default value: CURRENT_TIMESTAMP */
40
+ updatedAt?: Date;
41
+ }
42
+
43
+ /** Represents the mutator for the table public.Client */
44
+ export interface ClientMutator {
45
+ id?: ClientId;
46
+
47
+ name?: string;
48
+
49
+ description?: string;
50
+
51
+ currentStatus?: ClientStatuses | null;
52
+
53
+ createdAt?: Date;
54
+
55
+ updatedAt?: Date;
56
+ }
@@ -0,0 +1,10 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Represents the enum public.ClientStatuses */
5
+ type ClientStatuses =
6
+ | 'LEAD'
7
+ | 'ACTIVE'
8
+ | 'INACTIVE';
9
+
10
+ export default ClientStatuses;
@@ -0,0 +1,62 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PositionId } from './Position';
5
+ import type { ClientId } from './Client';
6
+
7
+ /** Identifier type for public.Contract */
8
+ export type ContractId = string & { __brand: 'ContractId' };
9
+
10
+ /** Represents the table public.Contract */
11
+ export default interface Contract {
12
+ id: ContractId;
13
+
14
+ data: unknown;
15
+
16
+ documentUrl: string;
17
+
18
+ positionId: PositionId | null;
19
+
20
+ clientId: ClientId;
21
+
22
+ createdAt: Date;
23
+
24
+ updatedAt: Date;
25
+ }
26
+
27
+ /** Represents the initializer for the table public.Contract */
28
+ export interface ContractInitializer {
29
+ /** Default value: gen_random_uuid() */
30
+ id?: ContractId;
31
+
32
+ data: unknown;
33
+
34
+ documentUrl: string;
35
+
36
+ positionId?: PositionId | null;
37
+
38
+ clientId: ClientId;
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.Contract */
48
+ export interface ContractMutator {
49
+ id?: ContractId;
50
+
51
+ data?: unknown;
52
+
53
+ documentUrl?: string;
54
+
55
+ positionId?: PositionId | null;
56
+
57
+ clientId?: ClientId;
58
+
59
+ createdAt?: Date;
60
+
61
+ updatedAt?: Date;
62
+ }
@@ -0,0 +1,64 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { default as MessageChannels } from './MessageChannels';
5
+ import type { PersonId } from './Person';
6
+ import type { CampaignId } from './Campaign';
7
+
8
+ /** Identifier type for public.Conversation */
9
+ export type ConversationId = string & { __brand: 'ConversationId' };
10
+
11
+ /** Represents the table public.Conversation */
12
+ export default interface Conversation {
13
+ id: ConversationId;
14
+
15
+ urlId: number;
16
+
17
+ channel: MessageChannels;
18
+
19
+ personId: PersonId;
20
+
21
+ campaignId: CampaignId | null;
22
+
23
+ createdAt: Date;
24
+
25
+ updatedAt: Date;
26
+ }
27
+
28
+ /** Represents the initializer for the table public.Conversation */
29
+ export interface ConversationInitializer {
30
+ /** Default value: gen_random_uuid() */
31
+ id?: ConversationId;
32
+
33
+ /** Default value: nextval('"Conversation_urlId_seq"'::regclass) */
34
+ urlId?: number;
35
+
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
+ }
@@ -0,0 +1,8 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Represents the enum public.EnrichmentSources */
5
+ type EnrichmentSources =
6
+ | 'PDL';
7
+
8
+ export default EnrichmentSources;
@@ -0,0 +1,55 @@
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.Jwt */
7
+ export type JwtId = number & { __brand: 'JwtId' };
8
+
9
+ /** Represents the table public.Jwt */
10
+ export default interface Jwt {
11
+ id: JwtId;
12
+
13
+ jti: string;
14
+
15
+ revokedAt: Date | null;
16
+
17
+ createdAt: Date;
18
+
19
+ updatedAt: Date;
20
+
21
+ personId: PersonId;
22
+ }
23
+
24
+ /** Represents the initializer for the table public.Jwt */
25
+ export interface JwtInitializer {
26
+ /** Default value: nextval('"Jwt_id_seq"'::regclass) */
27
+ id?: JwtId;
28
+
29
+ jti: string;
30
+
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
+ }
@@ -0,0 +1,74 @@
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
+ }
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,70 @@
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
+ }
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,53 @@
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
+ }
@@ -0,0 +1,76 @@
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
+ }
@@ -0,0 +1,61 @@
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
+ }