@the-inkwell/shared 0.1.71 → 0.1.72
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.
- package/package.json +1 -4
- package/src/types/_schema/Action.ts +91 -0
- package/src/types/_schema/ActionNames.ts +11 -0
- package/src/types/_schema/Admin.ts +36 -0
- package/src/types/_schema/Campaign.ts +77 -0
- package/src/types/_schema/CampaignStatuses.ts +10 -0
- package/src/types/_schema/CampaignToPosition.ts +40 -0
- package/src/types/_schema/Candidacy.ts +84 -0
- package/src/types/_schema/CandidacyFeedback.ts +55 -0
- package/src/types/_schema/CandidacyRatingToTag.ts +40 -0
- package/src/types/_schema/CandidacySources.ts +11 -0
- package/src/types/_schema/CandidacyStatuses.ts +14 -0
- package/src/types/_schema/Client.ts +56 -0
- package/src/types/_schema/ClientStatuses.ts +10 -0
- package/src/types/_schema/Contract.ts +62 -0
- package/src/types/_schema/Conversation.ts +64 -0
- package/src/types/_schema/EnrichmentSources.ts +8 -0
- package/src/types/_schema/Jwt.ts +55 -0
- package/src/types/_schema/ListView.ts +74 -0
- package/src/types/_schema/ListViewModels.ts +11 -0
- package/src/types/_schema/Message.ts +70 -0
- package/src/types/_schema/MessageChannels.ts +9 -0
- package/src/types/_schema/MessageTemplate.ts +53 -0
- package/src/types/_schema/Note.ts +76 -0
- package/src/types/_schema/Otp.ts +61 -0
- package/src/types/_schema/Person.ts +293 -0
- package/src/types/_schema/PersonCareerLevels.ts +13 -0
- package/src/types/_schema/PersonClub.ts +53 -0
- package/src/types/_schema/PersonDegrees.ts +13 -0
- package/src/types/_schema/PersonEnrichment.ts +62 -0
- package/src/types/_schema/PersonGenders.ts +11 -0
- package/src/types/_schema/PersonNetwork.ts +53 -0
- package/src/types/_schema/PersonSkill.ts +53 -0
- package/src/types/_schema/PersonSources.ts +11 -0
- package/src/types/_schema/PersonToBestPerson.ts +32 -0
- package/src/types/_schema/PersonToPersonClub.ts +33 -0
- package/src/types/_schema/PersonToPersonNetwork.ts +33 -0
- package/src/types/_schema/PersonToPersonSkill.ts +33 -0
- package/src/types/_schema/PersonToTag.ts +33 -0
- package/src/types/_schema/Position.ts +77 -0
- package/src/types/_schema/PositionStatuses.ts +9 -0
- package/src/types/_schema/Referral.ts +78 -0
- package/src/types/_schema/ReferralPayout.ts +29 -0
- package/src/types/_schema/ReferralSources.ts +10 -0
- package/src/types/_schema/ReferralToIntroMessage.ts +40 -0
- package/src/types/_schema/Sender.ts +59 -0
- package/src/types/_schema/Tag.ts +47 -0
- package/src/types/_schema/WebsiteBlock.ts +45 -0
- package/src/types/_schema/WebsiteLandingPage.ts +47 -0
- package/src/types/_schema/WebsiteStaticPage.ts +53 -0
- package/src/types/models/admin/candidacies/index.ts +15 -2
- package/src/types/models/admin/persons/index.ts +4 -4
- package/src/types/models/admin/website/index.ts +3 -3
- package/src/types/models/auth/index.ts +2 -1
- package/src/types/db.ts +0 -487
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @generated
|
|
2
|
+
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
+
|
|
4
|
+
/** Identifier type for public.PersonClub */
|
|
5
|
+
export type PersonClubId = string & { __brand: 'PersonClubId' };
|
|
6
|
+
|
|
7
|
+
/** Represents the table public.PersonClub */
|
|
8
|
+
export default interface PersonClub {
|
|
9
|
+
id: PersonClubId;
|
|
10
|
+
|
|
11
|
+
slug: string;
|
|
12
|
+
|
|
13
|
+
name: string;
|
|
14
|
+
|
|
15
|
+
deletedAt: Date | null;
|
|
16
|
+
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Represents the initializer for the table public.PersonClub */
|
|
23
|
+
export interface PersonClubInitializer {
|
|
24
|
+
/** Default value: gen_random_uuid() */
|
|
25
|
+
id?: PersonClubId;
|
|
26
|
+
|
|
27
|
+
slug: string;
|
|
28
|
+
|
|
29
|
+
name: string;
|
|
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.PersonClub */
|
|
41
|
+
export interface PersonClubMutator {
|
|
42
|
+
id?: PersonClubId;
|
|
43
|
+
|
|
44
|
+
slug?: string;
|
|
45
|
+
|
|
46
|
+
name?: string;
|
|
47
|
+
|
|
48
|
+
deletedAt?: Date | null;
|
|
49
|
+
|
|
50
|
+
createdAt?: Date;
|
|
51
|
+
|
|
52
|
+
updatedAt?: Date;
|
|
53
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @generated
|
|
2
|
+
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
+
|
|
4
|
+
/** Represents the enum public.PersonDegrees */
|
|
5
|
+
type PersonDegrees =
|
|
6
|
+
| 'HIGH_SCHOOL'
|
|
7
|
+
| 'ASSOCIATES'
|
|
8
|
+
| 'BACHELORS'
|
|
9
|
+
| 'MASTERS'
|
|
10
|
+
| 'JURIS_DOCTORATE'
|
|
11
|
+
| 'DOCTORATE';
|
|
12
|
+
|
|
13
|
+
export default PersonDegrees;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// @generated
|
|
2
|
+
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
+
|
|
4
|
+
import type { default as EnrichmentSources } from './EnrichmentSources';
|
|
5
|
+
import type { PersonId } from './Person';
|
|
6
|
+
|
|
7
|
+
/** Identifier type for public.PersonEnrichment */
|
|
8
|
+
export type PersonEnrichmentId = string & { __brand: 'PersonEnrichmentId' };
|
|
9
|
+
|
|
10
|
+
/** Represents the table public.PersonEnrichment */
|
|
11
|
+
export default interface PersonEnrichment {
|
|
12
|
+
id: PersonEnrichmentId;
|
|
13
|
+
|
|
14
|
+
data: unknown | null;
|
|
15
|
+
|
|
16
|
+
likelihood: number | null;
|
|
17
|
+
|
|
18
|
+
source: EnrichmentSources;
|
|
19
|
+
|
|
20
|
+
personId: PersonId;
|
|
21
|
+
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Represents the initializer for the table public.PersonEnrichment */
|
|
28
|
+
export interface PersonEnrichmentInitializer {
|
|
29
|
+
/** Default value: gen_random_uuid() */
|
|
30
|
+
id?: PersonEnrichmentId;
|
|
31
|
+
|
|
32
|
+
data?: unknown | null;
|
|
33
|
+
|
|
34
|
+
likelihood?: number | null;
|
|
35
|
+
|
|
36
|
+
source: EnrichmentSources;
|
|
37
|
+
|
|
38
|
+
personId: PersonId;
|
|
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.PersonEnrichment */
|
|
48
|
+
export interface PersonEnrichmentMutator {
|
|
49
|
+
id?: PersonEnrichmentId;
|
|
50
|
+
|
|
51
|
+
data?: unknown | null;
|
|
52
|
+
|
|
53
|
+
likelihood?: number | null;
|
|
54
|
+
|
|
55
|
+
source?: EnrichmentSources;
|
|
56
|
+
|
|
57
|
+
personId?: PersonId;
|
|
58
|
+
|
|
59
|
+
createdAt?: Date;
|
|
60
|
+
|
|
61
|
+
updatedAt?: Date;
|
|
62
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @generated
|
|
2
|
+
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
+
|
|
4
|
+
/** Identifier type for public.PersonNetwork */
|
|
5
|
+
export type PersonNetworkId = string & { __brand: 'PersonNetworkId' };
|
|
6
|
+
|
|
7
|
+
/** Represents the table public.PersonNetwork */
|
|
8
|
+
export default interface PersonNetwork {
|
|
9
|
+
id: PersonNetworkId;
|
|
10
|
+
|
|
11
|
+
slug: string;
|
|
12
|
+
|
|
13
|
+
name: string;
|
|
14
|
+
|
|
15
|
+
deletedAt: Date | null;
|
|
16
|
+
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Represents the initializer for the table public.PersonNetwork */
|
|
23
|
+
export interface PersonNetworkInitializer {
|
|
24
|
+
/** Default value: gen_random_uuid() */
|
|
25
|
+
id?: PersonNetworkId;
|
|
26
|
+
|
|
27
|
+
slug: string;
|
|
28
|
+
|
|
29
|
+
name: string;
|
|
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.PersonNetwork */
|
|
41
|
+
export interface PersonNetworkMutator {
|
|
42
|
+
id?: PersonNetworkId;
|
|
43
|
+
|
|
44
|
+
slug?: string;
|
|
45
|
+
|
|
46
|
+
name?: string;
|
|
47
|
+
|
|
48
|
+
deletedAt?: Date | null;
|
|
49
|
+
|
|
50
|
+
createdAt?: Date;
|
|
51
|
+
|
|
52
|
+
updatedAt?: Date;
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @generated
|
|
2
|
+
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
+
|
|
4
|
+
/** Identifier type for public.PersonSkill */
|
|
5
|
+
export type PersonSkillId = string & { __brand: 'PersonSkillId' };
|
|
6
|
+
|
|
7
|
+
/** Represents the table public.PersonSkill */
|
|
8
|
+
export default interface PersonSkill {
|
|
9
|
+
id: PersonSkillId;
|
|
10
|
+
|
|
11
|
+
slug: string;
|
|
12
|
+
|
|
13
|
+
name: string;
|
|
14
|
+
|
|
15
|
+
deletedAt: Date | null;
|
|
16
|
+
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Represents the initializer for the table public.PersonSkill */
|
|
23
|
+
export interface PersonSkillInitializer {
|
|
24
|
+
/** Default value: gen_random_uuid() */
|
|
25
|
+
id?: PersonSkillId;
|
|
26
|
+
|
|
27
|
+
slug: string;
|
|
28
|
+
|
|
29
|
+
name: string;
|
|
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.PersonSkill */
|
|
41
|
+
export interface PersonSkillMutator {
|
|
42
|
+
id?: PersonSkillId;
|
|
43
|
+
|
|
44
|
+
slug?: string;
|
|
45
|
+
|
|
46
|
+
name?: string;
|
|
47
|
+
|
|
48
|
+
deletedAt?: Date | null;
|
|
49
|
+
|
|
50
|
+
createdAt?: Date;
|
|
51
|
+
|
|
52
|
+
updatedAt?: Date;
|
|
53
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @generated
|
|
2
|
+
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
+
|
|
4
|
+
import type { PersonId } from './Person';
|
|
5
|
+
|
|
6
|
+
/** Represents the table public.PersonToBestPerson */
|
|
7
|
+
export default interface PersonToBestPerson {
|
|
8
|
+
bestiedByPersonId: PersonId;
|
|
9
|
+
|
|
10
|
+
bestPersonId: PersonId;
|
|
11
|
+
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** Represents the initializer for the table public.PersonToBestPerson */
|
|
16
|
+
export interface PersonToBestPersonInitializer {
|
|
17
|
+
bestiedByPersonId: PersonId;
|
|
18
|
+
|
|
19
|
+
bestPersonId: PersonId;
|
|
20
|
+
|
|
21
|
+
/** Default value: CURRENT_TIMESTAMP */
|
|
22
|
+
createdAt?: Date;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Represents the mutator for the table public.PersonToBestPerson */
|
|
26
|
+
export interface PersonToBestPersonMutator {
|
|
27
|
+
bestiedByPersonId?: PersonId;
|
|
28
|
+
|
|
29
|
+
bestPersonId?: PersonId;
|
|
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 { PersonId } from './Person';
|
|
5
|
+
import type { PersonClubId } from './PersonClub';
|
|
6
|
+
|
|
7
|
+
/** Represents the table public.PersonToPersonClub */
|
|
8
|
+
export default interface PersonToPersonClub {
|
|
9
|
+
personId: PersonId;
|
|
10
|
+
|
|
11
|
+
clubId: PersonClubId;
|
|
12
|
+
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Represents the initializer for the table public.PersonToPersonClub */
|
|
17
|
+
export interface PersonToPersonClubInitializer {
|
|
18
|
+
personId: PersonId;
|
|
19
|
+
|
|
20
|
+
clubId: PersonClubId;
|
|
21
|
+
|
|
22
|
+
/** Default value: CURRENT_TIMESTAMP */
|
|
23
|
+
createdAt?: Date;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Represents the mutator for the table public.PersonToPersonClub */
|
|
27
|
+
export interface PersonToPersonClubMutator {
|
|
28
|
+
personId?: PersonId;
|
|
29
|
+
|
|
30
|
+
clubId?: PersonClubId;
|
|
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 { PersonId } from './Person';
|
|
5
|
+
import type { PersonNetworkId } from './PersonNetwork';
|
|
6
|
+
|
|
7
|
+
/** Represents the table public.PersonToPersonNetwork */
|
|
8
|
+
export default interface PersonToPersonNetwork {
|
|
9
|
+
personId: PersonId;
|
|
10
|
+
|
|
11
|
+
networkId: PersonNetworkId;
|
|
12
|
+
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Represents the initializer for the table public.PersonToPersonNetwork */
|
|
17
|
+
export interface PersonToPersonNetworkInitializer {
|
|
18
|
+
personId: PersonId;
|
|
19
|
+
|
|
20
|
+
networkId: PersonNetworkId;
|
|
21
|
+
|
|
22
|
+
/** Default value: CURRENT_TIMESTAMP */
|
|
23
|
+
createdAt?: Date;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Represents the mutator for the table public.PersonToPersonNetwork */
|
|
27
|
+
export interface PersonToPersonNetworkMutator {
|
|
28
|
+
personId?: PersonId;
|
|
29
|
+
|
|
30
|
+
networkId?: PersonNetworkId;
|
|
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 { PersonId } from './Person';
|
|
5
|
+
import type { PersonSkillId } from './PersonSkill';
|
|
6
|
+
|
|
7
|
+
/** Represents the table public.PersonToPersonSkill */
|
|
8
|
+
export default interface PersonToPersonSkill {
|
|
9
|
+
personId: PersonId;
|
|
10
|
+
|
|
11
|
+
skillId: PersonSkillId;
|
|
12
|
+
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Represents the initializer for the table public.PersonToPersonSkill */
|
|
17
|
+
export interface PersonToPersonSkillInitializer {
|
|
18
|
+
personId: PersonId;
|
|
19
|
+
|
|
20
|
+
skillId: PersonSkillId;
|
|
21
|
+
|
|
22
|
+
/** Default value: CURRENT_TIMESTAMP */
|
|
23
|
+
createdAt?: Date;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Represents the mutator for the table public.PersonToPersonSkill */
|
|
27
|
+
export interface PersonToPersonSkillMutator {
|
|
28
|
+
personId?: PersonId;
|
|
29
|
+
|
|
30
|
+
skillId?: PersonSkillId;
|
|
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 { 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,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,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
|
+
}
|