@the-inkwell/shared 0.2.320 → 0.2.322
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/networks/index.d.ts +87 -0
- package/dist/schema/admin/networks/index.js +49 -0
- package/dist/schema/admin/networks/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -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,87 @@
|
|
|
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: 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
|
+
}>;
|
|
38
|
+
export declare const AdminNetworkUpdateSchema: z.ZodObject<{
|
|
39
|
+
name: z.ZodOptional<z.ZodString>;
|
|
40
|
+
partnerId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
41
|
+
}, {
|
|
42
|
+
out: {};
|
|
43
|
+
in: {};
|
|
44
|
+
}>;
|
|
45
|
+
export declare const AdminNetworkParamsSchema: z.ZodObject<{
|
|
46
|
+
id: z.ZodUUID;
|
|
47
|
+
}, {
|
|
48
|
+
out: {};
|
|
49
|
+
in: {};
|
|
50
|
+
}>;
|
|
51
|
+
export declare const AdminNetworkListQuerySchema: z.ZodObject<{
|
|
52
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
field: z.ZodString;
|
|
56
|
+
direction: z.ZodEnum<{
|
|
57
|
+
asc: "asc";
|
|
58
|
+
desc: "desc";
|
|
59
|
+
}>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
name: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export declare const AdminNetworkUpdateParamsSchema: z.ZodObject<{
|
|
66
|
+
id: z.ZodUUID;
|
|
67
|
+
}, {
|
|
68
|
+
out: {};
|
|
69
|
+
in: {};
|
|
70
|
+
}>;
|
|
71
|
+
export declare const AdminNetworkDeleteParamsSchema: z.ZodObject<{
|
|
72
|
+
id: z.ZodUUID;
|
|
73
|
+
}, {
|
|
74
|
+
out: {};
|
|
75
|
+
in: {};
|
|
76
|
+
}>;
|
|
77
|
+
type AdminNetwork = z.infer<typeof AdminNetworkSelectSchema>;
|
|
78
|
+
export type AdminNetworkParams = z.infer<typeof AdminNetworkParamsSchema>;
|
|
79
|
+
export type AdminNetworkResult = AdminNetwork;
|
|
80
|
+
export type AdminNetworkListQuery = z.infer<typeof AdminNetworkListQuerySchema>;
|
|
81
|
+
export type AdminNetworkListResult = ListResponse<AdminNetwork>;
|
|
82
|
+
export type AdminNetworkCreateInput = z.infer<typeof AdminNetworkCreateSchema>;
|
|
83
|
+
export type AdminNetworkCreateResult = Pick<AdminNetwork, 'id'>;
|
|
84
|
+
export type AdminNetworkUpdateParams = z.infer<typeof AdminNetworkUpdateParamsSchema>;
|
|
85
|
+
export type AdminNetworkUpdateInput = z.infer<typeof AdminNetworkUpdateSchema>;
|
|
86
|
+
export type AdminNetworkDeleteParams = z.infer<typeof AdminNetworkDeleteParamsSchema>;
|
|
87
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
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 core_2 = require("../../core");
|
|
7
|
+
const utils_1 = require("../../../utils");
|
|
8
|
+
const v4_1 = require("zod/v4");
|
|
9
|
+
//// validators
|
|
10
|
+
exports.AdminNetworkCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.network).pick({
|
|
11
|
+
name: true,
|
|
12
|
+
partnerId: true
|
|
13
|
+
});
|
|
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
|
+
});
|
|
33
|
+
exports.AdminNetworkUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.network).pick({
|
|
34
|
+
name: true,
|
|
35
|
+
partnerId: true
|
|
36
|
+
});
|
|
37
|
+
exports.AdminNetworkParamsSchema = exports.AdminNetworkSelectSchema.pick({
|
|
38
|
+
id: true
|
|
39
|
+
});
|
|
40
|
+
exports.AdminNetworkListQuerySchema = utils_1.ListQuerySchema.extend({
|
|
41
|
+
filter: v4_1.z
|
|
42
|
+
.object({
|
|
43
|
+
name: v4_1.z.string().optional()
|
|
44
|
+
})
|
|
45
|
+
.optional()
|
|
46
|
+
});
|
|
47
|
+
exports.AdminNetworkUpdateParamsSchema = exports.AdminNetworkParamsSchema;
|
|
48
|
+
exports.AdminNetworkDeleteParamsSchema = exports.AdminNetworkParamsSchema;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{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AQ,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"]}
|