@the-inkwell/shared 0.2.21 → 0.2.23
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/persons/index.d.ts +38 -36
- package/dist/schema/admin/persons/index.js +6 -2
- package/dist/schema/admin/persons/index.js.map +1 -1
- package/dist/schema/admin/positions/index.d.ts +160 -570
- package/dist/schema/admin/positions/index.js +3 -1
- package/dist/schema/admin/positions/index.js.map +1 -1
- package/dist/schema/admin/websiteLandingPages/index.d.ts +35 -181
- package/dist/schema/admin/websiteLandingPages/index.js +3 -1
- package/dist/schema/admin/websiteLandingPages/index.js.map +1 -1
- package/dist/schema/core.d.ts +37 -3
- package/dist/schema/core.js +6 -2
- package/dist/schema/core.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,9 @@ const core_1 = require("../../core");
|
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
7
7
|
const v4_1 = require("zod/v4");
|
|
8
8
|
//// validators
|
|
9
|
-
exports.AdminPositionCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.position)
|
|
9
|
+
exports.AdminPositionCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.position).omit({
|
|
10
|
+
idNano: true
|
|
11
|
+
});
|
|
10
12
|
exports.AdminPositionSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.position).extend({
|
|
11
13
|
client: (0, drizzle_zod_1.createSelectSchema)(core_1.client)
|
|
12
14
|
.pick({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/positions/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAAgF;AAChF,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,yBAAyB,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/positions/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAAgF;AAChF,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,yBAAyB,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAC,IAAI,CAAC;IACzE,MAAM,EAAE,IAAI;CACb,CAAC,CAAA;AACW,QAAA,yBAAyB,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAC,MAAM,CAAC;IAC3E,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC;SAC/B,IAAI,CAAC;QACJ,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,QAAQ,EAAE,IAAA,gCAAkB,EAAC,eAAQ,CAAC;SACnC,IAAI,CAAC;QACJ,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;IACb,WAAW,EAAE,IAAA,gCAAkB,EAAC,kBAAW,CAAC;SACzC,IAAI,CAAC;QACJ,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;IACb,MAAM,EAAE,MAAC,CAAC,KAAK,CACb,IAAA,gCAAkB,EAAC,YAAK,CAAC,CAAC,IAAI,CAAC;QAC7B,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC,CACH;IACD,IAAI,EAAE,MAAC,CAAC,KAAK,CACX,IAAA,gCAAkB,EAAC,UAAG,CAAC,CAAC,IAAI,CAAC;QAC3B,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC,CACH;IACD,eAAe,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,qBAAqB,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAA;AACW,QAAA,yBAAyB,GAAG,IAAA,gCAAkB,EAAC,eAAQ,EAAE;IACpE,SAAS,EAAE,MAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,MAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAA;AAEW,QAAA,yBAAyB,GAAG,iCAAyB,CAAC,IAAI,CAAC;IACtE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,4BAA4B,GAAG,uBAAe,CAAC,MAAM,CAAC;IACjE,MAAM,EAAE,MAAC;SACN,MAAM,CAAC;QACN,QAAQ,EAAE,MAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAChC,QAAQ,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAChC,CAAC;SACD,OAAO,EAAE;SACT,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,+BAA+B,GAAG,iCAAyB,CAAA;AAC3D,QAAA,+BAA+B,GAAG,iCAAyB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { client, industry, jobFunction, position, skill, tag } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminPositionCreateSchema = createInsertSchema(position).omit({\n idNano: true\n})\nexport const AdminPositionSelectSchema = createSelectSchema(position).extend({\n client: createSelectSchema(client)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n industry: createSelectSchema(industry)\n .pick({\n id: true,\n name: true\n })\n .nullable(),\n jobFunction: createSelectSchema(jobFunction)\n .pick({\n id: true,\n name: true\n })\n .nullable(),\n skills: z.array(\n createSelectSchema(skill).pick({\n id: true,\n name: true\n })\n ),\n tags: z.array(\n createSelectSchema(tag).pick({\n id: true,\n name: true\n })\n ),\n _referralsCount: z.number().optional(),\n _openCandidaciesCount: z.number().optional()\n})\nexport const AdminPositionUpdateSchema = createUpdateSchema(position, {\n startedAt: z.coerce.date().nullable().optional(),\n closedAt: z.coerce.date().nullable().optional()\n})\n\nexport const AdminPositionParamsSchema = AdminPositionSelectSchema.pick({\n id: true\n})\nexport const AdminPositionListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n isClosed: z.boolean().optional(),\n clientId: z.string().optional()\n })\n .partial()\n .optional()\n})\nexport const AdminPositionUpdateParamsSchema = AdminPositionParamsSchema\nexport const AdminPositionDeleteParamsSchema = AdminPositionParamsSchema\n\n//// types\n\ntype AdminPosition = z.infer<typeof AdminPositionSelectSchema>\n\n// detail\nexport type AdminPositionParams = z.infer<typeof AdminPositionParamsSchema>\nexport type AdminPositionResult = AdminPosition\n\n// list\nexport type AdminPositionListQuery = z.infer<\n typeof AdminPositionListQuerySchema\n>\nexport type AdminPositionListResult = ListResponse<\n z.infer<typeof AdminPositionSelectSchema>\n>\n\n// create\nexport type AdminPositionCreateInput = z.infer<typeof AdminPositionCreateSchema>\nexport type AdminPositionCreateResult = Pick<AdminPosition, 'id'>\n\n// update\nexport type AdminPositionUpdateParams = z.infer<\n typeof AdminPositionUpdateParamsSchema\n>\nexport type AdminPositionUpdateInput = z.infer<typeof AdminPositionUpdateSchema>\n\n// delete\nexport type AdminPositionDeleteParams = z.infer<\n typeof AdminPositionDeleteParamsSchema\n>\n"]}
|
|
@@ -1,180 +1,34 @@
|
|
|
1
1
|
import { type ListResponse } from '../../../utils';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
export declare const AdminWebsiteLandingPageCreateSchema:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
hasRuntimeDefault: false;
|
|
33
|
-
enumValues: [string, ...string[]];
|
|
34
|
-
baseColumn: never;
|
|
35
|
-
identity: undefined;
|
|
36
|
-
generated: undefined;
|
|
37
|
-
}, {}, {}>;
|
|
38
|
-
slug: import("drizzle-orm/pg-core").PgColumn<{
|
|
39
|
-
name: "slug";
|
|
40
|
-
tableName: "website_landing_pages";
|
|
41
|
-
dataType: "string";
|
|
42
|
-
columnType: "PgText";
|
|
43
|
-
data: string;
|
|
44
|
-
driverParam: string;
|
|
45
|
-
notNull: true;
|
|
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
|
-
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
56
|
-
name: "name";
|
|
57
|
-
tableName: "website_landing_pages";
|
|
58
|
-
dataType: "string";
|
|
59
|
-
columnType: "PgText";
|
|
60
|
-
data: string;
|
|
61
|
-
driverParam: string;
|
|
62
|
-
notNull: true;
|
|
63
|
-
hasDefault: false;
|
|
64
|
-
isPrimaryKey: false;
|
|
65
|
-
isAutoincrement: false;
|
|
66
|
-
hasRuntimeDefault: false;
|
|
67
|
-
enumValues: [string, ...string[]];
|
|
68
|
-
baseColumn: never;
|
|
69
|
-
identity: undefined;
|
|
70
|
-
generated: undefined;
|
|
71
|
-
}, {}, {}>;
|
|
72
|
-
content: import("drizzle-orm/pg-core").PgColumn<{
|
|
73
|
-
name: "content";
|
|
74
|
-
tableName: "website_landing_pages";
|
|
75
|
-
dataType: "json";
|
|
76
|
-
columnType: "PgJsonb";
|
|
77
|
-
data: {
|
|
78
|
-
title?: string;
|
|
79
|
-
body?: string;
|
|
80
|
-
positionIds?: Record<string, boolean>;
|
|
81
|
-
};
|
|
82
|
-
driverParam: unknown;
|
|
83
|
-
notNull: true;
|
|
84
|
-
hasDefault: true;
|
|
85
|
-
isPrimaryKey: false;
|
|
86
|
-
isAutoincrement: false;
|
|
87
|
-
hasRuntimeDefault: false;
|
|
88
|
-
enumValues: undefined;
|
|
89
|
-
baseColumn: never;
|
|
90
|
-
identity: undefined;
|
|
91
|
-
generated: undefined;
|
|
92
|
-
}, {}, {
|
|
93
|
-
$type: {
|
|
94
|
-
title?: string;
|
|
95
|
-
body?: string;
|
|
96
|
-
positionIds?: Record<string, boolean>;
|
|
97
|
-
};
|
|
98
|
-
}>;
|
|
99
|
-
meta: import("drizzle-orm/pg-core").PgColumn<{
|
|
100
|
-
name: "meta";
|
|
101
|
-
tableName: "website_landing_pages";
|
|
102
|
-
dataType: "json";
|
|
103
|
-
columnType: "PgJsonb";
|
|
104
|
-
data: {
|
|
105
|
-
title?: string;
|
|
106
|
-
description?: string;
|
|
107
|
-
keywords?: string;
|
|
108
|
-
};
|
|
109
|
-
driverParam: unknown;
|
|
110
|
-
notNull: true;
|
|
111
|
-
hasDefault: true;
|
|
112
|
-
isPrimaryKey: false;
|
|
113
|
-
isAutoincrement: false;
|
|
114
|
-
hasRuntimeDefault: false;
|
|
115
|
-
enumValues: undefined;
|
|
116
|
-
baseColumn: never;
|
|
117
|
-
identity: undefined;
|
|
118
|
-
generated: undefined;
|
|
119
|
-
}, {}, {
|
|
120
|
-
$type: {
|
|
121
|
-
title?: string;
|
|
122
|
-
description?: string;
|
|
123
|
-
keywords?: string;
|
|
124
|
-
};
|
|
125
|
-
}>;
|
|
126
|
-
deletedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
127
|
-
name: "deletedAt";
|
|
128
|
-
tableName: "website_landing_pages";
|
|
129
|
-
dataType: "date";
|
|
130
|
-
columnType: "PgTimestamp";
|
|
131
|
-
data: Date;
|
|
132
|
-
driverParam: string;
|
|
133
|
-
notNull: false;
|
|
134
|
-
hasDefault: false;
|
|
135
|
-
isPrimaryKey: false;
|
|
136
|
-
isAutoincrement: false;
|
|
137
|
-
hasRuntimeDefault: false;
|
|
138
|
-
enumValues: undefined;
|
|
139
|
-
baseColumn: never;
|
|
140
|
-
identity: undefined;
|
|
141
|
-
generated: undefined;
|
|
142
|
-
}, {}, {}>;
|
|
143
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
144
|
-
name: "createdAt";
|
|
145
|
-
tableName: "website_landing_pages";
|
|
146
|
-
dataType: "date";
|
|
147
|
-
columnType: "PgTimestamp";
|
|
148
|
-
data: Date;
|
|
149
|
-
driverParam: string;
|
|
150
|
-
notNull: true;
|
|
151
|
-
hasDefault: true;
|
|
152
|
-
isPrimaryKey: false;
|
|
153
|
-
isAutoincrement: false;
|
|
154
|
-
hasRuntimeDefault: false;
|
|
155
|
-
enumValues: undefined;
|
|
156
|
-
baseColumn: never;
|
|
157
|
-
identity: undefined;
|
|
158
|
-
generated: undefined;
|
|
159
|
-
}, {}, {}>;
|
|
160
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
161
|
-
name: "updatedAt";
|
|
162
|
-
tableName: "website_landing_pages";
|
|
163
|
-
dataType: "date";
|
|
164
|
-
columnType: "PgTimestamp";
|
|
165
|
-
data: Date;
|
|
166
|
-
driverParam: string;
|
|
167
|
-
notNull: true;
|
|
168
|
-
hasDefault: true;
|
|
169
|
-
isPrimaryKey: false;
|
|
170
|
-
isAutoincrement: false;
|
|
171
|
-
hasRuntimeDefault: false;
|
|
172
|
-
enumValues: undefined;
|
|
173
|
-
baseColumn: never;
|
|
174
|
-
identity: undefined;
|
|
175
|
-
generated: undefined;
|
|
176
|
-
}, {}, {}>;
|
|
177
|
-
}, undefined, undefined>;
|
|
3
|
+
export declare const AdminWebsiteLandingPageCreateSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
8
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
9
|
+
slug: z.ZodString;
|
|
10
|
+
content: z.ZodOptional<z.ZodType<{
|
|
11
|
+
title?: string;
|
|
12
|
+
body?: string;
|
|
13
|
+
positionIds?: Record<string, boolean>;
|
|
14
|
+
}, {
|
|
15
|
+
title?: string;
|
|
16
|
+
body?: string;
|
|
17
|
+
positionIds?: Record<string, boolean>;
|
|
18
|
+
}>>;
|
|
19
|
+
meta: z.ZodOptional<z.ZodType<{
|
|
20
|
+
title?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
keywords?: string;
|
|
23
|
+
}, {
|
|
24
|
+
title?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
keywords?: string;
|
|
27
|
+
}>>;
|
|
28
|
+
}, {
|
|
29
|
+
out: {};
|
|
30
|
+
in: {};
|
|
31
|
+
}>;
|
|
178
32
|
export declare const AdminWebsiteLandingPageSelectSchema: import("drizzle-zod").BuildSchema<"select", {
|
|
179
33
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
180
34
|
name: "id";
|
|
@@ -193,14 +47,14 @@ export declare const AdminWebsiteLandingPageSelectSchema: import("drizzle-zod").
|
|
|
193
47
|
identity: undefined;
|
|
194
48
|
generated: undefined;
|
|
195
49
|
}, {}, {}>;
|
|
196
|
-
|
|
197
|
-
name: "
|
|
50
|
+
idNano: import("drizzle-orm/pg-core").PgColumn<{
|
|
51
|
+
name: "idNano";
|
|
198
52
|
tableName: "website_landing_pages";
|
|
199
53
|
dataType: "string";
|
|
200
54
|
columnType: "PgText";
|
|
201
55
|
data: string;
|
|
202
56
|
driverParam: string;
|
|
203
|
-
notNull:
|
|
57
|
+
notNull: true;
|
|
204
58
|
hasDefault: false;
|
|
205
59
|
isPrimaryKey: false;
|
|
206
60
|
isAutoincrement: false;
|
|
@@ -368,14 +222,14 @@ export declare const AdminWebsiteLandingPageUpdateSchema: import("drizzle-zod").
|
|
|
368
222
|
identity: undefined;
|
|
369
223
|
generated: undefined;
|
|
370
224
|
}, {}, {}>;
|
|
371
|
-
|
|
372
|
-
name: "
|
|
225
|
+
idNano: import("drizzle-orm/pg-core").PgColumn<{
|
|
226
|
+
name: "idNano";
|
|
373
227
|
tableName: "website_landing_pages";
|
|
374
228
|
dataType: "string";
|
|
375
229
|
columnType: "PgText";
|
|
376
230
|
data: string;
|
|
377
231
|
driverParam: string;
|
|
378
|
-
notNull:
|
|
232
|
+
notNull: true;
|
|
379
233
|
hasDefault: false;
|
|
380
234
|
isPrimaryKey: false;
|
|
381
235
|
isAutoincrement: false;
|
|
@@ -5,7 +5,9 @@ const drizzle_zod_1 = require("drizzle-zod");
|
|
|
5
5
|
const core_1 = require("../../core");
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
7
7
|
//// validators
|
|
8
|
-
exports.AdminWebsiteLandingPageCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.websiteLandingPage)
|
|
8
|
+
exports.AdminWebsiteLandingPageCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.websiteLandingPage).omit({
|
|
9
|
+
idNano: true
|
|
10
|
+
});
|
|
9
11
|
exports.AdminWebsiteLandingPageSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.websiteLandingPage);
|
|
10
12
|
exports.AdminWebsiteLandingPageUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.websiteLandingPage);
|
|
11
13
|
exports.AdminWebsiteLandingPageParamsSchema = exports.AdminWebsiteLandingPageSelectSchema.pick({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/websiteLandingPages/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAA+C;AAC/C,0CAAmE;AAGnE,eAAe;AAEF,QAAA,mCAAmC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/websiteLandingPages/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAA+C;AAC/C,0CAAmE;AAGnE,eAAe;AAEF,QAAA,mCAAmC,GAAG,IAAA,gCAAkB,EACnE,yBAAkB,CACnB,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,IAAI;CACb,CAAC,CAAA;AACW,QAAA,mCAAmC,GAC9C,IAAA,gCAAkB,EAAC,yBAAkB,CAAC,CAAA;AAC3B,QAAA,mCAAmC,GAC9C,IAAA,gCAAkB,EAAC,yBAAkB,CAAC,CAAA;AAE3B,QAAA,mCAAmC,GAC9C,2CAAmC,CAAC,IAAI,CAAC;IACvC,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACS,QAAA,sCAAsC,GAAG,uBAAe,CAAA;AACxD,QAAA,yCAAyC,GACpD,2CAAmC,CAAA;AACxB,QAAA,yCAAyC,GACpD,2CAAmC,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { websiteLandingPage } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminWebsiteLandingPageCreateSchema = createInsertSchema(\n websiteLandingPage\n).omit({\n idNano: true\n})\nexport const AdminWebsiteLandingPageSelectSchema =\n createSelectSchema(websiteLandingPage)\nexport const AdminWebsiteLandingPageUpdateSchema =\n createUpdateSchema(websiteLandingPage)\n\nexport const AdminWebsiteLandingPageParamsSchema =\n AdminWebsiteLandingPageSelectSchema.pick({\n id: true\n })\nexport const AdminWebsiteLandingPageListQuerySchema = ListQuerySchema\nexport const AdminWebsiteLandingPageUpdateParamsSchema =\n AdminWebsiteLandingPageParamsSchema\nexport const adminWebsiteLandingPageDeleteParamsSchema =\n AdminWebsiteLandingPageParamsSchema\n\n//// types\n\ntype AdminWebsiteLandingPage = z.infer<\n typeof AdminWebsiteLandingPageSelectSchema\n>\n\n// detail\nexport type AdminWebsiteLandingPageParams = z.infer<\n typeof AdminWebsiteLandingPageParamsSchema\n>\nexport type AdminWebsiteLandingPageResult = AdminWebsiteLandingPage\n\n// list\nexport type AdminWebsiteLandingPageListQuery = z.infer<\n typeof AdminWebsiteLandingPageListQuerySchema\n>\nexport type AdminWebsiteLandingPageListResult = ListResponse<\n z.infer<typeof AdminWebsiteLandingPageSelectSchema>\n>\n\n// create\nexport type AdminWebsiteLandingPageCreateInput = z.infer<\n typeof AdminWebsiteLandingPageCreateSchema\n>\nexport type AdminWebsiteLandingPageCreateResult = Pick<\n AdminWebsiteLandingPage,\n 'id'\n>\n\n// update\nexport type AdminWebsiteLandingPageUpdateParams = z.infer<\n typeof AdminWebsiteLandingPageUpdateParamsSchema\n>\nexport type AdminWebsiteLandingPageUpdateInput = z.infer<\n typeof AdminWebsiteLandingPageUpdateSchema\n>\n\n// delete\nexport type AdminWebsiteLandingPageDeleteParams = z.infer<\n typeof adminWebsiteLandingPageDeleteParamsSchema\n>\n"]}
|
package/dist/schema/core.d.ts
CHANGED
|
@@ -3551,6 +3551,23 @@ export declare const person: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
3551
3551
|
identity: undefined;
|
|
3552
3552
|
generated: undefined;
|
|
3553
3553
|
}, {}, {}>;
|
|
3554
|
+
idNano: import("drizzle-orm/pg-core").PgColumn<{
|
|
3555
|
+
name: "idNano";
|
|
3556
|
+
tableName: "persons";
|
|
3557
|
+
dataType: "string";
|
|
3558
|
+
columnType: "PgText";
|
|
3559
|
+
data: string;
|
|
3560
|
+
driverParam: string;
|
|
3561
|
+
notNull: true;
|
|
3562
|
+
hasDefault: false;
|
|
3563
|
+
isPrimaryKey: false;
|
|
3564
|
+
isAutoincrement: false;
|
|
3565
|
+
hasRuntimeDefault: false;
|
|
3566
|
+
enumValues: [string, ...string[]];
|
|
3567
|
+
baseColumn: never;
|
|
3568
|
+
identity: undefined;
|
|
3569
|
+
generated: undefined;
|
|
3570
|
+
}, {}, {}>;
|
|
3554
3571
|
email: import("drizzle-orm/pg-core").PgColumn<{
|
|
3555
3572
|
name: "email";
|
|
3556
3573
|
tableName: "persons";
|
|
@@ -4601,6 +4618,23 @@ export declare const position: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
4601
4618
|
identity: undefined;
|
|
4602
4619
|
generated: undefined;
|
|
4603
4620
|
}, {}, {}>;
|
|
4621
|
+
idNano: import("drizzle-orm/pg-core").PgColumn<{
|
|
4622
|
+
name: "idNano";
|
|
4623
|
+
tableName: "positions";
|
|
4624
|
+
dataType: "string";
|
|
4625
|
+
columnType: "PgText";
|
|
4626
|
+
data: string;
|
|
4627
|
+
driverParam: string;
|
|
4628
|
+
notNull: true;
|
|
4629
|
+
hasDefault: false;
|
|
4630
|
+
isPrimaryKey: false;
|
|
4631
|
+
isAutoincrement: false;
|
|
4632
|
+
hasRuntimeDefault: false;
|
|
4633
|
+
enumValues: [string, ...string[]];
|
|
4634
|
+
baseColumn: never;
|
|
4635
|
+
identity: undefined;
|
|
4636
|
+
generated: undefined;
|
|
4637
|
+
}, {}, {}>;
|
|
4604
4638
|
slug: import("drizzle-orm/pg-core").PgColumn<{
|
|
4605
4639
|
name: "slug";
|
|
4606
4640
|
tableName: "positions";
|
|
@@ -6096,14 +6130,14 @@ export declare const websiteLandingPage: import("drizzle-orm/pg-core").PgTableWi
|
|
|
6096
6130
|
identity: undefined;
|
|
6097
6131
|
generated: undefined;
|
|
6098
6132
|
}, {}, {}>;
|
|
6099
|
-
|
|
6100
|
-
name: "
|
|
6133
|
+
idNano: import("drizzle-orm/pg-core").PgColumn<{
|
|
6134
|
+
name: "idNano";
|
|
6101
6135
|
tableName: "website_landing_pages";
|
|
6102
6136
|
dataType: "string";
|
|
6103
6137
|
columnType: "PgText";
|
|
6104
6138
|
data: string;
|
|
6105
6139
|
driverParam: string;
|
|
6106
|
-
notNull:
|
|
6140
|
+
notNull: true;
|
|
6107
6141
|
hasDefault: false;
|
|
6108
6142
|
isPrimaryKey: false;
|
|
6109
6143
|
isAutoincrement: false;
|
package/dist/schema/core.js
CHANGED
|
@@ -643,6 +643,7 @@ exports.partner = (0, pg_core_1.pgTable)('partners', {
|
|
|
643
643
|
]);
|
|
644
644
|
exports.person = (0, pg_core_1.pgTable)('persons', {
|
|
645
645
|
id: (0, pg_core_1.uuid)().defaultRandom().primaryKey().notNull(),
|
|
646
|
+
idNano: (0, pg_core_1.text)().notNull(),
|
|
646
647
|
email: (0, pg_core_1.text)().notNull(),
|
|
647
648
|
emailIsVerified: (0, pg_core_1.boolean)().default(false).notNull(),
|
|
648
649
|
firstName: (0, pg_core_1.text)(),
|
|
@@ -699,6 +700,7 @@ exports.person = (0, pg_core_1.pgTable)('persons', {
|
|
|
699
700
|
.defaultNow()
|
|
700
701
|
.notNull()
|
|
701
702
|
}, (table) => [
|
|
703
|
+
(0, pg_core_1.uniqueIndex)('Person_idNano_key').using('btree', table.idNano.asc().nullsLast().op('text_ops')),
|
|
702
704
|
(0, pg_core_1.uniqueIndex)('Person_email_key').using('btree', table.email.asc().nullsLast().op('text_ops')),
|
|
703
705
|
(0, pg_core_1.uniqueIndex)('Person_phone_key').using('btree', table.phone.asc().nullsLast().op('text_ops')),
|
|
704
706
|
(0, pg_core_1.foreignKey)({
|
|
@@ -845,6 +847,7 @@ exports.personToTag = (0, pg_core_1.pgTable)('persons_to_tags', {
|
|
|
845
847
|
]);
|
|
846
848
|
exports.position = (0, pg_core_1.pgTable)('positions', {
|
|
847
849
|
id: (0, pg_core_1.uuid)().defaultRandom().primaryKey().notNull(),
|
|
850
|
+
idNano: (0, pg_core_1.text)().notNull(),
|
|
848
851
|
slug: (0, pg_core_1.text)().notNull(),
|
|
849
852
|
name: (0, pg_core_1.text)().notNull(),
|
|
850
853
|
jobFunctionId: (0, pg_core_1.uuid)(),
|
|
@@ -882,6 +885,7 @@ exports.position = (0, pg_core_1.pgTable)('positions', {
|
|
|
882
885
|
.defaultNow()
|
|
883
886
|
.notNull()
|
|
884
887
|
}, (table) => [
|
|
888
|
+
(0, pg_core_1.uniqueIndex)('Position_idNano_key').using('btree', table.idNano.asc().nullsLast().op('text_ops')),
|
|
885
889
|
(0, pg_core_1.foreignKey)({
|
|
886
890
|
columns: [table.jobFunctionId],
|
|
887
891
|
foreignColumns: [exports.jobFunction.id],
|
|
@@ -1121,7 +1125,7 @@ exports.websiteBlock = (0, pg_core_1.pgTable)('website_blocks', {
|
|
|
1121
1125
|
]);
|
|
1122
1126
|
exports.websiteLandingPage = (0, pg_core_1.pgTable)('website_landing_pages', {
|
|
1123
1127
|
id: (0, pg_core_1.uuid)().defaultRandom().primaryKey().notNull(),
|
|
1124
|
-
|
|
1128
|
+
idNano: (0, pg_core_1.text)().notNull(),
|
|
1125
1129
|
slug: (0, pg_core_1.text)().notNull(),
|
|
1126
1130
|
name: (0, pg_core_1.text)().notNull(),
|
|
1127
1131
|
content: (0, pg_core_1.jsonb)()
|
|
@@ -1140,7 +1144,7 @@ exports.websiteLandingPage = (0, pg_core_1.pgTable)('website_landing_pages', {
|
|
|
1140
1144
|
.defaultNow()
|
|
1141
1145
|
.notNull()
|
|
1142
1146
|
}, (table) => [
|
|
1143
|
-
(0, pg_core_1.uniqueIndex)('
|
|
1147
|
+
(0, pg_core_1.uniqueIndex)('WebsiteLandingPage_idNano_key').using('btree', table.idNano.asc().nullsLast().op('text_ops'))
|
|
1144
1148
|
]);
|
|
1145
1149
|
exports.websiteStaticPage = (0, pg_core_1.pgTable)('website_static_pages', {
|
|
1146
1150
|
id: (0, pg_core_1.uuid)().defaultRandom().primaryKey().notNull(),
|