@the-inkwell/shared 0.2.276 → 0.2.278

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.
@@ -35,3 +35,4 @@ export * from './todos';
35
35
  export * from './websiteLandingPages';
36
36
  export * from './websiteStaticPages';
37
37
  export * from './flodesk';
38
+ export * from './search';
@@ -51,4 +51,5 @@ __exportStar(require("./todos"), exports);
51
51
  __exportStar(require("./websiteLandingPages"), exports);
52
52
  __exportStar(require("./websiteStaticPages"), exports);
53
53
  __exportStar(require("./flodesk"), exports);
54
+ __exportStar(require("./search"), exports);
54
55
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,iDAA8B;AAC9B,8CAA2B;AAC3B,gDAA6B;AAC7B,4CAAyB;AACzB,8CAA2B;AAC3B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,0CAAuB;AACvB,iDAA8B;AAC9B,8CAA2B;AAC3B,4CAAyB;AACzB,6CAA0B;AAC1B,0CAAuB;AACvB,6CAA0B;AAC1B,4CAAyB;AACzB,yDAAsC;AACtC,sDAAmC;AACnC,gEAA6C;AAC7C,oDAAiC;AACjC,kDAA+B;AAC/B,8CAA2B;AAC3B,sDAAmC;AACnC,oDAAiC;AACjC,8CAA2B;AAC3B,qDAAkC;AAClC,wDAAqC;AACrC,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,2CAAwB;AACxB,yCAAsB;AACtB,0CAAuB;AACvB,wDAAqC;AACrC,uDAAoC;AACpC,4CAAyB","sourcesContent":["export * from './actions'\nexport * from './bulkMessages'\nexport * from './campaigns'\nexport * from './candidacies'\nexport * from './clients'\nexport * from './dashboard'\nexport * from './educations'\nexport * from './embeddings'\nexport * from './experiences'\nexport * from './files'\nexport * from './jobFunctions'\nexport * from './locations'\nexport * from './matches'\nexport * from './messages'\nexport * from './notes'\nexport * from './partners'\nexport * from './persons'\nexport * from './personsToBestPersons'\nexport * from './personsToNetworks'\nexport * from './personsToProfessionalEvents'\nexport * from './personsToSkills'\nexport * from './personsToTags'\nexport * from './positions'\nexport * from './positionsToSkills'\nexport * from './positionsToTags'\nexport * from './referrals'\nexport * from './referralsPayouts'\nexport * from './referralsToMessages'\nexport * from './senders'\nexport * from './sendgrid'\nexport * from './settings'\nexport * from './skills'\nexport * from './tags'\nexport * from './todos'\nexport * from './websiteLandingPages'\nexport * from './websiteStaticPages'\nexport * from './flodesk'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,iDAA8B;AAC9B,8CAA2B;AAC3B,gDAA6B;AAC7B,4CAAyB;AACzB,8CAA2B;AAC3B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,0CAAuB;AACvB,iDAA8B;AAC9B,8CAA2B;AAC3B,4CAAyB;AACzB,6CAA0B;AAC1B,0CAAuB;AACvB,6CAA0B;AAC1B,4CAAyB;AACzB,yDAAsC;AACtC,sDAAmC;AACnC,gEAA6C;AAC7C,oDAAiC;AACjC,kDAA+B;AAC/B,8CAA2B;AAC3B,sDAAmC;AACnC,oDAAiC;AACjC,8CAA2B;AAC3B,qDAAkC;AAClC,wDAAqC;AACrC,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,2CAAwB;AACxB,yCAAsB;AACtB,0CAAuB;AACvB,wDAAqC;AACrC,uDAAoC;AACpC,4CAAyB;AACzB,2CAAwB","sourcesContent":["export * from './actions'\nexport * from './bulkMessages'\nexport * from './campaigns'\nexport * from './candidacies'\nexport * from './clients'\nexport * from './dashboard'\nexport * from './educations'\nexport * from './embeddings'\nexport * from './experiences'\nexport * from './files'\nexport * from './jobFunctions'\nexport * from './locations'\nexport * from './matches'\nexport * from './messages'\nexport * from './notes'\nexport * from './partners'\nexport * from './persons'\nexport * from './personsToBestPersons'\nexport * from './personsToNetworks'\nexport * from './personsToProfessionalEvents'\nexport * from './personsToSkills'\nexport * from './personsToTags'\nexport * from './positions'\nexport * from './positionsToSkills'\nexport * from './positionsToTags'\nexport * from './referrals'\nexport * from './referralsPayouts'\nexport * from './referralsToMessages'\nexport * from './senders'\nexport * from './sendgrid'\nexport * from './settings'\nexport * from './skills'\nexport * from './tags'\nexport * from './todos'\nexport * from './websiteLandingPages'\nexport * from './websiteStaticPages'\nexport * from './flodesk'\nexport * from './search'\n"]}
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod/v4';
2
+ declare const AutoCompleteQuerySchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ }, z.core.$strip>;
5
+ declare const AdminSearchQuerySchema: z.ZodObject<{
6
+ industries: z.ZodArray<z.ZodString>;
7
+ jobFunctions: z.ZodArray<z.ZodString>;
8
+ skills: z.ZodArray<z.ZodString>;
9
+ tags: z.ZodArray<z.ZodString>;
10
+ jobTitles: z.ZodArray<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ export declare const AdminAutoCompleteResponseSchema: z.ZodObject<{
13
+ industries: z.ZodArray<z.ZodString>;
14
+ tags: z.ZodArray<z.ZodString>;
15
+ skills: z.ZodArray<z.ZodString>;
16
+ jobFunctions: z.ZodArray<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ export declare const AdminSearchSchema: z.ZodObject<{
19
+ name: z.ZodString;
20
+ }, z.core.$strip>;
21
+ export type AdminAutoCompleteResponse = z.infer<typeof AdminAutoCompleteResponseSchema>;
22
+ export type AutoCompleteQuery = z.infer<typeof AutoCompleteQuerySchema>;
23
+ export type AdminSearchQuery = z.infer<typeof AdminSearchQuerySchema>;
24
+ export {};
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminSearchSchema = exports.AdminAutoCompleteResponseSchema = void 0;
4
+ const v4_1 = require("zod/v4");
5
+ const AutoCompleteQuerySchema = v4_1.z.object({
6
+ name: v4_1.z.string()
7
+ });
8
+ const AdminSearchQuerySchema = v4_1.z.object({
9
+ industries: v4_1.z.array(v4_1.z.string()),
10
+ jobFunctions: v4_1.z.array(v4_1.z.string()),
11
+ skills: v4_1.z.array(v4_1.z.string()),
12
+ tags: v4_1.z.array(v4_1.z.string()),
13
+ jobTitles: v4_1.z.array(v4_1.z.string())
14
+ });
15
+ exports.AdminAutoCompleteResponseSchema = AdminSearchQuerySchema.omit({
16
+ jobTitles: true
17
+ });
18
+ exports.AdminSearchSchema = v4_1.z.object({
19
+ name: v4_1.z.string()
20
+ });
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/search/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAE1B,MAAM,uBAAuB,GAAG,MAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAAG,MAAC,CAAC,MAAM,CAAC;IACtC,UAAU,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,YAAY,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;IACjC,MAAM,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,IAAI,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAA;AAEW,QAAA,+BAA+B,GAAG,sBAAsB,CAAC,IAAI,CAAC;IACzE,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA;AAEW,QAAA,iBAAiB,GAAG,MAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\n\nconst AutoCompleteQuerySchema = z.object({\n name: z.string()\n})\n\nconst AdminSearchQuerySchema = z.object({\n industries: z.array(z.string()),\n jobFunctions: z.array(z.string()),\n skills: z.array(z.string()),\n tags: z.array(z.string()),\n jobTitles: z.array(z.string())\n})\n\nexport const AdminAutoCompleteResponseSchema = AdminSearchQuerySchema.omit({\n jobTitles: true\n})\n\nexport const AdminSearchSchema = z.object({\n name: z.string()\n})\n\nexport type AdminAutoCompleteResponse = z.infer<\n typeof AdminAutoCompleteResponseSchema\n>\nexport type AutoCompleteQuery = z.infer<typeof AutoCompleteQuerySchema>\nexport type AdminSearchQuery = z.infer<typeof AdminSearchQuerySchema>\n"]}
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const PublicClientSelectSchema: z.ZodObject<{
3
+ positions: z.ZodArray<z.ZodObject<{
4
+ candidacies: z.ZodArray<z.ZodObject<{
5
+ person: z.ZodObject<{
6
+ fullName: z.ZodNullable<z.ZodString>;
7
+ }, {
8
+ out: {};
9
+ in: {};
10
+ }>;
11
+ createdAt: z.ZodString;
12
+ }, z.core.$strict>>;
13
+ name: z.ZodString;
14
+ idNano: z.ZodString;
15
+ }, z.core.$strict>>;
16
+ idNano: z.ZodString;
17
+ }, z.core.$strict>;
18
+ type PublicClient = z.infer<typeof PublicClientSelectSchema>;
19
+ export type PublicClientResult = PublicClient;
20
+ export {};
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PublicClientSelectSchema = void 0;
4
+ const drizzle_zod_1 = require("drizzle-zod");
5
+ const core_1 = require("../../core");
6
+ const v4_1 = require("zod/v4");
7
+ //// validators
8
+ const CandidacySchema = v4_1.z.strictObject({
9
+ person: (0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
10
+ fullName: true
11
+ }),
12
+ createdAt: v4_1.z.string()
13
+ });
14
+ exports.PublicClientSelectSchema = v4_1.z.strictObject({
15
+ ...(0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
16
+ idNano: true
17
+ }).shape,
18
+ positions: v4_1.z.array(v4_1.z.strictObject({
19
+ ...(0, drizzle_zod_1.createSelectSchema)(core_1.position).pick({
20
+ idNano: true,
21
+ name: true
22
+ }).shape,
23
+ candidacies: v4_1.z.array(CandidacySchema)
24
+ }))
25
+ });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/client/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAA6C;AAC7C,+BAA0B;AAE1B,eAAe;AAEf,MAAM,eAAe,GAAG,MAAC,CAAC,YAAY,CAAC;IACrC,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACtC,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,SAAS,EAAE,MAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;AAEW,QAAA,wBAAwB,GAAG,MAAC,CAAC,YAAY,CAAC;IACrD,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACjC,MAAM,EAAE,IAAI;KACb,CAAC,CAAC,KAAK;IACR,SAAS,EAAE,MAAC,CAAC,KAAK,CAChB,MAAC,CAAC,YAAY,CAAC;QACb,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAC,IAAI,CAAC;YACnC,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,IAAI;SACX,CAAC,CAAC,KAAK;QACR,WAAW,EAAE,MAAC,CAAC,KAAK,CAAC,eAAe,CAAC;KACtC,CAAC,CACH;CACF,CAAC,CAAA","sourcesContent":["import { createSelectSchema } from 'drizzle-zod'\nimport { person, position } from '../../core'\nimport { z } from 'zod/v4'\n\n//// validators\n\nconst CandidacySchema = z.strictObject({\n person: createSelectSchema(person).pick({\n fullName: true\n }),\n createdAt: z.string()\n})\n\nexport const PublicClientSelectSchema = z.strictObject({\n ...createSelectSchema(person).pick({\n idNano: true\n }).shape,\n positions: z.array(\n z.strictObject({\n ...createSelectSchema(position).pick({\n idNano: true,\n name: true\n }).shape,\n candidacies: z.array(CandidacySchema)\n })\n )\n})\n\n//// types\n\ntype PublicClient = z.infer<typeof PublicClientSelectSchema>\n\n// detail\nexport type PublicClientResult = PublicClient\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.276",
3
+ "version": "0.2.278",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -1,321 +0,0 @@
1
- import { type ListResponse } from '../../../utils';
2
- import { z } from 'zod/v4';
3
- export declare const AdminReferralPayoutCreateSchema: import("drizzle-zod").BuildSchema<"insert", {
4
- id: import("drizzle-orm/pg-core").PgColumn<{
5
- name: "id";
6
- tableName: "referral_payouts";
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
- referralId: import("drizzle-orm/pg-core").PgColumn<{
22
- name: "referralId";
23
- tableName: "referral_payouts";
24
- dataType: "string";
25
- columnType: "PgUUID";
26
- data: string;
27
- driverParam: string;
28
- notNull: false;
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
- paidAt: import("drizzle-orm/pg-core").PgColumn<{
39
- name: "paidAt";
40
- tableName: "referral_payouts";
41
- dataType: "date";
42
- columnType: "PgTimestamp";
43
- data: Date;
44
- driverParam: string;
45
- notNull: false;
46
- hasDefault: false;
47
- isPrimaryKey: false;
48
- isAutoincrement: false;
49
- hasRuntimeDefault: false;
50
- enumValues: undefined;
51
- baseColumn: never;
52
- identity: undefined;
53
- generated: undefined;
54
- }, {}, {}>;
55
- amount: import("drizzle-orm/pg-core").PgColumn<{
56
- name: "amount";
57
- tableName: "referral_payouts";
58
- dataType: "number";
59
- columnType: "PgInteger";
60
- data: number;
61
- driverParam: string | number;
62
- notNull: false;
63
- hasDefault: false;
64
- isPrimaryKey: false;
65
- isAutoincrement: false;
66
- hasRuntimeDefault: false;
67
- enumValues: undefined;
68
- baseColumn: never;
69
- identity: undefined;
70
- generated: undefined;
71
- }, {}, {}>;
72
- reason: import("drizzle-orm/pg-core").PgColumn<{
73
- name: "reason";
74
- tableName: "referral_payouts";
75
- dataType: "string";
76
- columnType: "PgEnumColumn";
77
- data: "INTERVIEW" | "PLACEMENT";
78
- driverParam: string;
79
- notNull: false;
80
- hasDefault: false;
81
- isPrimaryKey: false;
82
- isAutoincrement: false;
83
- hasRuntimeDefault: false;
84
- enumValues: ["INTERVIEW" | "PLACEMENT"];
85
- baseColumn: never;
86
- identity: undefined;
87
- generated: undefined;
88
- }, {}, {}>;
89
- }, undefined, undefined>;
90
- export declare const AdminReferralPayoutSelectSchema: import("drizzle-zod").BuildSchema<"select", {
91
- id: import("drizzle-orm/pg-core").PgColumn<{
92
- name: "id";
93
- tableName: "referral_payouts";
94
- dataType: "string";
95
- columnType: "PgUUID";
96
- data: string;
97
- driverParam: string;
98
- notNull: true;
99
- hasDefault: true;
100
- isPrimaryKey: true;
101
- isAutoincrement: false;
102
- hasRuntimeDefault: false;
103
- enumValues: undefined;
104
- baseColumn: never;
105
- identity: undefined;
106
- generated: undefined;
107
- }, {}, {}>;
108
- referralId: import("drizzle-orm/pg-core").PgColumn<{
109
- name: "referralId";
110
- tableName: "referral_payouts";
111
- dataType: "string";
112
- columnType: "PgUUID";
113
- data: string;
114
- driverParam: string;
115
- notNull: false;
116
- hasDefault: false;
117
- isPrimaryKey: false;
118
- isAutoincrement: false;
119
- hasRuntimeDefault: false;
120
- enumValues: undefined;
121
- baseColumn: never;
122
- identity: undefined;
123
- generated: undefined;
124
- }, {}, {}>;
125
- paidAt: import("drizzle-orm/pg-core").PgColumn<{
126
- name: "paidAt";
127
- tableName: "referral_payouts";
128
- dataType: "date";
129
- columnType: "PgTimestamp";
130
- data: Date;
131
- driverParam: string;
132
- notNull: false;
133
- hasDefault: false;
134
- isPrimaryKey: false;
135
- isAutoincrement: false;
136
- hasRuntimeDefault: false;
137
- enumValues: undefined;
138
- baseColumn: never;
139
- identity: undefined;
140
- generated: undefined;
141
- }, {}, {}>;
142
- amount: import("drizzle-orm/pg-core").PgColumn<{
143
- name: "amount";
144
- tableName: "referral_payouts";
145
- dataType: "number";
146
- columnType: "PgInteger";
147
- data: number;
148
- driverParam: string | number;
149
- notNull: false;
150
- hasDefault: false;
151
- isPrimaryKey: false;
152
- isAutoincrement: false;
153
- hasRuntimeDefault: false;
154
- enumValues: undefined;
155
- baseColumn: never;
156
- identity: undefined;
157
- generated: undefined;
158
- }, {}, {}>;
159
- reason: import("drizzle-orm/pg-core").PgColumn<{
160
- name: "reason";
161
- tableName: "referral_payouts";
162
- dataType: "string";
163
- columnType: "PgEnumColumn";
164
- data: "INTERVIEW" | "PLACEMENT";
165
- driverParam: string;
166
- notNull: false;
167
- hasDefault: false;
168
- isPrimaryKey: false;
169
- isAutoincrement: false;
170
- hasRuntimeDefault: false;
171
- enumValues: ["INTERVIEW" | "PLACEMENT"];
172
- baseColumn: never;
173
- identity: undefined;
174
- generated: undefined;
175
- }, {}, {}>;
176
- }, undefined, undefined>;
177
- export declare const AdminReferralPayoutUpdateSchema: import("drizzle-zod").BuildSchema<"update", {
178
- id: import("drizzle-orm/pg-core").PgColumn<{
179
- name: "id";
180
- tableName: "referral_payouts";
181
- dataType: "string";
182
- columnType: "PgUUID";
183
- data: string;
184
- driverParam: string;
185
- notNull: true;
186
- hasDefault: true;
187
- isPrimaryKey: true;
188
- isAutoincrement: false;
189
- hasRuntimeDefault: false;
190
- enumValues: undefined;
191
- baseColumn: never;
192
- identity: undefined;
193
- generated: undefined;
194
- }, {}, {}>;
195
- referralId: import("drizzle-orm/pg-core").PgColumn<{
196
- name: "referralId";
197
- tableName: "referral_payouts";
198
- dataType: "string";
199
- columnType: "PgUUID";
200
- data: string;
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
- paidAt: import("drizzle-orm/pg-core").PgColumn<{
213
- name: "paidAt";
214
- tableName: "referral_payouts";
215
- dataType: "date";
216
- columnType: "PgTimestamp";
217
- data: Date;
218
- driverParam: string;
219
- notNull: false;
220
- hasDefault: false;
221
- isPrimaryKey: false;
222
- isAutoincrement: false;
223
- hasRuntimeDefault: false;
224
- enumValues: undefined;
225
- baseColumn: never;
226
- identity: undefined;
227
- generated: undefined;
228
- }, {}, {}>;
229
- amount: import("drizzle-orm/pg-core").PgColumn<{
230
- name: "amount";
231
- tableName: "referral_payouts";
232
- dataType: "number";
233
- columnType: "PgInteger";
234
- data: number;
235
- driverParam: string | number;
236
- notNull: false;
237
- hasDefault: false;
238
- isPrimaryKey: false;
239
- isAutoincrement: false;
240
- hasRuntimeDefault: false;
241
- enumValues: undefined;
242
- baseColumn: never;
243
- identity: undefined;
244
- generated: undefined;
245
- }, {}, {}>;
246
- reason: import("drizzle-orm/pg-core").PgColumn<{
247
- name: "reason";
248
- tableName: "referral_payouts";
249
- dataType: "string";
250
- columnType: "PgEnumColumn";
251
- data: "INTERVIEW" | "PLACEMENT";
252
- driverParam: string;
253
- notNull: false;
254
- hasDefault: false;
255
- isPrimaryKey: false;
256
- isAutoincrement: false;
257
- hasRuntimeDefault: false;
258
- enumValues: ["INTERVIEW" | "PLACEMENT"];
259
- baseColumn: never;
260
- identity: undefined;
261
- generated: undefined;
262
- }, {}, {}>;
263
- }, undefined, undefined>;
264
- export declare const AdminReferralPayoutParamsSchema: z.ZodObject<{
265
- referralId: z.ZodNullable<z.ZodUUID>;
266
- reason: z.ZodNullable<z.ZodEnum<{
267
- INTERVIEW: "INTERVIEW";
268
- PLACEMENT: "PLACEMENT";
269
- }>>;
270
- paidAt: z.ZodNullable<z.ZodDate>;
271
- amount: z.ZodNullable<z.ZodInt>;
272
- }, {
273
- out: {};
274
- in: {};
275
- }>;
276
- export declare const AdminReferralPayoutListQuerySchema: z.ZodObject<{
277
- limit: z.ZodOptional<z.ZodNumber>;
278
- offset: z.ZodOptional<z.ZodNumber>;
279
- sort: z.ZodOptional<z.ZodObject<{
280
- field: z.ZodString;
281
- direction: z.ZodEnum<{
282
- asc: "asc";
283
- desc: "desc";
284
- }>;
285
- }, z.core.$strip>>;
286
- filter: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
287
- }, z.core.$strip>;
288
- export declare const AdminReferralPayoutUpdateParamsSchema: z.ZodObject<{
289
- referralId: z.ZodNullable<z.ZodUUID>;
290
- reason: z.ZodNullable<z.ZodEnum<{
291
- INTERVIEW: "INTERVIEW";
292
- PLACEMENT: "PLACEMENT";
293
- }>>;
294
- paidAt: z.ZodNullable<z.ZodDate>;
295
- amount: z.ZodNullable<z.ZodInt>;
296
- }, {
297
- out: {};
298
- in: {};
299
- }>;
300
- export declare const AdminReferralPayoutDeleteParamsSchema: z.ZodObject<{
301
- referralId: z.ZodNullable<z.ZodUUID>;
302
- reason: z.ZodNullable<z.ZodEnum<{
303
- INTERVIEW: "INTERVIEW";
304
- PLACEMENT: "PLACEMENT";
305
- }>>;
306
- paidAt: z.ZodNullable<z.ZodDate>;
307
- amount: z.ZodNullable<z.ZodInt>;
308
- }, {
309
- out: {};
310
- in: {};
311
- }>;
312
- type AdminReferralPayout = z.infer<typeof AdminReferralPayoutSelectSchema>;
313
- export type AdminReferralPayoutParams = z.infer<typeof AdminReferralPayoutParamsSchema>;
314
- export type AdminReferralPayoutResult = AdminReferralPayout;
315
- export type AdminReferralPayoutListQuery = z.infer<typeof AdminReferralPayoutListQuerySchema>;
316
- export type AdminReferralPayoutListResult = ListResponse<z.infer<typeof AdminReferralPayoutSelectSchema>>;
317
- export type AdminReferralPayoutCreateInput = z.infer<typeof AdminReferralPayoutCreateSchema>;
318
- export type AdminReferralPayoutUpdateParams = z.infer<typeof AdminReferralPayoutUpdateParamsSchema>;
319
- export type AdminReferralPayoutUpdateInput = Partial<AdminReferralPayout>;
320
- export type AdminReferralPayoutDeleteParams = z.infer<typeof AdminReferralPayoutDeleteParamsSchema>;
321
- export {};
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdminReferralPayoutDeleteParamsSchema = exports.AdminReferralPayoutUpdateParamsSchema = exports.AdminReferralPayoutListQuerySchema = exports.AdminReferralPayoutParamsSchema = exports.AdminReferralPayoutUpdateSchema = exports.AdminReferralPayoutSelectSchema = exports.AdminReferralPayoutCreateSchema = void 0;
4
- const drizzle_zod_1 = require("drizzle-zod");
5
- const core_1 = require("../../core");
6
- const utils_1 = require("../../../utils");
7
- const defaultParams = {
8
- referralId: true,
9
- amount: true,
10
- paidAt: true,
11
- reason: true
12
- };
13
- //// validators
14
- exports.AdminReferralPayoutCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.referralPayout);
15
- exports.AdminReferralPayoutSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.referralPayout);
16
- exports.AdminReferralPayoutUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.referralPayout);
17
- exports.AdminReferralPayoutParamsSchema = exports.AdminReferralPayoutSelectSchema.pick(defaultParams);
18
- exports.AdminReferralPayoutListQuerySchema = utils_1.ListQuerySchema;
19
- exports.AdminReferralPayoutUpdateParamsSchema = exports.AdminReferralPayoutParamsSchema.pick(defaultParams);
20
- exports.AdminReferralPayoutDeleteParamsSchema = exports.AdminReferralPayoutParamsSchema.pick(defaultParams);
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/referralPayouts/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAA2C;AAC3C,0CAAmE;AAGnE,MAAM,aAAa,GAAG;IACpB,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;CACJ,CAAA;AAEV,eAAe;AAEF,QAAA,+BAA+B,GAC1C,IAAA,gCAAkB,EAAC,qBAAc,CAAC,CAAA;AACvB,QAAA,+BAA+B,GAC1C,IAAA,gCAAkB,EAAC,qBAAc,CAAC,CAAA;AACvB,QAAA,+BAA+B,GAC1C,IAAA,gCAAkB,EAAC,qBAAc,CAAC,CAAA;AAEvB,QAAA,+BAA+B,GAC1C,uCAA+B,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;AACxC,QAAA,kCAAkC,GAAG,uBAAe,CAAA;AACpD,QAAA,qCAAqC,GAChD,uCAA+B,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;AACxC,QAAA,qCAAqC,GAChD,uCAA+B,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { referralPayout } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\nconst defaultParams = {\n referralId: true,\n amount: true,\n paidAt: true,\n reason: true\n} as const\n\n//// validators\n\nexport const AdminReferralPayoutCreateSchema =\n createInsertSchema(referralPayout)\nexport const AdminReferralPayoutSelectSchema =\n createSelectSchema(referralPayout)\nexport const AdminReferralPayoutUpdateSchema =\n createUpdateSchema(referralPayout)\n\nexport const AdminReferralPayoutParamsSchema =\n AdminReferralPayoutSelectSchema.pick(defaultParams)\nexport const AdminReferralPayoutListQuerySchema = ListQuerySchema\nexport const AdminReferralPayoutUpdateParamsSchema =\n AdminReferralPayoutParamsSchema.pick(defaultParams)\nexport const AdminReferralPayoutDeleteParamsSchema =\n AdminReferralPayoutParamsSchema.pick(defaultParams)\n\n//// types\n\ntype AdminReferralPayout = z.infer<typeof AdminReferralPayoutSelectSchema>\n\n// detail\nexport type AdminReferralPayoutParams = z.infer<\n typeof AdminReferralPayoutParamsSchema\n>\nexport type AdminReferralPayoutResult = AdminReferralPayout\n\n// list\nexport type AdminReferralPayoutListQuery = z.infer<\n typeof AdminReferralPayoutListQuerySchema\n>\nexport type AdminReferralPayoutListResult = ListResponse<\n z.infer<typeof AdminReferralPayoutSelectSchema>\n>\n\n// create\nexport type AdminReferralPayoutCreateInput = z.infer<\n typeof AdminReferralPayoutCreateSchema\n>\n\n// update\nexport type AdminReferralPayoutUpdateParams = z.infer<\n typeof AdminReferralPayoutUpdateParamsSchema\n>\nexport type AdminReferralPayoutUpdateInput = Partial<AdminReferralPayout>\n\n// delete\nexport type AdminReferralPayoutDeleteParams = z.infer<\n typeof AdminReferralPayoutDeleteParamsSchema\n>\n"]}
@@ -1,72 +0,0 @@
1
- import { z } from 'zod/v4';
2
- import { ListResponse } from '../../../utils';
3
- export declare const PublicAccountSelectSchema: z.ZodObject<{
4
- email: z.ZodString;
5
- idNano: z.ZodString;
6
- firstName: z.ZodNullable<z.ZodString>;
7
- lastName: z.ZodNullable<z.ZodString>;
8
- phone: z.ZodNullable<z.ZodString>;
9
- }, {
10
- out: {};
11
- in: {};
12
- }>;
13
- export declare const PublicAccountUpdateSchema: z.ZodObject<{
14
- email: z.ZodEmail;
15
- firstName: z.ZodString;
16
- lastName: z.ZodString;
17
- phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
18
- }, z.core.$strict>;
19
- export declare const PublicAccountReferralSelectSchema: z.ZodObject<{
20
- person: z.ZodOptional<z.ZodObject<{
21
- wasHired: z.ZodOptional<z.ZodBoolean>;
22
- firstName: z.ZodNullable<z.ZodString>;
23
- lastName: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strict>>;
25
- client: z.ZodOptional<z.ZodObject<{
26
- hasHired: z.ZodOptional<z.ZodBoolean>;
27
- name: z.ZodString;
28
- }, z.core.$strict>>;
29
- position: z.ZodOptional<z.ZodObject<{
30
- client: z.ZodOptional<z.ZodObject<{
31
- name: z.ZodString;
32
- }, {
33
- out: {};
34
- in: {};
35
- }>>;
36
- candidacy: z.ZodOptional<z.ZodObject<{
37
- person: z.ZodObject<{
38
- firstName: z.ZodNullable<z.ZodString>;
39
- lastName: z.ZodNullable<z.ZodString>;
40
- }, z.core.$strict>;
41
- stage: z.ZodString;
42
- }, z.core.$strict>>;
43
- name: z.ZodString;
44
- }, z.core.$strict>>;
45
- createdAt: z.ZodDate;
46
- referralType: z.ZodNullable<z.ZodEnum<{
47
- CLIENT: "CLIENT";
48
- PERSON: "PERSON";
49
- CANDIDACY: "CANDIDACY";
50
- }>>;
51
- }, z.core.$strict>;
52
- export declare const PublicAccountApplicationSelectSchema: z.ZodObject<{
53
- client: z.ZodOptional<z.ZodObject<{
54
- name: z.ZodString;
55
- }, {
56
- out: {};
57
- in: {};
58
- }>>;
59
- position: z.ZodObject<{
60
- name: z.ZodString;
61
- }, {
62
- out: {};
63
- in: {};
64
- }>;
65
- candidacy: {
66
- stage: z.ZodString;
67
- };
68
- }, z.core.$strict>;
69
- export type PublicAccountResult = z.infer<typeof PublicAccountSelectSchema>;
70
- export type PublicAccountUpdateInput = z.infer<typeof PublicAccountUpdateSchema>;
71
- export type PublicAccountReferralListResult = ListResponse<z.infer<typeof PublicAccountReferralSelectSchema>>;
72
- export type PublicAccountApplicationListResult = ListResponse<z.infer<typeof PublicAccountApplicationSelectSchema>>;
@@ -1,88 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PublicAccountApplicationSelectSchema = exports.PublicAccountReferralSelectSchema = exports.PublicAccountUpdateSchema = exports.PublicAccountSelectSchema = void 0;
4
- const drizzle_zod_1 = require("drizzle-zod");
5
- const core_1 = require("../../core");
6
- const v4_1 = require("zod/v4");
7
- const utils_1 = require("../../../utils");
8
- //// validators
9
- exports.PublicAccountSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
10
- idNano: true,
11
- firstName: true,
12
- lastName: true,
13
- email: true,
14
- phone: true
15
- });
16
- exports.PublicAccountUpdateSchema = v4_1.z.strictObject({
17
- ...(0, drizzle_zod_1.createUpdateSchema)(core_1.person, {
18
- firstName: utils_1.PersonFirstNameSchema,
19
- lastName: utils_1.PersonLastNameSchema,
20
- phone: utils_1.OptionalPhoneSchema,
21
- email: utils_1.EmailSchema
22
- }).pick({
23
- firstName: true,
24
- lastName: true,
25
- phone: true,
26
- email: true
27
- }).shape
28
- });
29
- exports.PublicAccountReferralSelectSchema = v4_1.z.strictObject({
30
- ...(0, drizzle_zod_1.createSelectSchema)(core_1.referral).pick({
31
- referralType: true,
32
- createdAt: true
33
- }).shape,
34
- person: v4_1.z
35
- .strictObject({
36
- ...(0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
37
- firstName: true,
38
- lastName: true
39
- }).shape,
40
- wasHired: v4_1.z.boolean().optional()
41
- })
42
- .optional(),
43
- client: v4_1.z
44
- .strictObject({
45
- ...(0, drizzle_zod_1.createSelectSchema)(core_1.client).pick({
46
- name: true
47
- }).shape,
48
- hasHired: v4_1.z.boolean().optional()
49
- })
50
- .optional(),
51
- position: v4_1.z
52
- .strictObject({
53
- ...(0, drizzle_zod_1.createSelectSchema)(core_1.position).pick({
54
- name: true
55
- }).shape,
56
- client: (0, drizzle_zod_1.createSelectSchema)(core_1.client)
57
- .pick({
58
- name: true
59
- })
60
- .optional(),
61
- candidacy: v4_1.z
62
- .strictObject({
63
- person: v4_1.z.strictObject({
64
- ...(0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
65
- firstName: true,
66
- lastName: true
67
- }).shape
68
- }),
69
- stage: v4_1.z.string()
70
- })
71
- .optional()
72
- })
73
- .optional()
74
- });
75
- exports.PublicAccountApplicationSelectSchema = v4_1.z.strictObject({
76
- client: (0, drizzle_zod_1.createSelectSchema)(core_1.client)
77
- .pick({
78
- name: true
79
- })
80
- .optional(),
81
- position: (0, drizzle_zod_1.createSelectSchema)(core_1.position).pick({
82
- name: true
83
- }),
84
- candidacy: {
85
- stage: v4_1.z.string()
86
- }
87
- });
88
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/account/index.ts"],"names":[],"mappings":";;;AAAA,6CAAoE;AACpE,qCAA+D;AAC/D,+BAA0B;AAC1B,0CAMuB;AAEvB,eAAe;AAEF,QAAA,yBAAyB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;IACvE,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;CACZ,CAAC,CAAA;AAEW,QAAA,yBAAyB,GAAG,MAAC,CAAC,YAAY,CAAC;IACtD,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;QAC5B,SAAS,EAAE,6BAAqB;QAChC,QAAQ,EAAE,4BAAoB;QAC9B,KAAK,EAAE,2BAAmB;QAC1B,KAAK,EAAE,mBAAW;KACnB,CAAC,CAAC,IAAI,CAAC;QACN,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC,KAAK;CACT,CAAC,CAAA;AAEW,QAAA,iCAAiC,GAAG,MAAC,CAAC,YAAY,CAAC;IAC9D,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAC,IAAI,CAAC;QACnC,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC,KAAK;IACR,MAAM,EAAE,MAAC;SACN,YAAY,CAAC;QACZ,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;YACjC,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC,KAAK;QACR,QAAQ,EAAE,MAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC;SACD,QAAQ,EAAE;IACb,MAAM,EAAE,MAAC;SACN,YAAY,CAAC;QACZ,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;YACjC,IAAI,EAAE,IAAI;SACX,CAAC,CAAC,KAAK;QACR,QAAQ,EAAE,MAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC;SACD,QAAQ,EAAE;IACb,QAAQ,EAAE,MAAC;SACR,YAAY,CAAC;QACZ,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAC,IAAI,CAAC;YACnC,IAAI,EAAE,IAAI;SACX,CAAC,CAAC,KAAK;QACR,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC;aAC/B,IAAI,CAAC;YACJ,IAAI,EAAE,IAAI;SACX,CAAC;aACD,QAAQ,EAAE;QACb,SAAS,EAAE,MAAC;aACT,YAAY,CAAC;YACZ,MAAM,EAAE,MAAC,CAAC,YAAY,CAAC;gBACrB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;oBACjC,SAAS,EAAE,IAAI;oBACf,QAAQ,EAAE,IAAI;iBACf,CAAC,CAAC,KAAK;aACT,CAAC;YACF,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;SAClB,CAAC;aACD,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AAEW,QAAA,oCAAoC,GAAG,MAAC,CAAC,YAAY,CAAC;IACjE,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC;SAC/B,IAAI,CAAC;QACJ,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;IACb,QAAQ,EAAE,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAC,IAAI,CAAC;QAC1C,IAAI,EAAE,IAAI;KACX,CAAC;IACF,SAAS,EAAE;QACT,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;KAClB;CACF,CAAC,CAAA","sourcesContent":["import { createSelectSchema, createUpdateSchema } from 'drizzle-zod'\nimport { client, person, position, referral } from '../../core'\nimport { z } from 'zod/v4'\nimport {\n EmailSchema,\n ListResponse,\n OptionalPhoneSchema,\n PersonFirstNameSchema,\n PersonLastNameSchema\n} from '../../../utils'\n\n//// validators\n\nexport const PublicAccountSelectSchema = createSelectSchema(person).pick({\n idNano: true,\n firstName: true,\n lastName: true,\n email: true,\n phone: true\n})\n\nexport const PublicAccountUpdateSchema = z.strictObject({\n ...createUpdateSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n phone: OptionalPhoneSchema,\n email: EmailSchema\n }).pick({\n firstName: true,\n lastName: true,\n phone: true,\n email: true\n }).shape\n})\n\nexport const PublicAccountReferralSelectSchema = z.strictObject({\n ...createSelectSchema(referral).pick({\n referralType: true,\n createdAt: true\n }).shape,\n person: z\n .strictObject({\n ...createSelectSchema(person).pick({\n firstName: true,\n lastName: true\n }).shape,\n wasHired: z.boolean().optional()\n })\n .optional(),\n client: z\n .strictObject({\n ...createSelectSchema(client).pick({\n name: true\n }).shape,\n hasHired: z.boolean().optional()\n })\n .optional(),\n position: z\n .strictObject({\n ...createSelectSchema(position).pick({\n name: true\n }).shape,\n client: createSelectSchema(client)\n .pick({\n name: true\n })\n .optional(),\n candidacy: z\n .strictObject({\n person: z.strictObject({\n ...createSelectSchema(person).pick({\n firstName: true,\n lastName: true\n }).shape\n }),\n stage: z.string()\n })\n .optional()\n })\n .optional()\n})\n\nexport const PublicAccountApplicationSelectSchema = z.strictObject({\n client: createSelectSchema(client)\n .pick({\n name: true\n })\n .optional(),\n position: createSelectSchema(position).pick({\n name: true\n }),\n candidacy: {\n stage: z.string()\n }\n})\n\n//// types\n\nexport type PublicAccountResult = z.infer<typeof PublicAccountSelectSchema>\n\nexport type PublicAccountUpdateInput = z.infer<typeof PublicAccountUpdateSchema>\n\nexport type PublicAccountReferralListResult = ListResponse<\n z.infer<typeof PublicAccountReferralSelectSchema>\n>\n\nexport type PublicAccountApplicationListResult = ListResponse<\n z.infer<typeof PublicAccountApplicationSelectSchema>\n>\n"]}