@the-inkwell/shared 0.1.65 → 0.1.66

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 +24 -0
  171. package/src/types/models/admin/persons/index.ts +31 -0
  172. package/src/types/models/admin/website/index.ts +20 -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,33 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PersonId } from './Person';
5
+ import type { TagId } from './Tag';
6
+
7
+ /** Represents the table public.PersonToTag */
8
+ export default interface PersonToTag {
9
+ personId: PersonId;
10
+
11
+ tagId: TagId;
12
+
13
+ createdAt: Date;
14
+ }
15
+
16
+ /** Represents the initializer for the table public.PersonToTag */
17
+ export interface PersonToTagInitializer {
18
+ personId: PersonId;
19
+
20
+ tagId: TagId;
21
+
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.PersonToTag */
27
+ export interface PersonToTagMutator {
28
+ personId?: PersonId;
29
+
30
+ tagId?: TagId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -0,0 +1,77 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { default as PositionStatuses } from './PositionStatuses';
5
+ import type { ClientId } from './Client';
6
+
7
+ /** Identifier type for public.Position */
8
+ export type PositionId = string & { __brand: 'PositionId' };
9
+
10
+ /** Represents the table public.Position */
11
+ export default interface Position {
12
+ id: PositionId;
13
+
14
+ urlId: number;
15
+
16
+ name: string;
17
+
18
+ currentStatus: PositionStatuses | null;
19
+
20
+ isHidden: boolean;
21
+
22
+ clientId: ClientId;
23
+
24
+ createdAt: Date;
25
+
26
+ updatedAt: Date;
27
+
28
+ deletedAt: Date | null;
29
+ }
30
+
31
+ /** Represents the initializer for the table public.Position */
32
+ export interface PositionInitializer {
33
+ /** Default value: gen_random_uuid() */
34
+ id?: PositionId;
35
+
36
+ /** Default value: nextval('"Position_urlId_seq"'::regclass) */
37
+ urlId?: number;
38
+
39
+ name: string;
40
+
41
+ /** Default value: 'OPEN'::"PositionStatuses" */
42
+ currentStatus?: PositionStatuses | null;
43
+
44
+ /** Default value: false */
45
+ isHidden?: boolean;
46
+
47
+ clientId: ClientId;
48
+
49
+ /** Default value: CURRENT_TIMESTAMP */
50
+ createdAt?: Date;
51
+
52
+ /** Default value: CURRENT_TIMESTAMP */
53
+ updatedAt?: Date;
54
+
55
+ deletedAt?: Date | null;
56
+ }
57
+
58
+ /** Represents the mutator for the table public.Position */
59
+ export interface PositionMutator {
60
+ id?: PositionId;
61
+
62
+ urlId?: number;
63
+
64
+ name?: string;
65
+
66
+ currentStatus?: PositionStatuses | null;
67
+
68
+ isHidden?: boolean;
69
+
70
+ clientId?: ClientId;
71
+
72
+ createdAt?: Date;
73
+
74
+ updatedAt?: Date;
75
+
76
+ deletedAt?: Date | null;
77
+ }
@@ -0,0 +1,9 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Represents the enum public.PositionStatuses */
5
+ type PositionStatuses =
6
+ | 'OPEN'
7
+ | 'CLOSED';
8
+
9
+ export default PositionStatuses;
@@ -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 { PersonId } from './Person';
6
+ import type { CandidacyId } from './Candidacy';
7
+ import type { CampaignId } from './Campaign';
8
+ import type { PositionId } from './Position';
9
+
10
+ /** Identifier type for public.Referral */
11
+ export type ReferralId = string & { __brand: 'ReferralId' };
12
+
13
+ /** Represents the table public.Referral */
14
+ export default interface Referral {
15
+ id: ReferralId;
16
+
17
+ source: ReferralSources | null;
18
+
19
+ referrerId: PersonId;
20
+
21
+ candidacyId: CandidacyId;
22
+
23
+ campaignId: CampaignId | null;
24
+
25
+ positionId: PositionId;
26
+
27
+ createdAt: Date;
28
+
29
+ updatedAt: Date;
30
+
31
+ messageId: string | null;
32
+ }
33
+
34
+ /** Represents the initializer for the table public.Referral */
35
+ export interface ReferralInitializer {
36
+ /** Default value: gen_random_uuid() */
37
+ id?: ReferralId;
38
+
39
+ /** Default value: 'ADMIN'::"ReferralSources" */
40
+ source?: ReferralSources | null;
41
+
42
+ referrerId: PersonId;
43
+
44
+ candidacyId: CandidacyId;
45
+
46
+ campaignId?: CampaignId | null;
47
+
48
+ positionId: PositionId;
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.Referral */
60
+ export interface ReferralMutator {
61
+ id?: ReferralId;
62
+
63
+ source?: ReferralSources | null;
64
+
65
+ referrerId?: PersonId;
66
+
67
+ candidacyId?: CandidacyId;
68
+
69
+ campaignId?: CampaignId | null;
70
+
71
+ positionId?: PositionId;
72
+
73
+ createdAt?: Date;
74
+
75
+ updatedAt?: Date;
76
+
77
+ messageId?: string | null;
78
+ }
@@ -0,0 +1,29 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { ReferralId } from './Referral';
5
+
6
+ /** Identifier type for public.ReferralPayout */
7
+ export type ReferralPayoutId = string & { __brand: 'ReferralPayoutId' };
8
+
9
+ /** Represents the table public.ReferralPayout */
10
+ export default interface ReferralPayout {
11
+ id: ReferralPayoutId;
12
+
13
+ referralId: ReferralId | null;
14
+ }
15
+
16
+ /** Represents the initializer for the table public.ReferralPayout */
17
+ export interface ReferralPayoutInitializer {
18
+ /** Default value: gen_random_uuid() */
19
+ id?: ReferralPayoutId;
20
+
21
+ referralId?: ReferralId | null;
22
+ }
23
+
24
+ /** Represents the mutator for the table public.ReferralPayout */
25
+ export interface ReferralPayoutMutator {
26
+ id?: ReferralPayoutId;
27
+
28
+ referralId?: ReferralId | null;
29
+ }
@@ -0,0 +1,10 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Represents the enum public.ReferralSources */
5
+ type ReferralSources =
6
+ | 'MESSAGE'
7
+ | 'ADMIN'
8
+ | 'WEBSITE';
9
+
10
+ export default ReferralSources;
@@ -0,0 +1,40 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { MessageId } from './Message';
5
+ import type { ReferralId } from './Referral';
6
+
7
+ /** Represents the table public.ReferralToIntroMessage */
8
+ export default interface ReferralToIntroMessage {
9
+ messageId: MessageId;
10
+
11
+ referralId: ReferralId;
12
+
13
+ createdAt: Date;
14
+
15
+ updatedAt: Date;
16
+ }
17
+
18
+ /** Represents the initializer for the table public.ReferralToIntroMessage */
19
+ export interface ReferralToIntroMessageInitializer {
20
+ messageId: MessageId;
21
+
22
+ referralId: ReferralId;
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.ReferralToIntroMessage */
32
+ export interface ReferralToIntroMessageMutator {
33
+ messageId?: MessageId;
34
+
35
+ referralId?: ReferralId;
36
+
37
+ createdAt?: Date;
38
+
39
+ updatedAt?: Date;
40
+ }
@@ -0,0 +1,59 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Identifier type for public.Sender */
5
+ export type SenderId = string & { __brand: 'SenderId' };
6
+
7
+ /** Represents the table public.Sender */
8
+ export default interface Sender {
9
+ id: SenderId;
10
+
11
+ name: string;
12
+
13
+ email: string | null;
14
+
15
+ replyToEmail: string | null;
16
+
17
+ smsNumber: string | null;
18
+
19
+ createdAt: Date;
20
+
21
+ updatedAt: Date;
22
+ }
23
+
24
+ /** Represents the initializer for the table public.Sender */
25
+ export interface SenderInitializer {
26
+ /** Default value: gen_random_uuid() */
27
+ id?: SenderId;
28
+
29
+ name: string;
30
+
31
+ email?: string | null;
32
+
33
+ replyToEmail?: string | null;
34
+
35
+ smsNumber?: string | null;
36
+
37
+ /** Default value: CURRENT_TIMESTAMP */
38
+ createdAt?: Date;
39
+
40
+ /** Default value: CURRENT_TIMESTAMP */
41
+ updatedAt?: Date;
42
+ }
43
+
44
+ /** Represents the mutator for the table public.Sender */
45
+ export interface SenderMutator {
46
+ id?: SenderId;
47
+
48
+ name?: string;
49
+
50
+ email?: string | null;
51
+
52
+ replyToEmail?: string | null;
53
+
54
+ smsNumber?: string | null;
55
+
56
+ createdAt?: Date;
57
+
58
+ updatedAt?: Date;
59
+ }
@@ -0,0 +1,47 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Identifier type for public.Tag */
5
+ export type TagId = string & { __brand: 'TagId' };
6
+
7
+ /** Represents the table public.Tag */
8
+ export default interface Tag {
9
+ id: TagId;
10
+
11
+ slug: string;
12
+
13
+ name: string;
14
+
15
+ createdAt: Date;
16
+
17
+ updatedAt: Date;
18
+ }
19
+
20
+ /** Represents the initializer for the table public.Tag */
21
+ export interface TagInitializer {
22
+ /** Default value: gen_random_uuid() */
23
+ id?: TagId;
24
+
25
+ slug: string;
26
+
27
+ name: string;
28
+
29
+ /** Default value: CURRENT_TIMESTAMP */
30
+ createdAt?: Date;
31
+
32
+ /** Default value: CURRENT_TIMESTAMP */
33
+ updatedAt?: Date;
34
+ }
35
+
36
+ /** Represents the mutator for the table public.Tag */
37
+ export interface TagMutator {
38
+ id?: TagId;
39
+
40
+ slug?: string;
41
+
42
+ name?: string;
43
+
44
+ createdAt?: Date;
45
+
46
+ updatedAt?: Date;
47
+ }
@@ -0,0 +1,45 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Identifier type for public.WebsiteBlock */
5
+ export type WebsiteBlockId = string & { __brand: 'WebsiteBlockId' };
6
+
7
+ /** Represents the table public.WebsiteBlock */
8
+ export default interface WebsiteBlock {
9
+ id: WebsiteBlockId;
10
+
11
+ slug: string;
12
+
13
+ name: string;
14
+
15
+ content: string;
16
+
17
+ contentType: string;
18
+ }
19
+
20
+ /** Represents the initializer for the table public.WebsiteBlock */
21
+ export interface WebsiteBlockInitializer {
22
+ /** Default value: gen_random_uuid() */
23
+ id?: WebsiteBlockId;
24
+
25
+ slug: string;
26
+
27
+ name: string;
28
+
29
+ content: string;
30
+
31
+ contentType: string;
32
+ }
33
+
34
+ /** Represents the mutator for the table public.WebsiteBlock */
35
+ export interface WebsiteBlockMutator {
36
+ id?: WebsiteBlockId;
37
+
38
+ slug?: string;
39
+
40
+ name?: string;
41
+
42
+ content?: string;
43
+
44
+ contentType?: string;
45
+ }
@@ -0,0 +1,47 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Identifier type for public.WebsiteLandingPage */
5
+ export type WebsiteLandingPageId = string & { __brand: 'WebsiteLandingPageId' };
6
+
7
+ /** Represents the table public.WebsiteLandingPage */
8
+ export default interface WebsiteLandingPage {
9
+ id: WebsiteLandingPageId;
10
+
11
+ slug: string;
12
+
13
+ name: string;
14
+
15
+ content: unknown;
16
+
17
+ meta: unknown;
18
+ }
19
+
20
+ /** Represents the initializer for the table public.WebsiteLandingPage */
21
+ export interface WebsiteLandingPageInitializer {
22
+ /** Default value: gen_random_uuid() */
23
+ id?: WebsiteLandingPageId;
24
+
25
+ slug: string;
26
+
27
+ name: string;
28
+
29
+ /** Default value: '{}'::jsonb */
30
+ content?: unknown;
31
+
32
+ /** Default value: '{}'::jsonb */
33
+ meta?: unknown;
34
+ }
35
+
36
+ /** Represents the mutator for the table public.WebsiteLandingPage */
37
+ export interface WebsiteLandingPageMutator {
38
+ id?: WebsiteLandingPageId;
39
+
40
+ slug?: string;
41
+
42
+ name?: string;
43
+
44
+ content?: unknown;
45
+
46
+ meta?: unknown;
47
+ }
@@ -0,0 +1,53 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Identifier type for public.WebsiteStaticPage */
5
+ export type WebsiteStaticPageId = string & { __brand: 'WebsiteStaticPageId' };
6
+
7
+ /** Represents the table public.WebsiteStaticPage */
8
+ export default interface WebsiteStaticPage {
9
+ id: WebsiteStaticPageId;
10
+
11
+ slug: string;
12
+
13
+ name: string;
14
+
15
+ path: string;
16
+
17
+ content: unknown;
18
+
19
+ meta: unknown;
20
+ }
21
+
22
+ /** Represents the initializer for the table public.WebsiteStaticPage */
23
+ export interface WebsiteStaticPageInitializer {
24
+ /** Default value: gen_random_uuid() */
25
+ id?: WebsiteStaticPageId;
26
+
27
+ slug: string;
28
+
29
+ name: string;
30
+
31
+ path: string;
32
+
33
+ /** Default value: '{}'::jsonb */
34
+ content?: unknown;
35
+
36
+ /** Default value: '{}'::jsonb */
37
+ meta?: unknown;
38
+ }
39
+
40
+ /** Represents the mutator for the table public.WebsiteStaticPage */
41
+ export interface WebsiteStaticPageMutator {
42
+ id?: WebsiteStaticPageId;
43
+
44
+ slug?: string;
45
+
46
+ name?: string;
47
+
48
+ path?: string;
49
+
50
+ content?: unknown;
51
+
52
+ meta?: unknown;
53
+ }
@@ -1,3 +1,2 @@
1
- export * from './admin'
2
- export * from './auth'
3
- export * from './shared'
1
+ export * from './models'
2
+ export * from './utils'
@@ -0,0 +1,24 @@
1
+ import type Action from '../../../_schema/Action'
2
+ import type Candidacy from '../../../_schema/Candidacy'
3
+ import type CandidacyFeedback from '../../../_schema/CandidacyFeedback'
4
+ import type Note from '../../../_schema/Note'
5
+ import type Person from '../../../_schema/Person'
6
+ import type Referral from '../../../_schema/Referral'
7
+ import type Tag from '../../../_schema/Tag'
8
+ import { type ListRequest, type ListResponse } from '../../../utils'
9
+
10
+ // detail
11
+
12
+ export type AdminCandidacy = Candidacy & {
13
+ referral?: Pick<Referral, 'id'>
14
+ person: Pick<Person, 'id' | 'firstName' | 'lastName' | 'photoUrl'>
15
+ ratingTags?: Pick<Tag, 'id' | 'name'>[]
16
+ actions?: Pick<Action, 'id' | 'name'>[]
17
+ feedbacks?: Pick<CandidacyFeedback, 'id' | 'content'>[]
18
+ notes?: Pick<Note, 'id' | 'content'>[]
19
+ }
20
+
21
+ // list
22
+
23
+ export type AdminCandidacyList = ListResponse<AdminCandidacy>
24
+ export type AdminCandidacyListInput = ListRequest
@@ -0,0 +1,31 @@
1
+ import type Person from '../../../_schema/Person'
2
+ import type { PersonMutator, PersonInitializer } from '../../../_schema/Person'
3
+ import { type ListRequest, type ListResponse } from '../../../utils'
4
+
5
+ // detail
6
+
7
+ export type AdminPerson = Person
8
+ export type AdminPersonParams = Pick<AdminPerson, 'id'>
9
+
10
+ // list
11
+
12
+ export type AdminPersonListInput = ListRequest
13
+ export type AdminPersonList = ListResponse<AdminPerson>
14
+
15
+ // create
16
+
17
+ export type AdminPersonCreateInput = Pick<
18
+ PersonInitializer,
19
+ 'firstName' | 'lastName' | 'email' | 'phone' | 'linkedInUrl' | 'photoUrl'
20
+ >
21
+
22
+ // update
23
+
24
+ export type AdminPersonUpdateInput = Pick<
25
+ PersonMutator,
26
+ 'firstName' | 'lastName' | 'email' | 'phone' | 'linkedInUrl' | 'photoUrl'
27
+ >
28
+
29
+ // delete
30
+
31
+ export type AdminPersonDeleteParams = Pick<AdminPerson, 'id'>
@@ -0,0 +1,20 @@
1
+ import type WebsiteStaticPage from '../../../_schema/WebsiteStaticPage'
2
+ import type { WebsiteStaticPageMutator } from '../../../_schema/WebsiteStaticPage'
3
+ import { type ListResponse } from '../../../utils'
4
+
5
+ // detail
6
+
7
+ export type AdminWebsiteStaticPage = WebsiteStaticPage
8
+ export type AdminWebsiteStaticPageParams = Pick<WebsiteStaticPage, 'slug'>
9
+
10
+ // list
11
+
12
+ export type AdminWebsiteStaticPageList = ListResponse<WebsiteStaticPage>
13
+ export type AdminWebsiteStaticPageListInput = Pick<WebsiteStaticPage, 'slug'>
14
+
15
+ // update
16
+
17
+ export type AdminWebsiteStaticPageUpdateInput = Pick<
18
+ WebsiteStaticPageMutator,
19
+ 'content' | 'meta'
20
+ >
@@ -0,0 +1,6 @@
1
+ import Person from '../../_schema/Person'
2
+ import Otp from '../../_schema/Otp'
3
+
4
+ export type AuthOtpCreate = Pick<Person, 'email'>
5
+
6
+ export type AuthSignInCreate = Pick<Otp, 'code'>
@@ -0,0 +1,3 @@
1
+ export * from './admin'
2
+ export * from './auth'
3
+ export * from '../utils'
@@ -1,38 +0,0 @@
1
- import { type ListRequest, type ListResponse } from '../../shared'
2
- import { type AdminPerson } from '../persons'
3
-
4
- export type AdminCandidacy = {
5
- id: string
6
- currentStatus: any // TODO add this
7
-
8
- rating: number | null
9
- ratingNotes?: string | null
10
-
11
- source: any // TODO add this
12
-
13
- personId: string
14
- person: Pick<AdminPerson, 'id' | 'firstName' | 'lastName' | 'photoUrl'>
15
-
16
- positionId: string
17
- position: any // TODO add this
18
-
19
- referral: any // TODO add this
20
-
21
- ratingTags?: any // TODO add this
22
- actions?: any // TODO add this
23
- feedbacks?: any // TODO add this
24
- notes?: any // TODO add this
25
-
26
- deletedAt: Date | null
27
- createdAt: Date
28
- updatedAt: Date
29
- }
30
-
31
- export type AdminCandidacyListRequest = ListRequest
32
-
33
- export type AdminCandidacyListResponse = ListResponse<
34
- Pick<
35
- AdminCandidacy,
36
- 'id' | 'createdAt' | 'currentStatus' | 'position' | 'person'
37
- >
38
- >