@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
|
@@ -1,45 +1,26 @@
|
|
|
1
1
|
// @generated
|
|
2
2
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
3
|
|
|
4
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
5
|
+
|
|
4
6
|
/** Identifier type for public.WebsiteBlock */
|
|
5
7
|
export type WebsiteBlockId = string & { __brand: 'WebsiteBlockId' };
|
|
6
8
|
|
|
7
9
|
/** Represents the table public.WebsiteBlock */
|
|
8
|
-
export default interface
|
|
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;
|
|
10
|
+
export default interface WebsiteBlockTable {
|
|
11
|
+
id: ColumnType<WebsiteBlockId, WebsiteBlockId | undefined, WebsiteBlockId>;
|
|
24
12
|
|
|
25
|
-
slug: string
|
|
13
|
+
slug: ColumnType<string, string, string>;
|
|
26
14
|
|
|
27
|
-
name: string
|
|
15
|
+
name: ColumnType<string, string, string>;
|
|
28
16
|
|
|
29
|
-
content: string
|
|
17
|
+
content: ColumnType<string, string, string>;
|
|
30
18
|
|
|
31
|
-
contentType: string
|
|
19
|
+
contentType: ColumnType<string, string, string>;
|
|
32
20
|
}
|
|
33
21
|
|
|
34
|
-
|
|
35
|
-
export interface WebsiteBlockMutator {
|
|
36
|
-
id?: WebsiteBlockId;
|
|
37
|
-
|
|
38
|
-
slug?: string;
|
|
22
|
+
export type WebsiteBlock = Selectable<WebsiteBlockTable>;
|
|
39
23
|
|
|
40
|
-
|
|
24
|
+
export type NewWebsiteBlock = Insertable<WebsiteBlockTable>;
|
|
41
25
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
contentType?: string;
|
|
45
|
-
}
|
|
26
|
+
export type WebsiteBlockUpdate = Updateable<WebsiteBlockTable>;
|
|
@@ -1,47 +1,26 @@
|
|
|
1
1
|
// @generated
|
|
2
2
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
3
|
|
|
4
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
5
|
+
|
|
4
6
|
/** Identifier type for public.WebsiteLandingPage */
|
|
5
7
|
export type WebsiteLandingPageId = string & { __brand: 'WebsiteLandingPageId' };
|
|
6
8
|
|
|
7
9
|
/** Represents the table public.WebsiteLandingPage */
|
|
8
|
-
export default interface
|
|
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;
|
|
10
|
+
export default interface WebsiteLandingPageTable {
|
|
11
|
+
id: ColumnType<WebsiteLandingPageId, WebsiteLandingPageId | undefined, WebsiteLandingPageId>;
|
|
24
12
|
|
|
25
|
-
slug: string
|
|
13
|
+
slug: ColumnType<string, string, string>;
|
|
26
14
|
|
|
27
|
-
name: string
|
|
15
|
+
name: ColumnType<string, string, string>;
|
|
28
16
|
|
|
29
|
-
|
|
30
|
-
content?: unknown;
|
|
17
|
+
content: ColumnType<unknown, unknown | undefined, unknown>;
|
|
31
18
|
|
|
32
|
-
|
|
33
|
-
meta?: unknown;
|
|
19
|
+
meta: ColumnType<unknown, unknown | undefined, unknown>;
|
|
34
20
|
}
|
|
35
21
|
|
|
36
|
-
|
|
37
|
-
export interface WebsiteLandingPageMutator {
|
|
38
|
-
id?: WebsiteLandingPageId;
|
|
39
|
-
|
|
40
|
-
slug?: string;
|
|
22
|
+
export type WebsiteLandingPage = Selectable<WebsiteLandingPageTable>;
|
|
41
23
|
|
|
42
|
-
|
|
24
|
+
export type NewWebsiteLandingPage = Insertable<WebsiteLandingPageTable>;
|
|
43
25
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
meta?: unknown;
|
|
47
|
-
}
|
|
26
|
+
export type WebsiteLandingPageUpdate = Updateable<WebsiteLandingPageTable>;
|
|
@@ -1,53 +1,28 @@
|
|
|
1
1
|
// @generated
|
|
2
2
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
3
|
|
|
4
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
5
|
+
|
|
4
6
|
/** Identifier type for public.WebsiteStaticPage */
|
|
5
7
|
export type WebsiteStaticPageId = string & { __brand: 'WebsiteStaticPageId' };
|
|
6
8
|
|
|
7
9
|
/** Represents the table public.WebsiteStaticPage */
|
|
8
|
-
export default interface
|
|
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;
|
|
10
|
+
export default interface WebsiteStaticPageTable {
|
|
11
|
+
id: ColumnType<WebsiteStaticPageId, WebsiteStaticPageId | undefined, WebsiteStaticPageId>;
|
|
26
12
|
|
|
27
|
-
slug: string
|
|
13
|
+
slug: ColumnType<string, string, string>;
|
|
28
14
|
|
|
29
|
-
name: string
|
|
15
|
+
name: ColumnType<string, string, string>;
|
|
30
16
|
|
|
31
|
-
path: string
|
|
17
|
+
path: ColumnType<string, string, string>;
|
|
32
18
|
|
|
33
|
-
|
|
34
|
-
content?: unknown;
|
|
19
|
+
content: ColumnType<unknown, unknown | undefined, unknown>;
|
|
35
20
|
|
|
36
|
-
|
|
37
|
-
meta?: unknown;
|
|
21
|
+
meta: ColumnType<unknown, unknown | undefined, unknown>;
|
|
38
22
|
}
|
|
39
23
|
|
|
40
|
-
|
|
41
|
-
export interface WebsiteStaticPageMutator {
|
|
42
|
-
id?: WebsiteStaticPageId;
|
|
43
|
-
|
|
44
|
-
slug?: string;
|
|
24
|
+
export type WebsiteStaticPage = Selectable<WebsiteStaticPageTable>;
|
|
45
25
|
|
|
46
|
-
|
|
26
|
+
export type NewWebsiteStaticPage = Insertable<WebsiteStaticPageTable>;
|
|
47
27
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
content?: unknown;
|
|
51
|
-
|
|
52
|
-
meta?: unknown;
|
|
53
|
-
}
|
|
28
|
+
export type WebsiteStaticPageUpdate = Updateable<WebsiteStaticPageTable>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type Person from '../../../_schema/Person'
|
|
2
|
-
import type { PersonMutator, PersonInitializer } from '../../../_schema/Person'
|
|
1
|
+
import type { Person, NewPerson, PersonUpdate } from '../../../_schema/Person'
|
|
3
2
|
import { type ListRequest, type ListResponse } from '../../../utils'
|
|
4
3
|
|
|
5
4
|
// detail
|
|
@@ -16,7 +15,7 @@ export type AdminPersonListResponse = ListResponse<AdminPerson>
|
|
|
16
15
|
// create
|
|
17
16
|
|
|
18
17
|
export type AdminPersonCreateInput = Pick<
|
|
19
|
-
|
|
18
|
+
NewPerson,
|
|
20
19
|
'firstName' | 'lastName' | 'email' | 'phone' | 'linkedInUrl' | 'photoUrl'
|
|
21
20
|
>
|
|
22
21
|
export type AdminPersonCreateResponse = Pick<AdminPerson, 'id'>
|
|
@@ -24,7 +23,7 @@ export type AdminPersonCreateResponse = Pick<AdminPerson, 'id'>
|
|
|
24
23
|
// update
|
|
25
24
|
|
|
26
25
|
export type AdminPersonUpdateInput = Pick<
|
|
27
|
-
|
|
26
|
+
PersonUpdate,
|
|
28
27
|
'firstName' | 'lastName' | 'email' | 'phone' | 'linkedInUrl' | 'photoUrl'
|
|
29
28
|
>
|
|
30
29
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
1
|
+
import type {
|
|
2
|
+
WebsiteStaticPage,
|
|
3
|
+
WebsiteStaticPageUpdate
|
|
4
|
+
} from '../../../_schema/WebsiteStaticPage'
|
|
3
5
|
import { type ListResponse } from '../../../utils'
|
|
4
6
|
|
|
5
7
|
// detail
|
|
@@ -17,6 +19,6 @@ export type AdminWebsiteStaticPageListResponse = AdminWebsiteStaticPageList
|
|
|
17
19
|
// update
|
|
18
20
|
|
|
19
21
|
export type AdminWebsiteStaticPageUpdateInput = Pick<
|
|
20
|
-
|
|
22
|
+
WebsiteStaticPageUpdate,
|
|
21
23
|
'content' | 'meta'
|
|
22
24
|
>
|