@the-inkwell/shared 0.2.319 → 0.2.321

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.
@@ -664,7 +664,12 @@ export declare const AdminClientCreateSchema: import("drizzle-zod").BuildSchema<
664
664
  identity: undefined;
665
665
  generated: undefined;
666
666
  }, {}, {}>;
667
- }, undefined, undefined>;
667
+ }, {
668
+ convertedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
669
+ followUpAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
670
+ lastContactedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
671
+ initialOutreachAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
672
+ }, undefined>;
668
673
  export declare const AdminClientSelectSchema: z.ZodObject<{
669
674
  id: z.ZodUUID;
670
675
  name: z.ZodString;
@@ -6,7 +6,12 @@ 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.AdminClientCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.client);
9
+ exports.AdminClientCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.client, {
10
+ convertedAt: v4_1.z.coerce.date().nullable().optional(),
11
+ followUpAt: v4_1.z.coerce.date().nullable().optional(),
12
+ lastContactedAt: v4_1.z.coerce.date().nullable().optional(),
13
+ initialOutreachAt: v4_1.z.coerce.date().nullable().optional()
14
+ });
10
15
  exports.AdminClientSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.client).extend({
11
16
  industry: (0, drizzle_zod_1.createSelectSchema)(core_1.industry)
12
17
  .pick({
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/clients/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAA+E;AAC/E,0CAAmE;AACnE,+BAA0B;AAE1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,GAAG,gCAAgC,CAAC,KAAK;QACzC,GAAG,gCAAgC,CAAC,KAAK;QACzC,GAAG,8BAA8B,CAAC,KAAK;KACxC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,6BAA6B,GAAG,+BAAuB,CAAA;AACvD,QAAA,6BAA6B,GAAG,+BAAuB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { campaign, client, ClientStatuses, industry, person } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminClientCreateSchema = createInsertSchema(client)\nexport const AdminClientSelectSchema = createSelectSchema(client).extend({\n industry: createSelectSchema(industry)\n .pick({\n id: true,\n name: true\n })\n .nullable(),\n parent: createSelectSchema(client)\n .pick({\n id: true,\n name: true\n })\n .nullable(),\n referral: z\n .object({\n referrer: createSelectSchema(person).pick({\n id: true,\n email: true,\n fullName: true\n })\n })\n .nullable()\n .optional(),\n sourceCampaign: createSelectSchema(campaign)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n _openPositionsCount: z.number().optional(),\n _firstContact: createSelectSchema(person)\n .pick({\n id: true,\n email: true,\n fullName: true\n })\n .nullable()\n .optional(),\n _potentialRetainerFees: z.number().optional(),\n _potentialPlacementFees: z.number().optional(),\n _earnedRetainerFees: z.number().optional(),\n _earnedPlacementFees: z.number().optional()\n})\nexport const AdminClientUpdateSchema = createUpdateSchema(client, {\n initialOutreachAt: z.coerce.date().nullable().optional(),\n followUpAt: z.coerce.date().nullable().optional(),\n lastContactedAt: z.coerce.date().nullable().optional(),\n convertedAt: z.coerce.date().nullable().optional()\n})\n\nexport const AdminClientParamsSchema = AdminClientSelectSchema.pick({\n id: true\n})\n\nconst AdminClientListQuerySchemaStatus = z.object({\n status: z.array(z.enum(ClientStatuses.enumValues)).optional()\n})\nconst AdminClientListQuerySchemaName = createSelectSchema(client)\n .pick({\n name: true\n })\n .partial()\nconst AdminClientListQuerySchemaIsLead = createSelectSchema(client)\n .pick({\n isLead: true\n })\n .partial()\nexport const AdminClientListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n ...AdminClientListQuerySchemaStatus.shape,\n ...AdminClientListQuerySchemaIsLead.shape,\n ...AdminClientListQuerySchemaName.shape\n })\n .optional()\n})\nexport const AdminClientUpdateParamsSchema = AdminClientParamsSchema\nexport const AdminClientDeleteParamsSchema = AdminClientParamsSchema\n\n//// types\n\ntype AdminClient = z.infer<typeof AdminClientSelectSchema>\n\n// detail\nexport type AdminClientParams = z.infer<typeof AdminClientParamsSchema>\nexport type AdminClientResult = AdminClient\n\n// list\nexport type AdminClientListQuery = z.infer<typeof AdminClientListQuerySchema>\nexport type AdminClientListResult = ListResponse<\n z.infer<typeof AdminClientSelectSchema>\n>\n\n// create\nexport type AdminClientCreateInput = z.infer<typeof AdminClientCreateSchema>\nexport type AdminClientCreateResult = Pick<AdminClient, 'id'>\n\n// update\nexport type AdminClientUpdateParams = z.infer<\n typeof AdminClientUpdateParamsSchema\n>\nexport type AdminClientUpdateInput = z.infer<typeof AdminClientUpdateSchema>\n\n// delete\nexport type AdminClientDeleteParams = z.infer<\n typeof AdminClientDeleteParamsSchema\n>\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/clients/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAA+E;AAC/E,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,uBAAuB,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;IAChE,WAAW,EAAE,MAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,MAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACjD,eAAe,EAAE,MAAC,CAAC,MAAM,CAAC,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AA,0BAA0B,GAAG,uBAAe,CAAC,MAAM,CAAC;IAC/D,MAAM,EAAE,MAAC;SACN,MAAM,CAAC;QACN,GAAG,gCAAgC,CAAC,KAAK;QACzC,GAAG,gCAAgC,CAAC,KAAK;QACzC,GAAG,8BAA8B,CAAC,KAAK;KACxC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,6BAA6B,GAAG,+BAAuB,CAAA;AACvD,QAAA,6BAA6B,GAAG,+BAAuB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { campaign, client, ClientStatuses, industry, person } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminClientCreateSchema = createInsertSchema(client, {\n convertedAt: z.coerce.date().nullable().optional(),\n followUpAt: z.coerce.date().nullable().optional(),\n lastContactedAt: z.coerce.date().nullable().optional(),\n initialOutreachAt: z.coerce.date().nullable().optional()\n})\nexport const AdminClientSelectSchema = createSelectSchema(client).extend({\n industry: createSelectSchema(industry)\n .pick({\n id: true,\n name: true\n })\n .nullable(),\n parent: createSelectSchema(client)\n .pick({\n id: true,\n name: true\n })\n .nullable(),\n referral: z\n .object({\n referrer: createSelectSchema(person).pick({\n id: true,\n email: true,\n fullName: true\n })\n })\n .nullable()\n .optional(),\n sourceCampaign: createSelectSchema(campaign)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n _openPositionsCount: z.number().optional(),\n _firstContact: createSelectSchema(person)\n .pick({\n id: true,\n email: true,\n fullName: true\n })\n .nullable()\n .optional(),\n _potentialRetainerFees: z.number().optional(),\n _potentialPlacementFees: z.number().optional(),\n _earnedRetainerFees: z.number().optional(),\n _earnedPlacementFees: z.number().optional()\n})\nexport const AdminClientUpdateSchema = createUpdateSchema(client, {\n initialOutreachAt: z.coerce.date().nullable().optional(),\n followUpAt: z.coerce.date().nullable().optional(),\n lastContactedAt: z.coerce.date().nullable().optional(),\n convertedAt: z.coerce.date().nullable().optional()\n})\n\nexport const AdminClientParamsSchema = AdminClientSelectSchema.pick({\n id: true\n})\n\nconst AdminClientListQuerySchemaStatus = z.object({\n status: z.array(z.enum(ClientStatuses.enumValues)).optional()\n})\nconst AdminClientListQuerySchemaName = createSelectSchema(client)\n .pick({\n name: true\n })\n .partial()\nconst AdminClientListQuerySchemaIsLead = createSelectSchema(client)\n .pick({\n isLead: true\n })\n .partial()\nexport const AdminClientListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n ...AdminClientListQuerySchemaStatus.shape,\n ...AdminClientListQuerySchemaIsLead.shape,\n ...AdminClientListQuerySchemaName.shape\n })\n .optional()\n})\nexport const AdminClientUpdateParamsSchema = AdminClientParamsSchema\nexport const AdminClientDeleteParamsSchema = AdminClientParamsSchema\n\n//// types\n\ntype AdminClient = z.infer<typeof AdminClientSelectSchema>\n\n// detail\nexport type AdminClientParams = z.infer<typeof AdminClientParamsSchema>\nexport type AdminClientResult = AdminClient\n\n// list\nexport type AdminClientListQuery = z.infer<typeof AdminClientListQuerySchema>\nexport type AdminClientListResult = ListResponse<\n z.infer<typeof AdminClientSelectSchema>\n>\n\n// create\nexport type AdminClientCreateInput = z.infer<typeof AdminClientCreateSchema>\nexport type AdminClientCreateResult = Pick<AdminClient, 'id'>\n\n// update\nexport type AdminClientUpdateParams = z.infer<\n typeof AdminClientUpdateParamsSchema\n>\nexport type AdminClientUpdateInput = z.infer<typeof AdminClientUpdateSchema>\n\n// delete\nexport type AdminClientDeleteParams = z.infer<\n typeof AdminClientDeleteParamsSchema\n>\n"]}
@@ -13,6 +13,7 @@ export * from './locations';
13
13
  export * from './matches';
14
14
  export * from './messages';
15
15
  export * from './notes';
16
+ export * from './networks';
16
17
  export * from './partners';
17
18
  export * from './persons';
18
19
  export * from './personsToBestPersons';
@@ -29,6 +29,7 @@ __exportStar(require("./locations"), exports);
29
29
  __exportStar(require("./matches"), exports);
30
30
  __exportStar(require("./messages"), exports);
31
31
  __exportStar(require("./notes"), exports);
32
+ __exportStar(require("./networks"), exports);
32
33
  __exportStar(require("./partners"), exports);
33
34
  __exportStar(require("./persons"), exports);
34
35
  __exportStar(require("./personsToBestPersons"), 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,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 './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,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"]}
@@ -0,0 +1,180 @@
1
+ import { type ListResponse } from '../../../utils';
2
+ import { z } from 'zod/v4';
3
+ export declare const AdminNetworkCreateSchema: z.ZodObject<{
4
+ name: z.ZodString;
5
+ partnerId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
6
+ }, {
7
+ out: {};
8
+ in: {};
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>;
131
+ export declare const AdminNetworkUpdateSchema: z.ZodObject<{
132
+ name: z.ZodOptional<z.ZodString>;
133
+ partnerId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
134
+ }, {
135
+ out: {};
136
+ in: {};
137
+ }>;
138
+ export declare const AdminNetworkParamsSchema: z.ZodObject<{
139
+ id: z.ZodUUID;
140
+ }, {
141
+ out: {};
142
+ in: {};
143
+ }>;
144
+ export declare const AdminNetworkListQuerySchema: z.ZodObject<{
145
+ limit: z.ZodOptional<z.ZodNumber>;
146
+ offset: z.ZodOptional<z.ZodNumber>;
147
+ sort: z.ZodOptional<z.ZodObject<{
148
+ field: z.ZodString;
149
+ direction: z.ZodEnum<{
150
+ asc: "asc";
151
+ desc: "desc";
152
+ }>;
153
+ }, z.core.$strip>>;
154
+ filter: z.ZodOptional<z.ZodObject<{
155
+ name: z.ZodOptional<z.ZodString>;
156
+ }, z.core.$strip>>;
157
+ }, z.core.$strip>;
158
+ export declare const AdminNetworkUpdateParamsSchema: z.ZodObject<{
159
+ id: z.ZodUUID;
160
+ }, {
161
+ out: {};
162
+ in: {};
163
+ }>;
164
+ export declare const AdminNetworkDeleteParamsSchema: z.ZodObject<{
165
+ id: z.ZodUUID;
166
+ }, {
167
+ out: {};
168
+ in: {};
169
+ }>;
170
+ type AdminNetwork = z.infer<typeof AdminNetworkSelectSchema>;
171
+ export type AdminNetworkParams = z.infer<typeof AdminNetworkParamsSchema>;
172
+ export type AdminNetworkResult = AdminNetwork;
173
+ export type AdminNetworkListQuery = z.infer<typeof AdminNetworkListQuerySchema>;
174
+ export type AdminNetworkListResult = ListResponse<AdminNetwork>;
175
+ export type AdminNetworkCreateInput = z.infer<typeof AdminNetworkCreateSchema>;
176
+ export type AdminNetworkCreateResult = Pick<AdminNetwork, 'id'>;
177
+ export type AdminNetworkUpdateParams = z.infer<typeof AdminNetworkUpdateParamsSchema>;
178
+ export type AdminNetworkUpdateInput = z.infer<typeof AdminNetworkUpdateSchema>;
179
+ export type AdminNetworkDeleteParams = z.infer<typeof AdminNetworkDeleteParamsSchema>;
180
+ export {};
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminNetworkDeleteParamsSchema = exports.AdminNetworkUpdateParamsSchema = exports.AdminNetworkListQuerySchema = exports.AdminNetworkParamsSchema = exports.AdminNetworkUpdateSchema = exports.AdminNetworkSelectSchema = exports.AdminNetworkCreateSchema = 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.AdminNetworkCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.network).pick({
10
+ name: true,
11
+ partnerId: true
12
+ });
13
+ exports.AdminNetworkSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.network);
14
+ exports.AdminNetworkUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.network).pick({
15
+ name: true,
16
+ partnerId: true
17
+ });
18
+ exports.AdminNetworkParamsSchema = exports.AdminNetworkSelectSchema.pick({
19
+ id: true
20
+ });
21
+ exports.AdminNetworkListQuerySchema = utils_1.ListQuerySchema.extend({
22
+ filter: v4_1.z
23
+ .object({
24
+ name: v4_1.z.string().optional()
25
+ })
26
+ .optional()
27
+ });
28
+ exports.AdminNetworkUpdateParamsSchema = exports.AdminNetworkParamsSchema;
29
+ exports.AdminNetworkDeleteParamsSchema = exports.AdminNetworkParamsSchema;
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.319",
3
+ "version": "0.2.321",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",