@the-inkwell/shared 0.2.322 → 0.2.323
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/index.d.ts +1 -0
- package/dist/schema/admin/index.js +1 -0
- package/dist/schema/admin/index.js.map +1 -1
- package/dist/schema/admin/professionalEvents/index.d.ts +93 -0
- package/dist/schema/admin/professionalEvents/index.js +57 -0
- package/dist/schema/admin/professionalEvents/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ export * from './persons';
|
|
|
19
19
|
export * from './personsToBestPersons';
|
|
20
20
|
export * from './personsToNetworks';
|
|
21
21
|
export * from './personsToProfessionalEvents';
|
|
22
|
+
export * from './professionalEvents';
|
|
22
23
|
export * from './personsToSkills';
|
|
23
24
|
export * from './personsToTags';
|
|
24
25
|
export * from './positions';
|
|
@@ -35,6 +35,7 @@ __exportStar(require("./persons"), exports);
|
|
|
35
35
|
__exportStar(require("./personsToBestPersons"), exports);
|
|
36
36
|
__exportStar(require("./personsToNetworks"), exports);
|
|
37
37
|
__exportStar(require("./personsToProfessionalEvents"), exports);
|
|
38
|
+
__exportStar(require("./professionalEvents"), exports);
|
|
38
39
|
__exportStar(require("./personsToSkills"), exports);
|
|
39
40
|
__exportStar(require("./personsToTags"), exports);
|
|
40
41
|
__exportStar(require("./positions"), exports);
|
|
@@ -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,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 './networks'\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"]}
|
|
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,6CAA0B;AAC1B,4CAAyB;AACzB,yDAAsC;AACtC,sDAAmC;AACnC,gEAA6C;AAC7C,uDAAoC;AACpC,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 './networks'\nexport * from './partners'\nexport * from './persons'\nexport * from './personsToBestPersons'\nexport * from './personsToNetworks'\nexport * from './personsToProfessionalEvents'\nexport * from './professionalEvents'\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,93 @@
|
|
|
1
|
+
import { type ListResponse } from '../../../utils';
|
|
2
|
+
import { z } from 'zod/v4';
|
|
3
|
+
export declare const AdminProfessionalEventCreateSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
networkId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
6
|
+
eventAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7
|
+
}, {
|
|
8
|
+
out: {};
|
|
9
|
+
in: {};
|
|
10
|
+
}>;
|
|
11
|
+
export declare const AdminProfessionalEventSelectSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodUUID;
|
|
13
|
+
networkId: z.ZodNullable<z.ZodUUID>;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
eventAt: z.ZodNullable<z.ZodDate>;
|
|
16
|
+
_peopleCount: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
network: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
id: z.ZodUUID;
|
|
20
|
+
}, {
|
|
21
|
+
out: {};
|
|
22
|
+
in: {};
|
|
23
|
+
}>>>;
|
|
24
|
+
persons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25
|
+
personId: z.ZodUUID;
|
|
26
|
+
professionalEventId: z.ZodUUID;
|
|
27
|
+
person: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
email: z.ZodString;
|
|
29
|
+
id: z.ZodUUID;
|
|
30
|
+
fullName: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, {
|
|
32
|
+
out: {};
|
|
33
|
+
in: {};
|
|
34
|
+
}>>;
|
|
35
|
+
}, {
|
|
36
|
+
out: {};
|
|
37
|
+
in: {};
|
|
38
|
+
}>>>;
|
|
39
|
+
}, {
|
|
40
|
+
out: {};
|
|
41
|
+
in: {};
|
|
42
|
+
}>;
|
|
43
|
+
export declare const AdminProfessionalEventUpdateSchema: z.ZodObject<{
|
|
44
|
+
name: z.ZodOptional<z.ZodString>;
|
|
45
|
+
networkId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
46
|
+
eventAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
47
|
+
}, {
|
|
48
|
+
out: {};
|
|
49
|
+
in: {};
|
|
50
|
+
}>;
|
|
51
|
+
export declare const AdminProfessionalEventParamsSchema: z.ZodObject<{
|
|
52
|
+
id: z.ZodUUID;
|
|
53
|
+
}, {
|
|
54
|
+
out: {};
|
|
55
|
+
in: {};
|
|
56
|
+
}>;
|
|
57
|
+
export declare const AdminProfessionalEventListQuerySchema: z.ZodObject<{
|
|
58
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
field: z.ZodString;
|
|
62
|
+
direction: z.ZodEnum<{
|
|
63
|
+
asc: "asc";
|
|
64
|
+
desc: "desc";
|
|
65
|
+
}>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
name: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export declare const AdminProfessionalEventUpdateParamsSchema: z.ZodObject<{
|
|
72
|
+
id: z.ZodUUID;
|
|
73
|
+
}, {
|
|
74
|
+
out: {};
|
|
75
|
+
in: {};
|
|
76
|
+
}>;
|
|
77
|
+
export declare const AdminProfessionalEventDeleteParamsSchema: z.ZodObject<{
|
|
78
|
+
id: z.ZodUUID;
|
|
79
|
+
}, {
|
|
80
|
+
out: {};
|
|
81
|
+
in: {};
|
|
82
|
+
}>;
|
|
83
|
+
type AdminProfessionalEvent = z.infer<typeof AdminProfessionalEventSelectSchema>;
|
|
84
|
+
export type AdminProfessionalEventParams = z.infer<typeof AdminProfessionalEventParamsSchema>;
|
|
85
|
+
export type AdminProfessionalEventResult = AdminProfessionalEvent;
|
|
86
|
+
export type AdminProfessionalEventListQuery = z.infer<typeof AdminProfessionalEventListQuerySchema>;
|
|
87
|
+
export type AdminProfessionalEventListResult = ListResponse<AdminProfessionalEvent>;
|
|
88
|
+
export type AdminProfessionalEventCreateInput = z.infer<typeof AdminProfessionalEventCreateSchema>;
|
|
89
|
+
export type AdminProfessionalEventCreateResult = Pick<AdminProfessionalEvent, 'id'>;
|
|
90
|
+
export type AdminProfessionalEventUpdateParams = z.infer<typeof AdminProfessionalEventUpdateParamsSchema>;
|
|
91
|
+
export type AdminProfessionalEventUpdateInput = z.infer<typeof AdminProfessionalEventUpdateSchema>;
|
|
92
|
+
export type AdminProfessionalEventDeleteParams = z.infer<typeof AdminProfessionalEventDeleteParamsSchema>;
|
|
93
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminProfessionalEventDeleteParamsSchema = exports.AdminProfessionalEventUpdateParamsSchema = exports.AdminProfessionalEventListQuerySchema = exports.AdminProfessionalEventParamsSchema = exports.AdminProfessionalEventUpdateSchema = exports.AdminProfessionalEventSelectSchema = exports.AdminProfessionalEventCreateSchema = void 0;
|
|
4
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
+
const core_1 = require("../../core");
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
const v4_1 = require("zod/v4");
|
|
8
|
+
//// validators
|
|
9
|
+
exports.AdminProfessionalEventCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.professionalEvent).pick({
|
|
10
|
+
name: true,
|
|
11
|
+
networkId: true,
|
|
12
|
+
eventAt: true
|
|
13
|
+
});
|
|
14
|
+
exports.AdminProfessionalEventSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.professionalEvent).extend({
|
|
15
|
+
_peopleCount: v4_1.z.number().optional(),
|
|
16
|
+
network: (0, drizzle_zod_1.createSelectSchema)(core_1.network)
|
|
17
|
+
.pick({
|
|
18
|
+
id: true,
|
|
19
|
+
name: true
|
|
20
|
+
})
|
|
21
|
+
.nullable()
|
|
22
|
+
.optional(),
|
|
23
|
+
persons: v4_1.z
|
|
24
|
+
.array((0, drizzle_zod_1.createSelectSchema)(core_1.personToProfessionalEvent)
|
|
25
|
+
.pick({
|
|
26
|
+
personId: true,
|
|
27
|
+
professionalEventId: true
|
|
28
|
+
})
|
|
29
|
+
.extend({
|
|
30
|
+
person: (0, drizzle_zod_1.createSelectSchema)(core_1.person)
|
|
31
|
+
.pick({
|
|
32
|
+
id: true,
|
|
33
|
+
email: true,
|
|
34
|
+
fullName: true
|
|
35
|
+
})
|
|
36
|
+
.nullable()
|
|
37
|
+
}))
|
|
38
|
+
.optional()
|
|
39
|
+
});
|
|
40
|
+
exports.AdminProfessionalEventUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.professionalEvent).pick({
|
|
41
|
+
name: true,
|
|
42
|
+
networkId: true,
|
|
43
|
+
eventAt: true
|
|
44
|
+
});
|
|
45
|
+
exports.AdminProfessionalEventParamsSchema = exports.AdminProfessionalEventSelectSchema.pick({
|
|
46
|
+
id: true
|
|
47
|
+
});
|
|
48
|
+
exports.AdminProfessionalEventListQuerySchema = utils_1.ListQuerySchema.extend({
|
|
49
|
+
filter: v4_1.z
|
|
50
|
+
.object({
|
|
51
|
+
name: v4_1.z.string().optional()
|
|
52
|
+
})
|
|
53
|
+
.optional()
|
|
54
|
+
});
|
|
55
|
+
exports.AdminProfessionalEventUpdateParamsSchema = exports.AdminProfessionalEventParamsSchema;
|
|
56
|
+
exports.AdminProfessionalEventDeleteParamsSchema = exports.AdminProfessionalEventParamsSchema;
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/professionalEvents/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAKmB;AACnB,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,kCAAkC,GAAG,IAAA,gCAAkB,EAClE,wBAAiB,CAClB,CAAC,IAAI,CAAC;IACL,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;IACf,OAAO,EAAE,IAAI;CACd,CAAC,CAAA;AAEW,QAAA,kCAAkC,GAAG,IAAA,gCAAkB,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ema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport {\n network,\n person,\n personToProfessionalEvent,\n professionalEvent\n} from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminProfessionalEventCreateSchema = createInsertSchema(\n professionalEvent\n).pick({\n name: true,\n networkId: true,\n eventAt: true\n})\n\nexport const AdminProfessionalEventSelectSchema = createSelectSchema(\n professionalEvent\n).extend({\n _peopleCount: z.number().optional(),\n network: createSelectSchema(network)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n persons: z\n .array(\n createSelectSchema(personToProfessionalEvent)\n .pick({\n personId: true,\n professionalEventId: true\n })\n .extend({\n person: createSelectSchema(person)\n .pick({\n id: true,\n email: true,\n fullName: true\n })\n .nullable()\n })\n )\n .optional()\n})\n\nexport const AdminProfessionalEventUpdateSchema = createUpdateSchema(\n professionalEvent\n).pick({\n name: true,\n networkId: true,\n eventAt: true\n})\n\nexport const AdminProfessionalEventParamsSchema =\n AdminProfessionalEventSelectSchema.pick({\n id: true\n })\n\nexport const AdminProfessionalEventListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n name: z.string().optional()\n })\n .optional()\n})\n\nexport const AdminProfessionalEventUpdateParamsSchema =\n AdminProfessionalEventParamsSchema\n\nexport const AdminProfessionalEventDeleteParamsSchema =\n AdminProfessionalEventParamsSchema\n\n//// types\n\ntype AdminProfessionalEvent = z.infer<typeof AdminProfessionalEventSelectSchema>\n\n// detail\nexport type AdminProfessionalEventParams = z.infer<\n typeof AdminProfessionalEventParamsSchema\n>\nexport type AdminProfessionalEventResult = AdminProfessionalEvent\n\n// list\nexport type AdminProfessionalEventListQuery = z.infer<\n typeof AdminProfessionalEventListQuerySchema\n>\nexport type AdminProfessionalEventListResult =\n ListResponse<AdminProfessionalEvent>\n\n// create\nexport type AdminProfessionalEventCreateInput = z.infer<\n typeof AdminProfessionalEventCreateSchema\n>\nexport type AdminProfessionalEventCreateResult = Pick<\n AdminProfessionalEvent,\n 'id'\n>\n\n// update\nexport type AdminProfessionalEventUpdateParams = z.infer<\n typeof AdminProfessionalEventUpdateParamsSchema\n>\nexport type AdminProfessionalEventUpdateInput = z.infer<\n typeof AdminProfessionalEventUpdateSchema\n>\n\n// delete\nexport type AdminProfessionalEventDeleteParams = z.infer<\n typeof AdminProfessionalEventDeleteParamsSchema\n>\n"]}
|