@the-inkwell/shared 0.2.322 → 0.2.324

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.
@@ -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.ZodUnion<readonly [z.ZodCoercedDate<unknown>, z.ZodNull]>>;
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.ZodUnion<readonly [z.ZodCoercedDate<unknown>, z.ZodNull]>>;
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,66 @@
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
+ const EventAtInputSchema = v4_1.z.union([v4_1.z.coerce.date(), v4_1.z.null()]).optional();
10
+ exports.AdminProfessionalEventCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.professionalEvent)
11
+ .pick({
12
+ name: true,
13
+ networkId: true,
14
+ eventAt: true
15
+ })
16
+ .extend({
17
+ eventAt: EventAtInputSchema
18
+ });
19
+ exports.AdminProfessionalEventSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.professionalEvent).extend({
20
+ _peopleCount: v4_1.z.number().optional(),
21
+ network: (0, drizzle_zod_1.createSelectSchema)(core_1.network)
22
+ .pick({
23
+ id: true,
24
+ name: true
25
+ })
26
+ .nullable()
27
+ .optional(),
28
+ persons: v4_1.z
29
+ .array((0, drizzle_zod_1.createSelectSchema)(core_1.personToProfessionalEvent)
30
+ .pick({
31
+ personId: true,
32
+ professionalEventId: true
33
+ })
34
+ .extend({
35
+ person: (0, drizzle_zod_1.createSelectSchema)(core_1.person)
36
+ .pick({
37
+ id: true,
38
+ email: true,
39
+ fullName: true
40
+ })
41
+ .nullable()
42
+ }))
43
+ .optional()
44
+ });
45
+ exports.AdminProfessionalEventUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.professionalEvent)
46
+ .pick({
47
+ name: true,
48
+ networkId: true,
49
+ eventAt: true
50
+ })
51
+ .extend({
52
+ eventAt: EventAtInputSchema
53
+ });
54
+ exports.AdminProfessionalEventParamsSchema = exports.AdminProfessionalEventSelectSchema.pick({
55
+ id: true
56
+ });
57
+ exports.AdminProfessionalEventListQuerySchema = utils_1.ListQuerySchema.extend({
58
+ filter: v4_1.z
59
+ .object({
60
+ name: v4_1.z.string().optional()
61
+ })
62
+ .optional()
63
+ });
64
+ exports.AdminProfessionalEventUpdateParamsSchema = exports.AdminProfessionalEventParamsSchema;
65
+ exports.AdminProfessionalEventDeleteParamsSchema = exports.AdminProfessionalEventParamsSchema;
66
+ //# 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,MAAM,kBAAkB,GAAG,MAAC,CAAC,KAAK,CAAC,CAAC,MAAC,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,MAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAA;AAE7D,QAAA,kCAAkC,GAAG,IAAA,gCA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AAM,CAAC;IAC1E,MAAM,EAAE,MAAC;SACN,MAAM,CAAC;QACN,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC5B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AAEW,QAAA,wCAAwC,GACnD,0CAAkC,CAAA;AAEvB,QAAA,wCAAwC,GACnD,0CAAkC,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\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\nconst EventAtInputSchema = z.union([z.coerce.date(), z.null()]).optional()\n\nexport const AdminProfessionalEventCreateSchema = createInsertSchema(\n professionalEvent\n)\n .pick({\n name: true,\n networkId: true,\n eventAt: true\n })\n .extend({\n eventAt: EventAtInputSchema\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)\n .pick({\n name: true,\n networkId: true,\n eventAt: true\n })\n .extend({\n eventAt: EventAtInputSchema\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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.322",
3
+ "version": "0.2.324",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",