@the-inkwell/shared 0.1.68 → 0.1.69
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/dist/src/types/_schema/PublicSchema.js +4 -0
- package/package.json +1 -1
- package/src/types/_schema/Action.ts +16 -61
- package/src/types/_schema/Admin.ts +8 -21
- package/src/types/_schema/Campaign.ts +14 -54
- package/src/types/_schema/CampaignToPosition.ts +9 -26
- package/src/types/_schema/Candidacy.ts +15 -59
- package/src/types/_schema/CandidacyFeedback.ts +11 -37
- package/src/types/_schema/CandidacyRatingToTag.ts +9 -26
- package/src/types/_schema/Client.ts +11 -38
- package/src/types/_schema/Contract.ts +12 -42
- package/src/types/_schema/Conversation.ts +12 -43
- package/src/types/_schema/Jwt.ts +11 -37
- package/src/types/_schema/ListView.ts +14 -52
- package/src/types/_schema/Message.ts +13 -48
- package/src/types/_schema/MessageTemplate.ts +12 -37
- package/src/types/_schema/Note.ts +14 -52
- package/src/types/_schema/Otp.ts +12 -42
- package/src/types/_schema/Person.ts +49 -233
- package/src/types/_schema/PersonClub.ts +12 -37
- package/src/types/_schema/PersonEnrichment.ts +12 -42
- package/src/types/_schema/PersonNetwork.ts +12 -37
- package/src/types/_schema/PersonSkill.ts +12 -37
- package/src/types/_schema/PersonToBestPerson.ts +8 -20
- package/src/types/_schema/PersonToPersonClub.ts +8 -20
- package/src/types/_schema/PersonToPersonNetwork.ts +8 -20
- package/src/types/_schema/PersonToPersonSkill.ts +8 -20
- package/src/types/_schema/PersonToTag.ts +8 -20
- package/src/types/_schema/Position.ts +14 -55
- package/src/types/_schema/PublicSchema.ts +110 -0
- package/src/types/_schema/Referral.ts +14 -53
- package/src/types/_schema/ReferralPayout.ts +7 -15
- package/src/types/_schema/ReferralToIntroMessage.ts +9 -26
- package/src/types/_schema/Sender.ts +13 -42
- package/src/types/_schema/Tag.ts +11 -32
- package/src/types/_schema/WebsiteBlock.ts +11 -30
- package/src/types/_schema/WebsiteLandingPage.ts +11 -32
- package/src/types/_schema/WebsiteStaticPage.ts +12 -37
- package/src/types/models/admin/persons/index.ts +3 -4
- package/src/types/models/admin/website/index.ts +5 -3
package/package.json
CHANGED
|
@@ -9,83 +9,38 @@ import type { PersonId } from './Person';
|
|
|
9
9
|
import type { PositionId } from './Position';
|
|
10
10
|
import type { ReferralId } from './Referral';
|
|
11
11
|
import type { default as ActionNames } from './ActionNames';
|
|
12
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
12
13
|
|
|
13
14
|
/** Identifier type for public.Action */
|
|
14
15
|
export type ActionId = string & { __brand: 'ActionId' };
|
|
15
16
|
|
|
16
17
|
/** Represents the table public.Action */
|
|
17
|
-
export default interface
|
|
18
|
-
id: ActionId
|
|
18
|
+
export default interface ActionTable {
|
|
19
|
+
id: ColumnType<ActionId, ActionId | undefined, ActionId>;
|
|
19
20
|
|
|
20
|
-
candidacyId: CandidacyId | null
|
|
21
|
+
candidacyId: ColumnType<CandidacyId | null, CandidacyId | null, CandidacyId | null>;
|
|
21
22
|
|
|
22
|
-
clientId: ClientId | null
|
|
23
|
+
clientId: ColumnType<ClientId | null, ClientId | null, ClientId | null>;
|
|
23
24
|
|
|
24
|
-
messageId: MessageId | null
|
|
25
|
+
messageId: ColumnType<MessageId | null, MessageId | null, MessageId | null>;
|
|
25
26
|
|
|
26
|
-
noteId: NoteId | null
|
|
27
|
+
noteId: ColumnType<NoteId | null, NoteId | null, NoteId | null>;
|
|
27
28
|
|
|
28
|
-
personId: PersonId | null
|
|
29
|
+
personId: ColumnType<PersonId | null, PersonId | null, PersonId | null>;
|
|
29
30
|
|
|
30
|
-
positionId: PositionId | null
|
|
31
|
+
positionId: ColumnType<PositionId | null, PositionId | null, PositionId | null>;
|
|
31
32
|
|
|
32
|
-
referralId: ReferralId | null
|
|
33
|
+
referralId: ColumnType<ReferralId | null, ReferralId | null, ReferralId | null>;
|
|
33
34
|
|
|
34
|
-
data: unknown
|
|
35
|
+
data: ColumnType<unknown, unknown, unknown>;
|
|
35
36
|
|
|
36
|
-
createdAt: Date
|
|
37
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
37
38
|
|
|
38
|
-
name: ActionNames
|
|
39
|
+
name: ColumnType<ActionNames, ActionNames, ActionNames>;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
export interface ActionInitializer {
|
|
43
|
-
/** Default value: gen_random_uuid() */
|
|
44
|
-
id?: ActionId;
|
|
42
|
+
export type Action = Selectable<ActionTable>;
|
|
45
43
|
|
|
46
|
-
|
|
44
|
+
export type NewAction = Insertable<ActionTable>;
|
|
47
45
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
messageId?: MessageId | null;
|
|
51
|
-
|
|
52
|
-
noteId?: NoteId | null;
|
|
53
|
-
|
|
54
|
-
personId?: PersonId | null;
|
|
55
|
-
|
|
56
|
-
positionId?: PositionId | null;
|
|
57
|
-
|
|
58
|
-
referralId?: ReferralId | 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.Action */
|
|
69
|
-
export interface ActionMutator {
|
|
70
|
-
id?: ActionId;
|
|
71
|
-
|
|
72
|
-
candidacyId?: CandidacyId | null;
|
|
73
|
-
|
|
74
|
-
clientId?: ClientId | null;
|
|
75
|
-
|
|
76
|
-
messageId?: MessageId | null;
|
|
77
|
-
|
|
78
|
-
noteId?: NoteId | null;
|
|
79
|
-
|
|
80
|
-
personId?: PersonId | null;
|
|
81
|
-
|
|
82
|
-
positionId?: PositionId | null;
|
|
83
|
-
|
|
84
|
-
referralId?: ReferralId | null;
|
|
85
|
-
|
|
86
|
-
data?: unknown;
|
|
87
|
-
|
|
88
|
-
createdAt?: Date;
|
|
89
|
-
|
|
90
|
-
name?: ActionNames;
|
|
91
|
-
}
|
|
46
|
+
export type ActionUpdate = Updateable<ActionTable>;
|
|
@@ -2,35 +2,22 @@
|
|
|
2
2
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
3
|
|
|
4
4
|
import type { PersonId } from './Person';
|
|
5
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
5
6
|
|
|
6
7
|
/** Identifier type for public.Admin */
|
|
7
8
|
export type AdminId = string & { __brand: 'AdminId' };
|
|
8
9
|
|
|
9
10
|
/** Represents the table public.Admin */
|
|
10
|
-
export default interface
|
|
11
|
-
id: AdminId
|
|
11
|
+
export default interface AdminTable {
|
|
12
|
+
id: ColumnType<AdminId, AdminId | undefined, AdminId>;
|
|
12
13
|
|
|
13
|
-
personId: PersonId
|
|
14
|
+
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
14
15
|
|
|
15
|
-
createdAt: Date
|
|
16
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
export interface AdminInitializer {
|
|
20
|
-
/** Default value: gen_random_uuid() */
|
|
21
|
-
id?: AdminId;
|
|
19
|
+
export type Admin = Selectable<AdminTable>;
|
|
22
20
|
|
|
23
|
-
|
|
21
|
+
export type NewAdmin = Insertable<AdminTable>;
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
createdAt?: Date;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/** Represents the mutator for the table public.Admin */
|
|
30
|
-
export interface AdminMutator {
|
|
31
|
-
id?: AdminId;
|
|
32
|
-
|
|
33
|
-
personId?: PersonId;
|
|
34
|
-
|
|
35
|
-
createdAt?: Date;
|
|
36
|
-
}
|
|
23
|
+
export type AdminUpdate = Updateable<AdminTable>;
|
|
@@ -4,74 +4,34 @@
|
|
|
4
4
|
import type { default as CampaignStatuses } from './CampaignStatuses';
|
|
5
5
|
import type { MessageTemplateId } from './MessageTemplate';
|
|
6
6
|
import type { default as MessageChannels } from './MessageChannels';
|
|
7
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
7
8
|
|
|
8
9
|
/** Identifier type for public.Campaign */
|
|
9
10
|
export type CampaignId = string & { __brand: 'CampaignId' };
|
|
10
11
|
|
|
11
12
|
/** Represents the table public.Campaign */
|
|
12
|
-
export default interface
|
|
13
|
-
id: CampaignId
|
|
13
|
+
export default interface CampaignTable {
|
|
14
|
+
id: ColumnType<CampaignId, CampaignId | undefined, CampaignId>;
|
|
14
15
|
|
|
15
|
-
urlId: number
|
|
16
|
+
urlId: ColumnType<number, number | undefined, number>;
|
|
16
17
|
|
|
17
|
-
status: CampaignStatuses
|
|
18
|
+
status: ColumnType<CampaignStatuses, CampaignStatuses | undefined, CampaignStatuses>;
|
|
18
19
|
|
|
19
|
-
messageTemplateId: MessageTemplateId | null
|
|
20
|
+
messageTemplateId: ColumnType<MessageTemplateId | null, MessageTemplateId | null, MessageTemplateId | null>;
|
|
20
21
|
|
|
21
|
-
channels: MessageChannels[] | null
|
|
22
|
+
channels: ColumnType<MessageChannels[] | null, MessageChannels[] | null, MessageChannels[] | null>;
|
|
22
23
|
|
|
23
|
-
content: unknown
|
|
24
|
+
content: ColumnType<unknown, unknown, unknown>;
|
|
24
25
|
|
|
25
|
-
createdAt: Date
|
|
26
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
26
27
|
|
|
27
|
-
deletedAt: Date | null
|
|
28
|
+
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
28
29
|
|
|
29
|
-
updatedAt: Date
|
|
30
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
export interface CampaignInitializer {
|
|
34
|
-
/** Default value: gen_random_uuid() */
|
|
35
|
-
id?: CampaignId;
|
|
33
|
+
export type Campaign = Selectable<CampaignTable>;
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
urlId?: number;
|
|
35
|
+
export type NewCampaign = Insertable<CampaignTable>;
|
|
39
36
|
|
|
40
|
-
|
|
41
|
-
status?: CampaignStatuses;
|
|
42
|
-
|
|
43
|
-
messageTemplateId?: MessageTemplateId | null;
|
|
44
|
-
|
|
45
|
-
channels?: MessageChannels[] | null;
|
|
46
|
-
|
|
47
|
-
content: unknown;
|
|
48
|
-
|
|
49
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
50
|
-
createdAt?: Date;
|
|
51
|
-
|
|
52
|
-
deletedAt?: Date | null;
|
|
53
|
-
|
|
54
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
55
|
-
updatedAt?: Date;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/** Represents the mutator for the table public.Campaign */
|
|
59
|
-
export interface CampaignMutator {
|
|
60
|
-
id?: CampaignId;
|
|
61
|
-
|
|
62
|
-
urlId?: number;
|
|
63
|
-
|
|
64
|
-
status?: CampaignStatuses;
|
|
65
|
-
|
|
66
|
-
messageTemplateId?: MessageTemplateId | null;
|
|
67
|
-
|
|
68
|
-
channels?: MessageChannels[] | null;
|
|
69
|
-
|
|
70
|
-
content?: unknown;
|
|
71
|
-
|
|
72
|
-
createdAt?: Date;
|
|
73
|
-
|
|
74
|
-
deletedAt?: Date | null;
|
|
75
|
-
|
|
76
|
-
updatedAt?: Date;
|
|
77
|
-
}
|
|
37
|
+
export type CampaignUpdate = Updateable<CampaignTable>;
|
|
@@ -3,38 +3,21 @@
|
|
|
3
3
|
|
|
4
4
|
import type { CampaignId } from './Campaign';
|
|
5
5
|
import type { PositionId } from './Position';
|
|
6
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
6
7
|
|
|
7
8
|
/** Represents the table public.CampaignToPosition */
|
|
8
|
-
export default interface
|
|
9
|
-
campaignId: CampaignId
|
|
9
|
+
export default interface CampaignToPositionTable {
|
|
10
|
+
campaignId: ColumnType<CampaignId, CampaignId, CampaignId>;
|
|
10
11
|
|
|
11
|
-
positionId: PositionId
|
|
12
|
+
positionId: ColumnType<PositionId, PositionId, PositionId>;
|
|
12
13
|
|
|
13
|
-
createdAt: Date
|
|
14
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
14
15
|
|
|
15
|
-
updatedAt: Date
|
|
16
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
export interface CampaignToPositionInitializer {
|
|
20
|
-
campaignId: CampaignId;
|
|
19
|
+
export type CampaignToPosition = Selectable<CampaignToPositionTable>;
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
export type NewCampaignToPosition = Insertable<CampaignToPositionTable>;
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
createdAt?: Date;
|
|
26
|
-
|
|
27
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
28
|
-
updatedAt?: Date;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/** Represents the mutator for the table public.CampaignToPosition */
|
|
32
|
-
export interface CampaignToPositionMutator {
|
|
33
|
-
campaignId?: CampaignId;
|
|
34
|
-
|
|
35
|
-
positionId?: PositionId;
|
|
36
|
-
|
|
37
|
-
createdAt?: Date;
|
|
38
|
-
|
|
39
|
-
updatedAt?: Date;
|
|
40
|
-
}
|
|
23
|
+
export type CampaignToPositionUpdate = Updateable<CampaignToPositionTable>;
|
|
@@ -5,80 +5,36 @@ import type { default as CandidacyStatuses } from './CandidacyStatuses';
|
|
|
5
5
|
import type { default as CandidacySources } from './CandidacySources';
|
|
6
6
|
import type { PersonId } from './Person';
|
|
7
7
|
import type { PositionId } from './Position';
|
|
8
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
8
9
|
|
|
9
10
|
/** Identifier type for public.Candidacy */
|
|
10
11
|
export type CandidacyId = string & { __brand: 'CandidacyId' };
|
|
11
12
|
|
|
12
13
|
/** Represents the table public.Candidacy */
|
|
13
|
-
export default interface
|
|
14
|
-
id: CandidacyId
|
|
14
|
+
export default interface CandidacyTable {
|
|
15
|
+
id: ColumnType<CandidacyId, CandidacyId | undefined, CandidacyId>;
|
|
15
16
|
|
|
16
|
-
currentStatus: CandidacyStatuses | null
|
|
17
|
+
currentStatus: ColumnType<CandidacyStatuses | null, CandidacyStatuses | null, CandidacyStatuses | null>;
|
|
17
18
|
|
|
18
|
-
rating: number | null
|
|
19
|
+
rating: ColumnType<number | null, number | null, number | null>;
|
|
19
20
|
|
|
20
|
-
ratingNotes: string | null
|
|
21
|
+
ratingNotes: ColumnType<string | null, string | null, string | null>;
|
|
21
22
|
|
|
22
|
-
source: CandidacySources | null
|
|
23
|
+
source: ColumnType<CandidacySources | null, CandidacySources | null, CandidacySources | null>;
|
|
23
24
|
|
|
24
|
-
personId: PersonId
|
|
25
|
+
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
25
26
|
|
|
26
|
-
positionId: PositionId
|
|
27
|
+
positionId: ColumnType<PositionId, PositionId, PositionId>;
|
|
27
28
|
|
|
28
|
-
deletedAt: Date | null
|
|
29
|
+
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
29
30
|
|
|
30
|
-
createdAt: Date
|
|
31
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
31
32
|
|
|
32
|
-
updatedAt: Date
|
|
33
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
export interface CandidacyInitializer {
|
|
37
|
-
/** Default value: gen_random_uuid() */
|
|
38
|
-
id?: CandidacyId;
|
|
36
|
+
export type Candidacy = Selectable<CandidacyTable>;
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
currentStatus?: CandidacyStatuses | null;
|
|
38
|
+
export type NewCandidacy = Insertable<CandidacyTable>;
|
|
42
39
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
ratingNotes?: string | null;
|
|
46
|
-
|
|
47
|
-
/** Default value: 'STAFF'::"CandidacySources" */
|
|
48
|
-
source?: CandidacySources | null;
|
|
49
|
-
|
|
50
|
-
personId: PersonId;
|
|
51
|
-
|
|
52
|
-
positionId: PositionId;
|
|
53
|
-
|
|
54
|
-
deletedAt?: Date | null;
|
|
55
|
-
|
|
56
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
57
|
-
createdAt?: Date;
|
|
58
|
-
|
|
59
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
60
|
-
updatedAt?: Date;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/** Represents the mutator for the table public.Candidacy */
|
|
64
|
-
export interface CandidacyMutator {
|
|
65
|
-
id?: CandidacyId;
|
|
66
|
-
|
|
67
|
-
currentStatus?: CandidacyStatuses | null;
|
|
68
|
-
|
|
69
|
-
rating?: number | null;
|
|
70
|
-
|
|
71
|
-
ratingNotes?: string | null;
|
|
72
|
-
|
|
73
|
-
source?: CandidacySources | null;
|
|
74
|
-
|
|
75
|
-
personId?: PersonId;
|
|
76
|
-
|
|
77
|
-
positionId?: PositionId;
|
|
78
|
-
|
|
79
|
-
deletedAt?: Date | null;
|
|
80
|
-
|
|
81
|
-
createdAt?: Date;
|
|
82
|
-
|
|
83
|
-
updatedAt?: Date;
|
|
84
|
-
}
|
|
40
|
+
export type CandidacyUpdate = Updateable<CandidacyTable>;
|
|
@@ -2,54 +2,28 @@
|
|
|
2
2
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
3
|
|
|
4
4
|
import type { CandidacyId } from './Candidacy';
|
|
5
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
5
6
|
|
|
6
7
|
/** Identifier type for public.CandidacyFeedback */
|
|
7
8
|
export type CandidacyFeedbackId = string & { __brand: 'CandidacyFeedbackId' };
|
|
8
9
|
|
|
9
10
|
/** Represents the table public.CandidacyFeedback */
|
|
10
|
-
export default interface
|
|
11
|
-
id: CandidacyFeedbackId
|
|
11
|
+
export default interface CandidacyFeedbackTable {
|
|
12
|
+
id: ColumnType<CandidacyFeedbackId, CandidacyFeedbackId | undefined, CandidacyFeedbackId>;
|
|
12
13
|
|
|
13
|
-
candidacyId: CandidacyId
|
|
14
|
+
candidacyId: ColumnType<CandidacyId, CandidacyId, CandidacyId>;
|
|
14
15
|
|
|
15
|
-
content: string
|
|
16
|
+
content: ColumnType<string, string, string>;
|
|
16
17
|
|
|
17
|
-
createdAt: Date
|
|
18
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
18
19
|
|
|
19
|
-
updatedAt: Date
|
|
20
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
20
21
|
|
|
21
|
-
deletedAt: Date | null
|
|
22
|
+
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
export interface CandidacyFeedbackInitializer {
|
|
26
|
-
/** Default value: gen_random_uuid() */
|
|
27
|
-
id?: CandidacyFeedbackId;
|
|
25
|
+
export type CandidacyFeedback = Selectable<CandidacyFeedbackTable>;
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
export type NewCandidacyFeedback = Insertable<CandidacyFeedbackTable>;
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
34
|
-
createdAt?: Date;
|
|
35
|
-
|
|
36
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
37
|
-
updatedAt?: Date;
|
|
38
|
-
|
|
39
|
-
deletedAt?: Date | null;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** Represents the mutator for the table public.CandidacyFeedback */
|
|
43
|
-
export interface CandidacyFeedbackMutator {
|
|
44
|
-
id?: CandidacyFeedbackId;
|
|
45
|
-
|
|
46
|
-
candidacyId?: CandidacyId;
|
|
47
|
-
|
|
48
|
-
content?: string;
|
|
49
|
-
|
|
50
|
-
createdAt?: Date;
|
|
51
|
-
|
|
52
|
-
updatedAt?: Date;
|
|
53
|
-
|
|
54
|
-
deletedAt?: Date | null;
|
|
55
|
-
}
|
|
29
|
+
export type CandidacyFeedbackUpdate = Updateable<CandidacyFeedbackTable>;
|
|
@@ -3,38 +3,21 @@
|
|
|
3
3
|
|
|
4
4
|
import type { TagId } from './Tag';
|
|
5
5
|
import type { CandidacyId } from './Candidacy';
|
|
6
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
6
7
|
|
|
7
8
|
/** Represents the table public.CandidacyRatingToTag */
|
|
8
|
-
export default interface
|
|
9
|
-
tagId: TagId
|
|
9
|
+
export default interface CandidacyRatingToTagTable {
|
|
10
|
+
tagId: ColumnType<TagId, TagId, TagId>;
|
|
10
11
|
|
|
11
|
-
candidacyId: CandidacyId
|
|
12
|
+
candidacyId: ColumnType<CandidacyId, CandidacyId, CandidacyId>;
|
|
12
13
|
|
|
13
|
-
createdAt: Date
|
|
14
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
14
15
|
|
|
15
|
-
updatedAt: Date
|
|
16
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
export interface CandidacyRatingToTagInitializer {
|
|
20
|
-
tagId: TagId;
|
|
19
|
+
export type CandidacyRatingToTag = Selectable<CandidacyRatingToTagTable>;
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
export type NewCandidacyRatingToTag = Insertable<CandidacyRatingToTagTable>;
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
createdAt?: Date;
|
|
26
|
-
|
|
27
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
28
|
-
updatedAt?: Date;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/** Represents the mutator for the table public.CandidacyRatingToTag */
|
|
32
|
-
export interface CandidacyRatingToTagMutator {
|
|
33
|
-
tagId?: TagId;
|
|
34
|
-
|
|
35
|
-
candidacyId?: CandidacyId;
|
|
36
|
-
|
|
37
|
-
createdAt?: Date;
|
|
38
|
-
|
|
39
|
-
updatedAt?: Date;
|
|
40
|
-
}
|
|
23
|
+
export type CandidacyRatingToTagUpdate = Updateable<CandidacyRatingToTagTable>;
|
|
@@ -2,55 +2,28 @@
|
|
|
2
2
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
3
|
|
|
4
4
|
import type { default as ClientStatuses } from './ClientStatuses';
|
|
5
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
5
6
|
|
|
6
7
|
/** Identifier type for public.Client */
|
|
7
8
|
export type ClientId = string & { __brand: 'ClientId' };
|
|
8
9
|
|
|
9
10
|
/** Represents the table public.Client */
|
|
10
|
-
export default interface
|
|
11
|
-
id: ClientId
|
|
11
|
+
export default interface ClientTable {
|
|
12
|
+
id: ColumnType<ClientId, ClientId | undefined, ClientId>;
|
|
12
13
|
|
|
13
|
-
name: string
|
|
14
|
+
name: ColumnType<string, string, string>;
|
|
14
15
|
|
|
15
|
-
description: string
|
|
16
|
+
description: ColumnType<string, string, string>;
|
|
16
17
|
|
|
17
|
-
currentStatus: ClientStatuses | null
|
|
18
|
+
currentStatus: ColumnType<ClientStatuses | null, ClientStatuses | null, ClientStatuses | null>;
|
|
18
19
|
|
|
19
|
-
createdAt: Date
|
|
20
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
20
21
|
|
|
21
|
-
updatedAt: Date
|
|
22
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
export interface ClientInitializer {
|
|
26
|
-
/** Default value: gen_random_uuid() */
|
|
27
|
-
id?: ClientId;
|
|
25
|
+
export type Client = Selectable<ClientTable>;
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
export type NewClient = Insertable<ClientTable>;
|
|
30
28
|
|
|
31
|
-
|
|
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
|
-
}
|
|
29
|
+
export type ClientUpdate = Updateable<ClientTable>;
|
|
@@ -3,60 +3,30 @@
|
|
|
3
3
|
|
|
4
4
|
import type { PositionId } from './Position';
|
|
5
5
|
import type { ClientId } from './Client';
|
|
6
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
6
7
|
|
|
7
8
|
/** Identifier type for public.Contract */
|
|
8
9
|
export type ContractId = string & { __brand: 'ContractId' };
|
|
9
10
|
|
|
10
11
|
/** Represents the table public.Contract */
|
|
11
|
-
export default interface
|
|
12
|
-
id: ContractId
|
|
12
|
+
export default interface ContractTable {
|
|
13
|
+
id: ColumnType<ContractId, ContractId | undefined, ContractId>;
|
|
13
14
|
|
|
14
|
-
data: unknown
|
|
15
|
+
data: ColumnType<unknown, unknown, unknown>;
|
|
15
16
|
|
|
16
|
-
documentUrl: string
|
|
17
|
+
documentUrl: ColumnType<string, string, string>;
|
|
17
18
|
|
|
18
|
-
positionId: PositionId | null
|
|
19
|
+
positionId: ColumnType<PositionId | null, PositionId | null, PositionId | null>;
|
|
19
20
|
|
|
20
|
-
clientId: ClientId
|
|
21
|
+
clientId: ColumnType<ClientId, ClientId, ClientId>;
|
|
21
22
|
|
|
22
|
-
createdAt: Date
|
|
23
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
23
24
|
|
|
24
|
-
updatedAt: Date
|
|
25
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
export interface ContractInitializer {
|
|
29
|
-
/** Default value: gen_random_uuid() */
|
|
30
|
-
id?: ContractId;
|
|
28
|
+
export type Contract = Selectable<ContractTable>;
|
|
31
29
|
|
|
32
|
-
|
|
30
|
+
export type NewContract = Insertable<ContractTable>;
|
|
33
31
|
|
|
34
|
-
|
|
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
|
-
}
|
|
32
|
+
export type ContractUpdate = Updateable<ContractTable>;
|