@the-inkwell/shared 0.1.69 → 0.1.71
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/db.js +6 -0
- package/package.json +4 -1
- package/src/types/db.ts +487 -0
- package/src/types/models/admin/candidacies/index.ts +3 -16
- package/src/types/models/admin/persons/index.ts +4 -3
- package/src/types/models/admin/website/index.ts +3 -5
- package/src/types/models/auth/index.ts +1 -2
- package/src/types/_schema/Action.ts +0 -46
- package/src/types/_schema/ActionNames.ts +0 -11
- package/src/types/_schema/Admin.ts +0 -23
- package/src/types/_schema/Campaign.ts +0 -37
- package/src/types/_schema/CampaignStatuses.ts +0 -10
- package/src/types/_schema/CampaignToPosition.ts +0 -23
- package/src/types/_schema/Candidacy.ts +0 -40
- package/src/types/_schema/CandidacyFeedback.ts +0 -29
- package/src/types/_schema/CandidacyRatingToTag.ts +0 -23
- package/src/types/_schema/CandidacySources.ts +0 -11
- package/src/types/_schema/CandidacyStatuses.ts +0 -14
- package/src/types/_schema/Client.ts +0 -29
- package/src/types/_schema/ClientStatuses.ts +0 -10
- package/src/types/_schema/Contract.ts +0 -32
- package/src/types/_schema/Conversation.ts +0 -33
- package/src/types/_schema/EnrichmentSources.ts +0 -8
- package/src/types/_schema/Jwt.ts +0 -29
- package/src/types/_schema/ListView.ts +0 -36
- package/src/types/_schema/ListViewModels.ts +0 -11
- package/src/types/_schema/Message.ts +0 -35
- package/src/types/_schema/MessageChannels.ts +0 -9
- package/src/types/_schema/MessageTemplate.ts +0 -28
- package/src/types/_schema/Note.ts +0 -38
- package/src/types/_schema/Otp.ts +0 -31
- package/src/types/_schema/Person.ts +0 -109
- package/src/types/_schema/PersonCareerLevels.ts +0 -13
- package/src/types/_schema/PersonClub.ts +0 -28
- package/src/types/_schema/PersonDegrees.ts +0 -13
- package/src/types/_schema/PersonEnrichment.ts +0 -32
- package/src/types/_schema/PersonGenders.ts +0 -11
- package/src/types/_schema/PersonNetwork.ts +0 -28
- package/src/types/_schema/PersonSkill.ts +0 -28
- package/src/types/_schema/PersonSources.ts +0 -11
- package/src/types/_schema/PersonToBestPerson.ts +0 -20
- package/src/types/_schema/PersonToPersonClub.ts +0 -21
- package/src/types/_schema/PersonToPersonNetwork.ts +0 -21
- package/src/types/_schema/PersonToPersonSkill.ts +0 -21
- package/src/types/_schema/PersonToTag.ts +0 -21
- package/src/types/_schema/Position.ts +0 -36
- package/src/types/_schema/PositionStatuses.ts +0 -9
- package/src/types/_schema/PublicSchema.ts +0 -110
- package/src/types/_schema/Referral.ts +0 -39
- package/src/types/_schema/ReferralPayout.ts +0 -21
- package/src/types/_schema/ReferralSources.ts +0 -10
- package/src/types/_schema/ReferralToIntroMessage.ts +0 -23
- package/src/types/_schema/Sender.ts +0 -30
- package/src/types/_schema/Tag.ts +0 -26
- package/src/types/_schema/WebsiteBlock.ts +0 -26
- package/src/types/_schema/WebsiteLandingPage.ts +0 -26
- package/src/types/_schema/WebsiteStaticPage.ts +0 -28
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { default as CampaignStatuses } from './CampaignStatuses';
|
|
5
|
-
import type { MessageTemplateId } from './MessageTemplate';
|
|
6
|
-
import type { default as MessageChannels } from './MessageChannels';
|
|
7
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
8
|
-
|
|
9
|
-
/** Identifier type for public.Campaign */
|
|
10
|
-
export type CampaignId = string & { __brand: 'CampaignId' };
|
|
11
|
-
|
|
12
|
-
/** Represents the table public.Campaign */
|
|
13
|
-
export default interface CampaignTable {
|
|
14
|
-
id: ColumnType<CampaignId, CampaignId | undefined, CampaignId>;
|
|
15
|
-
|
|
16
|
-
urlId: ColumnType<number, number | undefined, number>;
|
|
17
|
-
|
|
18
|
-
status: ColumnType<CampaignStatuses, CampaignStatuses | undefined, CampaignStatuses>;
|
|
19
|
-
|
|
20
|
-
messageTemplateId: ColumnType<MessageTemplateId | null, MessageTemplateId | null, MessageTemplateId | null>;
|
|
21
|
-
|
|
22
|
-
channels: ColumnType<MessageChannels[] | null, MessageChannels[] | null, MessageChannels[] | null>;
|
|
23
|
-
|
|
24
|
-
content: ColumnType<unknown, unknown, unknown>;
|
|
25
|
-
|
|
26
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
27
|
-
|
|
28
|
-
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
29
|
-
|
|
30
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export type Campaign = Selectable<CampaignTable>;
|
|
34
|
-
|
|
35
|
-
export type NewCampaign = Insertable<CampaignTable>;
|
|
36
|
-
|
|
37
|
-
export type CampaignUpdate = Updateable<CampaignTable>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { CampaignId } from './Campaign';
|
|
5
|
-
import type { PositionId } from './Position';
|
|
6
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
7
|
-
|
|
8
|
-
/** Represents the table public.CampaignToPosition */
|
|
9
|
-
export default interface CampaignToPositionTable {
|
|
10
|
-
campaignId: ColumnType<CampaignId, CampaignId, CampaignId>;
|
|
11
|
-
|
|
12
|
-
positionId: ColumnType<PositionId, PositionId, PositionId>;
|
|
13
|
-
|
|
14
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
15
|
-
|
|
16
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type CampaignToPosition = Selectable<CampaignToPositionTable>;
|
|
20
|
-
|
|
21
|
-
export type NewCampaignToPosition = Insertable<CampaignToPositionTable>;
|
|
22
|
-
|
|
23
|
-
export type CampaignToPositionUpdate = Updateable<CampaignToPositionTable>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { default as CandidacyStatuses } from './CandidacyStatuses';
|
|
5
|
-
import type { default as CandidacySources } from './CandidacySources';
|
|
6
|
-
import type { PersonId } from './Person';
|
|
7
|
-
import type { PositionId } from './Position';
|
|
8
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
9
|
-
|
|
10
|
-
/** Identifier type for public.Candidacy */
|
|
11
|
-
export type CandidacyId = string & { __brand: 'CandidacyId' };
|
|
12
|
-
|
|
13
|
-
/** Represents the table public.Candidacy */
|
|
14
|
-
export default interface CandidacyTable {
|
|
15
|
-
id: ColumnType<CandidacyId, CandidacyId | undefined, CandidacyId>;
|
|
16
|
-
|
|
17
|
-
currentStatus: ColumnType<CandidacyStatuses | null, CandidacyStatuses | null, CandidacyStatuses | null>;
|
|
18
|
-
|
|
19
|
-
rating: ColumnType<number | null, number | null, number | null>;
|
|
20
|
-
|
|
21
|
-
ratingNotes: ColumnType<string | null, string | null, string | null>;
|
|
22
|
-
|
|
23
|
-
source: ColumnType<CandidacySources | null, CandidacySources | null, CandidacySources | null>;
|
|
24
|
-
|
|
25
|
-
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
26
|
-
|
|
27
|
-
positionId: ColumnType<PositionId, PositionId, PositionId>;
|
|
28
|
-
|
|
29
|
-
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
30
|
-
|
|
31
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
32
|
-
|
|
33
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export type Candidacy = Selectable<CandidacyTable>;
|
|
37
|
-
|
|
38
|
-
export type NewCandidacy = Insertable<CandidacyTable>;
|
|
39
|
-
|
|
40
|
-
export type CandidacyUpdate = Updateable<CandidacyTable>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { CandidacyId } from './Candidacy';
|
|
5
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
6
|
-
|
|
7
|
-
/** Identifier type for public.CandidacyFeedback */
|
|
8
|
-
export type CandidacyFeedbackId = string & { __brand: 'CandidacyFeedbackId' };
|
|
9
|
-
|
|
10
|
-
/** Represents the table public.CandidacyFeedback */
|
|
11
|
-
export default interface CandidacyFeedbackTable {
|
|
12
|
-
id: ColumnType<CandidacyFeedbackId, CandidacyFeedbackId | undefined, CandidacyFeedbackId>;
|
|
13
|
-
|
|
14
|
-
candidacyId: ColumnType<CandidacyId, CandidacyId, CandidacyId>;
|
|
15
|
-
|
|
16
|
-
content: ColumnType<string, string, string>;
|
|
17
|
-
|
|
18
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
19
|
-
|
|
20
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
21
|
-
|
|
22
|
-
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type CandidacyFeedback = Selectable<CandidacyFeedbackTable>;
|
|
26
|
-
|
|
27
|
-
export type NewCandidacyFeedback = Insertable<CandidacyFeedbackTable>;
|
|
28
|
-
|
|
29
|
-
export type CandidacyFeedbackUpdate = Updateable<CandidacyFeedbackTable>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { TagId } from './Tag';
|
|
5
|
-
import type { CandidacyId } from './Candidacy';
|
|
6
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
7
|
-
|
|
8
|
-
/** Represents the table public.CandidacyRatingToTag */
|
|
9
|
-
export default interface CandidacyRatingToTagTable {
|
|
10
|
-
tagId: ColumnType<TagId, TagId, TagId>;
|
|
11
|
-
|
|
12
|
-
candidacyId: ColumnType<CandidacyId, CandidacyId, CandidacyId>;
|
|
13
|
-
|
|
14
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
15
|
-
|
|
16
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type CandidacyRatingToTag = Selectable<CandidacyRatingToTagTable>;
|
|
20
|
-
|
|
21
|
-
export type NewCandidacyRatingToTag = Insertable<CandidacyRatingToTagTable>;
|
|
22
|
-
|
|
23
|
-
export type CandidacyRatingToTagUpdate = Updateable<CandidacyRatingToTagTable>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
/** Represents the enum public.CandidacySources */
|
|
5
|
-
type CandidacySources =
|
|
6
|
-
| 'STAFF'
|
|
7
|
-
| 'NETWORK'
|
|
8
|
-
| 'WEBSITE'
|
|
9
|
-
| 'INTERNET';
|
|
10
|
-
|
|
11
|
-
export default CandidacySources;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
/** Represents the enum public.CandidacyStatuses */
|
|
5
|
-
type CandidacyStatuses =
|
|
6
|
-
| 'SUBMITTED'
|
|
7
|
-
| 'SCREENING'
|
|
8
|
-
| 'INTERVIEWING'
|
|
9
|
-
| 'OFFERED'
|
|
10
|
-
| 'HIRED'
|
|
11
|
-
| 'REJECTED'
|
|
12
|
-
| 'WITHDRAWN';
|
|
13
|
-
|
|
14
|
-
export default CandidacyStatuses;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { default as ClientStatuses } from './ClientStatuses';
|
|
5
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
6
|
-
|
|
7
|
-
/** Identifier type for public.Client */
|
|
8
|
-
export type ClientId = string & { __brand: 'ClientId' };
|
|
9
|
-
|
|
10
|
-
/** Represents the table public.Client */
|
|
11
|
-
export default interface ClientTable {
|
|
12
|
-
id: ColumnType<ClientId, ClientId | undefined, ClientId>;
|
|
13
|
-
|
|
14
|
-
name: ColumnType<string, string, string>;
|
|
15
|
-
|
|
16
|
-
description: ColumnType<string, string, string>;
|
|
17
|
-
|
|
18
|
-
currentStatus: ColumnType<ClientStatuses | null, ClientStatuses | null, ClientStatuses | null>;
|
|
19
|
-
|
|
20
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
21
|
-
|
|
22
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type Client = Selectable<ClientTable>;
|
|
26
|
-
|
|
27
|
-
export type NewClient = Insertable<ClientTable>;
|
|
28
|
-
|
|
29
|
-
export type ClientUpdate = Updateable<ClientTable>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { PositionId } from './Position';
|
|
5
|
-
import type { ClientId } from './Client';
|
|
6
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
7
|
-
|
|
8
|
-
/** Identifier type for public.Contract */
|
|
9
|
-
export type ContractId = string & { __brand: 'ContractId' };
|
|
10
|
-
|
|
11
|
-
/** Represents the table public.Contract */
|
|
12
|
-
export default interface ContractTable {
|
|
13
|
-
id: ColumnType<ContractId, ContractId | undefined, ContractId>;
|
|
14
|
-
|
|
15
|
-
data: ColumnType<unknown, unknown, unknown>;
|
|
16
|
-
|
|
17
|
-
documentUrl: ColumnType<string, string, string>;
|
|
18
|
-
|
|
19
|
-
positionId: ColumnType<PositionId | null, PositionId | null, PositionId | null>;
|
|
20
|
-
|
|
21
|
-
clientId: ColumnType<ClientId, ClientId, ClientId>;
|
|
22
|
-
|
|
23
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
24
|
-
|
|
25
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type Contract = Selectable<ContractTable>;
|
|
29
|
-
|
|
30
|
-
export type NewContract = Insertable<ContractTable>;
|
|
31
|
-
|
|
32
|
-
export type ContractUpdate = Updateable<ContractTable>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { default as MessageChannels } from './MessageChannels';
|
|
5
|
-
import type { PersonId } from './Person';
|
|
6
|
-
import type { CampaignId } from './Campaign';
|
|
7
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
8
|
-
|
|
9
|
-
/** Identifier type for public.Conversation */
|
|
10
|
-
export type ConversationId = string & { __brand: 'ConversationId' };
|
|
11
|
-
|
|
12
|
-
/** Represents the table public.Conversation */
|
|
13
|
-
export default interface ConversationTable {
|
|
14
|
-
id: ColumnType<ConversationId, ConversationId | undefined, ConversationId>;
|
|
15
|
-
|
|
16
|
-
urlId: ColumnType<number, number | undefined, number>;
|
|
17
|
-
|
|
18
|
-
channel: ColumnType<MessageChannels, MessageChannels, MessageChannels>;
|
|
19
|
-
|
|
20
|
-
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
21
|
-
|
|
22
|
-
campaignId: ColumnType<CampaignId | null, CampaignId | null, CampaignId | null>;
|
|
23
|
-
|
|
24
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
25
|
-
|
|
26
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type Conversation = Selectable<ConversationTable>;
|
|
30
|
-
|
|
31
|
-
export type NewConversation = Insertable<ConversationTable>;
|
|
32
|
-
|
|
33
|
-
export type ConversationUpdate = Updateable<ConversationTable>;
|
package/src/types/_schema/Jwt.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { PersonId } from './Person';
|
|
5
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
6
|
-
|
|
7
|
-
/** Identifier type for public.Jwt */
|
|
8
|
-
export type JwtId = number & { __brand: 'JwtId' };
|
|
9
|
-
|
|
10
|
-
/** Represents the table public.Jwt */
|
|
11
|
-
export default interface JwtTable {
|
|
12
|
-
id: ColumnType<JwtId, JwtId | undefined, JwtId>;
|
|
13
|
-
|
|
14
|
-
jti: ColumnType<string, string, string>;
|
|
15
|
-
|
|
16
|
-
revokedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
17
|
-
|
|
18
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
19
|
-
|
|
20
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
21
|
-
|
|
22
|
-
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type Jwt = Selectable<JwtTable>;
|
|
26
|
-
|
|
27
|
-
export type NewJwt = Insertable<JwtTable>;
|
|
28
|
-
|
|
29
|
-
export type JwtUpdate = Updateable<JwtTable>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { default as ListViewModels } from './ListViewModels';
|
|
5
|
-
import type { PositionId } from './Position';
|
|
6
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
7
|
-
|
|
8
|
-
/** Identifier type for public.ListView */
|
|
9
|
-
export type ListViewId = string & { __brand: 'ListViewId' };
|
|
10
|
-
|
|
11
|
-
/** Represents the table public.ListView */
|
|
12
|
-
export default interface ListViewTable {
|
|
13
|
-
id: ColumnType<ListViewId, ListViewId | undefined, ListViewId>;
|
|
14
|
-
|
|
15
|
-
model: ColumnType<ListViewModels, ListViewModels, ListViewModels>;
|
|
16
|
-
|
|
17
|
-
name: ColumnType<string, string, string>;
|
|
18
|
-
|
|
19
|
-
query: ColumnType<unknown, unknown, unknown>;
|
|
20
|
-
|
|
21
|
-
positionId: ColumnType<PositionId | null, PositionId | null, PositionId | null>;
|
|
22
|
-
|
|
23
|
-
archivedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
24
|
-
|
|
25
|
-
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
26
|
-
|
|
27
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
28
|
-
|
|
29
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export type ListView = Selectable<ListViewTable>;
|
|
33
|
-
|
|
34
|
-
export type NewListView = Insertable<ListViewTable>;
|
|
35
|
-
|
|
36
|
-
export type ListViewUpdate = Updateable<ListViewTable>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
/** Represents the enum public.ListViewModels */
|
|
5
|
-
type ListViewModels =
|
|
6
|
-
| 'PERSON'
|
|
7
|
-
| 'POSITION'
|
|
8
|
-
| 'CANDIDACY'
|
|
9
|
-
| 'REFERRAL';
|
|
10
|
-
|
|
11
|
-
export default ListViewModels;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { SenderId } from './Sender';
|
|
5
|
-
import type { PersonId } from './Person';
|
|
6
|
-
import type { ConversationId } from './Conversation';
|
|
7
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
8
|
-
|
|
9
|
-
/** Identifier type for public.Message */
|
|
10
|
-
export type MessageId = string & { __brand: 'MessageId' };
|
|
11
|
-
|
|
12
|
-
/** Represents the table public.Message */
|
|
13
|
-
export default interface MessageTable {
|
|
14
|
-
id: ColumnType<MessageId, MessageId | undefined, MessageId>;
|
|
15
|
-
|
|
16
|
-
urlId: ColumnType<number, number | undefined, number>;
|
|
17
|
-
|
|
18
|
-
data: ColumnType<unknown, unknown, unknown>;
|
|
19
|
-
|
|
20
|
-
adminSenderId: ColumnType<SenderId | null, SenderId | null, SenderId | null>;
|
|
21
|
-
|
|
22
|
-
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
23
|
-
|
|
24
|
-
conversationId: ColumnType<ConversationId, ConversationId, ConversationId>;
|
|
25
|
-
|
|
26
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
27
|
-
|
|
28
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type Message = Selectable<MessageTable>;
|
|
32
|
-
|
|
33
|
-
export type NewMessage = Insertable<MessageTable>;
|
|
34
|
-
|
|
35
|
-
export type MessageUpdate = Updateable<MessageTable>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
5
|
-
|
|
6
|
-
/** Identifier type for public.MessageTemplate */
|
|
7
|
-
export type MessageTemplateId = string & { __brand: 'MessageTemplateId' };
|
|
8
|
-
|
|
9
|
-
/** Represents the table public.MessageTemplate */
|
|
10
|
-
export default interface MessageTemplateTable {
|
|
11
|
-
id: ColumnType<MessageTemplateId, MessageTemplateId | undefined, MessageTemplateId>;
|
|
12
|
-
|
|
13
|
-
name: ColumnType<string, string, string>;
|
|
14
|
-
|
|
15
|
-
data: ColumnType<unknown, unknown, unknown>;
|
|
16
|
-
|
|
17
|
-
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
18
|
-
|
|
19
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
20
|
-
|
|
21
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type MessageTemplate = Selectable<MessageTemplateTable>;
|
|
25
|
-
|
|
26
|
-
export type NewMessageTemplate = Insertable<MessageTemplateTable>;
|
|
27
|
-
|
|
28
|
-
export type MessageTemplateUpdate = Updateable<MessageTemplateTable>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { AdminId } from './Admin';
|
|
5
|
-
import type { CandidacyId } from './Candidacy';
|
|
6
|
-
import type { PersonId } from './Person';
|
|
7
|
-
import type { ClientId } from './Client';
|
|
8
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
9
|
-
|
|
10
|
-
/** Identifier type for public.Note */
|
|
11
|
-
export type NoteId = string & { __brand: 'NoteId' };
|
|
12
|
-
|
|
13
|
-
/** Represents the table public.Note */
|
|
14
|
-
export default interface NoteTable {
|
|
15
|
-
id: ColumnType<NoteId, NoteId | undefined, NoteId>;
|
|
16
|
-
|
|
17
|
-
content: ColumnType<string, string, string>;
|
|
18
|
-
|
|
19
|
-
adminId: ColumnType<AdminId | null, AdminId | null, AdminId | null>;
|
|
20
|
-
|
|
21
|
-
candidacyId: ColumnType<CandidacyId | null, CandidacyId | null, CandidacyId | null>;
|
|
22
|
-
|
|
23
|
-
personId: ColumnType<PersonId | null, PersonId | null, PersonId | null>;
|
|
24
|
-
|
|
25
|
-
clientId: ColumnType<ClientId | null, ClientId | null, ClientId | null>;
|
|
26
|
-
|
|
27
|
-
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
28
|
-
|
|
29
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
30
|
-
|
|
31
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export type Note = Selectable<NoteTable>;
|
|
35
|
-
|
|
36
|
-
export type NewNote = Insertable<NoteTable>;
|
|
37
|
-
|
|
38
|
-
export type NoteUpdate = Updateable<NoteTable>;
|
package/src/types/_schema/Otp.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { PersonId } from './Person';
|
|
5
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
6
|
-
|
|
7
|
-
/** Identifier type for public.Otp */
|
|
8
|
-
export type OtpId = number & { __brand: 'OtpId' };
|
|
9
|
-
|
|
10
|
-
/** Represents the table public.Otp */
|
|
11
|
-
export default interface OtpTable {
|
|
12
|
-
id: ColumnType<OtpId, OtpId | undefined, OtpId>;
|
|
13
|
-
|
|
14
|
-
code: ColumnType<string, string, string>;
|
|
15
|
-
|
|
16
|
-
usedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
17
|
-
|
|
18
|
-
expiresAt: ColumnType<Date, Date | string, Date | string>;
|
|
19
|
-
|
|
20
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
21
|
-
|
|
22
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
23
|
-
|
|
24
|
-
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type Otp = Selectable<OtpTable>;
|
|
28
|
-
|
|
29
|
-
export type NewOtp = Insertable<OtpTable>;
|
|
30
|
-
|
|
31
|
-
export type OtpUpdate = Updateable<OtpTable>;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { default as PersonSources } from './PersonSources';
|
|
5
|
-
import type { default as PersonCareerLevels } from './PersonCareerLevels';
|
|
6
|
-
import type { default as PersonDegrees } from './PersonDegrees';
|
|
7
|
-
import type { default as PersonGenders } from './PersonGenders';
|
|
8
|
-
import type { ClientId } from './Client';
|
|
9
|
-
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
10
|
-
|
|
11
|
-
/** Identifier type for public.Person */
|
|
12
|
-
export type PersonId = string & { __brand: 'PersonId' };
|
|
13
|
-
|
|
14
|
-
/** Represents the table public.Person */
|
|
15
|
-
export default interface PersonTable {
|
|
16
|
-
id: ColumnType<PersonId, PersonId | undefined, PersonId>;
|
|
17
|
-
|
|
18
|
-
email: ColumnType<string, string, string>;
|
|
19
|
-
|
|
20
|
-
emailVerified: ColumnType<boolean, boolean | undefined, boolean>;
|
|
21
|
-
|
|
22
|
-
firstName: ColumnType<string | null, string | null, string | null>;
|
|
23
|
-
|
|
24
|
-
lastName: ColumnType<string | null, string | null, string | null>;
|
|
25
|
-
|
|
26
|
-
linkedInUrl: ColumnType<string | null, string | null, string | null>;
|
|
27
|
-
|
|
28
|
-
phone: ColumnType<string | null, string | null, string | null>;
|
|
29
|
-
|
|
30
|
-
phoneVerified: ColumnType<boolean, boolean | undefined, boolean>;
|
|
31
|
-
|
|
32
|
-
emailOptOut: ColumnType<boolean, boolean | undefined, boolean>;
|
|
33
|
-
|
|
34
|
-
smsOptOut: ColumnType<boolean, boolean | undefined, boolean>;
|
|
35
|
-
|
|
36
|
-
resumeUrl: ColumnType<string | null, string | null, string | null>;
|
|
37
|
-
|
|
38
|
-
photoUrl: ColumnType<string | null, string | null, string | null>;
|
|
39
|
-
|
|
40
|
-
lat: ColumnType<number | null, number | null, number | null>;
|
|
41
|
-
|
|
42
|
-
lon: ColumnType<number | null, number | null, number | null>;
|
|
43
|
-
|
|
44
|
-
city: ColumnType<string | null, string | null, string | null>;
|
|
45
|
-
|
|
46
|
-
state: ColumnType<string | null, string | null, string | null>;
|
|
47
|
-
|
|
48
|
-
postalCode: ColumnType<string | null, string | null, string | null>;
|
|
49
|
-
|
|
50
|
-
country: ColumnType<string | null, string | null, string | null>;
|
|
51
|
-
|
|
52
|
-
additionalEmails: ColumnType<string[] | null, string[] | null, string[] | null>;
|
|
53
|
-
|
|
54
|
-
additionalPhones: ColumnType<string[] | null, string[] | null, string[] | null>;
|
|
55
|
-
|
|
56
|
-
source: ColumnType<PersonSources | null, PersonSources | null, PersonSources | null>;
|
|
57
|
-
|
|
58
|
-
website: ColumnType<string | null, string | null, string | null>;
|
|
59
|
-
|
|
60
|
-
currentSalary: ColumnType<number | null, number | null, number | null>;
|
|
61
|
-
|
|
62
|
-
expectedSalary: ColumnType<number | null, number | null, number | null>;
|
|
63
|
-
|
|
64
|
-
currentEmployer: ColumnType<string | null, string | null, string | null>;
|
|
65
|
-
|
|
66
|
-
currentTitle: ColumnType<string | null, string | null, string | null>;
|
|
67
|
-
|
|
68
|
-
careerLevel: ColumnType<PersonCareerLevels | null, PersonCareerLevels | null, PersonCareerLevels | null>;
|
|
69
|
-
|
|
70
|
-
certifications: ColumnType<string[] | null, string[] | null, string[] | null>;
|
|
71
|
-
|
|
72
|
-
openToRelocate: ColumnType<boolean | null, boolean | null, boolean | null>;
|
|
73
|
-
|
|
74
|
-
highestDegreeObtained: ColumnType<PersonDegrees | null, PersonDegrees | null, PersonDegrees | null>;
|
|
75
|
-
|
|
76
|
-
undergraduateInstitution: ColumnType<string | null, string | null, string | null>;
|
|
77
|
-
|
|
78
|
-
typeOfUndergraduateDegree: ColumnType<string | null, string | null, string | null>;
|
|
79
|
-
|
|
80
|
-
graduateInstitution: ColumnType<string | null, string | null, string | null>;
|
|
81
|
-
|
|
82
|
-
typeOfGraduateDegree: ColumnType<string | null, string | null, string | null>;
|
|
83
|
-
|
|
84
|
-
gender: ColumnType<PersonGenders | null, PersonGenders | null, PersonGenders | null>;
|
|
85
|
-
|
|
86
|
-
howDidYouHearAboutUs: ColumnType<string | null, string | null, string | null>;
|
|
87
|
-
|
|
88
|
-
sourcePersonId: ColumnType<PersonId | null, PersonId | null, PersonId | null>;
|
|
89
|
-
|
|
90
|
-
deactivatedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
91
|
-
|
|
92
|
-
lastSignedInAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
93
|
-
|
|
94
|
-
signInCount: ColumnType<number, number | undefined, number>;
|
|
95
|
-
|
|
96
|
-
clientId: ColumnType<ClientId | null, ClientId | null, ClientId | null>;
|
|
97
|
-
|
|
98
|
-
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
99
|
-
|
|
100
|
-
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
101
|
-
|
|
102
|
-
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export type Person = Selectable<PersonTable>;
|
|
106
|
-
|
|
107
|
-
export type NewPerson = Insertable<PersonTable>;
|
|
108
|
-
|
|
109
|
-
export type PersonUpdate = Updateable<PersonTable>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
/** Represents the enum public.PersonCareerLevels */
|
|
5
|
-
type PersonCareerLevels =
|
|
6
|
-
| 'EXPERIENCED'
|
|
7
|
-
| 'MANAGER'
|
|
8
|
-
| 'DIRECTOR'
|
|
9
|
-
| 'VICE_PRESIDENT'
|
|
10
|
-
| 'VICE_PRESIDENT_SENIOR'
|
|
11
|
-
| 'CHIEF_SUITE';
|
|
12
|
-
|
|
13
|
-
export default PersonCareerLevels;
|