@the-inkwell/shared 0.1.159 → 0.1.161

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.159",
3
+ "version": "0.1.161",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -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
- isOpen: boolean;
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
- isOpen?: boolean;
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
- isOpen?: boolean;
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
  }
@@ -34,6 +34,8 @@ export default interface Persons {
34
34
 
35
35
  photoUrl: string | null;
36
36
 
37
+ googlePlaceId: string | null;
38
+
37
39
  lat: number | null;
38
40
 
39
41
  lon: number | null;
@@ -112,6 +114,8 @@ export interface PersonsInitializer {
112
114
 
113
115
  photoUrl?: string | null;
114
116
 
117
+ googlePlaceId?: string | null;
118
+
115
119
  lat?: number | null;
116
120
 
117
121
  lon?: number | null;
@@ -189,6 +193,8 @@ export interface PersonsMutator {
189
193
 
190
194
  photoUrl?: string | null;
191
195
 
196
+ googlePlaceId?: string | null;
197
+
192
198
  lat?: number | null;
193
199
 
194
200
  lon?: number | null;
@@ -11,7 +11,7 @@ export type PositionsId = string;
11
11
  export default interface Positions {
12
12
  id: PositionsId;
13
13
 
14
- urlId: number;
14
+ slug: number;
15
15
 
16
16
  name: string;
17
17
 
@@ -21,6 +21,8 @@ export default interface Positions {
21
21
 
22
22
  location: string | null;
23
23
 
24
+ googlePlaceId: string | null;
25
+
24
26
  lat: number | null;
25
27
 
26
28
  lon: number | null;
@@ -48,7 +50,7 @@ export interface PositionsInitializer {
48
50
  id?: PositionsId;
49
51
 
50
52
  /** Default value: nextval('"positions_urlId_seq"'::regclass) */
51
- urlId?: number;
53
+ slug?: number;
52
54
 
53
55
  name: string;
54
56
 
@@ -59,6 +61,8 @@ export interface PositionsInitializer {
59
61
 
60
62
  location?: string | null;
61
63
 
64
+ googlePlaceId?: string | null;
65
+
62
66
  lat?: number | null;
63
67
 
64
68
  lon?: number | null;
@@ -87,7 +91,7 @@ export interface PositionsInitializer {
87
91
  export interface PositionsMutator {
88
92
  id?: PositionsId;
89
93
 
90
- urlId?: number;
94
+ slug?: number;
91
95
 
92
96
  name?: string;
93
97
 
@@ -97,6 +101,8 @@ export interface PositionsMutator {
97
101
 
98
102
  location?: string | null;
99
103
 
104
+ googlePlaceId?: string | null;
105
+
100
106
  lat?: number | null;
101
107
 
102
108
  lon?: number | null;
@@ -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
  }
@@ -8,8 +8,8 @@ export type ListRequest<
8
8
  TFilter = unknown,
9
9
  TAdditional = unknown
10
10
  > = TAdditional & {
11
- limit: 10 | 50 | 100 | 200 | 500
12
- offset: number
11
+ limit?: 10 | 50 | 100 | 200 | 500
12
+ offset?: number
13
13
  sort?: TSort
14
14
  filter?: TFilter
15
15
  }