@the-inkwell/shared 0.1.71 → 0.1.73
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 +16 -3
- 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 +4 -3
- package/src/types/db.ts +0 -487
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// @generated
|
|
2
|
+
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
+
|
|
4
|
+
/** Identifier type for public.Sender */
|
|
5
|
+
export type SenderId = string & { __brand: 'SenderId' };
|
|
6
|
+
|
|
7
|
+
/** Represents the table public.Sender */
|
|
8
|
+
export default interface Sender {
|
|
9
|
+
id: SenderId;
|
|
10
|
+
|
|
11
|
+
name: string;
|
|
12
|
+
|
|
13
|
+
email: string | null;
|
|
14
|
+
|
|
15
|
+
replyToEmail: string | null;
|
|
16
|
+
|
|
17
|
+
smsNumber: string | null;
|
|
18
|
+
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Represents the initializer for the table public.Sender */
|
|
25
|
+
export interface SenderInitializer {
|
|
26
|
+
/** Default value: gen_random_uuid() */
|
|
27
|
+
id?: SenderId;
|
|
28
|
+
|
|
29
|
+
name: string;
|
|
30
|
+
|
|
31
|
+
email?: string | null;
|
|
32
|
+
|
|
33
|
+
replyToEmail?: string | null;
|
|
34
|
+
|
|
35
|
+
smsNumber?: string | null;
|
|
36
|
+
|
|
37
|
+
/** Default value: CURRENT_TIMESTAMP */
|
|
38
|
+
createdAt?: Date;
|
|
39
|
+
|
|
40
|
+
/** Default value: CURRENT_TIMESTAMP */
|
|
41
|
+
updatedAt?: Date;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Represents the mutator for the table public.Sender */
|
|
45
|
+
export interface SenderMutator {
|
|
46
|
+
id?: SenderId;
|
|
47
|
+
|
|
48
|
+
name?: string;
|
|
49
|
+
|
|
50
|
+
email?: string | null;
|
|
51
|
+
|
|
52
|
+
replyToEmail?: string | null;
|
|
53
|
+
|
|
54
|
+
smsNumber?: string | null;
|
|
55
|
+
|
|
56
|
+
createdAt?: Date;
|
|
57
|
+
|
|
58
|
+
updatedAt?: Date;
|
|
59
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// @generated
|
|
2
|
+
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
+
|
|
4
|
+
/** Identifier type for public.Tag */
|
|
5
|
+
export type TagId = string & { __brand: 'TagId' };
|
|
6
|
+
|
|
7
|
+
/** Represents the table public.Tag */
|
|
8
|
+
export default interface Tag {
|
|
9
|
+
id: TagId;
|
|
10
|
+
|
|
11
|
+
slug: string;
|
|
12
|
+
|
|
13
|
+
name: string;
|
|
14
|
+
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Represents the initializer for the table public.Tag */
|
|
21
|
+
export interface TagInitializer {
|
|
22
|
+
/** Default value: gen_random_uuid() */
|
|
23
|
+
id?: TagId;
|
|
24
|
+
|
|
25
|
+
slug: string;
|
|
26
|
+
|
|
27
|
+
name: string;
|
|
28
|
+
|
|
29
|
+
/** Default value: CURRENT_TIMESTAMP */
|
|
30
|
+
createdAt?: Date;
|
|
31
|
+
|
|
32
|
+
/** Default value: CURRENT_TIMESTAMP */
|
|
33
|
+
updatedAt?: Date;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Represents the mutator for the table public.Tag */
|
|
37
|
+
export interface TagMutator {
|
|
38
|
+
id?: TagId;
|
|
39
|
+
|
|
40
|
+
slug?: string;
|
|
41
|
+
|
|
42
|
+
name?: string;
|
|
43
|
+
|
|
44
|
+
createdAt?: Date;
|
|
45
|
+
|
|
46
|
+
updatedAt?: Date;
|
|
47
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// @generated
|
|
2
|
+
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
+
|
|
4
|
+
/** Identifier type for public.WebsiteBlock */
|
|
5
|
+
export type WebsiteBlockId = string & { __brand: 'WebsiteBlockId' };
|
|
6
|
+
|
|
7
|
+
/** Represents the table public.WebsiteBlock */
|
|
8
|
+
export default interface WebsiteBlock {
|
|
9
|
+
id: WebsiteBlockId;
|
|
10
|
+
|
|
11
|
+
slug: string;
|
|
12
|
+
|
|
13
|
+
name: string;
|
|
14
|
+
|
|
15
|
+
content: string;
|
|
16
|
+
|
|
17
|
+
contentType: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Represents the initializer for the table public.WebsiteBlock */
|
|
21
|
+
export interface WebsiteBlockInitializer {
|
|
22
|
+
/** Default value: gen_random_uuid() */
|
|
23
|
+
id?: WebsiteBlockId;
|
|
24
|
+
|
|
25
|
+
slug: string;
|
|
26
|
+
|
|
27
|
+
name: string;
|
|
28
|
+
|
|
29
|
+
content: string;
|
|
30
|
+
|
|
31
|
+
contentType: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** Represents the mutator for the table public.WebsiteBlock */
|
|
35
|
+
export interface WebsiteBlockMutator {
|
|
36
|
+
id?: WebsiteBlockId;
|
|
37
|
+
|
|
38
|
+
slug?: string;
|
|
39
|
+
|
|
40
|
+
name?: string;
|
|
41
|
+
|
|
42
|
+
content?: string;
|
|
43
|
+
|
|
44
|
+
contentType?: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// @generated
|
|
2
|
+
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
+
|
|
4
|
+
/** Identifier type for public.WebsiteLandingPage */
|
|
5
|
+
export type WebsiteLandingPageId = string & { __brand: 'WebsiteLandingPageId' };
|
|
6
|
+
|
|
7
|
+
/** Represents the table public.WebsiteLandingPage */
|
|
8
|
+
export default interface WebsiteLandingPage {
|
|
9
|
+
id: WebsiteLandingPageId;
|
|
10
|
+
|
|
11
|
+
slug: string;
|
|
12
|
+
|
|
13
|
+
name: string;
|
|
14
|
+
|
|
15
|
+
content: unknown;
|
|
16
|
+
|
|
17
|
+
meta: unknown;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Represents the initializer for the table public.WebsiteLandingPage */
|
|
21
|
+
export interface WebsiteLandingPageInitializer {
|
|
22
|
+
/** Default value: gen_random_uuid() */
|
|
23
|
+
id?: WebsiteLandingPageId;
|
|
24
|
+
|
|
25
|
+
slug: string;
|
|
26
|
+
|
|
27
|
+
name: string;
|
|
28
|
+
|
|
29
|
+
/** Default value: '{}'::jsonb */
|
|
30
|
+
content?: unknown;
|
|
31
|
+
|
|
32
|
+
/** Default value: '{}'::jsonb */
|
|
33
|
+
meta?: unknown;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Represents the mutator for the table public.WebsiteLandingPage */
|
|
37
|
+
export interface WebsiteLandingPageMutator {
|
|
38
|
+
id?: WebsiteLandingPageId;
|
|
39
|
+
|
|
40
|
+
slug?: string;
|
|
41
|
+
|
|
42
|
+
name?: string;
|
|
43
|
+
|
|
44
|
+
content?: unknown;
|
|
45
|
+
|
|
46
|
+
meta?: unknown;
|
|
47
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @generated
|
|
2
|
+
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
+
|
|
4
|
+
/** Identifier type for public.WebsiteStaticPage */
|
|
5
|
+
export type WebsiteStaticPageId = string & { __brand: 'WebsiteStaticPageId' };
|
|
6
|
+
|
|
7
|
+
/** Represents the table public.WebsiteStaticPage */
|
|
8
|
+
export default interface WebsiteStaticPage {
|
|
9
|
+
id: WebsiteStaticPageId;
|
|
10
|
+
|
|
11
|
+
slug: string;
|
|
12
|
+
|
|
13
|
+
name: string;
|
|
14
|
+
|
|
15
|
+
path: string;
|
|
16
|
+
|
|
17
|
+
content: unknown;
|
|
18
|
+
|
|
19
|
+
meta: unknown;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Represents the initializer for the table public.WebsiteStaticPage */
|
|
23
|
+
export interface WebsiteStaticPageInitializer {
|
|
24
|
+
/** Default value: gen_random_uuid() */
|
|
25
|
+
id?: WebsiteStaticPageId;
|
|
26
|
+
|
|
27
|
+
slug: string;
|
|
28
|
+
|
|
29
|
+
name: string;
|
|
30
|
+
|
|
31
|
+
path: string;
|
|
32
|
+
|
|
33
|
+
/** Default value: '{}'::jsonb */
|
|
34
|
+
content?: unknown;
|
|
35
|
+
|
|
36
|
+
/** Default value: '{}'::jsonb */
|
|
37
|
+
meta?: unknown;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Represents the mutator for the table public.WebsiteStaticPage */
|
|
41
|
+
export interface WebsiteStaticPageMutator {
|
|
42
|
+
id?: WebsiteStaticPageId;
|
|
43
|
+
|
|
44
|
+
slug?: string;
|
|
45
|
+
|
|
46
|
+
name?: string;
|
|
47
|
+
|
|
48
|
+
path?: string;
|
|
49
|
+
|
|
50
|
+
content?: unknown;
|
|
51
|
+
|
|
52
|
+
meta?: unknown;
|
|
53
|
+
}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type Action from '../../../_schema/Action'
|
|
2
|
+
import type Candidacy from '../../../_schema/Candidacy'
|
|
3
|
+
import type CandidacyFeedback from '../../../_schema/CandidacyFeedback'
|
|
4
|
+
import type Note from '../../../_schema/Note'
|
|
5
|
+
import type Person from '../../../_schema/Person'
|
|
6
|
+
import type Referral from '../../../_schema/Referral'
|
|
7
|
+
import type Tag from '../../../_schema/Tag'
|
|
2
8
|
import { type ListRequest, type ListResponse } from '../../../utils'
|
|
3
9
|
|
|
4
10
|
// detail
|
|
5
11
|
|
|
6
|
-
export type AdminCandidacy =
|
|
12
|
+
export type AdminCandidacy = Candidacy
|
|
7
13
|
export type AdminCandidacyQueryParams = Pick<AdminCandidacy, 'id'>
|
|
8
|
-
export type AdminCandidacyResponse = AdminCandidacy
|
|
14
|
+
export type AdminCandidacyResponse = AdminCandidacy & {
|
|
15
|
+
referral?: Pick<Referral, 'id'>
|
|
16
|
+
person: Pick<Person, 'id' | 'firstName' | 'lastName' | 'photoUrl'>
|
|
17
|
+
ratingTags?: Pick<Tag, 'id' | 'name'>[]
|
|
18
|
+
actions?: Pick<Action, 'id' | 'name'>[]
|
|
19
|
+
feedbacks?: Pick<CandidacyFeedback, 'id' | 'content'>[]
|
|
20
|
+
notes?: Pick<Note, 'id' | 'content'>[]
|
|
21
|
+
}
|
|
9
22
|
|
|
10
23
|
// list
|
|
11
24
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
1
|
+
import type Person from '../../../_schema/Person'
|
|
2
|
+
import type { PersonMutator, PersonInitializer } from '../../../_schema/Person'
|
|
3
3
|
import { type ListRequest, type ListResponse } from '../../../utils'
|
|
4
4
|
|
|
5
5
|
// detail
|
|
@@ -16,7 +16,7 @@ export type AdminPersonListResponse = ListResponse<AdminPerson>
|
|
|
16
16
|
// create
|
|
17
17
|
|
|
18
18
|
export type AdminPersonCreateInput = Pick<
|
|
19
|
-
|
|
19
|
+
PersonInitializer,
|
|
20
20
|
'firstName' | 'lastName' | 'email' | 'phone' | 'linkedInUrl' | 'photoUrl'
|
|
21
21
|
>
|
|
22
22
|
export type AdminPersonCreateResponse = Pick<AdminPerson, 'id'>
|
|
@@ -24,7 +24,7 @@ export type AdminPersonCreateResponse = Pick<AdminPerson, 'id'>
|
|
|
24
24
|
// update
|
|
25
25
|
|
|
26
26
|
export type AdminPersonUpdateInput = Pick<
|
|
27
|
-
|
|
27
|
+
PersonMutator,
|
|
28
28
|
'firstName' | 'lastName' | 'email' | 'phone' | 'linkedInUrl' | 'photoUrl'
|
|
29
29
|
>
|
|
30
30
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
1
|
+
import type WebsiteStaticPage from '../../../_schema/WebsiteStaticPage'
|
|
2
|
+
import type { WebsiteStaticPageMutator } from '../../../_schema/WebsiteStaticPage'
|
|
3
3
|
import { type ListResponse } from '../../../utils'
|
|
4
4
|
|
|
5
5
|
// detail
|
|
@@ -17,6 +17,6 @@ export type AdminWebsiteStaticPageListResponse = AdminWebsiteStaticPageList
|
|
|
17
17
|
// update
|
|
18
18
|
|
|
19
19
|
export type AdminWebsiteStaticPageUpdateInput = Pick<
|
|
20
|
-
|
|
20
|
+
WebsiteStaticPageMutator,
|
|
21
21
|
'content' | 'meta'
|
|
22
22
|
>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Person from '../../_schema/Person'
|
|
2
|
+
import Otp from '../../_schema/Otp'
|
|
2
3
|
|
|
3
|
-
export type
|
|
4
|
+
export type AuthOtpCreateInput = Pick<Person, 'email'>
|
|
4
5
|
|
|
5
|
-
export type
|
|
6
|
+
export type AuthSignInCreateInput = Pick<Otp, 'code'>
|