@the-inkwell/shared 0.2.321 → 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.
@@ -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"]}
@@ -7,127 +7,34 @@ export declare const AdminNetworkCreateSchema: z.ZodObject<{
7
7
  out: {};
8
8
  in: {};
9
9
  }>;
10
- export declare const AdminNetworkSelectSchema: import("drizzle-zod").BuildSchema<"select", {
11
- id: import("drizzle-orm/pg-core").PgColumn<{
12
- name: "id";
13
- tableName: "networks";
14
- dataType: "string";
15
- columnType: "PgUUID";
16
- data: string;
17
- driverParam: string;
18
- notNull: true;
19
- hasDefault: true;
20
- isPrimaryKey: true;
21
- isAutoincrement: false;
22
- hasRuntimeDefault: false;
23
- enumValues: undefined;
24
- baseColumn: never;
25
- identity: undefined;
26
- generated: undefined;
27
- }, {}, {}>;
28
- partnerId: import("drizzle-orm/pg-core").PgColumn<{
29
- name: "partnerId";
30
- tableName: "networks";
31
- dataType: "string";
32
- columnType: "PgUUID";
33
- data: string;
34
- driverParam: string;
35
- notNull: false;
36
- hasDefault: false;
37
- isPrimaryKey: false;
38
- isAutoincrement: false;
39
- hasRuntimeDefault: false;
40
- enumValues: undefined;
41
- baseColumn: never;
42
- identity: undefined;
43
- generated: undefined;
44
- }, {}, {}>;
45
- slug: import("drizzle-orm/pg-core").PgColumn<{
46
- name: "slug";
47
- tableName: "networks";
48
- dataType: "string";
49
- columnType: "PgText";
50
- data: string;
51
- driverParam: string;
52
- notNull: true;
53
- hasDefault: false;
54
- isPrimaryKey: false;
55
- isAutoincrement: false;
56
- hasRuntimeDefault: false;
57
- enumValues: [string, ...string[]];
58
- baseColumn: never;
59
- identity: undefined;
60
- generated: undefined;
61
- }, {}, {}>;
62
- name: import("drizzle-orm/pg-core").PgColumn<{
63
- name: "name";
64
- tableName: "networks";
65
- dataType: "string";
66
- columnType: "PgText";
67
- data: string;
68
- driverParam: string;
69
- notNull: true;
70
- hasDefault: false;
71
- isPrimaryKey: false;
72
- isAutoincrement: false;
73
- hasRuntimeDefault: false;
74
- enumValues: [string, ...string[]];
75
- baseColumn: never;
76
- identity: undefined;
77
- generated: undefined;
78
- }, {}, {}>;
79
- deletedAt: import("drizzle-orm/pg-core").PgColumn<{
80
- name: "deletedAt";
81
- tableName: "networks";
82
- dataType: "date";
83
- columnType: "PgTimestamp";
84
- data: Date;
85
- driverParam: string;
86
- notNull: false;
87
- hasDefault: false;
88
- isPrimaryKey: false;
89
- isAutoincrement: false;
90
- hasRuntimeDefault: false;
91
- enumValues: undefined;
92
- baseColumn: never;
93
- identity: undefined;
94
- generated: undefined;
95
- }, {}, {}>;
96
- createdAt: import("drizzle-orm/pg-core").PgColumn<{
97
- name: "createdAt";
98
- tableName: "networks";
99
- dataType: "date";
100
- columnType: "PgTimestamp";
101
- data: Date;
102
- driverParam: string;
103
- notNull: true;
104
- hasDefault: true;
105
- isPrimaryKey: false;
106
- isAutoincrement: false;
107
- hasRuntimeDefault: false;
108
- enumValues: undefined;
109
- baseColumn: never;
110
- identity: undefined;
111
- generated: undefined;
112
- }, {}, {}>;
113
- updatedAt: import("drizzle-orm/pg-core").PgColumn<{
114
- name: "updatedAt";
115
- tableName: "networks";
116
- dataType: "date";
117
- columnType: "PgTimestamp";
118
- data: Date;
119
- driverParam: string;
120
- notNull: true;
121
- hasDefault: true;
122
- isPrimaryKey: false;
123
- isAutoincrement: false;
124
- hasRuntimeDefault: false;
125
- enumValues: undefined;
126
- baseColumn: never;
127
- identity: undefined;
128
- generated: undefined;
129
- }, {}, {}>;
130
- }, undefined, undefined>;
10
+ export declare const AdminNetworkSelectSchema: z.ZodObject<{
11
+ id: z.ZodUUID;
12
+ partnerId: z.ZodNullable<z.ZodUUID>;
13
+ slug: z.ZodString;
14
+ name: z.ZodString;
15
+ deletedAt: z.ZodNullable<z.ZodDate>;
16
+ createdAt: z.ZodDate;
17
+ updatedAt: z.ZodDate;
18
+ _peopleCount: z.ZodOptional<z.ZodNumber>;
19
+ persons: z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ personId: z.ZodUUID;
21
+ networkId: z.ZodUUID;
22
+ person: z.ZodNullable<z.ZodObject<{
23
+ email: z.ZodString;
24
+ id: z.ZodUUID;
25
+ fullName: z.ZodNullable<z.ZodString>;
26
+ }, {
27
+ out: {};
28
+ in: {};
29
+ }>>;
30
+ }, {
31
+ out: {};
32
+ in: {};
33
+ }>>>;
34
+ }, {
35
+ out: {};
36
+ in: {};
37
+ }>;
131
38
  export declare const AdminNetworkUpdateSchema: z.ZodObject<{
132
39
  name: z.ZodOptional<z.ZodString>;
133
40
  partnerId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdminNetworkDeleteParamsSchema = exports.AdminNetworkUpdateParamsSchema = exports.AdminNetworkListQuerySchema = exports.AdminNetworkParamsSchema = exports.AdminNetworkUpdateSchema = exports.AdminNetworkSelectSchema = exports.AdminNetworkCreateSchema = void 0;
4
4
  const drizzle_zod_1 = require("drizzle-zod");
5
5
  const core_1 = require("../../core");
6
+ const core_2 = require("../../core");
6
7
  const utils_1 = require("../../../utils");
7
8
  const v4_1 = require("zod/v4");
8
9
  //// validators
@@ -10,7 +11,25 @@ exports.AdminNetworkCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.
10
11
  name: true,
11
12
  partnerId: true
12
13
  });
13
- exports.AdminNetworkSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.network);
14
+ exports.AdminNetworkSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.network).extend({
15
+ _peopleCount: v4_1.z.number().optional(),
16
+ persons: v4_1.z
17
+ .array((0, drizzle_zod_1.createSelectSchema)(core_2.personToNetwork)
18
+ .pick({
19
+ personId: true,
20
+ networkId: true
21
+ })
22
+ .extend({
23
+ person: (0, drizzle_zod_1.createSelectSchema)(core_2.person)
24
+ .pick({
25
+ id: true,
26
+ email: true,
27
+ fullName: true
28
+ })
29
+ .nullable()
30
+ }))
31
+ .optional()
32
+ });
14
33
  exports.AdminNetworkUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.network).pick({
15
34
  name: true,
16
35
  partnerId: true
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/networks/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAAoC;AACpC,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,wBAAwB,GAAG,IAAA,gCAAkB,EAAC,cAAO,CAAC,CAAC,IAAI,CAAC;IACvE,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA;AACW,QAAA,wBAAwB,GAAG,IAAA,gCAAkB,EAAC,cAAO,CAAC,CAAA;AACtD,QAAA,wBAAwB,GAAG,IAAA,gCAAkB,EAAC,cAAO,CAAC,CAAC,IAAI,CAAC;IACvE,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA;AAEW,QAAA,wBAAwB,GAAG,gCAAwB,CAAC,IAAI,CAAC;IACpE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,2BAA2B,GAAG,uBAAe,CAAC,MAAM,CAAC;IAChE,MAAM,EAAE,MAAC;SACN,MAAM,CAAC;QACN,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC5B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,8BAA8B,GAAG,gCAAwB,CAAA;AACzD,QAAA,8BAA8B,GAAG,gCAAwB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { network } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminNetworkCreateSchema = createInsertSchema(network).pick({\n name: true,\n partnerId: true\n})\nexport const AdminNetworkSelectSchema = createSelectSchema(network)\nexport const AdminNetworkUpdateSchema = createUpdateSchema(network).pick({\n name: true,\n partnerId: true\n})\n\nexport const AdminNetworkParamsSchema = AdminNetworkSelectSchema.pick({\n id: true\n})\nexport const AdminNetworkListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n name: z.string().optional()\n })\n .optional()\n})\nexport const AdminNetworkUpdateParamsSchema = AdminNetworkParamsSchema\nexport const AdminNetworkDeleteParamsSchema = AdminNetworkParamsSchema\n\n//// types\n\ntype AdminNetwork = z.infer<typeof AdminNetworkSelectSchema>\n\n// detail\nexport type AdminNetworkParams = z.infer<typeof AdminNetworkParamsSchema>\nexport type AdminNetworkResult = AdminNetwork\n\n// list\nexport type AdminNetworkListQuery = z.infer<typeof AdminNetworkListQuerySchema>\nexport type AdminNetworkListResult = ListResponse<AdminNetwork>\n\n// create\nexport type AdminNetworkCreateInput = z.infer<typeof AdminNetworkCreateSchema>\nexport type AdminNetworkCreateResult = Pick<AdminNetwork, 'id'>\n\n// update\nexport type AdminNetworkUpdateParams = z.infer<\n typeof AdminNetworkUpdateParamsSchema\n>\nexport type AdminNetworkUpdateInput = z.infer<typeof AdminNetworkUpdateSchema>\n\n// delete\nexport type AdminNetworkDeleteParams = z.infer<\n typeof AdminNetworkDeleteParamsSchema\n>\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/networks/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAAoC;AACpC,qCAAoD;AACpD,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,wBAAwB,GAAG,IAAA,gCAAkB,EAAC,cAAO,CAAC,CAAC,IAAI,CAAC;IACvE,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA;AACW,QAAA,wBAAwB,GAAG,IAAA,gCAAkB,EAAC,cAAO,CAAC,CAAC,MAAM,CAAC;IACzE,YAAY,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,OAAO,EAAE,MAAC;SACP,KAAK,CACJ,IAAA,gCAAkB,EAAC,sBAAe,CAAC;SAChC,IAAI,CAAC;QACJ,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,IAAI;KAChB,CAAC;SACD,MAAM,CAAC;QACN,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC;aAC/B,IAAI,CAAC;YACJ,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,IAAI;SACf,CAAC;aACD,QAAQ,EAAE;KACd,CAAC,CACL;SACA,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,wBAAwB,GAAG,IAAA,gCAAkB,EAAC,cAAO,CAAC,CAAC,IAAI,CAAC;IACvE,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA;AAEW,QAAA,wBAAwB,GAAG,gCAAwB,CAAC,IAAI,CAAC;IACpE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,2BAA2B,GAAG,uBAAe,CAAC,MAAM,CAAC;IAChE,MAAM,EAAE,MAAC;SACN,MAAM,CAAC;QACN,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC5B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,8BAA8B,GAAG,gCAAwB,CAAA;AACzD,QAAA,8BAA8B,GAAG,gCAAwB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { network } from '../../core'\nimport { person, personToNetwork } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminNetworkCreateSchema = createInsertSchema(network).pick({\n name: true,\n partnerId: true\n})\nexport const AdminNetworkSelectSchema = createSelectSchema(network).extend({\n _peopleCount: z.number().optional(),\n persons: z\n .array(\n createSelectSchema(personToNetwork)\n .pick({\n personId: true,\n networkId: 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})\nexport const AdminNetworkUpdateSchema = createUpdateSchema(network).pick({\n name: true,\n partnerId: true\n})\n\nexport const AdminNetworkParamsSchema = AdminNetworkSelectSchema.pick({\n id: true\n})\nexport const AdminNetworkListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n name: z.string().optional()\n })\n .optional()\n})\nexport const AdminNetworkUpdateParamsSchema = AdminNetworkParamsSchema\nexport const AdminNetworkDeleteParamsSchema = AdminNetworkParamsSchema\n\n//// types\n\ntype AdminNetwork = z.infer<typeof AdminNetworkSelectSchema>\n\n// detail\nexport type AdminNetworkParams = z.infer<typeof AdminNetworkParamsSchema>\nexport type AdminNetworkResult = AdminNetwork\n\n// list\nexport type AdminNetworkListQuery = z.infer<typeof AdminNetworkListQuerySchema>\nexport type AdminNetworkListResult = ListResponse<AdminNetwork>\n\n// create\nexport type AdminNetworkCreateInput = z.infer<typeof AdminNetworkCreateSchema>\nexport type AdminNetworkCreateResult = Pick<AdminNetwork, 'id'>\n\n// update\nexport type AdminNetworkUpdateParams = z.infer<\n typeof AdminNetworkUpdateParamsSchema\n>\nexport type AdminNetworkUpdateInput = z.infer<typeof AdminNetworkUpdateSchema>\n\n// delete\nexport type AdminNetworkDeleteParams = z.infer<\n typeof AdminNetworkDeleteParamsSchema\n>\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,EAClE,wBAAiB,CAClB,CAAC,MAAM,CAAC;IACP,YAAY,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,OAAO,EAAE,IAAA,gCAAkB,EAAC,cAAO,CAAC;SACjC,IAAI,CAAC;QACJ,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,OAAO,EAAE,MAAC;SACP,KAAK,CACJ,IAAA,gCAAkB,EAAC,gCAAyB,CAAC;SAC1C,IAAI,CAAC;QACJ,QAAQ,EAAE,IAAI;QACd,mBAAmB,EAAE,IAAI;KAC1B,CAAC;SACD,MAAM,CAAC;QACN,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC;aAC/B,IAAI,CAAC;YACJ,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,IAAI;SACf,CAAC;aACD,QAAQ,EAAE;KACd,CAAC,CACL;SACA,QAAQ,EAAE;CACd,CAAC,CAAA;AAEW,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,GAC7C,0CAAkC,CAAC,IAAI,CAAC;IACtC,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AAES,QAAA,qCAAqC,GAAG,uBAAe,CAAC,MAAM,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\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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.321",
3
+ "version": "0.2.323",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",