@the-inkwell/shared 0.1.162 → 0.1.164

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/constants/enums.js +68 -1
  2. package/package.json +1 -1
  3. package/src/constants/enums.ts +69 -0
  4. package/src/types/_schema/Actions.ts +14 -1
  5. package/src/types/_schema/Admins.ts +14 -1
  6. package/src/types/_schema/Campaigns.ts +2 -2
  7. package/src/types/_schema/CampaignsToPositions.ts +1 -8
  8. package/src/types/_schema/Candidacies.ts +2 -2
  9. package/src/types/_schema/CandidacyFeedback.ts +2 -2
  10. package/src/types/_schema/Certifications.ts +2 -2
  11. package/src/types/_schema/Clients.ts +8 -2
  12. package/src/types/_schema/Contracts.ts +8 -2
  13. package/src/types/_schema/Enrichments.ts +8 -2
  14. package/src/types/_schema/Industries.ts +2 -2
  15. package/src/types/_schema/JobFunctions.ts +2 -2
  16. package/src/types/_schema/Jwts.ts +8 -2
  17. package/src/types/_schema/ListViews.ts +2 -2
  18. package/src/types/_schema/MessageTemplates.ts +2 -2
  19. package/src/types/_schema/Messages.ts +8 -2
  20. package/src/types/_schema/Networks.ts +2 -2
  21. package/src/types/_schema/Notes.ts +2 -2
  22. package/src/types/_schema/Otps.ts +8 -2
  23. package/src/types/_schema/Partners.ts +2 -2
  24. package/src/types/_schema/Persons.ts +2 -2
  25. package/src/types/_schema/PersonsToBestPersons.ts +1 -1
  26. package/src/types/_schema/PersonsToNetworks.ts +1 -1
  27. package/src/types/_schema/PersonsToSkills.ts +1 -1
  28. package/src/types/_schema/PersonsToTags.ts +1 -1
  29. package/src/types/_schema/Positions.ts +2 -2
  30. package/src/types/_schema/PositionsToIndustries.ts +1 -1
  31. package/src/types/_schema/PositionsToSkills.ts +1 -1
  32. package/src/types/_schema/PositionsToTags.ts +1 -1
  33. package/src/types/_schema/Referrals.ts +2 -8
  34. package/src/types/_schema/ReferralsToMessages.ts +1 -8
  35. package/src/types/_schema/Senders.ts +8 -2
  36. package/src/types/_schema/Skills.ts +2 -2
  37. package/src/types/_schema/Tags.ts +2 -2
  38. package/src/types/models/admin/referrals/index.ts +2 -12
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SettingsOptionLists = exports.ReferralSources = exports.PositionStatuses = exports.PositionStages = exports.PositionRatingCategories = exports.PersonSources = exports.PersonListOperators = exports.MessageChannels = exports.ListViewModels = exports.JobLevels = exports.Genders = exports.EnrichmentSources = exports.EducationFields = exports.EducationDegrees = exports.ClientStages = exports.ClientStatuses = exports.CandidacyStatuses = exports.CandidacyStages = exports.CandidacySources = exports.CampaignStatuses = exports.CandidacyRatingCategories = exports.ActionNames = exports.ListRequestSortDirections = exports.ListRequestLimits = void 0;
3
+ exports.StatesList = exports.States = exports.SettingsOptionLists = exports.ReferralSources = exports.PositionStatuses = exports.PositionStages = exports.PositionRatingCategories = exports.PersonSources = exports.PersonListOperators = exports.MessageChannels = exports.ListViewModels = exports.JobLevels = exports.Genders = exports.EnrichmentSources = exports.EducationFields = exports.EducationDegrees = exports.ClientStages = exports.ClientStatuses = exports.CandidacyStatuses = exports.CandidacyStages = exports.CandidacySources = exports.CampaignStatuses = exports.CandidacyRatingCategories = exports.ActionNames = exports.ListRequestSortDirections = exports.ListRequestLimits = void 0;
4
4
  exports.ListRequestLimits = [10, 50, 100, 200, 500];
5
5
  exports.ListRequestSortDirections = ['asc', 'desc'];
6
6
  exports.ActionNames = [
@@ -140,3 +140,70 @@ exports.SettingsOptionLists = [
140
140
  'tags',
141
141
  'skills'
142
142
  ];
143
+ exports.States = {
144
+ AL: 'Alabama',
145
+ AK: 'Alaska',
146
+ AS: 'American Samoa',
147
+ AZ: 'Arizona',
148
+ AR: 'Arkansas',
149
+ CA: 'California',
150
+ CO: 'Colorado',
151
+ CT: 'Connecticut',
152
+ DE: 'Delaware',
153
+ DC: 'District Of Columbia',
154
+ FM: 'Federated States Of Micronesia',
155
+ FL: 'Florida',
156
+ GA: 'Georgia',
157
+ GU: 'Guam',
158
+ HI: 'Hawaii',
159
+ ID: 'Idaho',
160
+ IL: 'Illinois',
161
+ IN: 'Indiana',
162
+ IA: 'Iowa',
163
+ KS: 'Kansas',
164
+ KY: 'Kentucky',
165
+ LA: 'Louisiana',
166
+ ME: 'Maine',
167
+ MH: 'Marshall Islands',
168
+ MD: 'Maryland',
169
+ MA: 'Massachusetts',
170
+ MI: 'Michigan',
171
+ MN: 'Minnesota',
172
+ MS: 'Mississippi',
173
+ MO: 'Missouri',
174
+ MT: 'Montana',
175
+ NE: 'Nebraska',
176
+ NV: 'Nevada',
177
+ NH: 'New Hampshire',
178
+ NJ: 'New Jersey',
179
+ NM: 'New Mexico',
180
+ NY: 'New York',
181
+ NC: 'North Carolina',
182
+ ND: 'North Dakota',
183
+ MP: 'Northern Mariana Islands',
184
+ OH: 'Ohio',
185
+ OK: 'Oklahoma',
186
+ OR: 'Oregon',
187
+ PW: 'Palau',
188
+ PA: 'Pennsylvania',
189
+ PR: 'Puerto Rico',
190
+ RI: 'Rhode Island',
191
+ SC: 'South Carolina',
192
+ SD: 'South Dakota',
193
+ TN: 'Tennessee',
194
+ TX: 'Texas',
195
+ UT: 'Utah',
196
+ VT: 'Vermont',
197
+ VI: 'Virgin Islands',
198
+ VA: 'Virginia',
199
+ WA: 'Washington',
200
+ WV: 'West Virginia',
201
+ WI: 'Wisconsin',
202
+ WY: 'Wyoming'
203
+ };
204
+ exports.StatesList = Object.entries(exports.States)
205
+ .map(([key, value]) => ({
206
+ code: key,
207
+ name: value
208
+ }))
209
+ .sort((a, b) => a.name.localeCompare(b.name));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.162",
3
+ "version": "0.1.164",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -180,3 +180,72 @@ export const SettingsOptionLists = [
180
180
  'tags',
181
181
  'skills'
182
182
  ] as const
183
+
184
+ export const States = {
185
+ AL: 'Alabama',
186
+ AK: 'Alaska',
187
+ AS: 'American Samoa',
188
+ AZ: 'Arizona',
189
+ AR: 'Arkansas',
190
+ CA: 'California',
191
+ CO: 'Colorado',
192
+ CT: 'Connecticut',
193
+ DE: 'Delaware',
194
+ DC: 'District Of Columbia',
195
+ FM: 'Federated States Of Micronesia',
196
+ FL: 'Florida',
197
+ GA: 'Georgia',
198
+ GU: 'Guam',
199
+ HI: 'Hawaii',
200
+ ID: 'Idaho',
201
+ IL: 'Illinois',
202
+ IN: 'Indiana',
203
+ IA: 'Iowa',
204
+ KS: 'Kansas',
205
+ KY: 'Kentucky',
206
+ LA: 'Louisiana',
207
+ ME: 'Maine',
208
+ MH: 'Marshall Islands',
209
+ MD: 'Maryland',
210
+ MA: 'Massachusetts',
211
+ MI: 'Michigan',
212
+ MN: 'Minnesota',
213
+ MS: 'Mississippi',
214
+ MO: 'Missouri',
215
+ MT: 'Montana',
216
+ NE: 'Nebraska',
217
+ NV: 'Nevada',
218
+ NH: 'New Hampshire',
219
+ NJ: 'New Jersey',
220
+ NM: 'New Mexico',
221
+ NY: 'New York',
222
+ NC: 'North Carolina',
223
+ ND: 'North Dakota',
224
+ MP: 'Northern Mariana Islands',
225
+ OH: 'Ohio',
226
+ OK: 'Oklahoma',
227
+ OR: 'Oregon',
228
+ PW: 'Palau',
229
+ PA: 'Pennsylvania',
230
+ PR: 'Puerto Rico',
231
+ RI: 'Rhode Island',
232
+ SC: 'South Carolina',
233
+ SD: 'South Dakota',
234
+ TN: 'Tennessee',
235
+ TX: 'Texas',
236
+ UT: 'Utah',
237
+ VT: 'Vermont',
238
+ VI: 'Virgin Islands',
239
+ VA: 'Virginia',
240
+ WA: 'Washington',
241
+ WV: 'West Virginia',
242
+ WI: 'Wisconsin',
243
+ WY: 'Wyoming'
244
+ } as const
245
+
246
+ export const StatesList = Object.entries(States)
247
+ .map(([key, value]) => ({
248
+ code: key,
249
+ name: value
250
+ }))
251
+ .sort((a, b) => a.name.localeCompare(b.name))
@@ -36,6 +36,10 @@ export default interface Actions {
36
36
  createdAt: Date;
37
37
 
38
38
  name: ActionNames;
39
+
40
+ deletedAt: Date | null;
41
+
42
+ updatedAt: Date;
39
43
  }
40
44
 
41
45
  /** Represents the initializer for the table public.actions */
@@ -59,10 +63,15 @@ export interface ActionsInitializer {
59
63
 
60
64
  data: unknown;
61
65
 
62
- /** Default value: CURRENT_TIMESTAMP */
66
+ /** Default value: now() */
63
67
  createdAt?: Date;
64
68
 
65
69
  name: ActionNames;
70
+
71
+ deletedAt?: Date | null;
72
+
73
+ /** Default value: now() */
74
+ updatedAt?: Date;
66
75
  }
67
76
 
68
77
  /** Represents the mutator for the table public.actions */
@@ -88,4 +97,8 @@ export interface ActionsMutator {
88
97
  createdAt?: Date;
89
98
 
90
99
  name?: ActionNames;
100
+
101
+ deletedAt?: Date | null;
102
+
103
+ updatedAt?: Date;
91
104
  }
@@ -13,6 +13,10 @@ export default interface Admins {
13
13
  personId: PersonsId;
14
14
 
15
15
  createdAt: Date;
16
+
17
+ deletedAt: Date | null;
18
+
19
+ updatedAt: Date;
16
20
  }
17
21
 
18
22
  /** Represents the initializer for the table public.admins */
@@ -22,8 +26,13 @@ export interface AdminsInitializer {
22
26
 
23
27
  personId: PersonsId;
24
28
 
25
- /** Default value: CURRENT_TIMESTAMP */
29
+ /** Default value: now() */
26
30
  createdAt?: Date;
31
+
32
+ deletedAt?: Date | null;
33
+
34
+ /** Default value: now() */
35
+ updatedAt?: Date;
27
36
  }
28
37
 
29
38
  /** Represents the mutator for the table public.admins */
@@ -33,4 +42,8 @@ export interface AdminsMutator {
33
42
  personId?: PersonsId;
34
43
 
35
44
  createdAt?: Date;
45
+
46
+ deletedAt?: Date | null;
47
+
48
+ updatedAt?: Date;
36
49
  }
@@ -45,12 +45,12 @@ export interface CampaignsInitializer {
45
45
 
46
46
  content: unknown;
47
47
 
48
- /** Default value: CURRENT_TIMESTAMP */
48
+ /** Default value: now() */
49
49
  createdAt?: Date;
50
50
 
51
51
  deletedAt?: Date | null;
52
52
 
53
- /** Default value: CURRENT_TIMESTAMP */
53
+ /** Default value: now() */
54
54
  updatedAt?: Date;
55
55
  }
56
56
 
@@ -11,8 +11,6 @@ export default interface CampaignsToPositions {
11
11
  positionId: PositionsId;
12
12
 
13
13
  createdAt: Date;
14
-
15
- updatedAt: Date;
16
14
  }
17
15
 
18
16
  /** Represents the initializer for the table public.campaigns_to_positions */
@@ -21,11 +19,8 @@ export interface CampaignsToPositionsInitializer {
21
19
 
22
20
  positionId: PositionsId;
23
21
 
24
- /** Default value: CURRENT_TIMESTAMP */
22
+ /** Default value: now() */
25
23
  createdAt?: Date;
26
-
27
- /** Default value: CURRENT_TIMESTAMP */
28
- updatedAt?: Date;
29
24
  }
30
25
 
31
26
  /** Represents the mutator for the table public.campaigns_to_positions */
@@ -35,6 +30,4 @@ export interface CampaignsToPositionsMutator {
35
30
  positionId?: PositionsId;
36
31
 
37
32
  createdAt?: Date;
38
-
39
- updatedAt?: Date;
40
33
  }
@@ -48,10 +48,10 @@ export interface CandidaciesInitializer {
48
48
 
49
49
  deletedAt?: Date | null;
50
50
 
51
- /** Default value: CURRENT_TIMESTAMP */
51
+ /** Default value: now() */
52
52
  createdAt?: Date;
53
53
 
54
- /** Default value: CURRENT_TIMESTAMP */
54
+ /** Default value: now() */
55
55
  updatedAt?: Date;
56
56
  }
57
57
 
@@ -30,10 +30,10 @@ export interface CandidacyFeedbackInitializer {
30
30
 
31
31
  content: string;
32
32
 
33
- /** Default value: CURRENT_TIMESTAMP */
33
+ /** Default value: now() */
34
34
  createdAt?: Date;
35
35
 
36
- /** Default value: CURRENT_TIMESTAMP */
36
+ /** Default value: now() */
37
37
  updatedAt?: Date;
38
38
 
39
39
  deletedAt?: Date | null;
@@ -32,10 +32,10 @@ export interface CertificationsInitializer {
32
32
 
33
33
  description?: string | null;
34
34
 
35
- /** Default value: CURRENT_TIMESTAMP */
35
+ /** Default value: now() */
36
36
  createdAt?: Date;
37
37
 
38
- /** Default value: CURRENT_TIMESTAMP */
38
+ /** Default value: now() */
39
39
  updatedAt?: Date;
40
40
 
41
41
  deletedAt?: Date | null;
@@ -21,6 +21,8 @@ export default interface Clients {
21
21
  createdAt: Date;
22
22
 
23
23
  updatedAt: Date;
24
+
25
+ deletedAt: Date | null;
24
26
  }
25
27
 
26
28
  /** Represents the initializer for the table public.clients */
@@ -38,11 +40,13 @@ export interface ClientsInitializer {
38
40
  /** Default value: 'ACTIVE'::"ClientStatuses" */
39
41
  status?: ClientStatuses | null;
40
42
 
41
- /** Default value: CURRENT_TIMESTAMP */
43
+ /** Default value: now() */
42
44
  createdAt?: Date;
43
45
 
44
- /** Default value: CURRENT_TIMESTAMP */
46
+ /** Default value: now() */
45
47
  updatedAt?: Date;
48
+
49
+ deletedAt?: Date | null;
46
50
  }
47
51
 
48
52
  /** Represents the mutator for the table public.clients */
@@ -60,4 +64,6 @@ export interface ClientsMutator {
60
64
  createdAt?: Date;
61
65
 
62
66
  updatedAt?: Date;
67
+
68
+ deletedAt?: Date | null;
63
69
  }
@@ -22,6 +22,8 @@ export default interface Contracts {
22
22
  createdAt: Date;
23
23
 
24
24
  updatedAt: Date;
25
+
26
+ deletedAt: Date | null;
25
27
  }
26
28
 
27
29
  /** Represents the initializer for the table public.contracts */
@@ -37,11 +39,13 @@ export interface ContractsInitializer {
37
39
 
38
40
  clientId: ClientsId;
39
41
 
40
- /** Default value: CURRENT_TIMESTAMP */
42
+ /** Default value: now() */
41
43
  createdAt?: Date;
42
44
 
43
- /** Default value: CURRENT_TIMESTAMP */
45
+ /** Default value: now() */
44
46
  updatedAt?: Date;
47
+
48
+ deletedAt?: Date | null;
45
49
  }
46
50
 
47
51
  /** Represents the mutator for the table public.contracts */
@@ -59,4 +63,6 @@ export interface ContractsMutator {
59
63
  createdAt?: Date;
60
64
 
61
65
  updatedAt?: Date;
66
+
67
+ deletedAt?: Date | null;
62
68
  }
@@ -22,6 +22,8 @@ export default interface Enrichments {
22
22
  createdAt: Date;
23
23
 
24
24
  updatedAt: Date;
25
+
26
+ deletedAt: Date | null;
25
27
  }
26
28
 
27
29
  /** Represents the initializer for the table public.enrichments */
@@ -37,11 +39,13 @@ export interface EnrichmentsInitializer {
37
39
 
38
40
  personId: PersonsId;
39
41
 
40
- /** Default value: CURRENT_TIMESTAMP */
42
+ /** Default value: now() */
41
43
  createdAt?: Date;
42
44
 
43
- /** Default value: CURRENT_TIMESTAMP */
45
+ /** Default value: now() */
44
46
  updatedAt?: Date;
47
+
48
+ deletedAt?: Date | null;
45
49
  }
46
50
 
47
51
  /** Represents the mutator for the table public.enrichments */
@@ -59,4 +63,6 @@ export interface EnrichmentsMutator {
59
63
  createdAt?: Date;
60
64
 
61
65
  updatedAt?: Date;
66
+
67
+ deletedAt?: Date | null;
62
68
  }
@@ -30,10 +30,10 @@ export interface IndustriesInitializer {
30
30
 
31
31
  deletedAt?: Date | null;
32
32
 
33
- /** Default value: CURRENT_TIMESTAMP */
33
+ /** Default value: now() */
34
34
  createdAt?: Date;
35
35
 
36
- /** Default value: CURRENT_TIMESTAMP */
36
+ /** Default value: now() */
37
37
  updatedAt?: Date;
38
38
  }
39
39
 
@@ -28,10 +28,10 @@ export interface JobFunctionsInitializer {
28
28
 
29
29
  name: string;
30
30
 
31
- /** Default value: CURRENT_TIMESTAMP */
31
+ /** Default value: now() */
32
32
  createdAt?: Date;
33
33
 
34
- /** Default value: CURRENT_TIMESTAMP */
34
+ /** Default value: now() */
35
35
  updatedAt?: Date;
36
36
 
37
37
  deletedAt?: Date | null;
@@ -19,6 +19,8 @@ export default interface Jwts {
19
19
  updatedAt: Date;
20
20
 
21
21
  personId: PersonsId;
22
+
23
+ deletedAt: Date | null;
22
24
  }
23
25
 
24
26
  /** Represents the initializer for the table public.jwts */
@@ -30,13 +32,15 @@ export interface JwtsInitializer {
30
32
 
31
33
  revokedAt?: Date | null;
32
34
 
33
- /** Default value: CURRENT_TIMESTAMP */
35
+ /** Default value: now() */
34
36
  createdAt?: Date;
35
37
 
36
- /** Default value: CURRENT_TIMESTAMP */
38
+ /** Default value: now() */
37
39
  updatedAt?: Date;
38
40
 
39
41
  personId: PersonsId;
42
+
43
+ deletedAt?: Date | null;
40
44
  }
41
45
 
42
46
  /** Represents the mutator for the table public.jwts */
@@ -52,4 +56,6 @@ export interface JwtsMutator {
52
56
  updatedAt?: Date;
53
57
 
54
58
  personId?: PersonsId;
59
+
60
+ deletedAt?: Date | null;
55
61
  }
@@ -45,10 +45,10 @@ export interface ListViewsInitializer {
45
45
 
46
46
  deletedAt?: Date | null;
47
47
 
48
- /** Default value: CURRENT_TIMESTAMP */
48
+ /** Default value: now() */
49
49
  createdAt?: Date;
50
50
 
51
- /** Default value: CURRENT_TIMESTAMP */
51
+ /** Default value: now() */
52
52
  updatedAt?: Date;
53
53
  }
54
54
 
@@ -30,10 +30,10 @@ export interface MessageTemplatesInitializer {
30
30
 
31
31
  deletedAt?: Date | null;
32
32
 
33
- /** Default value: CURRENT_TIMESTAMP */
33
+ /** Default value: now() */
34
34
  createdAt?: Date;
35
35
 
36
- /** Default value: CURRENT_TIMESTAMP */
36
+ /** Default value: now() */
37
37
  updatedAt?: Date;
38
38
  }
39
39
 
@@ -36,6 +36,8 @@ export default interface Messages {
36
36
  isOpened: boolean;
37
37
 
38
38
  isLinkClicked: boolean;
39
+
40
+ deletedAt: Date | null;
39
41
  }
40
42
 
41
43
  /** Represents the initializer for the table public.messages */
@@ -54,10 +56,10 @@ export interface MessagesInitializer {
54
56
 
55
57
  campaignId?: CampaignsId | null;
56
58
 
57
- /** Default value: CURRENT_TIMESTAMP */
59
+ /** Default value: now() */
58
60
  createdAt?: Date;
59
61
 
60
- /** Default value: CURRENT_TIMESTAMP */
62
+ /** Default value: now() */
61
63
  updatedAt?: Date;
62
64
 
63
65
  channel: MessageChannels;
@@ -71,6 +73,8 @@ export interface MessagesInitializer {
71
73
 
72
74
  /** Default value: false */
73
75
  isLinkClicked?: boolean;
76
+
77
+ deletedAt?: Date | null;
74
78
  }
75
79
 
76
80
  /** Represents the mutator for the table public.messages */
@@ -100,4 +104,6 @@ export interface MessagesMutator {
100
104
  isOpened?: boolean;
101
105
 
102
106
  isLinkClicked?: boolean;
107
+
108
+ deletedAt?: Date | null;
103
109
  }
@@ -34,10 +34,10 @@ export interface NetworksInitializer {
34
34
 
35
35
  deletedAt?: Date | null;
36
36
 
37
- /** Default value: CURRENT_TIMESTAMP */
37
+ /** Default value: now() */
38
38
  createdAt?: Date;
39
39
 
40
- /** Default value: CURRENT_TIMESTAMP */
40
+ /** Default value: now() */
41
41
  updatedAt?: Date;
42
42
  }
43
43
 
@@ -47,10 +47,10 @@ export interface NotesInitializer {
47
47
 
48
48
  deletedAt?: Date | null;
49
49
 
50
- /** Default value: CURRENT_TIMESTAMP */
50
+ /** Default value: now() */
51
51
  createdAt?: Date;
52
52
 
53
- /** Default value: CURRENT_TIMESTAMP */
53
+ /** Default value: now() */
54
54
  updatedAt?: Date;
55
55
  }
56
56
 
@@ -21,6 +21,8 @@ export default interface Otps {
21
21
  updatedAt: Date;
22
22
 
23
23
  personId: PersonsId;
24
+
25
+ deletedAt: Date | null;
24
26
  }
25
27
 
26
28
  /** Represents the initializer for the table public.otps */
@@ -34,13 +36,15 @@ export interface OtpsInitializer {
34
36
 
35
37
  expiresAt: Date;
36
38
 
37
- /** Default value: CURRENT_TIMESTAMP */
39
+ /** Default value: now() */
38
40
  createdAt?: Date;
39
41
 
40
- /** Default value: CURRENT_TIMESTAMP */
42
+ /** Default value: now() */
41
43
  updatedAt?: Date;
42
44
 
43
45
  personId: PersonsId;
46
+
47
+ deletedAt?: Date | null;
44
48
  }
45
49
 
46
50
  /** Represents the mutator for the table public.otps */
@@ -58,4 +62,6 @@ export interface OtpsMutator {
58
62
  updatedAt?: Date;
59
63
 
60
64
  personId?: PersonsId;
65
+
66
+ deletedAt?: Date | null;
61
67
  }
@@ -38,10 +38,10 @@ export interface PartnersInitializer {
38
38
 
39
39
  deletedAt?: Date | null;
40
40
 
41
- /** Default value: CURRENT_TIMESTAMP */
41
+ /** Default value: now() */
42
42
  createdAt?: Date;
43
43
 
44
- /** Default value: CURRENT_TIMESTAMP */
44
+ /** Default value: now() */
45
45
  updatedAt?: Date;
46
46
  }
47
47
 
@@ -156,10 +156,10 @@ export interface PersonsInitializer {
156
156
 
157
157
  deletedAt?: Date | null;
158
158
 
159
- /** Default value: CURRENT_TIMESTAMP */
159
+ /** Default value: now() */
160
160
  createdAt?: Date;
161
161
 
162
- /** Default value: CURRENT_TIMESTAMP */
162
+ /** Default value: now() */
163
163
  updatedAt?: Date;
164
164
  }
165
165
 
@@ -18,7 +18,7 @@ export interface PersonsToBestPersonsInitializer {
18
18
 
19
19
  bestPersonId: PersonsId;
20
20
 
21
- /** Default value: CURRENT_TIMESTAMP */
21
+ /** Default value: now() */
22
22
  createdAt?: Date;
23
23
  }
24
24
 
@@ -19,7 +19,7 @@ export interface PersonsToNetworksInitializer {
19
19
 
20
20
  networkId: NetworksId;
21
21
 
22
- /** Default value: CURRENT_TIMESTAMP */
22
+ /** Default value: now() */
23
23
  createdAt?: Date;
24
24
  }
25
25
 
@@ -19,7 +19,7 @@ export interface PersonsToSkillsInitializer {
19
19
 
20
20
  skillId: SkillsId;
21
21
 
22
- /** Default value: CURRENT_TIMESTAMP */
22
+ /** Default value: now() */
23
23
  createdAt?: Date;
24
24
  }
25
25
 
@@ -19,7 +19,7 @@ export interface PersonsToTagsInitializer {
19
19
 
20
20
  tagId: TagsId;
21
21
 
22
- /** Default value: CURRENT_TIMESTAMP */
22
+ /** Default value: now() */
23
23
  createdAt?: Date;
24
24
  }
25
25
 
@@ -74,10 +74,10 @@ export interface PositionsInitializer {
74
74
 
75
75
  canceledAt?: Date | null;
76
76
 
77
- /** Default value: CURRENT_TIMESTAMP */
77
+ /** Default value: now() */
78
78
  createdAt?: Date;
79
79
 
80
- /** Default value: CURRENT_TIMESTAMP */
80
+ /** Default value: now() */
81
81
  updatedAt?: Date;
82
82
 
83
83
  deletedAt?: Date | null;
@@ -19,7 +19,7 @@ export interface PositionsToIndustriesInitializer {
19
19
 
20
20
  industryId: IndustriesId;
21
21
 
22
- /** Default value: CURRENT_TIMESTAMP */
22
+ /** Default value: now() */
23
23
  createdAt?: Date;
24
24
  }
25
25
 
@@ -19,7 +19,7 @@ export interface PositionsToSkillsInitializer {
19
19
 
20
20
  skillId: SkillsId;
21
21
 
22
- /** Default value: CURRENT_TIMESTAMP */
22
+ /** Default value: now() */
23
23
  createdAt?: Date;
24
24
  }
25
25
 
@@ -19,7 +19,7 @@ export interface PositionsToTagsInitializer {
19
19
 
20
20
  tagId: TagsId;
21
21
 
22
- /** Default value: CURRENT_TIMESTAMP */
22
+ /** Default value: now() */
23
23
  createdAt?: Date;
24
24
  }
25
25
 
@@ -31,8 +31,6 @@ export default interface Referrals {
31
31
  createdAt: Date;
32
32
 
33
33
  updatedAt: Date;
34
-
35
- messageId: string | null;
36
34
  }
37
35
 
38
36
  /** Represents the initializer for the table public.referrals */
@@ -54,13 +52,11 @@ export interface ReferralsInitializer {
54
52
 
55
53
  deletedAt?: Date | null;
56
54
 
57
- /** Default value: CURRENT_TIMESTAMP */
55
+ /** Default value: now() */
58
56
  createdAt?: Date;
59
57
 
60
- /** Default value: CURRENT_TIMESTAMP */
58
+ /** Default value: now() */
61
59
  updatedAt?: Date;
62
-
63
- messageId?: string | null;
64
60
  }
65
61
 
66
62
  /** Represents the mutator for the table public.referrals */
@@ -84,6 +80,4 @@ export interface ReferralsMutator {
84
80
  createdAt?: Date;
85
81
 
86
82
  updatedAt?: Date;
87
-
88
- messageId?: string | null;
89
83
  }
@@ -13,8 +13,6 @@ export default interface ReferralsToMessages {
13
13
  isIntro: boolean;
14
14
 
15
15
  createdAt: Date;
16
-
17
- updatedAt: Date;
18
16
  }
19
17
 
20
18
  /** Represents the initializer for the table public.referrals_to_messages */
@@ -26,11 +24,8 @@ export interface ReferralsToMessagesInitializer {
26
24
  /** Default value: false */
27
25
  isIntro?: boolean;
28
26
 
29
- /** Default value: CURRENT_TIMESTAMP */
27
+ /** Default value: now() */
30
28
  createdAt?: Date;
31
-
32
- /** Default value: CURRENT_TIMESTAMP */
33
- updatedAt?: Date;
34
29
  }
35
30
 
36
31
  /** Represents the mutator for the table public.referrals_to_messages */
@@ -42,6 +37,4 @@ export interface ReferralsToMessagesMutator {
42
37
  isIntro?: boolean;
43
38
 
44
39
  createdAt?: Date;
45
-
46
- updatedAt?: Date;
47
40
  }
@@ -19,6 +19,8 @@ export default interface Senders {
19
19
  createdAt: Date;
20
20
 
21
21
  updatedAt: Date;
22
+
23
+ deletedAt: Date | null;
22
24
  }
23
25
 
24
26
  /** Represents the initializer for the table public.senders */
@@ -34,11 +36,13 @@ export interface SendersInitializer {
34
36
 
35
37
  smsNumber?: string | null;
36
38
 
37
- /** Default value: CURRENT_TIMESTAMP */
39
+ /** Default value: now() */
38
40
  createdAt?: Date;
39
41
 
40
- /** Default value: CURRENT_TIMESTAMP */
42
+ /** Default value: now() */
41
43
  updatedAt?: Date;
44
+
45
+ deletedAt?: Date | null;
42
46
  }
43
47
 
44
48
  /** Represents the mutator for the table public.senders */
@@ -56,4 +60,6 @@ export interface SendersMutator {
56
60
  createdAt?: Date;
57
61
 
58
62
  updatedAt?: Date;
63
+
64
+ deletedAt?: Date | null;
59
65
  }
@@ -30,10 +30,10 @@ export interface SkillsInitializer {
30
30
 
31
31
  deletedAt?: Date | null;
32
32
 
33
- /** Default value: CURRENT_TIMESTAMP */
33
+ /** Default value: now() */
34
34
  createdAt?: Date;
35
35
 
36
- /** Default value: CURRENT_TIMESTAMP */
36
+ /** Default value: now() */
37
37
  updatedAt?: Date;
38
38
  }
39
39
 
@@ -28,10 +28,10 @@ export interface TagsInitializer {
28
28
 
29
29
  name: string;
30
30
 
31
- /** Default value: CURRENT_TIMESTAMP */
31
+ /** Default value: now() */
32
32
  createdAt?: Date;
33
33
 
34
- /** Default value: CURRENT_TIMESTAMP */
34
+ /** Default value: now() */
35
35
  updatedAt?: Date;
36
36
 
37
37
  deletedAt?: Date | null;
@@ -51,12 +51,7 @@ export type AdminReferralListResponse = ListResponse<
51
51
 
52
52
  export type AdminReferralCreateInput = Pick<
53
53
  AdminPersonInitializer,
54
- | 'source'
55
- | 'referrerId'
56
- | 'candidacyId'
57
- | 'campaignId'
58
- | 'positionId'
59
- | 'messageId'
54
+ 'source' | 'referrerId' | 'candidacyId' | 'campaignId' | 'positionId'
60
55
  >
61
56
  export type AdminReferralCreateResponse = Pick<AdminReferral, 'id'>
62
57
 
@@ -64,12 +59,7 @@ export type AdminReferralCreateResponse = Pick<AdminReferral, 'id'>
64
59
 
65
60
  export type AdminReferralUpdateInput = Pick<
66
61
  AdminReferralMutator,
67
- | 'source'
68
- | 'referrerId'
69
- | 'candidacyId'
70
- | 'campaignId'
71
- | 'positionId'
72
- | 'messageId'
62
+ 'source' | 'referrerId' | 'candidacyId' | 'campaignId' | 'positionId'
73
63
  >
74
64
 
75
65
  // delete