@the-inkwell/shared 0.2.0 → 0.2.1
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 +4 -6
- package/src/constants.d.ts +770 -0
- package/src/constants.d.ts.map +1 -0
- package/{dist/src → src}/constants.js +1 -0
- package/src/constants.js.map +1 -0
- package/src/index.d.ts +4 -0
- package/src/index.d.ts.map +1 -0
- package/{dist → src}/index.js +4 -3
- package/src/index.js.map +1 -0
- package/src/index.ts +3 -0
- package/src/schema/admin/actions/index.d.ts +797 -0
- package/src/schema/admin/actions/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/actions/index.js +1 -0
- package/src/schema/admin/actions/index.js.map +1 -0
- package/src/schema/admin/campaigns/index.d.ts +491 -0
- package/src/schema/admin/campaigns/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/campaigns/index.js +1 -0
- package/src/schema/admin/campaigns/index.js.map +1 -0
- package/src/schema/admin/candidacies/index.d.ts +766 -0
- package/src/schema/admin/candidacies/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/candidacies/index.js +1 -0
- package/src/schema/admin/candidacies/index.js.map +1 -0
- package/src/schema/admin/clients/index.d.ts +340 -0
- package/src/schema/admin/clients/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/clients/index.js +1 -0
- package/src/schema/admin/clients/index.js.map +1 -0
- package/src/schema/admin/dashboard/index.d.ts +11 -0
- package/src/schema/admin/dashboard/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/dashboard/index.js +1 -0
- package/src/schema/admin/dashboard/index.js.map +1 -0
- package/src/schema/admin/educations/index.d.ts +361 -0
- package/src/schema/admin/educations/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/educations/index.js +1 -0
- package/src/schema/admin/educations/index.js.map +1 -0
- package/src/schema/admin/experiences/index.d.ts +467 -0
- package/src/schema/admin/experiences/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/experiences/index.js +1 -0
- package/src/schema/admin/experiences/index.js.map +1 -0
- package/src/schema/admin/files/index.d.ts +9 -0
- package/src/schema/admin/files/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/files/index.js +1 -0
- package/src/schema/admin/files/index.js.map +1 -0
- package/src/schema/admin/index.d.ts +30 -0
- package/src/schema/admin/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/index.js +1 -0
- package/src/schema/admin/index.js.map +1 -0
- package/src/schema/admin/jobFunctions/index.d.ts +363 -0
- package/src/schema/admin/jobFunctions/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/jobFunctions/index.js +1 -0
- package/src/schema/admin/jobFunctions/index.js.map +1 -0
- package/src/schema/admin/listViews/index.d.ts +576 -0
- package/src/schema/admin/listViews/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/listViews/index.js +1 -0
- package/src/schema/admin/listViews/index.js.map +1 -0
- package/src/schema/admin/locations/index.d.ts +28 -0
- package/src/schema/admin/locations/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/locations/index.js +1 -0
- package/src/schema/admin/locations/index.js.map +1 -0
- package/src/schema/admin/messages/index.d.ts +801 -0
- package/src/schema/admin/messages/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/messages/index.js +1 -0
- package/src/schema/admin/messages/index.js.map +1 -0
- package/src/schema/admin/notes/index.d.ts +559 -0
- package/src/schema/admin/notes/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/notes/index.js +1 -0
- package/src/schema/admin/notes/index.js.map +1 -0
- package/src/schema/admin/partners/index.d.ts +335 -0
- package/src/schema/admin/partners/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/partners/index.js +1 -0
- package/src/schema/admin/partners/index.js.map +1 -0
- package/src/schema/admin/persons/index.d.ts +890 -0
- package/src/schema/admin/persons/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/persons/index.js +1 -0
- package/src/schema/admin/persons/index.js.map +1 -0
- package/src/schema/admin/personsToBestPersons/index.d.ts +199 -0
- package/src/schema/admin/personsToBestPersons/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/personsToBestPersons/index.js +1 -0
- package/src/schema/admin/personsToBestPersons/index.js.map +1 -0
- package/src/schema/admin/personsToSkills/index.d.ts +199 -0
- package/src/schema/admin/personsToSkills/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/personsToSkills/index.js +1 -0
- package/src/schema/admin/personsToSkills/index.js.map +1 -0
- package/src/schema/admin/personsToTags/index.d.ts +199 -0
- package/src/schema/admin/personsToTags/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/personsToTags/index.js +1 -0
- package/src/schema/admin/personsToTags/index.js.map +1 -0
- package/src/schema/admin/positions/index.d.ts +1329 -0
- package/src/schema/admin/positions/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/positions/index.js +1 -0
- package/src/schema/admin/positions/index.js.map +1 -0
- package/src/schema/admin/positionsToSkills/index.d.ts +199 -0
- package/src/schema/admin/positionsToSkills/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/positionsToSkills/index.js +1 -0
- package/src/schema/admin/positionsToSkills/index.js.map +1 -0
- package/src/schema/admin/positionsToTags/index.d.ts +199 -0
- package/src/schema/admin/positionsToTags/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/positionsToTags/index.js +1 -0
- package/src/schema/admin/positionsToTags/index.js.map +1 -0
- package/src/schema/admin/referrals/index.d.ts +478 -0
- package/src/schema/admin/referrals/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/referrals/index.js +1 -0
- package/src/schema/admin/referrals/index.js.map +1 -0
- package/src/schema/admin/referralsToMessages/index.d.ts +244 -0
- package/src/schema/admin/referralsToMessages/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/referralsToMessages/index.js +1 -0
- package/src/schema/admin/referralsToMessages/index.js.map +1 -0
- package/src/schema/admin/senders/index.d.ts +452 -0
- package/src/schema/admin/senders/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/senders/index.js +1 -0
- package/src/schema/admin/senders/index.js.map +1 -0
- package/src/schema/admin/sendgrid/index.d.ts +10 -0
- package/src/schema/admin/sendgrid/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/sendgrid/index.js +1 -0
- package/src/schema/admin/sendgrid/index.js.map +1 -0
- package/src/schema/admin/settings/index.d.ts +31 -0
- package/src/schema/admin/settings/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/settings/index.js +1 -0
- package/src/schema/admin/settings/index.js.map +1 -0
- package/src/schema/admin/skills/index.d.ts +363 -0
- package/src/schema/admin/skills/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/skills/index.js +1 -0
- package/src/schema/admin/skills/index.js.map +1 -0
- package/src/schema/admin/tags/index.d.ts +356 -0
- package/src/schema/admin/tags/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/tags/index.js +1 -0
- package/src/schema/admin/tags/index.js.map +1 -0
- package/src/schema/admin/websiteLandingPages/index.d.ts +563 -0
- package/src/schema/admin/websiteLandingPages/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/websiteLandingPages/index.js +1 -0
- package/src/schema/admin/websiteLandingPages/index.js.map +1 -0
- package/src/schema/admin/websiteStaticPages/index.d.ts +386 -0
- package/src/schema/admin/websiteStaticPages/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/admin/websiteStaticPages/index.js +1 -0
- package/src/schema/admin/websiteStaticPages/index.js.map +1 -0
- package/src/schema/auth/index.d.ts +16 -0
- package/src/schema/auth/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/auth/index.js +1 -0
- package/src/schema/auth/index.js.map +1 -0
- package/src/schema/core.d.ts +6336 -0
- package/src/schema/core.d.ts.map +1 -0
- package/{dist/src → src}/schema/core.js +1 -0
- package/src/schema/core.js.map +1 -0
- package/src/schema/index.d.ts +4 -0
- package/src/schema/index.d.ts.map +1 -0
- package/{dist/src → src}/schema/index.js +1 -0
- package/src/schema/index.js.map +1 -0
- package/src/utils.d.ts +24 -0
- package/src/utils.d.ts.map +1 -0
- package/{dist/src → src}/utils.js +3 -1
- package/src/utils.js.map +1 -0
- package/src/utils.ts +2 -1
- package/tsconfig.json +14 -107
- package/index.ts +0 -3
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
import { type ListResponse } from '../../../utils';
|
|
2
|
+
import { z } from 'zod/v4';
|
|
3
|
+
export declare const AdminEducationCreateSchema: import("drizzle-zod").BuildSchema<"insert", {
|
|
4
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
5
|
+
name: "id";
|
|
6
|
+
tableName: "educations";
|
|
7
|
+
dataType: "string";
|
|
8
|
+
columnType: "PgUUID";
|
|
9
|
+
data: string;
|
|
10
|
+
driverParam: string;
|
|
11
|
+
notNull: true;
|
|
12
|
+
hasDefault: true;
|
|
13
|
+
isPrimaryKey: true;
|
|
14
|
+
isAutoincrement: false;
|
|
15
|
+
hasRuntimeDefault: false;
|
|
16
|
+
enumValues: undefined;
|
|
17
|
+
baseColumn: never;
|
|
18
|
+
identity: undefined;
|
|
19
|
+
generated: undefined;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
personId: import("drizzle-orm/pg-core").PgColumn<{
|
|
22
|
+
name: "personId";
|
|
23
|
+
tableName: "educations";
|
|
24
|
+
dataType: "string";
|
|
25
|
+
columnType: "PgUUID";
|
|
26
|
+
data: string;
|
|
27
|
+
driverParam: string;
|
|
28
|
+
notNull: true;
|
|
29
|
+
hasDefault: false;
|
|
30
|
+
isPrimaryKey: false;
|
|
31
|
+
isAutoincrement: false;
|
|
32
|
+
hasRuntimeDefault: false;
|
|
33
|
+
enumValues: undefined;
|
|
34
|
+
baseColumn: never;
|
|
35
|
+
identity: undefined;
|
|
36
|
+
generated: undefined;
|
|
37
|
+
}, {}, {}>;
|
|
38
|
+
degree: import("drizzle-orm/pg-core").PgColumn<{
|
|
39
|
+
name: "degree";
|
|
40
|
+
tableName: "educations";
|
|
41
|
+
dataType: "string";
|
|
42
|
+
columnType: "PgEnumColumn";
|
|
43
|
+
data: "HIGH_SCHOOL" | "ASSOCIATES" | "BACHELORS" | "MASTERS" | "DOCTORATE";
|
|
44
|
+
driverParam: string;
|
|
45
|
+
notNull: false;
|
|
46
|
+
hasDefault: false;
|
|
47
|
+
isPrimaryKey: false;
|
|
48
|
+
isAutoincrement: false;
|
|
49
|
+
hasRuntimeDefault: false;
|
|
50
|
+
enumValues: ["HIGH_SCHOOL" | "ASSOCIATES" | "BACHELORS" | "MASTERS" | "DOCTORATE"];
|
|
51
|
+
baseColumn: never;
|
|
52
|
+
identity: undefined;
|
|
53
|
+
generated: undefined;
|
|
54
|
+
}, {}, {}>;
|
|
55
|
+
field: import("drizzle-orm/pg-core").PgColumn<{
|
|
56
|
+
name: "field";
|
|
57
|
+
tableName: "educations";
|
|
58
|
+
dataType: "string";
|
|
59
|
+
columnType: "PgEnumColumn";
|
|
60
|
+
data: "ACCOUNTING" | "BUSINESS" | "LAW" | "ENGINEERING" | "EDUCATION" | "MEDICINE" | "ARCHITECTURE" | "SOCIAL_WORK" | "HUMANITIES" | "NATURAL_SCIENCES" | "SOCIAL_SCIENCES" | "COMPUTER_SCIENCE";
|
|
61
|
+
driverParam: string;
|
|
62
|
+
notNull: false;
|
|
63
|
+
hasDefault: false;
|
|
64
|
+
isPrimaryKey: false;
|
|
65
|
+
isAutoincrement: false;
|
|
66
|
+
hasRuntimeDefault: false;
|
|
67
|
+
enumValues: ["ACCOUNTING" | "BUSINESS" | "LAW" | "ENGINEERING" | "EDUCATION" | "MEDICINE" | "ARCHITECTURE" | "SOCIAL_WORK" | "HUMANITIES" | "NATURAL_SCIENCES" | "SOCIAL_SCIENCES" | "COMPUTER_SCIENCE"];
|
|
68
|
+
baseColumn: never;
|
|
69
|
+
identity: undefined;
|
|
70
|
+
generated: undefined;
|
|
71
|
+
}, {}, {}>;
|
|
72
|
+
school: import("drizzle-orm/pg-core").PgColumn<{
|
|
73
|
+
name: "school";
|
|
74
|
+
tableName: "educations";
|
|
75
|
+
dataType: "string";
|
|
76
|
+
columnType: "PgText";
|
|
77
|
+
data: string;
|
|
78
|
+
driverParam: string;
|
|
79
|
+
notNull: false;
|
|
80
|
+
hasDefault: false;
|
|
81
|
+
isPrimaryKey: false;
|
|
82
|
+
isAutoincrement: false;
|
|
83
|
+
hasRuntimeDefault: false;
|
|
84
|
+
enumValues: [string, ...string[]];
|
|
85
|
+
baseColumn: never;
|
|
86
|
+
identity: undefined;
|
|
87
|
+
generated: undefined;
|
|
88
|
+
}, {}, {}>;
|
|
89
|
+
graduatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
90
|
+
name: "graduatedAt";
|
|
91
|
+
tableName: "educations";
|
|
92
|
+
dataType: "date";
|
|
93
|
+
columnType: "PgTimestamp";
|
|
94
|
+
data: Date;
|
|
95
|
+
driverParam: string;
|
|
96
|
+
notNull: false;
|
|
97
|
+
hasDefault: false;
|
|
98
|
+
isPrimaryKey: false;
|
|
99
|
+
isAutoincrement: false;
|
|
100
|
+
hasRuntimeDefault: false;
|
|
101
|
+
enumValues: undefined;
|
|
102
|
+
baseColumn: never;
|
|
103
|
+
identity: undefined;
|
|
104
|
+
generated: undefined;
|
|
105
|
+
}, {}, {}>;
|
|
106
|
+
}, {
|
|
107
|
+
graduatedAt: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodCoercedDate<unknown>]>>;
|
|
108
|
+
}, undefined>;
|
|
109
|
+
export declare const AdminEducationSelectSchema: import("drizzle-zod").BuildSchema<"select", {
|
|
110
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
111
|
+
name: "id";
|
|
112
|
+
tableName: "educations";
|
|
113
|
+
dataType: "string";
|
|
114
|
+
columnType: "PgUUID";
|
|
115
|
+
data: string;
|
|
116
|
+
driverParam: string;
|
|
117
|
+
notNull: true;
|
|
118
|
+
hasDefault: true;
|
|
119
|
+
isPrimaryKey: true;
|
|
120
|
+
isAutoincrement: false;
|
|
121
|
+
hasRuntimeDefault: false;
|
|
122
|
+
enumValues: undefined;
|
|
123
|
+
baseColumn: never;
|
|
124
|
+
identity: undefined;
|
|
125
|
+
generated: undefined;
|
|
126
|
+
}, {}, {}>;
|
|
127
|
+
personId: import("drizzle-orm/pg-core").PgColumn<{
|
|
128
|
+
name: "personId";
|
|
129
|
+
tableName: "educations";
|
|
130
|
+
dataType: "string";
|
|
131
|
+
columnType: "PgUUID";
|
|
132
|
+
data: string;
|
|
133
|
+
driverParam: string;
|
|
134
|
+
notNull: true;
|
|
135
|
+
hasDefault: false;
|
|
136
|
+
isPrimaryKey: false;
|
|
137
|
+
isAutoincrement: false;
|
|
138
|
+
hasRuntimeDefault: false;
|
|
139
|
+
enumValues: undefined;
|
|
140
|
+
baseColumn: never;
|
|
141
|
+
identity: undefined;
|
|
142
|
+
generated: undefined;
|
|
143
|
+
}, {}, {}>;
|
|
144
|
+
degree: import("drizzle-orm/pg-core").PgColumn<{
|
|
145
|
+
name: "degree";
|
|
146
|
+
tableName: "educations";
|
|
147
|
+
dataType: "string";
|
|
148
|
+
columnType: "PgEnumColumn";
|
|
149
|
+
data: "HIGH_SCHOOL" | "ASSOCIATES" | "BACHELORS" | "MASTERS" | "DOCTORATE";
|
|
150
|
+
driverParam: string;
|
|
151
|
+
notNull: false;
|
|
152
|
+
hasDefault: false;
|
|
153
|
+
isPrimaryKey: false;
|
|
154
|
+
isAutoincrement: false;
|
|
155
|
+
hasRuntimeDefault: false;
|
|
156
|
+
enumValues: ["HIGH_SCHOOL" | "ASSOCIATES" | "BACHELORS" | "MASTERS" | "DOCTORATE"];
|
|
157
|
+
baseColumn: never;
|
|
158
|
+
identity: undefined;
|
|
159
|
+
generated: undefined;
|
|
160
|
+
}, {}, {}>;
|
|
161
|
+
field: import("drizzle-orm/pg-core").PgColumn<{
|
|
162
|
+
name: "field";
|
|
163
|
+
tableName: "educations";
|
|
164
|
+
dataType: "string";
|
|
165
|
+
columnType: "PgEnumColumn";
|
|
166
|
+
data: "ACCOUNTING" | "BUSINESS" | "LAW" | "ENGINEERING" | "EDUCATION" | "MEDICINE" | "ARCHITECTURE" | "SOCIAL_WORK" | "HUMANITIES" | "NATURAL_SCIENCES" | "SOCIAL_SCIENCES" | "COMPUTER_SCIENCE";
|
|
167
|
+
driverParam: string;
|
|
168
|
+
notNull: false;
|
|
169
|
+
hasDefault: false;
|
|
170
|
+
isPrimaryKey: false;
|
|
171
|
+
isAutoincrement: false;
|
|
172
|
+
hasRuntimeDefault: false;
|
|
173
|
+
enumValues: ["ACCOUNTING" | "BUSINESS" | "LAW" | "ENGINEERING" | "EDUCATION" | "MEDICINE" | "ARCHITECTURE" | "SOCIAL_WORK" | "HUMANITIES" | "NATURAL_SCIENCES" | "SOCIAL_SCIENCES" | "COMPUTER_SCIENCE"];
|
|
174
|
+
baseColumn: never;
|
|
175
|
+
identity: undefined;
|
|
176
|
+
generated: undefined;
|
|
177
|
+
}, {}, {}>;
|
|
178
|
+
school: import("drizzle-orm/pg-core").PgColumn<{
|
|
179
|
+
name: "school";
|
|
180
|
+
tableName: "educations";
|
|
181
|
+
dataType: "string";
|
|
182
|
+
columnType: "PgText";
|
|
183
|
+
data: string;
|
|
184
|
+
driverParam: string;
|
|
185
|
+
notNull: false;
|
|
186
|
+
hasDefault: false;
|
|
187
|
+
isPrimaryKey: false;
|
|
188
|
+
isAutoincrement: false;
|
|
189
|
+
hasRuntimeDefault: false;
|
|
190
|
+
enumValues: [string, ...string[]];
|
|
191
|
+
baseColumn: never;
|
|
192
|
+
identity: undefined;
|
|
193
|
+
generated: undefined;
|
|
194
|
+
}, {}, {}>;
|
|
195
|
+
graduatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
196
|
+
name: "graduatedAt";
|
|
197
|
+
tableName: "educations";
|
|
198
|
+
dataType: "date";
|
|
199
|
+
columnType: "PgTimestamp";
|
|
200
|
+
data: Date;
|
|
201
|
+
driverParam: string;
|
|
202
|
+
notNull: false;
|
|
203
|
+
hasDefault: false;
|
|
204
|
+
isPrimaryKey: false;
|
|
205
|
+
isAutoincrement: false;
|
|
206
|
+
hasRuntimeDefault: false;
|
|
207
|
+
enumValues: undefined;
|
|
208
|
+
baseColumn: never;
|
|
209
|
+
identity: undefined;
|
|
210
|
+
generated: undefined;
|
|
211
|
+
}, {}, {}>;
|
|
212
|
+
}, undefined, undefined>;
|
|
213
|
+
export declare const AdminEducationUpdateSchema: import("drizzle-zod").BuildSchema<"update", {
|
|
214
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
215
|
+
name: "id";
|
|
216
|
+
tableName: "educations";
|
|
217
|
+
dataType: "string";
|
|
218
|
+
columnType: "PgUUID";
|
|
219
|
+
data: string;
|
|
220
|
+
driverParam: string;
|
|
221
|
+
notNull: true;
|
|
222
|
+
hasDefault: true;
|
|
223
|
+
isPrimaryKey: true;
|
|
224
|
+
isAutoincrement: false;
|
|
225
|
+
hasRuntimeDefault: false;
|
|
226
|
+
enumValues: undefined;
|
|
227
|
+
baseColumn: never;
|
|
228
|
+
identity: undefined;
|
|
229
|
+
generated: undefined;
|
|
230
|
+
}, {}, {}>;
|
|
231
|
+
personId: import("drizzle-orm/pg-core").PgColumn<{
|
|
232
|
+
name: "personId";
|
|
233
|
+
tableName: "educations";
|
|
234
|
+
dataType: "string";
|
|
235
|
+
columnType: "PgUUID";
|
|
236
|
+
data: string;
|
|
237
|
+
driverParam: string;
|
|
238
|
+
notNull: true;
|
|
239
|
+
hasDefault: false;
|
|
240
|
+
isPrimaryKey: false;
|
|
241
|
+
isAutoincrement: false;
|
|
242
|
+
hasRuntimeDefault: false;
|
|
243
|
+
enumValues: undefined;
|
|
244
|
+
baseColumn: never;
|
|
245
|
+
identity: undefined;
|
|
246
|
+
generated: undefined;
|
|
247
|
+
}, {}, {}>;
|
|
248
|
+
degree: import("drizzle-orm/pg-core").PgColumn<{
|
|
249
|
+
name: "degree";
|
|
250
|
+
tableName: "educations";
|
|
251
|
+
dataType: "string";
|
|
252
|
+
columnType: "PgEnumColumn";
|
|
253
|
+
data: "HIGH_SCHOOL" | "ASSOCIATES" | "BACHELORS" | "MASTERS" | "DOCTORATE";
|
|
254
|
+
driverParam: string;
|
|
255
|
+
notNull: false;
|
|
256
|
+
hasDefault: false;
|
|
257
|
+
isPrimaryKey: false;
|
|
258
|
+
isAutoincrement: false;
|
|
259
|
+
hasRuntimeDefault: false;
|
|
260
|
+
enumValues: ["HIGH_SCHOOL" | "ASSOCIATES" | "BACHELORS" | "MASTERS" | "DOCTORATE"];
|
|
261
|
+
baseColumn: never;
|
|
262
|
+
identity: undefined;
|
|
263
|
+
generated: undefined;
|
|
264
|
+
}, {}, {}>;
|
|
265
|
+
field: import("drizzle-orm/pg-core").PgColumn<{
|
|
266
|
+
name: "field";
|
|
267
|
+
tableName: "educations";
|
|
268
|
+
dataType: "string";
|
|
269
|
+
columnType: "PgEnumColumn";
|
|
270
|
+
data: "ACCOUNTING" | "BUSINESS" | "LAW" | "ENGINEERING" | "EDUCATION" | "MEDICINE" | "ARCHITECTURE" | "SOCIAL_WORK" | "HUMANITIES" | "NATURAL_SCIENCES" | "SOCIAL_SCIENCES" | "COMPUTER_SCIENCE";
|
|
271
|
+
driverParam: string;
|
|
272
|
+
notNull: false;
|
|
273
|
+
hasDefault: false;
|
|
274
|
+
isPrimaryKey: false;
|
|
275
|
+
isAutoincrement: false;
|
|
276
|
+
hasRuntimeDefault: false;
|
|
277
|
+
enumValues: ["ACCOUNTING" | "BUSINESS" | "LAW" | "ENGINEERING" | "EDUCATION" | "MEDICINE" | "ARCHITECTURE" | "SOCIAL_WORK" | "HUMANITIES" | "NATURAL_SCIENCES" | "SOCIAL_SCIENCES" | "COMPUTER_SCIENCE"];
|
|
278
|
+
baseColumn: never;
|
|
279
|
+
identity: undefined;
|
|
280
|
+
generated: undefined;
|
|
281
|
+
}, {}, {}>;
|
|
282
|
+
school: import("drizzle-orm/pg-core").PgColumn<{
|
|
283
|
+
name: "school";
|
|
284
|
+
tableName: "educations";
|
|
285
|
+
dataType: "string";
|
|
286
|
+
columnType: "PgText";
|
|
287
|
+
data: string;
|
|
288
|
+
driverParam: string;
|
|
289
|
+
notNull: false;
|
|
290
|
+
hasDefault: false;
|
|
291
|
+
isPrimaryKey: false;
|
|
292
|
+
isAutoincrement: false;
|
|
293
|
+
hasRuntimeDefault: false;
|
|
294
|
+
enumValues: [string, ...string[]];
|
|
295
|
+
baseColumn: never;
|
|
296
|
+
identity: undefined;
|
|
297
|
+
generated: undefined;
|
|
298
|
+
}, {}, {}>;
|
|
299
|
+
graduatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
300
|
+
name: "graduatedAt";
|
|
301
|
+
tableName: "educations";
|
|
302
|
+
dataType: "date";
|
|
303
|
+
columnType: "PgTimestamp";
|
|
304
|
+
data: Date;
|
|
305
|
+
driverParam: string;
|
|
306
|
+
notNull: false;
|
|
307
|
+
hasDefault: false;
|
|
308
|
+
isPrimaryKey: false;
|
|
309
|
+
isAutoincrement: false;
|
|
310
|
+
hasRuntimeDefault: false;
|
|
311
|
+
enumValues: undefined;
|
|
312
|
+
baseColumn: never;
|
|
313
|
+
identity: undefined;
|
|
314
|
+
generated: undefined;
|
|
315
|
+
}, {}, {}>;
|
|
316
|
+
}, {
|
|
317
|
+
graduatedAt: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodCoercedDate<unknown>]>>;
|
|
318
|
+
}, undefined>;
|
|
319
|
+
export declare const AdminEducationParamsSchema: z.ZodObject<{
|
|
320
|
+
id: z.ZodUUID;
|
|
321
|
+
}, {
|
|
322
|
+
out: {};
|
|
323
|
+
in: {};
|
|
324
|
+
}>;
|
|
325
|
+
export declare const AdminEducationListQuerySchema: z.ZodObject<{
|
|
326
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
327
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
328
|
+
sort: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
329
|
+
filter: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
export declare const AdminEducationUpdateParamsSchema: z.ZodObject<{
|
|
332
|
+
id: z.ZodUUID;
|
|
333
|
+
}, {
|
|
334
|
+
out: {};
|
|
335
|
+
in: {};
|
|
336
|
+
}>;
|
|
337
|
+
export declare const AdminEducationDeleteParamsSchema: z.ZodObject<{
|
|
338
|
+
id: z.ZodUUID;
|
|
339
|
+
}, {
|
|
340
|
+
out: {};
|
|
341
|
+
in: {};
|
|
342
|
+
}>;
|
|
343
|
+
export declare const AdminEducationDeleteByPersonParamsSchema: z.ZodObject<{
|
|
344
|
+
personId: z.ZodUUID;
|
|
345
|
+
}, {
|
|
346
|
+
out: {};
|
|
347
|
+
in: {};
|
|
348
|
+
}>;
|
|
349
|
+
type AdminEducation = z.infer<typeof AdminEducationSelectSchema>;
|
|
350
|
+
export type AdminEducationParams = z.infer<typeof AdminEducationParamsSchema>;
|
|
351
|
+
export type AdminEducationResult = AdminEducation;
|
|
352
|
+
export type AdminEducationListQuery = z.infer<typeof AdminEducationListQuerySchema>;
|
|
353
|
+
export type AdminEducationListResult = ListResponse<z.infer<typeof AdminEducationSelectSchema>>;
|
|
354
|
+
export type AdminEducationCreateInput = z.infer<typeof AdminEducationCreateSchema>;
|
|
355
|
+
export type AdminEducationCreateResult = Pick<AdminEducation, 'id'>;
|
|
356
|
+
export type AdminEducationUpdateParams = z.infer<typeof AdminEducationUpdateParamsSchema>;
|
|
357
|
+
export type AdminEducationUpdateInput = Partial<AdminEducation>;
|
|
358
|
+
export type AdminEducationDeleteParams = z.infer<typeof AdminEducationDeleteParamsSchema>;
|
|
359
|
+
export type AdminEducationDeleteByPersonParams = z.infer<typeof AdminEducationDeleteByPersonParamsSchema>;
|
|
360
|
+
export {};
|
|
361
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"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,QAAA,wCAAwC,GACnD,kCAA0B,CAAC,IAAI,CAAC;IAC9B,QAAQ,EAAE,IAAI;CACf,CAAC,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { education } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\nconst upsertEducationSchema = {\n graduatedAt: z.null().or(z.coerce.date()).optional()\n}\n\n//// validators\n\nexport const AdminEducationCreateSchema = createInsertSchema(\n education,\n upsertEducationSchema\n)\nexport const AdminEducationSelectSchema = createSelectSchema(education)\nexport const AdminEducationUpdateSchema = createUpdateSchema(\n education,\n upsertEducationSchema\n)\n\nexport const AdminEducationParamsSchema = AdminEducationSelectSchema.pick({\n id: true\n})\nexport const AdminEducationListQuerySchema = ListQuerySchema\nexport const AdminEducationUpdateParamsSchema = AdminEducationParamsSchema\nexport const AdminEducationDeleteParamsSchema = AdminEducationParamsSchema\nexport const AdminEducationDeleteByPersonParamsSchema =\n AdminEducationSelectSchema.pick({\n personId: true\n })\n\n//// types\n\ntype AdminEducation = z.infer<typeof AdminEducationSelectSchema>\n\n// detail\nexport type AdminEducationParams = z.infer<typeof AdminEducationParamsSchema>\nexport type AdminEducationResult = AdminEducation\n\n// list\nexport type AdminEducationListQuery = z.infer<\n typeof AdminEducationListQuerySchema\n>\nexport type AdminEducationListResult = ListResponse<\n z.infer<typeof AdminEducationSelectSchema>\n>\n\n// create\nexport type AdminEducationCreateInput = z.infer<\n typeof AdminEducationCreateSchema\n>\nexport type AdminEducationCreateResult = Pick<AdminEducation, 'id'>\n\n// update\nexport type AdminEducationUpdateParams = z.infer<\n typeof AdminEducationUpdateParamsSchema\n>\nexport type AdminEducationUpdateInput = Partial<AdminEducation>\n\n// delete\nexport type AdminEducationDeleteParams = z.infer<\n typeof AdminEducationDeleteParamsSchema\n>\nexport type AdminEducationDeleteByPersonParams = z.infer<\n typeof AdminEducationDeleteByPersonParamsSchema\n>\n"]}
|