@the-inkwell/shared 0.1.69 → 0.1.70

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.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/src/types/_schema/Action.ts +61 -16
  3. package/src/types/_schema/Admin.ts +21 -8
  4. package/src/types/_schema/Campaign.ts +54 -14
  5. package/src/types/_schema/CampaignToPosition.ts +26 -9
  6. package/src/types/_schema/Candidacy.ts +59 -15
  7. package/src/types/_schema/CandidacyFeedback.ts +37 -11
  8. package/src/types/_schema/CandidacyRatingToTag.ts +26 -9
  9. package/src/types/_schema/Client.ts +38 -11
  10. package/src/types/_schema/Contract.ts +42 -12
  11. package/src/types/_schema/Conversation.ts +43 -12
  12. package/src/types/_schema/Jwt.ts +37 -11
  13. package/src/types/_schema/ListView.ts +52 -14
  14. package/src/types/_schema/Message.ts +48 -13
  15. package/src/types/_schema/MessageTemplate.ts +37 -12
  16. package/src/types/_schema/Note.ts +52 -14
  17. package/src/types/_schema/Otp.ts +42 -12
  18. package/src/types/_schema/Person.ts +233 -49
  19. package/src/types/_schema/PersonClub.ts +37 -12
  20. package/src/types/_schema/PersonEnrichment.ts +42 -12
  21. package/src/types/_schema/PersonNetwork.ts +37 -12
  22. package/src/types/_schema/PersonSkill.ts +37 -12
  23. package/src/types/_schema/PersonToBestPerson.ts +20 -8
  24. package/src/types/_schema/PersonToPersonClub.ts +20 -8
  25. package/src/types/_schema/PersonToPersonNetwork.ts +20 -8
  26. package/src/types/_schema/PersonToPersonSkill.ts +20 -8
  27. package/src/types/_schema/PersonToTag.ts +20 -8
  28. package/src/types/_schema/Position.ts +55 -14
  29. package/src/types/_schema/Referral.ts +53 -14
  30. package/src/types/_schema/ReferralPayout.ts +15 -7
  31. package/src/types/_schema/ReferralToIntroMessage.ts +26 -9
  32. package/src/types/_schema/Sender.ts +42 -13
  33. package/src/types/_schema/Tag.ts +32 -11
  34. package/src/types/_schema/WebsiteBlock.ts +30 -11
  35. package/src/types/_schema/WebsiteLandingPage.ts +32 -11
  36. package/src/types/_schema/WebsiteStaticPage.ts +37 -12
  37. package/src/types/models/admin/persons/index.ts +5 -4
  38. package/src/types/models/admin/website/index.ts +15 -9
@@ -1,28 +1,53 @@
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
-
6
4
  /** Identifier type for public.WebsiteStaticPage */
7
5
  export type WebsiteStaticPageId = string & { __brand: 'WebsiteStaticPageId' };
8
6
 
9
7
  /** Represents the table public.WebsiteStaticPage */
10
- export default interface WebsiteStaticPageTable {
11
- id: ColumnType<WebsiteStaticPageId, WebsiteStaticPageId | undefined, WebsiteStaticPageId>;
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;
12
26
 
13
- slug: ColumnType<string, string, string>;
27
+ slug: string;
14
28
 
15
- name: ColumnType<string, string, string>;
29
+ name: string;
16
30
 
17
- path: ColumnType<string, string, string>;
31
+ path: string;
18
32
 
19
- content: ColumnType<unknown, unknown | undefined, unknown>;
33
+ /** Default value: '{}'::jsonb */
34
+ content?: unknown;
20
35
 
21
- meta: ColumnType<unknown, unknown | undefined, unknown>;
36
+ /** Default value: '{}'::jsonb */
37
+ meta?: unknown;
22
38
  }
23
39
 
24
- export type WebsiteStaticPage = Selectable<WebsiteStaticPageTable>;
40
+ /** Represents the mutator for the table public.WebsiteStaticPage */
41
+ export interface WebsiteStaticPageMutator {
42
+ id?: WebsiteStaticPageId;
43
+
44
+ slug?: string;
25
45
 
26
- export type NewWebsiteStaticPage = Insertable<WebsiteStaticPageTable>;
46
+ name?: string;
27
47
 
28
- export type WebsiteStaticPageUpdate = Updateable<WebsiteStaticPageTable>;
48
+ path?: string;
49
+
50
+ content?: unknown;
51
+
52
+ meta?: unknown;
53
+ }
@@ -1,9 +1,10 @@
1
- import type { Person, NewPerson, PersonUpdate } from '../../../_schema/Person'
1
+ import type Person from '../../../_schema/Person'
2
+ import type { PersonMutator, PersonInitializer } from '../../../_schema/Person'
2
3
  import { type ListRequest, type ListResponse } from '../../../utils'
3
4
 
4
5
  // detail
5
6
 
6
- export type AdminPerson = Person
7
+ export type AdminPerson = Omit<Person, 'id'> & { id: string }
7
8
  export type AdminPersonQueryParams = Pick<AdminPerson, 'id'>
8
9
  export type AdminPersonResponse = AdminPerson
9
10
 
@@ -15,7 +16,7 @@ export type AdminPersonListResponse = ListResponse<AdminPerson>
15
16
  // create
16
17
 
17
18
  export type AdminPersonCreateInput = Pick<
18
- NewPerson,
19
+ PersonInitializer,
19
20
  'firstName' | 'lastName' | 'email' | 'phone' | 'linkedInUrl' | 'photoUrl'
20
21
  >
21
22
  export type AdminPersonCreateResponse = Pick<AdminPerson, 'id'>
@@ -23,7 +24,7 @@ export type AdminPersonCreateResponse = Pick<AdminPerson, 'id'>
23
24
  // update
24
25
 
25
26
  export type AdminPersonUpdateInput = Pick<
26
- PersonUpdate,
27
+ PersonMutator,
27
28
  'firstName' | 'lastName' | 'email' | 'phone' | 'linkedInUrl' | 'photoUrl'
28
29
  >
29
30
 
@@ -1,24 +1,30 @@
1
- import type {
2
- WebsiteStaticPage,
3
- WebsiteStaticPageUpdate
4
- } from '../../../_schema/WebsiteStaticPage'
1
+ import type WebsiteStaticPage from '../../../_schema/WebsiteStaticPage'
2
+ import type { WebsiteStaticPageMutator } from '../../../_schema/WebsiteStaticPage'
5
3
  import { type ListResponse } from '../../../utils'
6
4
 
7
5
  // detail
8
6
 
9
- export type AdminWebsiteStaticPage = WebsiteStaticPage
10
- export type AdminWebsiteStaticPageQueryParams = Pick<WebsiteStaticPage, 'slug'>
7
+ export type AdminWebsiteStaticPage = Omit<WebsiteStaticPage, 'id'> & {
8
+ id: string
9
+ }
10
+ export type AdminWebsiteStaticPageQueryParams = Pick<
11
+ AdminWebsiteStaticPage,
12
+ 'slug'
13
+ >
11
14
  export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
12
15
 
13
16
  // list
14
17
 
15
- export type AdminWebsiteStaticPageList = ListResponse<WebsiteStaticPage>
16
- export type AdminWebsiteStaticPageListInput = Pick<WebsiteStaticPage, 'slug'>
18
+ export type AdminWebsiteStaticPageList = ListResponse<AdminWebsiteStaticPage>
19
+ export type AdminWebsiteStaticPageListInput = Pick<
20
+ AdminWebsiteStaticPage,
21
+ 'slug'
22
+ >
17
23
  export type AdminWebsiteStaticPageListResponse = AdminWebsiteStaticPageList
18
24
 
19
25
  // update
20
26
 
21
27
  export type AdminWebsiteStaticPageUpdateInput = Pick<
22
- WebsiteStaticPageUpdate,
28
+ WebsiteStaticPageMutator,
23
29
  'content' | 'meta'
24
30
  >