@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
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin)",
@@ -0,0 +1,91 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { CandidaciesId } from './Candidacies';
5
+ import type { ClientsId } from './Clients';
6
+ import type { MessagesId } from './Messages';
7
+ import type { NotesId } from './Notes';
8
+ import type { PersonsId } from './Persons';
9
+ import type { PositionsId } from './Positions';
10
+ import type { ReferralsId } from './Referrals';
11
+ import type { default as ActionNames } from './ActionNames';
12
+
13
+ /** Identifier type for public.actions */
14
+ export type ActionsId = string | number;
15
+
16
+ /** Represents the table public.actions */
17
+ export default interface Actions {
18
+ id: ActionsId;
19
+
20
+ candidacyId: CandidaciesId | null;
21
+
22
+ clientId: ClientsId | null;
23
+
24
+ messageId: MessagesId | null;
25
+
26
+ noteId: NotesId | null;
27
+
28
+ personId: PersonsId | null;
29
+
30
+ positionId: PositionsId | null;
31
+
32
+ referralId: ReferralsId | null;
33
+
34
+ data: unknown;
35
+
36
+ createdAt: Date;
37
+
38
+ name: ActionNames;
39
+ }
40
+
41
+ /** Represents the initializer for the table public.actions */
42
+ export interface ActionsInitializer {
43
+ /** Default value: gen_random_uuid() */
44
+ id?: ActionsId;
45
+
46
+ candidacyId?: CandidaciesId | null;
47
+
48
+ clientId?: ClientsId | null;
49
+
50
+ messageId?: MessagesId | null;
51
+
52
+ noteId?: NotesId | null;
53
+
54
+ personId?: PersonsId | null;
55
+
56
+ positionId?: PositionsId | null;
57
+
58
+ referralId?: ReferralsId | null;
59
+
60
+ data: unknown;
61
+
62
+ /** Default value: CURRENT_TIMESTAMP */
63
+ createdAt?: Date;
64
+
65
+ name: ActionNames;
66
+ }
67
+
68
+ /** Represents the mutator for the table public.actions */
69
+ export interface ActionsMutator {
70
+ id?: ActionsId;
71
+
72
+ candidacyId?: CandidaciesId | null;
73
+
74
+ clientId?: ClientsId | null;
75
+
76
+ messageId?: MessagesId | null;
77
+
78
+ noteId?: NotesId | null;
79
+
80
+ personId?: PersonsId | null;
81
+
82
+ positionId?: PositionsId | null;
83
+
84
+ referralId?: ReferralsId | null;
85
+
86
+ data?: unknown;
87
+
88
+ createdAt?: Date;
89
+
90
+ name?: ActionNames;
91
+ }
@@ -0,0 +1,36 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PersonsId } from './Persons';
5
+
6
+ /** Identifier type for public.admins */
7
+ export type AdminsId = string | number;
8
+
9
+ /** Represents the table public.admins */
10
+ export default interface Admins {
11
+ id: AdminsId;
12
+
13
+ personId: PersonsId;
14
+
15
+ createdAt: Date;
16
+ }
17
+
18
+ /** Represents the initializer for the table public.admins */
19
+ export interface AdminsInitializer {
20
+ /** Default value: gen_random_uuid() */
21
+ id?: AdminsId;
22
+
23
+ personId: PersonsId;
24
+
25
+ /** Default value: CURRENT_TIMESTAMP */
26
+ createdAt?: Date;
27
+ }
28
+
29
+ /** Represents the mutator for the table public.admins */
30
+ export interface AdminsMutator {
31
+ id?: AdminsId;
32
+
33
+ personId?: PersonsId;
34
+
35
+ createdAt?: Date;
36
+ }
@@ -2,21 +2,21 @@
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
4
  import type { default as CampaignStatuses } from './CampaignStatuses';
5
- import type { MessageTemplateId } from './MessageTemplate';
5
+ import type { MessageTemplatesId } from './MessageTemplates';
6
6
  import type { default as MessageChannels } from './MessageChannels';
7
7
 
8
- /** Identifier type for public.Campaign */
9
- export type CampaignId = string & { __brand: 'CampaignId' };
8
+ /** Identifier type for public.campaigns */
9
+ export type CampaignsId = string | number;
10
10
 
11
- /** Represents the table public.Campaign */
12
- export default interface Campaign {
13
- id: CampaignId;
11
+ /** Represents the table public.campaigns */
12
+ export default interface Campaigns {
13
+ id: CampaignsId;
14
14
 
15
15
  urlId: number;
16
16
 
17
17
  status: CampaignStatuses;
18
18
 
19
- messageTemplateId: MessageTemplateId | null;
19
+ messageTemplateId: MessageTemplatesId | null;
20
20
 
21
21
  channels: MessageChannels[] | null;
22
22
 
@@ -29,18 +29,18 @@ export default interface Campaign {
29
29
  updatedAt: Date;
30
30
  }
31
31
 
32
- /** Represents the initializer for the table public.Campaign */
33
- export interface CampaignInitializer {
32
+ /** Represents the initializer for the table public.campaigns */
33
+ export interface CampaignsInitializer {
34
34
  /** Default value: gen_random_uuid() */
35
- id?: CampaignId;
35
+ id?: CampaignsId;
36
36
 
37
- /** Default value: nextval('"Campaign_urlId_seq"'::regclass) */
37
+ /** Default value: nextval('"campaigns_urlId_seq"'::regclass) */
38
38
  urlId?: number;
39
39
 
40
40
  /** Default value: 'DRAFT'::"CampaignStatuses" */
41
41
  status?: CampaignStatuses;
42
42
 
43
- messageTemplateId?: MessageTemplateId | null;
43
+ messageTemplateId?: MessageTemplatesId | null;
44
44
 
45
45
  channels?: MessageChannels[] | null;
46
46
 
@@ -55,15 +55,15 @@ export interface CampaignInitializer {
55
55
  updatedAt?: Date;
56
56
  }
57
57
 
58
- /** Represents the mutator for the table public.Campaign */
59
- export interface CampaignMutator {
60
- id?: CampaignId;
58
+ /** Represents the mutator for the table public.campaigns */
59
+ export interface CampaignsMutator {
60
+ id?: CampaignsId;
61
61
 
62
62
  urlId?: number;
63
63
 
64
64
  status?: CampaignStatuses;
65
65
 
66
- messageTemplateId?: MessageTemplateId | null;
66
+ messageTemplateId?: MessageTemplatesId | null;
67
67
 
68
68
  channels?: MessageChannels[] | null;
69
69
 
@@ -0,0 +1,40 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { CampaignsId } from './Campaigns';
5
+ import type { PositionsId } from './Positions';
6
+
7
+ /** Represents the table public.campaigns_to_positions */
8
+ export default interface CampaignsToPositions {
9
+ campaignId: CampaignsId;
10
+
11
+ positionId: PositionsId;
12
+
13
+ createdAt: Date;
14
+
15
+ updatedAt: Date;
16
+ }
17
+
18
+ /** Represents the initializer for the table public.campaigns_to_positions */
19
+ export interface CampaignsToPositionsInitializer {
20
+ campaignId: CampaignsId;
21
+
22
+ positionId: PositionsId;
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.campaigns_to_positions */
32
+ export interface CampaignsToPositionsMutator {
33
+ campaignId?: CampaignsId;
34
+
35
+ positionId?: PositionsId;
36
+
37
+ createdAt?: Date;
38
+
39
+ updatedAt?: Date;
40
+ }
@@ -3,15 +3,15 @@
3
3
 
4
4
  import type { default as CandidacyStatuses } from './CandidacyStatuses';
5
5
  import type { default as CandidacySources } from './CandidacySources';
6
- import type { PersonId } from './Person';
7
- import type { PositionId } from './Position';
6
+ import type { PersonsId } from './Persons';
7
+ import type { PositionsId } from './Positions';
8
8
 
9
- /** Identifier type for public.Candidacy */
10
- export type CandidacyId = string & { __brand: 'CandidacyId' };
9
+ /** Identifier type for public.candidacies */
10
+ export type CandidaciesId = string | number;
11
11
 
12
- /** Represents the table public.Candidacy */
13
- export default interface Candidacy {
14
- id: CandidacyId;
12
+ /** Represents the table public.candidacies */
13
+ export default interface Candidacies {
14
+ id: CandidaciesId;
15
15
 
16
16
  currentStatus: CandidacyStatuses | null;
17
17
 
@@ -21,9 +21,9 @@ export default interface Candidacy {
21
21
 
22
22
  source: CandidacySources | null;
23
23
 
24
- personId: PersonId;
24
+ personId: PersonsId;
25
25
 
26
- positionId: PositionId;
26
+ positionId: PositionsId;
27
27
 
28
28
  deletedAt: Date | null;
29
29
 
@@ -32,10 +32,10 @@ export default interface Candidacy {
32
32
  updatedAt: Date;
33
33
  }
34
34
 
35
- /** Represents the initializer for the table public.Candidacy */
36
- export interface CandidacyInitializer {
35
+ /** Represents the initializer for the table public.candidacies */
36
+ export interface CandidaciesInitializer {
37
37
  /** Default value: gen_random_uuid() */
38
- id?: CandidacyId;
38
+ id?: CandidaciesId;
39
39
 
40
40
  /** Default value: 'SUBMITTED'::"CandidacyStatuses" */
41
41
  currentStatus?: CandidacyStatuses | null;
@@ -47,9 +47,9 @@ export interface CandidacyInitializer {
47
47
  /** Default value: 'STAFF'::"CandidacySources" */
48
48
  source?: CandidacySources | null;
49
49
 
50
- personId: PersonId;
50
+ personId: PersonsId;
51
51
 
52
- positionId: PositionId;
52
+ positionId: PositionsId;
53
53
 
54
54
  deletedAt?: Date | null;
55
55
 
@@ -60,9 +60,9 @@ export interface CandidacyInitializer {
60
60
  updatedAt?: Date;
61
61
  }
62
62
 
63
- /** Represents the mutator for the table public.Candidacy */
64
- export interface CandidacyMutator {
65
- id?: CandidacyId;
63
+ /** Represents the mutator for the table public.candidacies */
64
+ export interface CandidaciesMutator {
65
+ id?: CandidaciesId;
66
66
 
67
67
  currentStatus?: CandidacyStatuses | null;
68
68
 
@@ -72,9 +72,9 @@ export interface CandidacyMutator {
72
72
 
73
73
  source?: CandidacySources | null;
74
74
 
75
- personId?: PersonId;
75
+ personId?: PersonsId;
76
76
 
77
- positionId?: PositionId;
77
+ positionId?: PositionsId;
78
78
 
79
79
  deletedAt?: Date | null;
80
80
 
@@ -1,16 +1,16 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- import type { CandidacyId } from './Candidacy';
4
+ import type { CandidaciesId } from './Candidacies';
5
5
 
6
- /** Identifier type for public.CandidacyFeedback */
7
- export type CandidacyFeedbackId = string & { __brand: 'CandidacyFeedbackId' };
6
+ /** Identifier type for public.candidacy_feedback */
7
+ export type CandidacyFeedbackId = string | number;
8
8
 
9
- /** Represents the table public.CandidacyFeedback */
9
+ /** Represents the table public.candidacy_feedback */
10
10
  export default interface CandidacyFeedback {
11
11
  id: CandidacyFeedbackId;
12
12
 
13
- candidacyId: CandidacyId;
13
+ candidacyId: CandidaciesId;
14
14
 
15
15
  content: string;
16
16
 
@@ -21,12 +21,12 @@ export default interface CandidacyFeedback {
21
21
  deletedAt: Date | null;
22
22
  }
23
23
 
24
- /** Represents the initializer for the table public.CandidacyFeedback */
24
+ /** Represents the initializer for the table public.candidacy_feedback */
25
25
  export interface CandidacyFeedbackInitializer {
26
26
  /** Default value: gen_random_uuid() */
27
27
  id?: CandidacyFeedbackId;
28
28
 
29
- candidacyId: CandidacyId;
29
+ candidacyId: CandidaciesId;
30
30
 
31
31
  content: string;
32
32
 
@@ -39,11 +39,11 @@ export interface CandidacyFeedbackInitializer {
39
39
  deletedAt?: Date | null;
40
40
  }
41
41
 
42
- /** Represents the mutator for the table public.CandidacyFeedback */
42
+ /** Represents the mutator for the table public.candidacy_feedback */
43
43
  export interface CandidacyFeedbackMutator {
44
44
  id?: CandidacyFeedbackId;
45
45
 
46
- candidacyId?: CandidacyId;
46
+ candidacyId?: CandidaciesId;
47
47
 
48
48
  content?: string;
49
49
 
@@ -0,0 +1,40 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { TagsId } from './Tags';
5
+ import type { CandidaciesId } from './Candidacies';
6
+
7
+ /** Represents the table public.candidacy_ratings_to_tags */
8
+ export default interface CandidacyRatingsToTags {
9
+ tagId: TagsId;
10
+
11
+ candidacyId: CandidaciesId;
12
+
13
+ createdAt: Date;
14
+
15
+ updatedAt: Date;
16
+ }
17
+
18
+ /** Represents the initializer for the table public.candidacy_ratings_to_tags */
19
+ export interface CandidacyRatingsToTagsInitializer {
20
+ tagId: TagsId;
21
+
22
+ candidacyId: CandidaciesId;
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.candidacy_ratings_to_tags */
32
+ export interface CandidacyRatingsToTagsMutator {
33
+ tagId?: TagsId;
34
+
35
+ candidacyId?: CandidaciesId;
36
+
37
+ createdAt?: Date;
38
+
39
+ updatedAt?: Date;
40
+ }