@the-inkwell/shared 0.1.160 → 0.1.162
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 -1
- package/src/types/_schema/Campaigns.ts +0 -7
- package/src/types/_schema/Certifications.ts +6 -0
- package/src/types/_schema/Experiences.ts +7 -7
- package/src/types/_schema/JobFunctions.ts +20 -0
- package/src/types/_schema/ListViews.ts +7 -7
- package/src/types/_schema/Messages.ts +36 -10
- package/src/types/_schema/Positions.ts +3 -3
- package/src/types/_schema/Tags.ts +6 -0
package/package.json
CHANGED
|
@@ -12,8 +12,6 @@ export type CampaignsId = string;
|
|
|
12
12
|
export default interface Campaigns {
|
|
13
13
|
id: CampaignsId;
|
|
14
14
|
|
|
15
|
-
urlId: number;
|
|
16
|
-
|
|
17
15
|
name: string;
|
|
18
16
|
|
|
19
17
|
status: CampaignStatuses;
|
|
@@ -36,9 +34,6 @@ export interface CampaignsInitializer {
|
|
|
36
34
|
/** Default value: gen_random_uuid() */
|
|
37
35
|
id?: CampaignsId;
|
|
38
36
|
|
|
39
|
-
/** Default value: nextval('"campaigns_urlId_seq"'::regclass) */
|
|
40
|
-
urlId?: number;
|
|
41
|
-
|
|
42
37
|
name: string;
|
|
43
38
|
|
|
44
39
|
/** Default value: 'DRAFT'::"CampaignStatuses" */
|
|
@@ -63,8 +58,6 @@ export interface CampaignsInitializer {
|
|
|
63
58
|
export interface CampaignsMutator {
|
|
64
59
|
id?: CampaignsId;
|
|
65
60
|
|
|
66
|
-
urlId?: number;
|
|
67
|
-
|
|
68
61
|
name?: string;
|
|
69
62
|
|
|
70
63
|
status?: CampaignStatuses;
|
|
@@ -17,6 +17,8 @@ export default interface Certifications {
|
|
|
17
17
|
createdAt: Date;
|
|
18
18
|
|
|
19
19
|
updatedAt: Date;
|
|
20
|
+
|
|
21
|
+
deletedAt: Date | null;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
/** Represents the initializer for the table public.certifications */
|
|
@@ -35,6 +37,8 @@ export interface CertificationsInitializer {
|
|
|
35
37
|
|
|
36
38
|
/** Default value: CURRENT_TIMESTAMP */
|
|
37
39
|
updatedAt?: Date;
|
|
40
|
+
|
|
41
|
+
deletedAt?: Date | null;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
/** Represents the mutator for the table public.certifications */
|
|
@@ -50,4 +54,6 @@ export interface CertificationsMutator {
|
|
|
50
54
|
createdAt?: Date;
|
|
51
55
|
|
|
52
56
|
updatedAt?: Date;
|
|
57
|
+
|
|
58
|
+
deletedAt?: Date | null;
|
|
53
59
|
}
|
|
@@ -27,11 +27,11 @@ export default interface Experiences {
|
|
|
27
27
|
|
|
28
28
|
salary: number | null;
|
|
29
29
|
|
|
30
|
+
isCurrent: boolean;
|
|
31
|
+
|
|
30
32
|
startDate: Date;
|
|
31
33
|
|
|
32
34
|
endDate: Date | null;
|
|
33
|
-
|
|
34
|
-
isCurrent: boolean;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/** Represents the initializer for the table public.experiences */
|
|
@@ -53,12 +53,12 @@ export interface ExperiencesInitializer {
|
|
|
53
53
|
|
|
54
54
|
salary?: number | null;
|
|
55
55
|
|
|
56
|
+
/** Default value: false */
|
|
57
|
+
isCurrent?: boolean;
|
|
58
|
+
|
|
56
59
|
startDate: Date;
|
|
57
60
|
|
|
58
61
|
endDate?: Date | null;
|
|
59
|
-
|
|
60
|
-
/** Default value: false */
|
|
61
|
-
isCurrent?: boolean;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/** Represents the mutator for the table public.experiences */
|
|
@@ -79,9 +79,9 @@ export interface ExperiencesMutator {
|
|
|
79
79
|
|
|
80
80
|
salary?: number | null;
|
|
81
81
|
|
|
82
|
+
isCurrent?: boolean;
|
|
83
|
+
|
|
82
84
|
startDate?: Date;
|
|
83
85
|
|
|
84
86
|
endDate?: Date | null;
|
|
85
|
-
|
|
86
|
-
isCurrent?: boolean;
|
|
87
87
|
}
|
|
@@ -11,6 +11,12 @@ export default interface JobFunctions {
|
|
|
11
11
|
slug: string;
|
|
12
12
|
|
|
13
13
|
name: string;
|
|
14
|
+
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
|
|
19
|
+
deletedAt: Date | null;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
/** Represents the initializer for the table public.job_functions */
|
|
@@ -21,6 +27,14 @@ export interface JobFunctionsInitializer {
|
|
|
21
27
|
slug: string;
|
|
22
28
|
|
|
23
29
|
name: string;
|
|
30
|
+
|
|
31
|
+
/** Default value: CURRENT_TIMESTAMP */
|
|
32
|
+
createdAt?: Date;
|
|
33
|
+
|
|
34
|
+
/** Default value: CURRENT_TIMESTAMP */
|
|
35
|
+
updatedAt?: Date;
|
|
36
|
+
|
|
37
|
+
deletedAt?: Date | null;
|
|
24
38
|
}
|
|
25
39
|
|
|
26
40
|
/** Represents the mutator for the table public.job_functions */
|
|
@@ -30,4 +44,10 @@ export interface JobFunctionsMutator {
|
|
|
30
44
|
slug?: string;
|
|
31
45
|
|
|
32
46
|
name?: string;
|
|
47
|
+
|
|
48
|
+
createdAt?: Date;
|
|
49
|
+
|
|
50
|
+
updatedAt?: Date;
|
|
51
|
+
|
|
52
|
+
deletedAt?: Date | null;
|
|
33
53
|
}
|
|
@@ -16,6 +16,8 @@ export default interface ListViews {
|
|
|
16
16
|
|
|
17
17
|
query: unknown;
|
|
18
18
|
|
|
19
|
+
isGeneric: boolean | null;
|
|
20
|
+
|
|
19
21
|
archivedAt: Date | null;
|
|
20
22
|
|
|
21
23
|
deletedAt: Date | null;
|
|
@@ -23,8 +25,6 @@ export default interface ListViews {
|
|
|
23
25
|
createdAt: Date;
|
|
24
26
|
|
|
25
27
|
updatedAt: Date;
|
|
26
|
-
|
|
27
|
-
isGeneric: boolean | null;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/** Represents the initializer for the table public.list_views */
|
|
@@ -38,6 +38,9 @@ export interface ListViewsInitializer {
|
|
|
38
38
|
|
|
39
39
|
query: unknown;
|
|
40
40
|
|
|
41
|
+
/** Default value: false */
|
|
42
|
+
isGeneric?: boolean | null;
|
|
43
|
+
|
|
41
44
|
archivedAt?: Date | null;
|
|
42
45
|
|
|
43
46
|
deletedAt?: Date | null;
|
|
@@ -47,9 +50,6 @@ export interface ListViewsInitializer {
|
|
|
47
50
|
|
|
48
51
|
/** Default value: CURRENT_TIMESTAMP */
|
|
49
52
|
updatedAt?: Date;
|
|
50
|
-
|
|
51
|
-
/** Default value: false */
|
|
52
|
-
isGeneric?: boolean | null;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/** Represents the mutator for the table public.list_views */
|
|
@@ -62,6 +62,8 @@ export interface ListViewsMutator {
|
|
|
62
62
|
|
|
63
63
|
query?: unknown;
|
|
64
64
|
|
|
65
|
+
isGeneric?: boolean | null;
|
|
66
|
+
|
|
65
67
|
archivedAt?: Date | null;
|
|
66
68
|
|
|
67
69
|
deletedAt?: Date | null;
|
|
@@ -69,6 +71,4 @@ export interface ListViewsMutator {
|
|
|
69
71
|
createdAt?: Date;
|
|
70
72
|
|
|
71
73
|
updatedAt?: Date;
|
|
72
|
-
|
|
73
|
-
isGeneric?: boolean | null;
|
|
74
74
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import type { SendersId } from './Senders';
|
|
5
5
|
import type { PersonsId } from './Persons';
|
|
6
6
|
import type { CampaignsId } from './Campaigns';
|
|
7
|
+
import type { default as MessageChannels } from './MessageChannels';
|
|
7
8
|
|
|
8
9
|
/** Identifier type for public.messages */
|
|
9
10
|
export type MessagesId = string;
|
|
@@ -12,11 +13,9 @@ export type MessagesId = string;
|
|
|
12
13
|
export default interface Messages {
|
|
13
14
|
id: MessagesId;
|
|
14
15
|
|
|
15
|
-
urlId: number;
|
|
16
|
-
|
|
17
16
|
data: unknown;
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
isReviewed: boolean;
|
|
20
19
|
|
|
21
20
|
adminSenderId: SendersId | null;
|
|
22
21
|
|
|
@@ -27,6 +26,16 @@ export default interface Messages {
|
|
|
27
26
|
createdAt: Date;
|
|
28
27
|
|
|
29
28
|
updatedAt: Date;
|
|
29
|
+
|
|
30
|
+
channel: MessageChannels;
|
|
31
|
+
|
|
32
|
+
from: string;
|
|
33
|
+
|
|
34
|
+
to: string;
|
|
35
|
+
|
|
36
|
+
isOpened: boolean;
|
|
37
|
+
|
|
38
|
+
isLinkClicked: boolean;
|
|
30
39
|
}
|
|
31
40
|
|
|
32
41
|
/** Represents the initializer for the table public.messages */
|
|
@@ -34,13 +43,10 @@ export interface MessagesInitializer {
|
|
|
34
43
|
/** Default value: gen_random_uuid() */
|
|
35
44
|
id?: MessagesId;
|
|
36
45
|
|
|
37
|
-
/** Default value: nextval('"messages_urlId_seq"'::regclass) */
|
|
38
|
-
urlId?: number;
|
|
39
|
-
|
|
40
46
|
data: unknown;
|
|
41
47
|
|
|
42
48
|
/** Default value: true */
|
|
43
|
-
|
|
49
|
+
isReviewed?: boolean;
|
|
44
50
|
|
|
45
51
|
adminSenderId?: SendersId | null;
|
|
46
52
|
|
|
@@ -53,17 +59,27 @@ export interface MessagesInitializer {
|
|
|
53
59
|
|
|
54
60
|
/** Default value: CURRENT_TIMESTAMP */
|
|
55
61
|
updatedAt?: Date;
|
|
62
|
+
|
|
63
|
+
channel: MessageChannels;
|
|
64
|
+
|
|
65
|
+
from: string;
|
|
66
|
+
|
|
67
|
+
to: string;
|
|
68
|
+
|
|
69
|
+
/** Default value: false */
|
|
70
|
+
isOpened?: boolean;
|
|
71
|
+
|
|
72
|
+
/** Default value: false */
|
|
73
|
+
isLinkClicked?: boolean;
|
|
56
74
|
}
|
|
57
75
|
|
|
58
76
|
/** Represents the mutator for the table public.messages */
|
|
59
77
|
export interface MessagesMutator {
|
|
60
78
|
id?: MessagesId;
|
|
61
79
|
|
|
62
|
-
urlId?: number;
|
|
63
|
-
|
|
64
80
|
data?: unknown;
|
|
65
81
|
|
|
66
|
-
|
|
82
|
+
isReviewed?: boolean;
|
|
67
83
|
|
|
68
84
|
adminSenderId?: SendersId | null;
|
|
69
85
|
|
|
@@ -74,4 +90,14 @@ export interface MessagesMutator {
|
|
|
74
90
|
createdAt?: Date;
|
|
75
91
|
|
|
76
92
|
updatedAt?: Date;
|
|
93
|
+
|
|
94
|
+
channel?: MessageChannels;
|
|
95
|
+
|
|
96
|
+
from?: string;
|
|
97
|
+
|
|
98
|
+
to?: string;
|
|
99
|
+
|
|
100
|
+
isOpened?: boolean;
|
|
101
|
+
|
|
102
|
+
isLinkClicked?: boolean;
|
|
77
103
|
}
|
|
@@ -11,7 +11,7 @@ export type PositionsId = string;
|
|
|
11
11
|
export default interface Positions {
|
|
12
12
|
id: PositionsId;
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
slug: number;
|
|
15
15
|
|
|
16
16
|
name: string;
|
|
17
17
|
|
|
@@ -48,7 +48,7 @@ export interface PositionsInitializer {
|
|
|
48
48
|
id?: PositionsId;
|
|
49
49
|
|
|
50
50
|
/** Default value: nextval('"positions_urlId_seq"'::regclass) */
|
|
51
|
-
|
|
51
|
+
slug?: number;
|
|
52
52
|
|
|
53
53
|
name: string;
|
|
54
54
|
|
|
@@ -87,7 +87,7 @@ export interface PositionsInitializer {
|
|
|
87
87
|
export interface PositionsMutator {
|
|
88
88
|
id?: PositionsId;
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
slug?: number;
|
|
91
91
|
|
|
92
92
|
name?: string;
|
|
93
93
|
|
|
@@ -15,6 +15,8 @@ export default interface Tags {
|
|
|
15
15
|
createdAt: Date;
|
|
16
16
|
|
|
17
17
|
updatedAt: Date;
|
|
18
|
+
|
|
19
|
+
deletedAt: Date | null;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
/** Represents the initializer for the table public.tags */
|
|
@@ -31,6 +33,8 @@ export interface TagsInitializer {
|
|
|
31
33
|
|
|
32
34
|
/** Default value: CURRENT_TIMESTAMP */
|
|
33
35
|
updatedAt?: Date;
|
|
36
|
+
|
|
37
|
+
deletedAt?: Date | null;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
/** Represents the mutator for the table public.tags */
|
|
@@ -44,4 +48,6 @@ export interface TagsMutator {
|
|
|
44
48
|
createdAt?: Date;
|
|
45
49
|
|
|
46
50
|
updatedAt?: Date;
|
|
51
|
+
|
|
52
|
+
deletedAt?: Date | null;
|
|
47
53
|
}
|