@the-inkwell/shared 0.2.285 → 0.2.287
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/dist/schema/admin/locations/index.d.ts +2 -2
- package/dist/schema/admin/locations/index.js +2 -2
- package/dist/schema/admin/locations/index.js.map +1 -1
- package/dist/schema/admin/search/index.d.ts +92 -4
- package/dist/schema/admin/search/index.js +16 -4
- package/dist/schema/admin/search/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/schema/admin/listViews/index.d.ts +0 -581
- package/dist/schema/admin/listViews/index.js +0 -23
- package/dist/schema/admin/listViews/index.js.map +0 -1
|
@@ -7,12 +7,12 @@ export declare const AdminLocationReverseGeocodeQuerySchema: z.ZodObject<{
|
|
|
7
7
|
lat: z.ZodNumber;
|
|
8
8
|
lon: z.ZodNumber;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const AdminLocationAutoCompleteQuerySchema: z.ZodObject<{
|
|
11
11
|
address: z.ZodString;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type AdminLocationGeocodeQuery = z.infer<typeof AdminLocationGeocodeQuerySchema>;
|
|
14
14
|
export type AdminLocationReverseGeocodeQuery = z.infer<typeof AdminLocationReverseGeocodeQuerySchema>;
|
|
15
|
-
export type
|
|
15
|
+
export type AdminLocationAdminSearchAutoCompleteQuery = z.infer<typeof AdminLocationAutoCompleteQuerySchema>;
|
|
16
16
|
export type AdminLocationGeocodeResult = {
|
|
17
17
|
lat: number;
|
|
18
18
|
lon: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AdminLocationAutoCompleteQuerySchema = exports.AdminLocationReverseGeocodeQuerySchema = exports.AdminLocationGeocodeQuerySchema = void 0;
|
|
4
4
|
const v4_1 = require("zod/v4");
|
|
5
5
|
//// validators
|
|
6
6
|
exports.AdminLocationGeocodeQuerySchema = v4_1.z.object({
|
|
@@ -11,7 +11,7 @@ exports.AdminLocationReverseGeocodeQuerySchema = v4_1.z.object({
|
|
|
11
11
|
lat: v4_1.z.number(),
|
|
12
12
|
lon: v4_1.z.number()
|
|
13
13
|
});
|
|
14
|
-
exports.
|
|
14
|
+
exports.AdminLocationAutoCompleteQuerySchema = v4_1.z.object({
|
|
15
15
|
address: v4_1.z.string()
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/locations/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAE1B,eAAe;AAEF,QAAA,+BAA+B,GAAG,MAAC,CAAC,MAAM,CAAC;IACtD,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAA;AACW,QAAA,sCAAsC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC7D,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAA;AACW,QAAA,oCAAoC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC3D,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminLocationGeocodeQuerySchema = z.object({\n address: z.string().optional(),\n placeId: z.string().optional()\n})\nexport const AdminLocationReverseGeocodeQuerySchema = z.object({\n lat: z.number(),\n lon: z.number()\n})\nexport const
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/locations/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAE1B,eAAe;AAEF,QAAA,+BAA+B,GAAG,MAAC,CAAC,MAAM,CAAC;IACtD,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAA;AACW,QAAA,sCAAsC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC7D,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAA;AACW,QAAA,oCAAoC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC3D,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminLocationGeocodeQuerySchema = z.object({\n address: z.string().optional(),\n placeId: z.string().optional()\n})\nexport const AdminLocationReverseGeocodeQuerySchema = z.object({\n lat: z.number(),\n lon: z.number()\n})\nexport const AdminLocationAutoCompleteQuerySchema = z.object({\n address: z.string()\n})\n\n//// types\n\nexport type AdminLocationGeocodeQuery = z.infer<\n typeof AdminLocationGeocodeQuerySchema\n>\nexport type AdminLocationReverseGeocodeQuery = z.infer<\n typeof AdminLocationReverseGeocodeQuerySchema\n>\nexport type AdminLocationAdminSearchAutoCompleteQuery = z.infer<\n typeof AdminLocationAutoCompleteQuerySchema\n>\n\nexport type AdminLocationGeocodeResult = {\n lat: number\n lon: number\n}\n\nexport type AdminLocationReverseGeocodeResult = {\n address: string\n placeId: string\n}\n\nexport type AdminLocationAutocompleteResult = {\n placeId: string\n description: string\n}[]\n"]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
|
|
2
|
+
import { ListResponse } from '../../../utils';
|
|
3
|
+
declare const AdminSearchAutoCompleteQuerySchema: z.ZodObject<{
|
|
3
4
|
name: z.ZodString;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const AdminSearchAutoCompleteResultSchema: z.ZodObject<{
|
|
6
7
|
industries: z.ZodArray<z.ZodObject<{
|
|
7
8
|
id: z.ZodString;
|
|
8
9
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -60,7 +61,94 @@ declare const AdminSearchQuerySchema: z.ZodObject<{
|
|
|
60
61
|
}, z.core.$strip>]>>>;
|
|
61
62
|
}, z.core.$strip>>;
|
|
62
63
|
}, z.core.$strip>;
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
declare const AdminSearchResultSchema: z.ZodObject<{
|
|
65
|
+
email: z.ZodString;
|
|
66
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
67
|
+
AL: "AL";
|
|
68
|
+
AK: "AK";
|
|
69
|
+
AS: "AS";
|
|
70
|
+
AZ: "AZ";
|
|
71
|
+
AR: "AR";
|
|
72
|
+
CA: "CA";
|
|
73
|
+
CO: "CO";
|
|
74
|
+
CT: "CT";
|
|
75
|
+
DE: "DE";
|
|
76
|
+
DC: "DC";
|
|
77
|
+
FM: "FM";
|
|
78
|
+
FL: "FL";
|
|
79
|
+
GA: "GA";
|
|
80
|
+
GU: "GU";
|
|
81
|
+
HI: "HI";
|
|
82
|
+
ID: "ID";
|
|
83
|
+
IL: "IL";
|
|
84
|
+
IN: "IN";
|
|
85
|
+
IA: "IA";
|
|
86
|
+
KS: "KS";
|
|
87
|
+
KY: "KY";
|
|
88
|
+
LA: "LA";
|
|
89
|
+
ME: "ME";
|
|
90
|
+
MH: "MH";
|
|
91
|
+
MD: "MD";
|
|
92
|
+
MA: "MA";
|
|
93
|
+
MI: "MI";
|
|
94
|
+
MN: "MN";
|
|
95
|
+
MS: "MS";
|
|
96
|
+
MO: "MO";
|
|
97
|
+
MT: "MT";
|
|
98
|
+
NE: "NE";
|
|
99
|
+
NV: "NV";
|
|
100
|
+
NH: "NH";
|
|
101
|
+
NJ: "NJ";
|
|
102
|
+
NM: "NM";
|
|
103
|
+
NY: "NY";
|
|
104
|
+
NC: "NC";
|
|
105
|
+
ND: "ND";
|
|
106
|
+
MP: "MP";
|
|
107
|
+
OH: "OH";
|
|
108
|
+
OK: "OK";
|
|
109
|
+
OR: "OR";
|
|
110
|
+
PW: "PW";
|
|
111
|
+
PA: "PA";
|
|
112
|
+
PR: "PR";
|
|
113
|
+
RI: "RI";
|
|
114
|
+
SC: "SC";
|
|
115
|
+
SD: "SD";
|
|
116
|
+
TN: "TN";
|
|
117
|
+
TX: "TX";
|
|
118
|
+
UT: "UT";
|
|
119
|
+
VT: "VT";
|
|
120
|
+
VI: "VI";
|
|
121
|
+
VA: "VA";
|
|
122
|
+
WA: "WA";
|
|
123
|
+
WV: "WV";
|
|
124
|
+
WI: "WI";
|
|
125
|
+
WY: "WY";
|
|
126
|
+
AB: "AB";
|
|
127
|
+
BC: "BC";
|
|
128
|
+
MB: "MB";
|
|
129
|
+
NB: "NB";
|
|
130
|
+
NL: "NL";
|
|
131
|
+
NS: "NS";
|
|
132
|
+
NT: "NT";
|
|
133
|
+
NU: "NU";
|
|
134
|
+
ON: "ON";
|
|
135
|
+
PE: "PE";
|
|
136
|
+
QC: "QC";
|
|
137
|
+
SK: "SK";
|
|
138
|
+
YT: "YT";
|
|
139
|
+
}>>;
|
|
140
|
+
id: z.ZodUUID;
|
|
141
|
+
fullName: z.ZodNullable<z.ZodString>;
|
|
142
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
143
|
+
emailIsOptedOut: z.ZodBoolean;
|
|
144
|
+
smsIsOptedOut: z.ZodBoolean;
|
|
145
|
+
photoUri: z.ZodNullable<z.ZodString>;
|
|
146
|
+
}, {
|
|
147
|
+
out: {};
|
|
148
|
+
in: {};
|
|
149
|
+
}>;
|
|
150
|
+
export type AdminSearchAutoCompleteResult = z.infer<typeof AdminSearchAutoCompleteResultSchema>;
|
|
151
|
+
export type AdminSearchAutoCompleteQuery = z.infer<typeof AdminSearchAutoCompleteQuerySchema>;
|
|
65
152
|
export type AdminSearchQuery = z.infer<typeof AdminSearchQuerySchema>;
|
|
153
|
+
export type AdminSearchListResult = ListResponse<z.infer<typeof AdminSearchResultSchema>>;
|
|
66
154
|
export {};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AdminSearchSchema = exports.
|
|
3
|
+
exports.AdminSearchSchema = exports.AdminSearchAutoCompleteResultSchema = void 0;
|
|
4
4
|
const v4_1 = require("zod/v4");
|
|
5
|
-
const
|
|
5
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
6
|
+
const core_1 = require("../../core");
|
|
7
|
+
const AdminSearchAutoCompleteQuerySchema = v4_1.z.object({
|
|
6
8
|
name: v4_1.z.string()
|
|
7
9
|
});
|
|
8
|
-
const
|
|
10
|
+
const AdminSearchAutoCompleteSchema = v4_1.z.object({
|
|
9
11
|
industries: v4_1.z.array(v4_1.z.object({ id: v4_1.z.string(), name: v4_1.z.string().optional() })),
|
|
10
12
|
jobFunctions: v4_1.z.array(v4_1.z.object({ id: v4_1.z.string(), name: v4_1.z.string().optional() })),
|
|
11
13
|
skills: v4_1.z.array(v4_1.z.object({ id: v4_1.z.string(), name: v4_1.z.string().optional() })),
|
|
12
14
|
tags: v4_1.z.array(v4_1.z.object({ id: v4_1.z.string(), name: v4_1.z.string().optional() }))
|
|
13
15
|
});
|
|
14
|
-
exports.
|
|
16
|
+
exports.AdminSearchAutoCompleteResultSchema = AdminSearchAutoCompleteSchema;
|
|
15
17
|
exports.AdminSearchSchema = v4_1.z.object({
|
|
16
18
|
name: v4_1.z.string()
|
|
17
19
|
});
|
|
@@ -51,4 +53,14 @@ const AdminSearchQuerySchema = v4_1.z.object({
|
|
|
51
53
|
location: AdminSearchLocationSchema.nullable().optional()
|
|
52
54
|
}))
|
|
53
55
|
});
|
|
56
|
+
const AdminSearchResultSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
|
|
57
|
+
id: true,
|
|
58
|
+
photoUri: true,
|
|
59
|
+
fullName: true,
|
|
60
|
+
email: true,
|
|
61
|
+
phone: true,
|
|
62
|
+
emailIsOptedOut: true,
|
|
63
|
+
smsIsOptedOut: true,
|
|
64
|
+
state: true
|
|
65
|
+
});
|
|
54
66
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/search/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAE1B,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/search/index.ts"],"names":[],"mappings":"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","sourcesContent":["import { z } from 'zod/v4'\nimport { ListResponse } from '../../../utils'\nimport { createSelectSchema } from 'drizzle-zod'\nimport { person } from '../../core'\n\nconst AdminSearchAutoCompleteQuerySchema = z.object({\n name: z.string()\n})\n\nconst AdminSearchAutoCompleteSchema = z.object({\n industries: z.array(\n z.object({ id: z.string(), name: z.string().optional() })\n ),\n jobFunctions: z.array(\n z.object({ id: z.string(), name: z.string().optional() })\n ),\n skills: z.array(z.object({ id: z.string(), name: z.string().optional() })),\n tags: z.array(z.object({ id: z.string(), name: z.string().optional() }))\n})\n\nexport const AdminSearchAutoCompleteResultSchema = AdminSearchAutoCompleteSchema\n\nexport const AdminSearchSchema = z.object({\n name: z.string()\n})\n\nconst AdminSearchCriteriaTypes = [\n 'industries',\n 'jobFunctions',\n 'skills',\n 'tags',\n 'jobTitles',\n 'companies',\n 'schools',\n 'resumeText'\n] as const\n\nconst AdminSearchCriteriaSchema = z.array(\n z.object({\n criteriaType: z.enum(AdminSearchCriteriaTypes),\n value: z.array(z.string())\n })\n)\n\nconst AdminSearchLocationSchema = z\n .object({\n locationType: z.literal('state'),\n value: z.array(z.string())\n })\n .or(\n z.object({\n locationType: z.literal('radius'),\n value: z.object({\n lat: z.number(),\n lon: z.number(),\n radiusInMiles: z.number()\n })\n })\n )\n\nconst AdminSearchQuerySchema = z.object({\n campaignChannel: z.enum(['email', 'sms']).nullable().optional(),\n purpose: z.enum(['candidates', 'referrers']),\n maxResults: z.number().min(1).max(5000),\n search: z.array(\n z.object({\n criteria: AdminSearchCriteriaSchema.nullable().optional(),\n location: AdminSearchLocationSchema.nullable().optional()\n })\n )\n})\nconst AdminSearchResultSchema = createSelectSchema(person).pick({\n id: true,\n photoUri: true,\n fullName: true,\n email: true,\n phone: true,\n emailIsOptedOut: true,\n smsIsOptedOut: true,\n state: true\n})\n\nexport type AdminSearchAutoCompleteResult = z.infer<\n typeof AdminSearchAutoCompleteResultSchema\n>\nexport type AdminSearchAutoCompleteQuery = z.infer<\n typeof AdminSearchAutoCompleteQuerySchema\n>\nexport type AdminSearchQuery = z.infer<typeof AdminSearchQuerySchema>\nexport type AdminSearchListResult = ListResponse<\n z.infer<typeof AdminSearchResultSchema>\n>\n"]}
|
package/package.json
CHANGED
|
@@ -1,581 +0,0 @@
|
|
|
1
|
-
import { type ListResponse } from '../../../utils';
|
|
2
|
-
import { z } from 'zod/v4';
|
|
3
|
-
export declare const AdminListViewCreateSchema: import("drizzle-zod").BuildSchema<"insert", {
|
|
4
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
5
|
-
name: "id";
|
|
6
|
-
tableName: "list_views";
|
|
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
|
-
model: import("drizzle-orm/pg-core").PgColumn<{
|
|
22
|
-
name: "model";
|
|
23
|
-
tableName: "list_views";
|
|
24
|
-
dataType: "string";
|
|
25
|
-
columnType: "PgEnumColumn";
|
|
26
|
-
data: "PERSON" | "POSITION" | "CANDIDACY" | "REFERRAL";
|
|
27
|
-
driverParam: string;
|
|
28
|
-
notNull: true;
|
|
29
|
-
hasDefault: false;
|
|
30
|
-
isPrimaryKey: false;
|
|
31
|
-
isAutoincrement: false;
|
|
32
|
-
hasRuntimeDefault: false;
|
|
33
|
-
enumValues: ["PERSON" | "POSITION" | "CANDIDACY" | "REFERRAL"];
|
|
34
|
-
baseColumn: never;
|
|
35
|
-
identity: undefined;
|
|
36
|
-
generated: undefined;
|
|
37
|
-
}, {}, {}>;
|
|
38
|
-
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
39
|
-
name: "name";
|
|
40
|
-
tableName: "list_views";
|
|
41
|
-
dataType: "string";
|
|
42
|
-
columnType: "PgText";
|
|
43
|
-
data: string;
|
|
44
|
-
driverParam: string;
|
|
45
|
-
notNull: false;
|
|
46
|
-
hasDefault: false;
|
|
47
|
-
isPrimaryKey: false;
|
|
48
|
-
isAutoincrement: false;
|
|
49
|
-
hasRuntimeDefault: false;
|
|
50
|
-
enumValues: [string, ...string[]];
|
|
51
|
-
baseColumn: never;
|
|
52
|
-
identity: undefined;
|
|
53
|
-
generated: undefined;
|
|
54
|
-
}, {}, {}>;
|
|
55
|
-
form: import("drizzle-orm/pg-core").PgColumn<{
|
|
56
|
-
name: "form";
|
|
57
|
-
tableName: "list_views";
|
|
58
|
-
dataType: "json";
|
|
59
|
-
columnType: "PgJsonb";
|
|
60
|
-
data: Record<any, any>;
|
|
61
|
-
driverParam: unknown;
|
|
62
|
-
notNull: true;
|
|
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
|
-
$type: Record<any, any>;
|
|
73
|
-
}>;
|
|
74
|
-
query: import("drizzle-orm/pg-core").PgColumn<{
|
|
75
|
-
name: "query";
|
|
76
|
-
tableName: "list_views";
|
|
77
|
-
dataType: "json";
|
|
78
|
-
columnType: "PgJsonb";
|
|
79
|
-
data: Record<any, any>;
|
|
80
|
-
driverParam: unknown;
|
|
81
|
-
notNull: true;
|
|
82
|
-
hasDefault: false;
|
|
83
|
-
isPrimaryKey: false;
|
|
84
|
-
isAutoincrement: false;
|
|
85
|
-
hasRuntimeDefault: false;
|
|
86
|
-
enumValues: undefined;
|
|
87
|
-
baseColumn: never;
|
|
88
|
-
identity: undefined;
|
|
89
|
-
generated: undefined;
|
|
90
|
-
}, {}, {
|
|
91
|
-
$type: Record<any, any>;
|
|
92
|
-
}>;
|
|
93
|
-
isGeneric: import("drizzle-orm/pg-core").PgColumn<{
|
|
94
|
-
name: "isGeneric";
|
|
95
|
-
tableName: "list_views";
|
|
96
|
-
dataType: "boolean";
|
|
97
|
-
columnType: "PgBoolean";
|
|
98
|
-
data: boolean;
|
|
99
|
-
driverParam: boolean;
|
|
100
|
-
notNull: false;
|
|
101
|
-
hasDefault: true;
|
|
102
|
-
isPrimaryKey: false;
|
|
103
|
-
isAutoincrement: false;
|
|
104
|
-
hasRuntimeDefault: false;
|
|
105
|
-
enumValues: undefined;
|
|
106
|
-
baseColumn: never;
|
|
107
|
-
identity: undefined;
|
|
108
|
-
generated: undefined;
|
|
109
|
-
}, {}, {}>;
|
|
110
|
-
archivedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
111
|
-
name: "archivedAt";
|
|
112
|
-
tableName: "list_views";
|
|
113
|
-
dataType: "date";
|
|
114
|
-
columnType: "PgTimestamp";
|
|
115
|
-
data: Date;
|
|
116
|
-
driverParam: string;
|
|
117
|
-
notNull: false;
|
|
118
|
-
hasDefault: false;
|
|
119
|
-
isPrimaryKey: false;
|
|
120
|
-
isAutoincrement: false;
|
|
121
|
-
hasRuntimeDefault: false;
|
|
122
|
-
enumValues: undefined;
|
|
123
|
-
baseColumn: never;
|
|
124
|
-
identity: undefined;
|
|
125
|
-
generated: undefined;
|
|
126
|
-
}, {}, {}>;
|
|
127
|
-
deletedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
128
|
-
name: "deletedAt";
|
|
129
|
-
tableName: "list_views";
|
|
130
|
-
dataType: "date";
|
|
131
|
-
columnType: "PgTimestamp";
|
|
132
|
-
data: Date;
|
|
133
|
-
driverParam: string;
|
|
134
|
-
notNull: false;
|
|
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
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
145
|
-
name: "createdAt";
|
|
146
|
-
tableName: "list_views";
|
|
147
|
-
dataType: "date";
|
|
148
|
-
columnType: "PgTimestamp";
|
|
149
|
-
data: Date;
|
|
150
|
-
driverParam: string;
|
|
151
|
-
notNull: true;
|
|
152
|
-
hasDefault: true;
|
|
153
|
-
isPrimaryKey: false;
|
|
154
|
-
isAutoincrement: false;
|
|
155
|
-
hasRuntimeDefault: false;
|
|
156
|
-
enumValues: undefined;
|
|
157
|
-
baseColumn: never;
|
|
158
|
-
identity: undefined;
|
|
159
|
-
generated: undefined;
|
|
160
|
-
}, {}, {}>;
|
|
161
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
162
|
-
name: "updatedAt";
|
|
163
|
-
tableName: "list_views";
|
|
164
|
-
dataType: "date";
|
|
165
|
-
columnType: "PgTimestamp";
|
|
166
|
-
data: Date;
|
|
167
|
-
driverParam: string;
|
|
168
|
-
notNull: true;
|
|
169
|
-
hasDefault: true;
|
|
170
|
-
isPrimaryKey: false;
|
|
171
|
-
isAutoincrement: false;
|
|
172
|
-
hasRuntimeDefault: false;
|
|
173
|
-
enumValues: undefined;
|
|
174
|
-
baseColumn: never;
|
|
175
|
-
identity: undefined;
|
|
176
|
-
generated: undefined;
|
|
177
|
-
}, {}, {}>;
|
|
178
|
-
}, undefined, undefined>;
|
|
179
|
-
export declare const AdminListViewSelectSchema: import("drizzle-zod").BuildSchema<"select", {
|
|
180
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
181
|
-
name: "id";
|
|
182
|
-
tableName: "list_views";
|
|
183
|
-
dataType: "string";
|
|
184
|
-
columnType: "PgUUID";
|
|
185
|
-
data: string;
|
|
186
|
-
driverParam: string;
|
|
187
|
-
notNull: true;
|
|
188
|
-
hasDefault: true;
|
|
189
|
-
isPrimaryKey: true;
|
|
190
|
-
isAutoincrement: false;
|
|
191
|
-
hasRuntimeDefault: false;
|
|
192
|
-
enumValues: undefined;
|
|
193
|
-
baseColumn: never;
|
|
194
|
-
identity: undefined;
|
|
195
|
-
generated: undefined;
|
|
196
|
-
}, {}, {}>;
|
|
197
|
-
model: import("drizzle-orm/pg-core").PgColumn<{
|
|
198
|
-
name: "model";
|
|
199
|
-
tableName: "list_views";
|
|
200
|
-
dataType: "string";
|
|
201
|
-
columnType: "PgEnumColumn";
|
|
202
|
-
data: "PERSON" | "POSITION" | "CANDIDACY" | "REFERRAL";
|
|
203
|
-
driverParam: string;
|
|
204
|
-
notNull: true;
|
|
205
|
-
hasDefault: false;
|
|
206
|
-
isPrimaryKey: false;
|
|
207
|
-
isAutoincrement: false;
|
|
208
|
-
hasRuntimeDefault: false;
|
|
209
|
-
enumValues: ["PERSON" | "POSITION" | "CANDIDACY" | "REFERRAL"];
|
|
210
|
-
baseColumn: never;
|
|
211
|
-
identity: undefined;
|
|
212
|
-
generated: undefined;
|
|
213
|
-
}, {}, {}>;
|
|
214
|
-
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
215
|
-
name: "name";
|
|
216
|
-
tableName: "list_views";
|
|
217
|
-
dataType: "string";
|
|
218
|
-
columnType: "PgText";
|
|
219
|
-
data: string;
|
|
220
|
-
driverParam: string;
|
|
221
|
-
notNull: false;
|
|
222
|
-
hasDefault: false;
|
|
223
|
-
isPrimaryKey: false;
|
|
224
|
-
isAutoincrement: false;
|
|
225
|
-
hasRuntimeDefault: false;
|
|
226
|
-
enumValues: [string, ...string[]];
|
|
227
|
-
baseColumn: never;
|
|
228
|
-
identity: undefined;
|
|
229
|
-
generated: undefined;
|
|
230
|
-
}, {}, {}>;
|
|
231
|
-
form: import("drizzle-orm/pg-core").PgColumn<{
|
|
232
|
-
name: "form";
|
|
233
|
-
tableName: "list_views";
|
|
234
|
-
dataType: "json";
|
|
235
|
-
columnType: "PgJsonb";
|
|
236
|
-
data: Record<any, any>;
|
|
237
|
-
driverParam: unknown;
|
|
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
|
-
$type: Record<any, any>;
|
|
249
|
-
}>;
|
|
250
|
-
query: import("drizzle-orm/pg-core").PgColumn<{
|
|
251
|
-
name: "query";
|
|
252
|
-
tableName: "list_views";
|
|
253
|
-
dataType: "json";
|
|
254
|
-
columnType: "PgJsonb";
|
|
255
|
-
data: Record<any, any>;
|
|
256
|
-
driverParam: unknown;
|
|
257
|
-
notNull: true;
|
|
258
|
-
hasDefault: false;
|
|
259
|
-
isPrimaryKey: false;
|
|
260
|
-
isAutoincrement: false;
|
|
261
|
-
hasRuntimeDefault: false;
|
|
262
|
-
enumValues: undefined;
|
|
263
|
-
baseColumn: never;
|
|
264
|
-
identity: undefined;
|
|
265
|
-
generated: undefined;
|
|
266
|
-
}, {}, {
|
|
267
|
-
$type: Record<any, any>;
|
|
268
|
-
}>;
|
|
269
|
-
isGeneric: import("drizzle-orm/pg-core").PgColumn<{
|
|
270
|
-
name: "isGeneric";
|
|
271
|
-
tableName: "list_views";
|
|
272
|
-
dataType: "boolean";
|
|
273
|
-
columnType: "PgBoolean";
|
|
274
|
-
data: boolean;
|
|
275
|
-
driverParam: boolean;
|
|
276
|
-
notNull: false;
|
|
277
|
-
hasDefault: true;
|
|
278
|
-
isPrimaryKey: false;
|
|
279
|
-
isAutoincrement: false;
|
|
280
|
-
hasRuntimeDefault: false;
|
|
281
|
-
enumValues: undefined;
|
|
282
|
-
baseColumn: never;
|
|
283
|
-
identity: undefined;
|
|
284
|
-
generated: undefined;
|
|
285
|
-
}, {}, {}>;
|
|
286
|
-
archivedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
287
|
-
name: "archivedAt";
|
|
288
|
-
tableName: "list_views";
|
|
289
|
-
dataType: "date";
|
|
290
|
-
columnType: "PgTimestamp";
|
|
291
|
-
data: Date;
|
|
292
|
-
driverParam: string;
|
|
293
|
-
notNull: false;
|
|
294
|
-
hasDefault: false;
|
|
295
|
-
isPrimaryKey: false;
|
|
296
|
-
isAutoincrement: false;
|
|
297
|
-
hasRuntimeDefault: false;
|
|
298
|
-
enumValues: undefined;
|
|
299
|
-
baseColumn: never;
|
|
300
|
-
identity: undefined;
|
|
301
|
-
generated: undefined;
|
|
302
|
-
}, {}, {}>;
|
|
303
|
-
deletedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
304
|
-
name: "deletedAt";
|
|
305
|
-
tableName: "list_views";
|
|
306
|
-
dataType: "date";
|
|
307
|
-
columnType: "PgTimestamp";
|
|
308
|
-
data: Date;
|
|
309
|
-
driverParam: string;
|
|
310
|
-
notNull: false;
|
|
311
|
-
hasDefault: false;
|
|
312
|
-
isPrimaryKey: false;
|
|
313
|
-
isAutoincrement: false;
|
|
314
|
-
hasRuntimeDefault: false;
|
|
315
|
-
enumValues: undefined;
|
|
316
|
-
baseColumn: never;
|
|
317
|
-
identity: undefined;
|
|
318
|
-
generated: undefined;
|
|
319
|
-
}, {}, {}>;
|
|
320
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
321
|
-
name: "createdAt";
|
|
322
|
-
tableName: "list_views";
|
|
323
|
-
dataType: "date";
|
|
324
|
-
columnType: "PgTimestamp";
|
|
325
|
-
data: Date;
|
|
326
|
-
driverParam: string;
|
|
327
|
-
notNull: true;
|
|
328
|
-
hasDefault: true;
|
|
329
|
-
isPrimaryKey: false;
|
|
330
|
-
isAutoincrement: false;
|
|
331
|
-
hasRuntimeDefault: false;
|
|
332
|
-
enumValues: undefined;
|
|
333
|
-
baseColumn: never;
|
|
334
|
-
identity: undefined;
|
|
335
|
-
generated: undefined;
|
|
336
|
-
}, {}, {}>;
|
|
337
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
338
|
-
name: "updatedAt";
|
|
339
|
-
tableName: "list_views";
|
|
340
|
-
dataType: "date";
|
|
341
|
-
columnType: "PgTimestamp";
|
|
342
|
-
data: Date;
|
|
343
|
-
driverParam: string;
|
|
344
|
-
notNull: true;
|
|
345
|
-
hasDefault: true;
|
|
346
|
-
isPrimaryKey: false;
|
|
347
|
-
isAutoincrement: false;
|
|
348
|
-
hasRuntimeDefault: false;
|
|
349
|
-
enumValues: undefined;
|
|
350
|
-
baseColumn: never;
|
|
351
|
-
identity: undefined;
|
|
352
|
-
generated: undefined;
|
|
353
|
-
}, {}, {}>;
|
|
354
|
-
}, undefined, undefined>;
|
|
355
|
-
export declare const AdminListViewUpdateSchema: import("drizzle-zod").BuildSchema<"update", {
|
|
356
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
357
|
-
name: "id";
|
|
358
|
-
tableName: "list_views";
|
|
359
|
-
dataType: "string";
|
|
360
|
-
columnType: "PgUUID";
|
|
361
|
-
data: string;
|
|
362
|
-
driverParam: string;
|
|
363
|
-
notNull: true;
|
|
364
|
-
hasDefault: true;
|
|
365
|
-
isPrimaryKey: true;
|
|
366
|
-
isAutoincrement: false;
|
|
367
|
-
hasRuntimeDefault: false;
|
|
368
|
-
enumValues: undefined;
|
|
369
|
-
baseColumn: never;
|
|
370
|
-
identity: undefined;
|
|
371
|
-
generated: undefined;
|
|
372
|
-
}, {}, {}>;
|
|
373
|
-
model: import("drizzle-orm/pg-core").PgColumn<{
|
|
374
|
-
name: "model";
|
|
375
|
-
tableName: "list_views";
|
|
376
|
-
dataType: "string";
|
|
377
|
-
columnType: "PgEnumColumn";
|
|
378
|
-
data: "PERSON" | "POSITION" | "CANDIDACY" | "REFERRAL";
|
|
379
|
-
driverParam: string;
|
|
380
|
-
notNull: true;
|
|
381
|
-
hasDefault: false;
|
|
382
|
-
isPrimaryKey: false;
|
|
383
|
-
isAutoincrement: false;
|
|
384
|
-
hasRuntimeDefault: false;
|
|
385
|
-
enumValues: ["PERSON" | "POSITION" | "CANDIDACY" | "REFERRAL"];
|
|
386
|
-
baseColumn: never;
|
|
387
|
-
identity: undefined;
|
|
388
|
-
generated: undefined;
|
|
389
|
-
}, {}, {}>;
|
|
390
|
-
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
391
|
-
name: "name";
|
|
392
|
-
tableName: "list_views";
|
|
393
|
-
dataType: "string";
|
|
394
|
-
columnType: "PgText";
|
|
395
|
-
data: string;
|
|
396
|
-
driverParam: string;
|
|
397
|
-
notNull: false;
|
|
398
|
-
hasDefault: false;
|
|
399
|
-
isPrimaryKey: false;
|
|
400
|
-
isAutoincrement: false;
|
|
401
|
-
hasRuntimeDefault: false;
|
|
402
|
-
enumValues: [string, ...string[]];
|
|
403
|
-
baseColumn: never;
|
|
404
|
-
identity: undefined;
|
|
405
|
-
generated: undefined;
|
|
406
|
-
}, {}, {}>;
|
|
407
|
-
form: import("drizzle-orm/pg-core").PgColumn<{
|
|
408
|
-
name: "form";
|
|
409
|
-
tableName: "list_views";
|
|
410
|
-
dataType: "json";
|
|
411
|
-
columnType: "PgJsonb";
|
|
412
|
-
data: Record<any, any>;
|
|
413
|
-
driverParam: unknown;
|
|
414
|
-
notNull: true;
|
|
415
|
-
hasDefault: false;
|
|
416
|
-
isPrimaryKey: false;
|
|
417
|
-
isAutoincrement: false;
|
|
418
|
-
hasRuntimeDefault: false;
|
|
419
|
-
enumValues: undefined;
|
|
420
|
-
baseColumn: never;
|
|
421
|
-
identity: undefined;
|
|
422
|
-
generated: undefined;
|
|
423
|
-
}, {}, {
|
|
424
|
-
$type: Record<any, any>;
|
|
425
|
-
}>;
|
|
426
|
-
query: import("drizzle-orm/pg-core").PgColumn<{
|
|
427
|
-
name: "query";
|
|
428
|
-
tableName: "list_views";
|
|
429
|
-
dataType: "json";
|
|
430
|
-
columnType: "PgJsonb";
|
|
431
|
-
data: Record<any, any>;
|
|
432
|
-
driverParam: unknown;
|
|
433
|
-
notNull: true;
|
|
434
|
-
hasDefault: false;
|
|
435
|
-
isPrimaryKey: false;
|
|
436
|
-
isAutoincrement: false;
|
|
437
|
-
hasRuntimeDefault: false;
|
|
438
|
-
enumValues: undefined;
|
|
439
|
-
baseColumn: never;
|
|
440
|
-
identity: undefined;
|
|
441
|
-
generated: undefined;
|
|
442
|
-
}, {}, {
|
|
443
|
-
$type: Record<any, any>;
|
|
444
|
-
}>;
|
|
445
|
-
isGeneric: import("drizzle-orm/pg-core").PgColumn<{
|
|
446
|
-
name: "isGeneric";
|
|
447
|
-
tableName: "list_views";
|
|
448
|
-
dataType: "boolean";
|
|
449
|
-
columnType: "PgBoolean";
|
|
450
|
-
data: boolean;
|
|
451
|
-
driverParam: boolean;
|
|
452
|
-
notNull: false;
|
|
453
|
-
hasDefault: true;
|
|
454
|
-
isPrimaryKey: false;
|
|
455
|
-
isAutoincrement: false;
|
|
456
|
-
hasRuntimeDefault: false;
|
|
457
|
-
enumValues: undefined;
|
|
458
|
-
baseColumn: never;
|
|
459
|
-
identity: undefined;
|
|
460
|
-
generated: undefined;
|
|
461
|
-
}, {}, {}>;
|
|
462
|
-
archivedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
463
|
-
name: "archivedAt";
|
|
464
|
-
tableName: "list_views";
|
|
465
|
-
dataType: "date";
|
|
466
|
-
columnType: "PgTimestamp";
|
|
467
|
-
data: Date;
|
|
468
|
-
driverParam: string;
|
|
469
|
-
notNull: false;
|
|
470
|
-
hasDefault: false;
|
|
471
|
-
isPrimaryKey: false;
|
|
472
|
-
isAutoincrement: false;
|
|
473
|
-
hasRuntimeDefault: false;
|
|
474
|
-
enumValues: undefined;
|
|
475
|
-
baseColumn: never;
|
|
476
|
-
identity: undefined;
|
|
477
|
-
generated: undefined;
|
|
478
|
-
}, {}, {}>;
|
|
479
|
-
deletedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
480
|
-
name: "deletedAt";
|
|
481
|
-
tableName: "list_views";
|
|
482
|
-
dataType: "date";
|
|
483
|
-
columnType: "PgTimestamp";
|
|
484
|
-
data: Date;
|
|
485
|
-
driverParam: string;
|
|
486
|
-
notNull: false;
|
|
487
|
-
hasDefault: false;
|
|
488
|
-
isPrimaryKey: false;
|
|
489
|
-
isAutoincrement: false;
|
|
490
|
-
hasRuntimeDefault: false;
|
|
491
|
-
enumValues: undefined;
|
|
492
|
-
baseColumn: never;
|
|
493
|
-
identity: undefined;
|
|
494
|
-
generated: undefined;
|
|
495
|
-
}, {}, {}>;
|
|
496
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
497
|
-
name: "createdAt";
|
|
498
|
-
tableName: "list_views";
|
|
499
|
-
dataType: "date";
|
|
500
|
-
columnType: "PgTimestamp";
|
|
501
|
-
data: Date;
|
|
502
|
-
driverParam: string;
|
|
503
|
-
notNull: true;
|
|
504
|
-
hasDefault: true;
|
|
505
|
-
isPrimaryKey: false;
|
|
506
|
-
isAutoincrement: false;
|
|
507
|
-
hasRuntimeDefault: false;
|
|
508
|
-
enumValues: undefined;
|
|
509
|
-
baseColumn: never;
|
|
510
|
-
identity: undefined;
|
|
511
|
-
generated: undefined;
|
|
512
|
-
}, {}, {}>;
|
|
513
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
514
|
-
name: "updatedAt";
|
|
515
|
-
tableName: "list_views";
|
|
516
|
-
dataType: "date";
|
|
517
|
-
columnType: "PgTimestamp";
|
|
518
|
-
data: Date;
|
|
519
|
-
driverParam: string;
|
|
520
|
-
notNull: true;
|
|
521
|
-
hasDefault: true;
|
|
522
|
-
isPrimaryKey: false;
|
|
523
|
-
isAutoincrement: false;
|
|
524
|
-
hasRuntimeDefault: false;
|
|
525
|
-
enumValues: undefined;
|
|
526
|
-
baseColumn: never;
|
|
527
|
-
identity: undefined;
|
|
528
|
-
generated: undefined;
|
|
529
|
-
}, {}, {}>;
|
|
530
|
-
}, undefined, undefined>;
|
|
531
|
-
export declare const AdminListViewParamsSchema: z.ZodObject<{
|
|
532
|
-
id: z.ZodUUID;
|
|
533
|
-
}, {
|
|
534
|
-
out: {};
|
|
535
|
-
in: {};
|
|
536
|
-
}>;
|
|
537
|
-
export declare const AdminListViewUpdateParamsSchema: z.ZodObject<{
|
|
538
|
-
id: z.ZodUUID;
|
|
539
|
-
}, {
|
|
540
|
-
out: {};
|
|
541
|
-
in: {};
|
|
542
|
-
}>;
|
|
543
|
-
export declare const AdminListViewDeleteParamsSchema: z.ZodObject<{
|
|
544
|
-
id: z.ZodUUID;
|
|
545
|
-
}, {
|
|
546
|
-
out: {};
|
|
547
|
-
in: {};
|
|
548
|
-
}>;
|
|
549
|
-
export declare const AdminListViewListQuerySchema: z.ZodObject<{
|
|
550
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
551
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
552
|
-
sort: z.ZodOptional<z.ZodObject<{
|
|
553
|
-
field: z.ZodString;
|
|
554
|
-
direction: z.ZodEnum<{
|
|
555
|
-
asc: "asc";
|
|
556
|
-
desc: "desc";
|
|
557
|
-
}>;
|
|
558
|
-
}, z.core.$strip>>;
|
|
559
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
560
|
-
model: z.ZodOptional<z.ZodEnum<{
|
|
561
|
-
PERSON: "PERSON";
|
|
562
|
-
POSITION: "POSITION";
|
|
563
|
-
CANDIDACY: "CANDIDACY";
|
|
564
|
-
REFERRAL: "REFERRAL";
|
|
565
|
-
}>>;
|
|
566
|
-
}, {
|
|
567
|
-
out: {};
|
|
568
|
-
in: {};
|
|
569
|
-
}>>;
|
|
570
|
-
}, z.core.$strip>;
|
|
571
|
-
type AdminListView = z.infer<typeof AdminListViewSelectSchema>;
|
|
572
|
-
export type AdminListViewParams = z.infer<typeof AdminListViewParamsSchema>;
|
|
573
|
-
export type AdminListViewResult = AdminListView;
|
|
574
|
-
export type AdminListViewListQuery = z.infer<typeof AdminListViewListQuerySchema>;
|
|
575
|
-
export type AdminListViewListResult = ListResponse<Pick<z.infer<typeof AdminListViewSelectSchema>, 'id' | 'name'>>;
|
|
576
|
-
export type AdminListViewCreateInput = z.infer<typeof AdminListViewCreateSchema>;
|
|
577
|
-
export type AdminListViewCreateResult = Pick<AdminListView, 'id'>;
|
|
578
|
-
export type AdminListViewUpdateParams = z.infer<typeof AdminListViewUpdateParamsSchema>;
|
|
579
|
-
export type AdminListViewUpdateInput = Partial<AdminListView>;
|
|
580
|
-
export type AdminListViewDeleteParams = z.infer<typeof AdminListViewDeleteParamsSchema>;
|
|
581
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AdminListViewListQuerySchema = exports.AdminListViewDeleteParamsSchema = exports.AdminListViewUpdateParamsSchema = exports.AdminListViewParamsSchema = exports.AdminListViewUpdateSchema = exports.AdminListViewSelectSchema = exports.AdminListViewCreateSchema = void 0;
|
|
4
|
-
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
-
const core_1 = require("../../core");
|
|
6
|
-
const utils_1 = require("../../../utils");
|
|
7
|
-
//// validators
|
|
8
|
-
exports.AdminListViewCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.listView);
|
|
9
|
-
exports.AdminListViewSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.listView);
|
|
10
|
-
exports.AdminListViewUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.listView);
|
|
11
|
-
exports.AdminListViewParamsSchema = exports.AdminListViewSelectSchema.pick({
|
|
12
|
-
id: true
|
|
13
|
-
});
|
|
14
|
-
exports.AdminListViewUpdateParamsSchema = exports.AdminListViewParamsSchema;
|
|
15
|
-
exports.AdminListViewDeleteParamsSchema = exports.AdminListViewParamsSchema;
|
|
16
|
-
exports.AdminListViewListQuerySchema = utils_1.ListQuerySchema.extend({
|
|
17
|
-
filter: exports.AdminListViewSelectSchema.pick({
|
|
18
|
-
model: true
|
|
19
|
-
})
|
|
20
|
-
.partial()
|
|
21
|
-
.optional()
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/listViews/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAAqC;AACrC,0CAAmE;AAGnE,eAAe;AAEF,QAAA,yBAAyB,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAA;AACxD,QAAA,yBAAyB,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAA;AACxD,QAAA,yBAAyB,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAA;AAExD,QAAA,yBAAyB,GAAG,iCAAyB,CAAC,IAAI,CAAC;IACtE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,+BAA+B,GAAG,iCAAyB,CAAA;AAC3D,QAAA,+BAA+B,GAAG,iCAAyB,CAAA;AAC3D,QAAA,4BAA4B,GAAG,uBAAe,CAAC,MAAM,CAAC;IACjE,MAAM,EAAE,iCAAyB,CAAC,IAAI,CAAC;QACrC,KAAK,EAAE,IAAI;KACZ,CAAC;SACC,OAAO,EAAE;SACT,QAAQ,EAAE;CACd,CAAC,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { listView } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminListViewCreateSchema = createInsertSchema(listView)\nexport const AdminListViewSelectSchema = createSelectSchema(listView)\nexport const AdminListViewUpdateSchema = createUpdateSchema(listView)\n\nexport const AdminListViewParamsSchema = AdminListViewSelectSchema.pick({\n id: true\n})\nexport const AdminListViewUpdateParamsSchema = AdminListViewParamsSchema\nexport const AdminListViewDeleteParamsSchema = AdminListViewParamsSchema\nexport const AdminListViewListQuerySchema = ListQuerySchema.extend({\n filter: AdminListViewSelectSchema.pick({\n model: true\n })\n .partial()\n .optional()\n})\n\n//// types\n\ntype AdminListView = z.infer<typeof AdminListViewSelectSchema>\n\n// detail\nexport type AdminListViewParams = z.infer<typeof AdminListViewParamsSchema>\nexport type AdminListViewResult = AdminListView\n\n// list\nexport type AdminListViewListQuery = z.infer<\n typeof AdminListViewListQuerySchema\n>\nexport type AdminListViewListResult = ListResponse<\n Pick<z.infer<typeof AdminListViewSelectSchema>, 'id' | 'name'>\n>\n\n// create\nexport type AdminListViewCreateInput = z.infer<typeof AdminListViewCreateSchema>\nexport type AdminListViewCreateResult = Pick<AdminListView, 'id'>\n\n// update\nexport type AdminListViewUpdateParams = z.infer<\n typeof AdminListViewUpdateParamsSchema\n>\nexport type AdminListViewUpdateInput = Partial<AdminListView>\n\n// delete\nexport type AdminListViewDeleteParams = z.infer<\n typeof AdminListViewDeleteParamsSchema\n>\n"]}
|