@the-inkwell/shared 0.1.125 → 0.1.127

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/dist/src/types/_schema/CandidacyRatingReasons.js +4 -0
  2. package/dist/src/types/_schema/Clubs.js +4 -0
  3. package/dist/src/types/_schema/Enrichments.js +4 -0
  4. package/dist/src/types/_schema/JobFunctions.js +4 -0
  5. package/dist/src/types/_schema/Networks.js +4 -0
  6. package/dist/src/types/_schema/Partners.js +4 -0
  7. package/dist/src/types/_schema/PersonsToClubs.js +4 -0
  8. package/dist/src/types/_schema/PersonsToNetworks.js +4 -0
  9. package/dist/src/types/_schema/PersonsToSkills.js +4 -0
  10. package/dist/src/types/_schema/PositionsToSkills.js +4 -0
  11. package/dist/src/types/_schema/ReferralsToMessages.js +4 -0
  12. package/dist/src/types/_schema/Skills.js +4 -0
  13. package/dist/src/types/models/admin/index.js +1 -0
  14. package/dist/src/types/models/admin/partners/index.js +2 -0
  15. package/package.json +1 -1
  16. package/src/types/_schema/Candidacies.ts +13 -0
  17. package/src/types/_schema/CandidacyRatingReasons.ts +12 -0
  18. package/src/types/_schema/{PersonClubs.ts → Clubs.ts} +11 -11
  19. package/src/types/_schema/{PersonEnrichments.ts → Enrichments.ts} +11 -11
  20. package/src/types/_schema/JobFunctions.ts +19 -0
  21. package/src/types/_schema/{PersonNetworks.ts → Networks.ts} +17 -11
  22. package/src/types/_schema/Partners.ts +65 -0
  23. package/src/types/_schema/Persons.ts +7 -0
  24. package/src/types/_schema/PersonsToClubs.ts +33 -0
  25. package/src/types/_schema/PersonsToNetworks.ts +33 -0
  26. package/src/types/_schema/PersonsToSkills.ts +33 -0
  27. package/src/types/_schema/Positions.ts +7 -0
  28. package/src/types/_schema/PositionsToSkills.ts +33 -0
  29. package/src/types/_schema/Referrals.ts +6 -0
  30. package/src/types/_schema/{ReferralsToIntroMessages.ts → ReferralsToMessages.ts} +13 -6
  31. package/src/types/_schema/{PersonSkills.ts → Skills.ts} +11 -11
  32. package/src/types/models/admin/index.ts +1 -0
  33. package/src/types/models/admin/partners/index.ts +36 -0
  34. package/src/types/_schema/CandidacyRatingsToTags.ts +0 -40
  35. package/src/types/_schema/PersonsToPersonClubs.ts +0 -33
  36. package/src/types/_schema/PersonsToPersonNetworks.ts +0 -33
  37. package/src/types/_schema/PersonsToPersonSkills.ts +0 -33
  38. package/src/types/_schema/PositionsToPersonSkills.ts +0 -33
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @generated
3
+ // This file is automatically generated by Kanel. Do not modify manually.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,6 +18,7 @@ __exportStar(require("./campaigns"), exports);
18
18
  __exportStar(require("./candidacies"), exports);
19
19
  __exportStar(require("./clients"), exports);
20
20
  __exportStar(require("./messages"), exports);
21
+ __exportStar(require("./partners"), exports);
21
22
  __exportStar(require("./persons"), exports);
22
23
  __exportStar(require("./positions"), exports);
23
24
  __exportStar(require("./referrals"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.125",
3
+ "version": "0.1.127",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -5,6 +5,7 @@ import type { default as CandidacyStatuses } from './CandidacyStatuses';
5
5
  import type { default as CandidacySources } from './CandidacySources';
6
6
  import type { PersonsId } from './Persons';
7
7
  import type { PositionsId } from './Positions';
8
+ import type { default as CandidacyRatingReasons } from './CandidacyRatingReasons';
8
9
 
9
10
  /** Identifier type for public.candidacies */
10
11
  export type CandidaciesId = string;
@@ -30,6 +31,10 @@ export default interface Candidacies {
30
31
  createdAt: Date;
31
32
 
32
33
  updatedAt: Date;
34
+
35
+ ratingReasons: CandidacyRatingReasons[] | null;
36
+
37
+ networkId: string | null;
33
38
  }
34
39
 
35
40
  /** Represents the initializer for the table public.candidacies */
@@ -58,6 +63,10 @@ export interface CandidaciesInitializer {
58
63
 
59
64
  /** Default value: CURRENT_TIMESTAMP */
60
65
  updatedAt?: Date;
66
+
67
+ ratingReasons?: CandidacyRatingReasons[] | null;
68
+
69
+ networkId?: string | null;
61
70
  }
62
71
 
63
72
  /** Represents the mutator for the table public.candidacies */
@@ -81,4 +90,8 @@ export interface CandidaciesMutator {
81
90
  createdAt?: Date;
82
91
 
83
92
  updatedAt?: Date;
93
+
94
+ ratingReasons?: CandidacyRatingReasons[] | null;
95
+
96
+ networkId?: string | null;
84
97
  }
@@ -0,0 +1,12 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Represents the enum public.CandidacyRatingReasons */
5
+ type CandidacyRatingReasons =
6
+ | 'INDUSTRY'
7
+ | 'EXPERIENCE'
8
+ | 'SKILL'
9
+ | 'CULTURE'
10
+ | 'COMPENSATION';
11
+
12
+ export default CandidacyRatingReasons;
@@ -1,12 +1,12 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- /** Identifier type for public.person_clubs */
5
- export type PersonClubsId = string;
4
+ /** Identifier type for public.clubs */
5
+ export type ClubsId = string;
6
6
 
7
- /** Represents the table public.person_clubs */
8
- export default interface PersonClubs {
9
- id: PersonClubsId;
7
+ /** Represents the table public.clubs */
8
+ export default interface Clubs {
9
+ id: ClubsId;
10
10
 
11
11
  slug: string;
12
12
 
@@ -19,10 +19,10 @@ export default interface PersonClubs {
19
19
  updatedAt: Date;
20
20
  }
21
21
 
22
- /** Represents the initializer for the table public.person_clubs */
23
- export interface PersonClubsInitializer {
22
+ /** Represents the initializer for the table public.clubs */
23
+ export interface ClubsInitializer {
24
24
  /** Default value: gen_random_uuid() */
25
- id?: PersonClubsId;
25
+ id?: ClubsId;
26
26
 
27
27
  slug: string;
28
28
 
@@ -37,9 +37,9 @@ export interface PersonClubsInitializer {
37
37
  updatedAt?: Date;
38
38
  }
39
39
 
40
- /** Represents the mutator for the table public.person_clubs */
41
- export interface PersonClubsMutator {
42
- id?: PersonClubsId;
40
+ /** Represents the mutator for the table public.clubs */
41
+ export interface ClubsMutator {
42
+ id?: ClubsId;
43
43
 
44
44
  slug?: string;
45
45
 
@@ -4,12 +4,12 @@
4
4
  import type { default as EnrichmentSources } from './EnrichmentSources';
5
5
  import type { PersonsId } from './Persons';
6
6
 
7
- /** Identifier type for public.person_enrichments */
8
- export type PersonEnrichmentsId = string;
7
+ /** Identifier type for public.enrichments */
8
+ export type EnrichmentsId = string;
9
9
 
10
- /** Represents the table public.person_enrichments */
11
- export default interface PersonEnrichments {
12
- id: PersonEnrichmentsId;
10
+ /** Represents the table public.enrichments */
11
+ export default interface Enrichments {
12
+ id: EnrichmentsId;
13
13
 
14
14
  data: unknown | null;
15
15
 
@@ -24,10 +24,10 @@ export default interface PersonEnrichments {
24
24
  updatedAt: Date;
25
25
  }
26
26
 
27
- /** Represents the initializer for the table public.person_enrichments */
28
- export interface PersonEnrichmentsInitializer {
27
+ /** Represents the initializer for the table public.enrichments */
28
+ export interface EnrichmentsInitializer {
29
29
  /** Default value: gen_random_uuid() */
30
- id?: PersonEnrichmentsId;
30
+ id?: EnrichmentsId;
31
31
 
32
32
  data?: unknown | null;
33
33
 
@@ -44,9 +44,9 @@ export interface PersonEnrichmentsInitializer {
44
44
  updatedAt?: Date;
45
45
  }
46
46
 
47
- /** Represents the mutator for the table public.person_enrichments */
48
- export interface PersonEnrichmentsMutator {
49
- id?: PersonEnrichmentsId;
47
+ /** Represents the mutator for the table public.enrichments */
48
+ export interface EnrichmentsMutator {
49
+ id?: EnrichmentsId;
50
50
 
51
51
  data?: unknown | null;
52
52
 
@@ -0,0 +1,19 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Represents the enum public.JobFunctions */
5
+ type JobFunctions =
6
+ | 'ACCOUNTING'
7
+ | 'ADMINISTRATION'
8
+ | 'ENGINEERING'
9
+ | 'DATA_ANALYSIS'
10
+ | 'DESIGN'
11
+ | 'PRODUCT'
12
+ | 'MARKETING'
13
+ | 'SALES'
14
+ | 'CUSTOMER_SUPPORT'
15
+ | 'FINANCE'
16
+ | 'OPERATIONS'
17
+ | 'OTHER';
18
+
19
+ export default JobFunctions;
@@ -1,12 +1,12 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- /** Identifier type for public.person_networks */
5
- export type PersonNetworksId = string;
4
+ /** Identifier type for public.networks */
5
+ export type NetworksId = string;
6
6
 
7
- /** Represents the table public.person_networks */
8
- export default interface PersonNetworks {
9
- id: PersonNetworksId;
7
+ /** Represents the table public.networks */
8
+ export default interface Networks {
9
+ id: NetworksId;
10
10
 
11
11
  slug: string;
12
12
 
@@ -17,12 +17,14 @@ export default interface PersonNetworks {
17
17
  createdAt: Date;
18
18
 
19
19
  updatedAt: Date;
20
+
21
+ partnerId: string | null;
20
22
  }
21
23
 
22
- /** Represents the initializer for the table public.person_networks */
23
- export interface PersonNetworksInitializer {
24
+ /** Represents the initializer for the table public.networks */
25
+ export interface NetworksInitializer {
24
26
  /** Default value: gen_random_uuid() */
25
- id?: PersonNetworksId;
27
+ id?: NetworksId;
26
28
 
27
29
  slug: string;
28
30
 
@@ -35,11 +37,13 @@ export interface PersonNetworksInitializer {
35
37
 
36
38
  /** Default value: CURRENT_TIMESTAMP */
37
39
  updatedAt?: Date;
40
+
41
+ partnerId?: string | null;
38
42
  }
39
43
 
40
- /** Represents the mutator for the table public.person_networks */
41
- export interface PersonNetworksMutator {
42
- id?: PersonNetworksId;
44
+ /** Represents the mutator for the table public.networks */
45
+ export interface NetworksMutator {
46
+ id?: NetworksId;
43
47
 
44
48
  slug?: string;
45
49
 
@@ -50,4 +54,6 @@ export interface PersonNetworksMutator {
50
54
  createdAt?: Date;
51
55
 
52
56
  updatedAt?: Date;
57
+
58
+ partnerId?: string | null;
53
59
  }
@@ -0,0 +1,65 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ /** Identifier type for public.partners */
5
+ export type PartnersId = string;
6
+
7
+ /** Represents the table public.partners */
8
+ export default interface Partners {
9
+ id: PartnersId;
10
+
11
+ name: string;
12
+
13
+ website: string | null;
14
+
15
+ logoUrl: string | null;
16
+
17
+ description: string | null;
18
+
19
+ deletedAt: Date | null;
20
+
21
+ createdAt: Date;
22
+
23
+ updatedAt: Date;
24
+ }
25
+
26
+ /** Represents the initializer for the table public.partners */
27
+ export interface PartnersInitializer {
28
+ /** Default value: gen_random_uuid() */
29
+ id?: PartnersId;
30
+
31
+ name: string;
32
+
33
+ website?: string | null;
34
+
35
+ logoUrl?: string | null;
36
+
37
+ description?: string | null;
38
+
39
+ deletedAt?: Date | null;
40
+
41
+ /** Default value: CURRENT_TIMESTAMP */
42
+ createdAt?: Date;
43
+
44
+ /** Default value: CURRENT_TIMESTAMP */
45
+ updatedAt?: Date;
46
+ }
47
+
48
+ /** Represents the mutator for the table public.partners */
49
+ export interface PartnersMutator {
50
+ id?: PartnersId;
51
+
52
+ name?: string;
53
+
54
+ website?: string | null;
55
+
56
+ logoUrl?: string | null;
57
+
58
+ description?: string | null;
59
+
60
+ deletedAt?: Date | null;
61
+
62
+ createdAt?: Date;
63
+
64
+ updatedAt?: Date;
65
+ }
@@ -6,6 +6,7 @@ import type { default as PersonCareerLevels } from './PersonCareerLevels';
6
6
  import type { default as PersonDegrees } from './PersonDegrees';
7
7
  import type { default as PersonGenders } from './PersonGenders';
8
8
  import type { ClientsId } from './Clients';
9
+ import type { default as JobFunctions } from './JobFunctions';
9
10
 
10
11
  /** Identifier type for public.persons */
11
12
  export type PersonsId = string;
@@ -99,6 +100,8 @@ export default interface Persons {
99
100
  createdAt: Date;
100
101
 
101
102
  updatedAt: Date;
103
+
104
+ jobFunctions: JobFunctions[] | null;
102
105
  }
103
106
 
104
107
  /** Represents the initializer for the table public.persons */
@@ -199,6 +202,8 @@ export interface PersonsInitializer {
199
202
 
200
203
  /** Default value: CURRENT_TIMESTAMP */
201
204
  updatedAt?: Date;
205
+
206
+ jobFunctions?: JobFunctions[] | null;
202
207
  }
203
208
 
204
209
  /** Represents the mutator for the table public.persons */
@@ -290,4 +295,6 @@ export interface PersonsMutator {
290
295
  createdAt?: Date;
291
296
 
292
297
  updatedAt?: Date;
298
+
299
+ jobFunctions?: JobFunctions[] | null;
293
300
  }
@@ -0,0 +1,33 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PersonsId } from './Persons';
5
+ import type { ClubsId } from './Clubs';
6
+
7
+ /** Represents the table public.persons_to_clubs */
8
+ export default interface PersonsToClubs {
9
+ personId: PersonsId;
10
+
11
+ clubId: ClubsId;
12
+
13
+ createdAt: Date;
14
+ }
15
+
16
+ /** Represents the initializer for the table public.persons_to_clubs */
17
+ export interface PersonsToClubsInitializer {
18
+ personId: PersonsId;
19
+
20
+ clubId: ClubsId;
21
+
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.persons_to_clubs */
27
+ export interface PersonsToClubsMutator {
28
+ personId?: PersonsId;
29
+
30
+ clubId?: ClubsId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -0,0 +1,33 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PersonsId } from './Persons';
5
+ import type { NetworksId } from './Networks';
6
+
7
+ /** Represents the table public.persons_to_networks */
8
+ export default interface PersonsToNetworks {
9
+ personId: PersonsId;
10
+
11
+ networkId: NetworksId;
12
+
13
+ createdAt: Date;
14
+ }
15
+
16
+ /** Represents the initializer for the table public.persons_to_networks */
17
+ export interface PersonsToNetworksInitializer {
18
+ personId: PersonsId;
19
+
20
+ networkId: NetworksId;
21
+
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.persons_to_networks */
27
+ export interface PersonsToNetworksMutator {
28
+ personId?: PersonsId;
29
+
30
+ networkId?: NetworksId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -0,0 +1,33 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PersonsId } from './Persons';
5
+ import type { SkillsId } from './Skills';
6
+
7
+ /** Represents the table public.persons_to_skills */
8
+ export default interface PersonsToSkills {
9
+ personId: PersonsId;
10
+
11
+ skillId: SkillsId;
12
+
13
+ createdAt: Date;
14
+ }
15
+
16
+ /** Represents the initializer for the table public.persons_to_skills */
17
+ export interface PersonsToSkillsInitializer {
18
+ personId: PersonsId;
19
+
20
+ skillId: SkillsId;
21
+
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.persons_to_skills */
27
+ export interface PersonsToSkillsMutator {
28
+ personId?: PersonsId;
29
+
30
+ skillId?: SkillsId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -3,6 +3,7 @@
3
3
 
4
4
  import type { default as PositionStatuses } from './PositionStatuses';
5
5
  import type { ClientsId } from './Clients';
6
+ import type { default as JobFunctions } from './JobFunctions';
6
7
 
7
8
  /** Identifier type for public.positions */
8
9
  export type PositionsId = string;
@@ -34,6 +35,8 @@ export default interface Positions {
34
35
  description: string | null;
35
36
 
36
37
  location: string | null;
38
+
39
+ jobFunctions: JobFunctions[] | null;
37
40
  }
38
41
 
39
42
  /** Represents the initializer for the table public.positions */
@@ -69,6 +72,8 @@ export interface PositionsInitializer {
69
72
  description?: string | null;
70
73
 
71
74
  location?: string | null;
75
+
76
+ jobFunctions?: JobFunctions[] | null;
72
77
  }
73
78
 
74
79
  /** Represents the mutator for the table public.positions */
@@ -98,4 +103,6 @@ export interface PositionsMutator {
98
103
  description?: string | null;
99
104
 
100
105
  location?: string | null;
106
+
107
+ jobFunctions?: JobFunctions[] | null;
101
108
  }
@@ -0,0 +1,33 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { PositionsId } from './Positions';
5
+ import type { SkillsId } from './Skills';
6
+
7
+ /** Represents the table public.positions_to_skills */
8
+ export default interface PositionsToSkills {
9
+ positionId: PositionsId;
10
+
11
+ skillId: SkillsId;
12
+
13
+ createdAt: Date;
14
+ }
15
+
16
+ /** Represents the initializer for the table public.positions_to_skills */
17
+ export interface PositionsToSkillsInitializer {
18
+ positionId: PositionsId;
19
+
20
+ skillId: SkillsId;
21
+
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.positions_to_skills */
27
+ export interface PositionsToSkillsMutator {
28
+ positionId?: PositionsId;
29
+
30
+ skillId?: SkillsId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -31,6 +31,8 @@ export default interface Referrals {
31
31
  messageId: string | null;
32
32
 
33
33
  deletedAt: Date | null;
34
+
35
+ networkId: string | null;
34
36
  }
35
37
 
36
38
  /** Represents the initializer for the table public.referrals */
@@ -58,6 +60,8 @@ export interface ReferralsInitializer {
58
60
  messageId?: string | null;
59
61
 
60
62
  deletedAt?: Date | null;
63
+
64
+ networkId?: string | null;
61
65
  }
62
66
 
63
67
  /** Represents the mutator for the table public.referrals */
@@ -81,4 +85,6 @@ export interface ReferralsMutator {
81
85
  messageId?: string | null;
82
86
 
83
87
  deletedAt?: Date | null;
88
+
89
+ networkId?: string | null;
84
90
  }
@@ -4,8 +4,8 @@
4
4
  import type { MessagesId } from './Messages';
5
5
  import type { ReferralsId } from './Referrals';
6
6
 
7
- /** Represents the table public.referrals_to_intro_messages */
8
- export default interface ReferralsToIntroMessages {
7
+ /** Represents the table public.referrals_to_messages */
8
+ export default interface ReferralsToMessages {
9
9
  messageId: MessagesId;
10
10
 
11
11
  referralId: ReferralsId;
@@ -13,10 +13,12 @@ export default interface ReferralsToIntroMessages {
13
13
  createdAt: Date;
14
14
 
15
15
  updatedAt: Date;
16
+
17
+ isIntro: boolean;
16
18
  }
17
19
 
18
- /** Represents the initializer for the table public.referrals_to_intro_messages */
19
- export interface ReferralsToIntroMessagesInitializer {
20
+ /** Represents the initializer for the table public.referrals_to_messages */
21
+ export interface ReferralsToMessagesInitializer {
20
22
  messageId: MessagesId;
21
23
 
22
24
  referralId: ReferralsId;
@@ -26,10 +28,13 @@ export interface ReferralsToIntroMessagesInitializer {
26
28
 
27
29
  /** Default value: CURRENT_TIMESTAMP */
28
30
  updatedAt?: Date;
31
+
32
+ /** Default value: false */
33
+ isIntro?: boolean;
29
34
  }
30
35
 
31
- /** Represents the mutator for the table public.referrals_to_intro_messages */
32
- export interface ReferralsToIntroMessagesMutator {
36
+ /** Represents the mutator for the table public.referrals_to_messages */
37
+ export interface ReferralsToMessagesMutator {
33
38
  messageId?: MessagesId;
34
39
 
35
40
  referralId?: ReferralsId;
@@ -37,4 +42,6 @@ export interface ReferralsToIntroMessagesMutator {
37
42
  createdAt?: Date;
38
43
 
39
44
  updatedAt?: Date;
45
+
46
+ isIntro?: boolean;
40
47
  }
@@ -1,12 +1,12 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- /** Identifier type for public.person_skills */
5
- export type PersonSkillsId = string;
4
+ /** Identifier type for public.skills */
5
+ export type SkillsId = string;
6
6
 
7
- /** Represents the table public.person_skills */
8
- export default interface PersonSkills {
9
- id: PersonSkillsId;
7
+ /** Represents the table public.skills */
8
+ export default interface Skills {
9
+ id: SkillsId;
10
10
 
11
11
  slug: string;
12
12
 
@@ -19,10 +19,10 @@ export default interface PersonSkills {
19
19
  updatedAt: Date;
20
20
  }
21
21
 
22
- /** Represents the initializer for the table public.person_skills */
23
- export interface PersonSkillsInitializer {
22
+ /** Represents the initializer for the table public.skills */
23
+ export interface SkillsInitializer {
24
24
  /** Default value: gen_random_uuid() */
25
- id?: PersonSkillsId;
25
+ id?: SkillsId;
26
26
 
27
27
  slug: string;
28
28
 
@@ -37,9 +37,9 @@ export interface PersonSkillsInitializer {
37
37
  updatedAt?: Date;
38
38
  }
39
39
 
40
- /** Represents the mutator for the table public.person_skills */
41
- export interface PersonSkillsMutator {
42
- id?: PersonSkillsId;
40
+ /** Represents the mutator for the table public.skills */
41
+ export interface SkillsMutator {
42
+ id?: SkillsId;
43
43
 
44
44
  slug?: string;
45
45
 
@@ -2,6 +2,7 @@ export * from './campaigns'
2
2
  export * from './candidacies'
3
3
  export * from './clients'
4
4
  export * from './messages'
5
+ export * from './partners'
5
6
  export * from './persons'
6
7
  export * from './positions'
7
8
  export * from './referrals'
@@ -0,0 +1,36 @@
1
+ import { ListRequest, ListResponse } from '../../../utils'
2
+ import Partners, {
3
+ PartnersInitializer,
4
+ PartnersMutator
5
+ } from '../../../_schema/Partners'
6
+
7
+ export type AdminPartner = Partners
8
+ type AdminPartnerInitializer = PartnersInitializer
9
+ type AdminPartnerMutator = PartnersMutator
10
+
11
+ // detail
12
+
13
+ export type AdminPartnerParams = Pick<AdminPartner, 'id'>
14
+ export type AdminPartnerResponse = AdminPartner
15
+
16
+ // list
17
+
18
+ export type AdminPartnerListInput = ListRequest
19
+ export type AdminPartnerListResponse = ListResponse<
20
+ AdminPartner & {
21
+ _networksCount: number
22
+ }
23
+ >
24
+
25
+ // create
26
+
27
+ export type AdminPartnerCreateInput = Pick<AdminPartnerInitializer, 'name'>
28
+ export type AdminPartnerCreateResponse = Pick<AdminPartner, 'id'>
29
+
30
+ // update
31
+
32
+ export type AdminPartnerUpdateInput = Pick<AdminPartnerMutator, 'name'>
33
+
34
+ // delete
35
+
36
+ export type AdminPartnerDeleteParams = Pick<AdminPartner, 'id'>
@@ -1,40 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- import type { TagsId } from './Tags';
5
- import type { CandidaciesId } from './Candidacies';
6
-
7
- /** Represents the table public.candidacy_ratings_to_tags */
8
- export default interface CandidacyRatingsToTags {
9
- tagId: TagsId;
10
-
11
- candidacyId: CandidaciesId;
12
-
13
- createdAt: Date;
14
-
15
- updatedAt: Date;
16
- }
17
-
18
- /** Represents the initializer for the table public.candidacy_ratings_to_tags */
19
- export interface CandidacyRatingsToTagsInitializer {
20
- tagId: TagsId;
21
-
22
- candidacyId: CandidaciesId;
23
-
24
- /** Default value: CURRENT_TIMESTAMP */
25
- createdAt?: Date;
26
-
27
- /** Default value: CURRENT_TIMESTAMP */
28
- updatedAt?: Date;
29
- }
30
-
31
- /** Represents the mutator for the table public.candidacy_ratings_to_tags */
32
- export interface CandidacyRatingsToTagsMutator {
33
- tagId?: TagsId;
34
-
35
- candidacyId?: CandidaciesId;
36
-
37
- createdAt?: Date;
38
-
39
- updatedAt?: Date;
40
- }
@@ -1,33 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- import type { PersonsId } from './Persons';
5
- import type { PersonClubsId } from './PersonClubs';
6
-
7
- /** Represents the table public.persons_to_person_clubs */
8
- export default interface PersonsToPersonClubs {
9
- personId: PersonsId;
10
-
11
- clubId: PersonClubsId;
12
-
13
- createdAt: Date;
14
- }
15
-
16
- /** Represents the initializer for the table public.persons_to_person_clubs */
17
- export interface PersonsToPersonClubsInitializer {
18
- personId: PersonsId;
19
-
20
- clubId: PersonClubsId;
21
-
22
- /** Default value: CURRENT_TIMESTAMP */
23
- createdAt?: Date;
24
- }
25
-
26
- /** Represents the mutator for the table public.persons_to_person_clubs */
27
- export interface PersonsToPersonClubsMutator {
28
- personId?: PersonsId;
29
-
30
- clubId?: PersonClubsId;
31
-
32
- createdAt?: Date;
33
- }
@@ -1,33 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- import type { PersonsId } from './Persons';
5
- import type { PersonNetworksId } from './PersonNetworks';
6
-
7
- /** Represents the table public.persons_to_person_networks */
8
- export default interface PersonsToPersonNetworks {
9
- personId: PersonsId;
10
-
11
- networkId: PersonNetworksId;
12
-
13
- createdAt: Date;
14
- }
15
-
16
- /** Represents the initializer for the table public.persons_to_person_networks */
17
- export interface PersonsToPersonNetworksInitializer {
18
- personId: PersonsId;
19
-
20
- networkId: PersonNetworksId;
21
-
22
- /** Default value: CURRENT_TIMESTAMP */
23
- createdAt?: Date;
24
- }
25
-
26
- /** Represents the mutator for the table public.persons_to_person_networks */
27
- export interface PersonsToPersonNetworksMutator {
28
- personId?: PersonsId;
29
-
30
- networkId?: PersonNetworksId;
31
-
32
- createdAt?: Date;
33
- }
@@ -1,33 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- import type { PersonsId } from './Persons';
5
- import type { PersonSkillsId } from './PersonSkills';
6
-
7
- /** Represents the table public.persons_to_person_skills */
8
- export default interface PersonsToPersonSkills {
9
- personId: PersonsId;
10
-
11
- skillId: PersonSkillsId;
12
-
13
- createdAt: Date;
14
- }
15
-
16
- /** Represents the initializer for the table public.persons_to_person_skills */
17
- export interface PersonsToPersonSkillsInitializer {
18
- personId: PersonsId;
19
-
20
- skillId: PersonSkillsId;
21
-
22
- /** Default value: CURRENT_TIMESTAMP */
23
- createdAt?: Date;
24
- }
25
-
26
- /** Represents the mutator for the table public.persons_to_person_skills */
27
- export interface PersonsToPersonSkillsMutator {
28
- personId?: PersonsId;
29
-
30
- skillId?: PersonSkillsId;
31
-
32
- createdAt?: Date;
33
- }
@@ -1,33 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- import type { PositionsId } from './Positions';
5
- import type { PersonSkillsId } from './PersonSkills';
6
-
7
- /** Represents the table public.positions_to_person_skills */
8
- export default interface PositionsToPersonSkills {
9
- positionId: PositionsId;
10
-
11
- skillId: PersonSkillsId;
12
-
13
- createdAt: Date;
14
- }
15
-
16
- /** Represents the initializer for the table public.positions_to_person_skills */
17
- export interface PositionsToPersonSkillsInitializer {
18
- positionId: PositionsId;
19
-
20
- skillId: PersonSkillsId;
21
-
22
- /** Default value: CURRENT_TIMESTAMP */
23
- createdAt?: Date;
24
- }
25
-
26
- /** Represents the mutator for the table public.positions_to_person_skills */
27
- export interface PositionsToPersonSkillsMutator {
28
- positionId?: PositionsId;
29
-
30
- skillId?: PersonSkillsId;
31
-
32
- createdAt?: Date;
33
- }