@the-inkwell/shared 0.2.22 → 0.2.24
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 +36 -37
- 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 +142 -587
- 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 +29 -175
- 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 +58 -0
- package/dist/schema/core.js +6 -1
- 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";
|
|
@@ -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
|
@@ -5363,6 +5363,64 @@ export declare const positionToTag: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
5363
5363
|
};
|
|
5364
5364
|
dialect: "pg";
|
|
5365
5365
|
}>;
|
|
5366
|
+
export declare const professionalEvent: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5367
|
+
name: "professional_events";
|
|
5368
|
+
schema: undefined;
|
|
5369
|
+
columns: {
|
|
5370
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
5371
|
+
name: "id";
|
|
5372
|
+
tableName: "professional_events";
|
|
5373
|
+
dataType: "string";
|
|
5374
|
+
columnType: "PgUUID";
|
|
5375
|
+
data: string;
|
|
5376
|
+
driverParam: string;
|
|
5377
|
+
notNull: true;
|
|
5378
|
+
hasDefault: true;
|
|
5379
|
+
isPrimaryKey: true;
|
|
5380
|
+
isAutoincrement: false;
|
|
5381
|
+
hasRuntimeDefault: false;
|
|
5382
|
+
enumValues: undefined;
|
|
5383
|
+
baseColumn: never;
|
|
5384
|
+
identity: undefined;
|
|
5385
|
+
generated: undefined;
|
|
5386
|
+
}, {}, {}>;
|
|
5387
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
5388
|
+
name: "name";
|
|
5389
|
+
tableName: "professional_events";
|
|
5390
|
+
dataType: "string";
|
|
5391
|
+
columnType: "PgText";
|
|
5392
|
+
data: string;
|
|
5393
|
+
driverParam: string;
|
|
5394
|
+
notNull: true;
|
|
5395
|
+
hasDefault: false;
|
|
5396
|
+
isPrimaryKey: false;
|
|
5397
|
+
isAutoincrement: false;
|
|
5398
|
+
hasRuntimeDefault: false;
|
|
5399
|
+
enumValues: [string, ...string[]];
|
|
5400
|
+
baseColumn: never;
|
|
5401
|
+
identity: undefined;
|
|
5402
|
+
generated: undefined;
|
|
5403
|
+
}, {}, {}>;
|
|
5404
|
+
eventAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5405
|
+
name: "eventAt";
|
|
5406
|
+
tableName: "professional_events";
|
|
5407
|
+
dataType: "date";
|
|
5408
|
+
columnType: "PgTimestamp";
|
|
5409
|
+
data: Date;
|
|
5410
|
+
driverParam: string;
|
|
5411
|
+
notNull: false;
|
|
5412
|
+
hasDefault: false;
|
|
5413
|
+
isPrimaryKey: false;
|
|
5414
|
+
isAutoincrement: false;
|
|
5415
|
+
hasRuntimeDefault: false;
|
|
5416
|
+
enumValues: undefined;
|
|
5417
|
+
baseColumn: never;
|
|
5418
|
+
identity: undefined;
|
|
5419
|
+
generated: undefined;
|
|
5420
|
+
}, {}, {}>;
|
|
5421
|
+
};
|
|
5422
|
+
dialect: "pg";
|
|
5423
|
+
}>;
|
|
5366
5424
|
export declare const referral: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5367
5425
|
name: "referrals";
|
|
5368
5426
|
schema: undefined;
|
package/dist/schema/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.position = exports.personToTag = exports.personToSkill = exports.personToNetwork = exports.personToCertification = exports.personToBestPerson = exports.person = exports.partner = exports.otp = exports.note = exports.network = exports.message = exports.listView = exports.jwt = exports.jobFunction = exports.industry = exports.experience = exports.enrichment = exports.education = exports.contract = exports.candidacyFeedback = exports.candidacy = exports.campaign = exports.clientToIndustry = exports.client = exports.certification = exports.admin = exports.action = exports.States = exports.ClientSources = exports.ReferralSources = exports.PositionClosedReasons = exports.PersonSources = exports.MessageStatuses = exports.MessageChannels = exports.ListViewModels = exports.JobLevels = exports.Genders = exports.EnrichmentSources = exports.EmploymentLocationTypes = exports.EmploymentTypes = exports.EducationFields = exports.EducationDegrees = exports.Countries = exports.ClientStatuses = exports.CandidacyStages = exports.CandidacySources = exports.CandidacyRejectors = exports.CandidacyAssessmentCategories = exports.Actions = void 0;
|
|
4
|
-
exports.tagRelations = exports.skillRelations = exports.senderRelations = exports.referralToMessageRelations = exports.referralRelations = exports.referralPayoutRelations = exports.positionToSkillRelations = exports.positionToIndustryRelations = exports.positionRelations = exports.personToTagRelations = exports.personToSkillRelations = exports.personToNetworkRelations = exports.personToBestPersonRelations = exports.personRelations = exports.partnerRelations = exports.otpRelations = exports.noteRelations = exports.networkRelations = exports.messageRelations = exports.jwtRelations = exports.jobFunctionRelations = exports.industryRelations = exports.experienceRelations = exports.enrichmentRelations = exports.educationRelations = exports.contractRelations = exports.clientRelations = exports.certificationRelations = exports.candidacyRelations = exports.candidacyFeedbackRelations = exports.campaignRelations = exports.adminRelations = exports.actionRelations = exports.websiteStaticPage = exports.websiteLandingPage = exports.websiteBlock = exports.tag = exports.skill = exports.sender = exports.referralPayout = exports.referralToMessage = exports.referral = exports.positionToTag = exports.positionToSkill = exports.positionToIndustry = void 0;
|
|
4
|
+
exports.tagRelations = exports.skillRelations = exports.senderRelations = exports.referralToMessageRelations = exports.referralRelations = exports.referralPayoutRelations = exports.positionToSkillRelations = exports.positionToIndustryRelations = exports.positionRelations = exports.personToTagRelations = exports.personToSkillRelations = exports.personToNetworkRelations = exports.personToBestPersonRelations = exports.personRelations = exports.partnerRelations = exports.otpRelations = exports.noteRelations = exports.networkRelations = exports.messageRelations = exports.jwtRelations = exports.jobFunctionRelations = exports.industryRelations = exports.experienceRelations = exports.enrichmentRelations = exports.educationRelations = exports.contractRelations = exports.clientRelations = exports.certificationRelations = exports.candidacyRelations = exports.candidacyFeedbackRelations = exports.campaignRelations = exports.adminRelations = exports.actionRelations = exports.websiteStaticPage = exports.websiteLandingPage = exports.websiteBlock = exports.tag = exports.skill = exports.sender = exports.referralPayout = exports.referralToMessage = exports.referral = exports.professionalEvent = exports.positionToTag = exports.positionToSkill = exports.positionToIndustry = void 0;
|
|
5
5
|
const pg_core_1 = require("drizzle-orm/pg-core");
|
|
6
6
|
const drizzle_orm_1 = require("drizzle-orm");
|
|
7
7
|
const utils_1 = require("../utils");
|
|
@@ -986,6 +986,11 @@ exports.positionToTag = (0, pg_core_1.pgTable)('positions_to_tags', {
|
|
|
986
986
|
name: 'PositionToTag_pkey'
|
|
987
987
|
})
|
|
988
988
|
]);
|
|
989
|
+
exports.professionalEvent = (0, pg_core_1.pgTable)('professional_events', {
|
|
990
|
+
id: (0, pg_core_1.uuid)().defaultRandom().primaryKey().notNull(),
|
|
991
|
+
name: (0, pg_core_1.text)().notNull(),
|
|
992
|
+
eventAt: (0, pg_core_1.timestamp)({ precision: 3, mode: 'date', withTimezone: true })
|
|
993
|
+
});
|
|
989
994
|
exports.referral = (0, pg_core_1.pgTable)('referrals', {
|
|
990
995
|
id: (0, pg_core_1.uuid)().defaultRandom().primaryKey().notNull(),
|
|
991
996
|
source: (0, exports.ReferralSources)().notNull(),
|