@the-inkwell/shared 0.2.196 → 0.2.197
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/matches/positions.d.ts +68 -1
- package/dist/schema/admin/matches/positions.js +8 -1
- package/dist/schema/admin/matches/positions.js.map +1 -1
- package/dist/schema/admin/matches/previews.d.ts +220 -8
- package/dist/schema/admin/matches/previews.js +1 -1
- package/dist/schema/admin/matches/previews.js.map +1 -1
- package/dist/schema/admin/matches/utils.d.ts +1 -1
- package/dist/schema/admin/matches/utils.js +1 -0
- package/dist/schema/admin/matches/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,59 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
export declare const AdminMatchPositionFiltersSelectSchema: z.ZodRecord<z.ZodEnum<{
|
|
3
|
-
|
|
3
|
+
excludedPersons: "excludedPersons";
|
|
4
|
+
includedPersons: "includedPersons";
|
|
5
|
+
positionId: "positionId";
|
|
6
|
+
referralId: "referralId";
|
|
7
|
+
locations: "locations";
|
|
8
|
+
personEmail: "personEmail";
|
|
9
|
+
personFullName: "personFullName";
|
|
10
|
+
personLinkedInUrl: "personLinkedInUrl";
|
|
11
|
+
personPhone: "personPhone";
|
|
12
|
+
personCity: "personCity";
|
|
13
|
+
personState: "personState";
|
|
14
|
+
personCountry: "personCountry";
|
|
15
|
+
personPostalCode: "personPostalCode";
|
|
16
|
+
personLat: "personLat";
|
|
17
|
+
personLon: "personLon";
|
|
18
|
+
referralSource: "referralSource";
|
|
19
|
+
positionName: "positionName";
|
|
20
|
+
positionCity: "positionCity";
|
|
21
|
+
positionState: "positionState";
|
|
22
|
+
positionCountry: "positionCountry";
|
|
23
|
+
positionEmploymentType: "positionEmploymentType";
|
|
24
|
+
positionIndustryId: "positionIndustryId";
|
|
25
|
+
positionJobFunctionId: "positionJobFunctionId";
|
|
26
|
+
candidacyStage: "candidacyStage";
|
|
27
|
+
referredPersonEmail: "referredPersonEmail";
|
|
28
|
+
referredPersonFirstName: "referredPersonFirstName";
|
|
29
|
+
referredPersonLastName: "referredPersonLastName";
|
|
30
|
+
referredPersonFullName: "referredPersonFullName";
|
|
31
|
+
referredPersonCity: "referredPersonCity";
|
|
32
|
+
referredPersonState: "referredPersonState";
|
|
33
|
+
referredPersonCountry: "referredPersonCountry";
|
|
34
|
+
referredPersonPostalCode: "referredPersonPostalCode";
|
|
35
|
+
referredPersonLat: "referredPersonLat";
|
|
36
|
+
referredPersonLon: "referredPersonLon";
|
|
37
|
+
referredPersonLinkedInUrl: "referredPersonLinkedInUrl";
|
|
38
|
+
referral_payout: "referral_payout";
|
|
39
|
+
personSkills: "personSkills";
|
|
40
|
+
personNetworks: "personNetworks";
|
|
41
|
+
personEvents: "personEvents";
|
|
42
|
+
personTags: "personTags";
|
|
43
|
+
personSchools: "personSchools";
|
|
44
|
+
personIndustries: "personIndustries";
|
|
45
|
+
personJobFunctions: "personJobFunctions";
|
|
46
|
+
personTitles: "personTitles";
|
|
47
|
+
referredPersonSkills: "referredPersonSkills";
|
|
48
|
+
referredPersonNetworks: "referredPersonNetworks";
|
|
49
|
+
referredPersonEvents: "referredPersonEvents";
|
|
50
|
+
referredPersonTags: "referredPersonTags";
|
|
51
|
+
referredPersonSchools: "referredPersonSchools";
|
|
52
|
+
referredPersonIndustries: "referredPersonIndustries";
|
|
53
|
+
referredPersonJobFunctions: "referredPersonJobFunctions";
|
|
54
|
+
referredPersonTitles: "referredPersonTitles";
|
|
55
|
+
referredIndustries: "referredIndustries";
|
|
56
|
+
referredJobFunctions: "referredJobFunctions";
|
|
4
57
|
}>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
5
58
|
city: z.ZodString;
|
|
6
59
|
state: z.ZodString;
|
|
@@ -22,5 +75,19 @@ export declare const AdminMatchPositionMessagesSelectSchema: z.ZodObject<{
|
|
|
22
75
|
closing: z.ZodNullable<z.ZodString>;
|
|
23
76
|
}, z.core.$strip>>;
|
|
24
77
|
}, z.core.$strip>;
|
|
78
|
+
export declare const AdminMatchPositionFiltersParamsSchema: z.ZodObject<{
|
|
79
|
+
id: z.ZodUUID;
|
|
80
|
+
}, {
|
|
81
|
+
out: {};
|
|
82
|
+
in: {};
|
|
83
|
+
}>;
|
|
84
|
+
export declare const AdminMatchPositionMessagesParamsSchema: z.ZodObject<{
|
|
85
|
+
id: z.ZodUUID;
|
|
86
|
+
}, {
|
|
87
|
+
out: {};
|
|
88
|
+
in: {};
|
|
89
|
+
}>;
|
|
25
90
|
export type AdminMatchPositionFiltersResult = z.infer<typeof AdminMatchPositionFiltersSelectSchema>;
|
|
26
91
|
export type AdminMatchPositionMessagesResult = z.infer<typeof AdminMatchPositionMessagesSelectSchema>;
|
|
92
|
+
export type AdminMatchPositionFiltersParams = z.infer<typeof AdminMatchPositionFiltersParamsSchema>;
|
|
93
|
+
export type AdminMatchPositionMessagesParams = z.infer<typeof AdminMatchPositionMessagesParamsSchema>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AdminMatchPositionMessagesSelectSchema = exports.AdminMatchPositionFiltersSelectSchema = void 0;
|
|
3
|
+
exports.AdminMatchPositionMessagesParamsSchema = exports.AdminMatchPositionFiltersParamsSchema = exports.AdminMatchPositionMessagesSelectSchema = exports.AdminMatchPositionFiltersSelectSchema = void 0;
|
|
4
4
|
const v4_1 = require("zod/v4");
|
|
5
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
6
|
+
const core_1 = require("../../core");
|
|
5
7
|
const utils_1 = require("./utils");
|
|
6
8
|
exports.AdminMatchPositionFiltersSelectSchema = v4_1.z.record(v4_1.z.enum(utils_1.filterFields), v4_1.z.array(v4_1.z.string().or(utils_1.LocationSchema)));
|
|
7
9
|
exports.AdminMatchPositionMessagesSelectSchema = v4_1.z.object({
|
|
@@ -22,4 +24,9 @@ exports.AdminMatchPositionMessagesSelectSchema = v4_1.z.object({
|
|
|
22
24
|
})
|
|
23
25
|
.nullable()
|
|
24
26
|
});
|
|
27
|
+
const AdminMatchPositionParamsSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.position).pick({
|
|
28
|
+
id: true
|
|
29
|
+
});
|
|
30
|
+
exports.AdminMatchPositionFiltersParamsSchema = AdminMatchPositionParamsSchema;
|
|
31
|
+
exports.AdminMatchPositionMessagesParamsSchema = AdminMatchPositionParamsSchema;
|
|
25
32
|
//# sourceMappingURL=positions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positions.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/positions.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAC1B,mCAAsD;AAEzC,QAAA,qCAAqC,GAAG,MAAC,CAAC,MAAM,CAC3D,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC,EACpB,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,sBAAc,CAAC,CAAC,CACvC,CAAA;AACY,QAAA,sCAAsC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC7D,KAAK,EAAE,MAAC;SACL,MAAM,CAAC;QACN,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,UAAU,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,UAAU,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;QAC/B,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;SACD,QAAQ,EAAE;IACb,GAAG,EAAE,MAAC;SACH,MAAM,CAAC;QACN,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,UAAU,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;QAC/B,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\nimport { filterFields, LocationSchema } from './utils'\n\nexport const AdminMatchPositionFiltersSelectSchema = z.record(\n z.enum(filterFields),\n z.array(z.string().or(LocationSchema))\n)\nexport const AdminMatchPositionMessagesSelectSchema = z.object({\n email: z\n .object({\n subject: z.string().nullable(),\n salutation: z.string().nullable(),\n intro: z.string().nullable(),\n highlights: z.array(z.string()),\n closing: z.string().nullable()\n })\n .nullable(),\n sms: z\n .object({\n intro: z.string().nullable(),\n highlights: z.array(z.string()),\n closing: z.string().nullable()\n })\n .nullable()\n})\n\nexport type AdminMatchPositionFiltersResult = z.infer<\n typeof AdminMatchPositionFiltersSelectSchema\n>\nexport type AdminMatchPositionMessagesResult = z.infer<\n typeof AdminMatchPositionMessagesSelectSchema\n>\n"]}
|
|
1
|
+
{"version":3,"file":"positions.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/positions.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAC1B,6CAAgD;AAChD,qCAAqC;AACrC,mCAAsD;AAEzC,QAAA,qCAAqC,GAAG,MAAC,CAAC,MAAM,CAC3D,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC,EACpB,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,sBAAc,CAAC,CAAC,CACvC,CAAA;AACY,QAAA,sCAAsC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC7D,KAAK,EAAE,MAAC;SACL,MAAM,CAAC;QACN,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,UAAU,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,UAAU,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;QAC/B,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;SACD,QAAQ,EAAE;IACb,GAAG,EAAE,MAAC;SACH,MAAM,CAAC;QACN,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,UAAU,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;QAC/B,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAC,IAAI,CAAC;IACvE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,qCAAqC,GAChD,8BAA8B,CAAA;AACnB,QAAA,sCAAsC,GACjD,8BAA8B,CAAA","sourcesContent":["import { z } from 'zod/v4'\nimport { createSelectSchema } from 'drizzle-zod'\nimport { position } from '../../core'\nimport { filterFields, LocationSchema } from './utils'\n\nexport const AdminMatchPositionFiltersSelectSchema = z.record(\n z.enum(filterFields),\n z.array(z.string().or(LocationSchema))\n)\nexport const AdminMatchPositionMessagesSelectSchema = z.object({\n email: z\n .object({\n subject: z.string().nullable(),\n salutation: z.string().nullable(),\n intro: z.string().nullable(),\n highlights: z.array(z.string()),\n closing: z.string().nullable()\n })\n .nullable(),\n sms: z\n .object({\n intro: z.string().nullable(),\n highlights: z.array(z.string()),\n closing: z.string().nullable()\n })\n .nullable()\n})\n\nconst AdminMatchPositionParamsSchema = createSelectSchema(position).pick({\n id: true\n})\nexport const AdminMatchPositionFiltersParamsSchema =\n AdminMatchPositionParamsSchema\nexport const AdminMatchPositionMessagesParamsSchema =\n AdminMatchPositionParamsSchema\n\nexport type AdminMatchPositionFiltersResult = z.infer<\n typeof AdminMatchPositionFiltersSelectSchema\n>\nexport type AdminMatchPositionMessagesResult = z.infer<\n typeof AdminMatchPositionMessagesSelectSchema\n>\n\nexport type AdminMatchPositionFiltersParams = z.infer<\n typeof AdminMatchPositionFiltersParamsSchema\n>\nexport type AdminMatchPositionMessagesParams = z.infer<\n typeof AdminMatchPositionMessagesParamsSchema\n>\n"]}
|
|
@@ -3,7 +3,60 @@ import { z } from 'zod/v4';
|
|
|
3
3
|
export declare const AdminMatchPreviewSelectSchema: z.ZodObject<{
|
|
4
4
|
matches: z.ZodObject<{
|
|
5
5
|
field: z.ZodEnum<{
|
|
6
|
-
|
|
6
|
+
excludedPersons: "excludedPersons";
|
|
7
|
+
includedPersons: "includedPersons";
|
|
8
|
+
positionId: "positionId";
|
|
9
|
+
referralId: "referralId";
|
|
10
|
+
locations: "locations";
|
|
11
|
+
personEmail: "personEmail";
|
|
12
|
+
personFullName: "personFullName";
|
|
13
|
+
personLinkedInUrl: "personLinkedInUrl";
|
|
14
|
+
personPhone: "personPhone";
|
|
15
|
+
personCity: "personCity";
|
|
16
|
+
personState: "personState";
|
|
17
|
+
personCountry: "personCountry";
|
|
18
|
+
personPostalCode: "personPostalCode";
|
|
19
|
+
personLat: "personLat";
|
|
20
|
+
personLon: "personLon";
|
|
21
|
+
referralSource: "referralSource";
|
|
22
|
+
positionName: "positionName";
|
|
23
|
+
positionCity: "positionCity";
|
|
24
|
+
positionState: "positionState";
|
|
25
|
+
positionCountry: "positionCountry";
|
|
26
|
+
positionEmploymentType: "positionEmploymentType";
|
|
27
|
+
positionIndustryId: "positionIndustryId";
|
|
28
|
+
positionJobFunctionId: "positionJobFunctionId";
|
|
29
|
+
candidacyStage: "candidacyStage";
|
|
30
|
+
referredPersonEmail: "referredPersonEmail";
|
|
31
|
+
referredPersonFirstName: "referredPersonFirstName";
|
|
32
|
+
referredPersonLastName: "referredPersonLastName";
|
|
33
|
+
referredPersonFullName: "referredPersonFullName";
|
|
34
|
+
referredPersonCity: "referredPersonCity";
|
|
35
|
+
referredPersonState: "referredPersonState";
|
|
36
|
+
referredPersonCountry: "referredPersonCountry";
|
|
37
|
+
referredPersonPostalCode: "referredPersonPostalCode";
|
|
38
|
+
referredPersonLat: "referredPersonLat";
|
|
39
|
+
referredPersonLon: "referredPersonLon";
|
|
40
|
+
referredPersonLinkedInUrl: "referredPersonLinkedInUrl";
|
|
41
|
+
referral_payout: "referral_payout";
|
|
42
|
+
personSkills: "personSkills";
|
|
43
|
+
personNetworks: "personNetworks";
|
|
44
|
+
personEvents: "personEvents";
|
|
45
|
+
personTags: "personTags";
|
|
46
|
+
personSchools: "personSchools";
|
|
47
|
+
personIndustries: "personIndustries";
|
|
48
|
+
personJobFunctions: "personJobFunctions";
|
|
49
|
+
personTitles: "personTitles";
|
|
50
|
+
referredPersonSkills: "referredPersonSkills";
|
|
51
|
+
referredPersonNetworks: "referredPersonNetworks";
|
|
52
|
+
referredPersonEvents: "referredPersonEvents";
|
|
53
|
+
referredPersonTags: "referredPersonTags";
|
|
54
|
+
referredPersonSchools: "referredPersonSchools";
|
|
55
|
+
referredPersonIndustries: "referredPersonIndustries";
|
|
56
|
+
referredPersonJobFunctions: "referredPersonJobFunctions";
|
|
57
|
+
referredPersonTitles: "referredPersonTitles";
|
|
58
|
+
referredIndustries: "referredIndustries";
|
|
59
|
+
referredJobFunctions: "referredJobFunctions";
|
|
7
60
|
}>;
|
|
8
61
|
matches: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
9
62
|
id: z.ZodString;
|
|
@@ -22,7 +75,60 @@ export declare const AdminMatchPreviewSelectSchema: z.ZodObject<{
|
|
|
22
75
|
}, z.core.$strip>;
|
|
23
76
|
export declare const AdminMatchPreviewMetaSelectSchema: z.ZodObject<{
|
|
24
77
|
filters: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodEnum<{
|
|
25
|
-
|
|
78
|
+
excludedPersons: "excludedPersons";
|
|
79
|
+
includedPersons: "includedPersons";
|
|
80
|
+
positionId: "positionId";
|
|
81
|
+
referralId: "referralId";
|
|
82
|
+
locations: "locations";
|
|
83
|
+
personEmail: "personEmail";
|
|
84
|
+
personFullName: "personFullName";
|
|
85
|
+
personLinkedInUrl: "personLinkedInUrl";
|
|
86
|
+
personPhone: "personPhone";
|
|
87
|
+
personCity: "personCity";
|
|
88
|
+
personState: "personState";
|
|
89
|
+
personCountry: "personCountry";
|
|
90
|
+
personPostalCode: "personPostalCode";
|
|
91
|
+
personLat: "personLat";
|
|
92
|
+
personLon: "personLon";
|
|
93
|
+
referralSource: "referralSource";
|
|
94
|
+
positionName: "positionName";
|
|
95
|
+
positionCity: "positionCity";
|
|
96
|
+
positionState: "positionState";
|
|
97
|
+
positionCountry: "positionCountry";
|
|
98
|
+
positionEmploymentType: "positionEmploymentType";
|
|
99
|
+
positionIndustryId: "positionIndustryId";
|
|
100
|
+
positionJobFunctionId: "positionJobFunctionId";
|
|
101
|
+
candidacyStage: "candidacyStage";
|
|
102
|
+
referredPersonEmail: "referredPersonEmail";
|
|
103
|
+
referredPersonFirstName: "referredPersonFirstName";
|
|
104
|
+
referredPersonLastName: "referredPersonLastName";
|
|
105
|
+
referredPersonFullName: "referredPersonFullName";
|
|
106
|
+
referredPersonCity: "referredPersonCity";
|
|
107
|
+
referredPersonState: "referredPersonState";
|
|
108
|
+
referredPersonCountry: "referredPersonCountry";
|
|
109
|
+
referredPersonPostalCode: "referredPersonPostalCode";
|
|
110
|
+
referredPersonLat: "referredPersonLat";
|
|
111
|
+
referredPersonLon: "referredPersonLon";
|
|
112
|
+
referredPersonLinkedInUrl: "referredPersonLinkedInUrl";
|
|
113
|
+
referral_payout: "referral_payout";
|
|
114
|
+
personSkills: "personSkills";
|
|
115
|
+
personNetworks: "personNetworks";
|
|
116
|
+
personEvents: "personEvents";
|
|
117
|
+
personTags: "personTags";
|
|
118
|
+
personSchools: "personSchools";
|
|
119
|
+
personIndustries: "personIndustries";
|
|
120
|
+
personJobFunctions: "personJobFunctions";
|
|
121
|
+
personTitles: "personTitles";
|
|
122
|
+
referredPersonSkills: "referredPersonSkills";
|
|
123
|
+
referredPersonNetworks: "referredPersonNetworks";
|
|
124
|
+
referredPersonEvents: "referredPersonEvents";
|
|
125
|
+
referredPersonTags: "referredPersonTags";
|
|
126
|
+
referredPersonSchools: "referredPersonSchools";
|
|
127
|
+
referredPersonIndustries: "referredPersonIndustries";
|
|
128
|
+
referredPersonJobFunctions: "referredPersonJobFunctions";
|
|
129
|
+
referredPersonTitles: "referredPersonTitles";
|
|
130
|
+
referredIndustries: "referredIndustries";
|
|
131
|
+
referredJobFunctions: "referredJobFunctions";
|
|
26
132
|
}>, z.ZodObject<{
|
|
27
133
|
personCount: z.ZodNumber;
|
|
28
134
|
referrerCount: z.ZodNumber;
|
|
@@ -46,27 +152,133 @@ export declare const AdminMatchListPreviewQuerySchema: z.ZodObject<{
|
|
|
46
152
|
filter: z.ZodObject<{
|
|
47
153
|
search: z.ZodOptional<z.ZodString>;
|
|
48
154
|
criteria: z.ZodRecord<z.ZodEnum<{
|
|
49
|
-
|
|
50
|
-
|
|
155
|
+
excludedPersons: "excludedPersons";
|
|
156
|
+
includedPersons: "includedPersons";
|
|
157
|
+
positionId: "positionId";
|
|
158
|
+
referralId: "referralId";
|
|
159
|
+
locations: "locations";
|
|
160
|
+
personEmail: "personEmail";
|
|
161
|
+
personFullName: "personFullName";
|
|
162
|
+
personLinkedInUrl: "personLinkedInUrl";
|
|
163
|
+
personPhone: "personPhone";
|
|
164
|
+
personCity: "personCity";
|
|
165
|
+
personState: "personState";
|
|
166
|
+
personCountry: "personCountry";
|
|
167
|
+
personPostalCode: "personPostalCode";
|
|
168
|
+
personLat: "personLat";
|
|
169
|
+
personLon: "personLon";
|
|
170
|
+
referralSource: "referralSource";
|
|
171
|
+
positionName: "positionName";
|
|
172
|
+
positionCity: "positionCity";
|
|
173
|
+
positionState: "positionState";
|
|
174
|
+
positionCountry: "positionCountry";
|
|
175
|
+
positionEmploymentType: "positionEmploymentType";
|
|
176
|
+
positionIndustryId: "positionIndustryId";
|
|
177
|
+
positionJobFunctionId: "positionJobFunctionId";
|
|
178
|
+
candidacyStage: "candidacyStage";
|
|
179
|
+
referredPersonEmail: "referredPersonEmail";
|
|
180
|
+
referredPersonFirstName: "referredPersonFirstName";
|
|
181
|
+
referredPersonLastName: "referredPersonLastName";
|
|
182
|
+
referredPersonFullName: "referredPersonFullName";
|
|
183
|
+
referredPersonCity: "referredPersonCity";
|
|
184
|
+
referredPersonState: "referredPersonState";
|
|
185
|
+
referredPersonCountry: "referredPersonCountry";
|
|
186
|
+
referredPersonPostalCode: "referredPersonPostalCode";
|
|
187
|
+
referredPersonLat: "referredPersonLat";
|
|
188
|
+
referredPersonLon: "referredPersonLon";
|
|
189
|
+
referredPersonLinkedInUrl: "referredPersonLinkedInUrl";
|
|
190
|
+
referral_payout: "referral_payout";
|
|
191
|
+
personSkills: "personSkills";
|
|
192
|
+
personNetworks: "personNetworks";
|
|
193
|
+
personEvents: "personEvents";
|
|
194
|
+
personTags: "personTags";
|
|
195
|
+
personSchools: "personSchools";
|
|
196
|
+
personIndustries: "personIndustries";
|
|
197
|
+
personJobFunctions: "personJobFunctions";
|
|
198
|
+
personTitles: "personTitles";
|
|
199
|
+
referredPersonSkills: "referredPersonSkills";
|
|
200
|
+
referredPersonNetworks: "referredPersonNetworks";
|
|
201
|
+
referredPersonEvents: "referredPersonEvents";
|
|
202
|
+
referredPersonTags: "referredPersonTags";
|
|
203
|
+
referredPersonSchools: "referredPersonSchools";
|
|
204
|
+
referredPersonIndustries: "referredPersonIndustries";
|
|
205
|
+
referredPersonJobFunctions: "referredPersonJobFunctions";
|
|
206
|
+
referredPersonTitles: "referredPersonTitles";
|
|
207
|
+
referredIndustries: "referredIndustries";
|
|
208
|
+
referredJobFunctions: "referredJobFunctions";
|
|
209
|
+
}>, z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
51
210
|
city: z.ZodString;
|
|
52
211
|
state: z.ZodString;
|
|
53
212
|
lat: z.ZodNumber;
|
|
54
213
|
lon: z.ZodNumber;
|
|
55
214
|
radiusInMiles: z.ZodNumber;
|
|
56
|
-
}, z.core.$strip>]
|
|
215
|
+
}, z.core.$strip>]>>>>;
|
|
57
216
|
}, z.core.$strip>;
|
|
58
217
|
}, z.core.$strip>;
|
|
59
218
|
export declare const AdminMatchListPreviewMetaQuerySchema: z.ZodObject<{
|
|
60
219
|
filter: z.ZodObject<{
|
|
61
220
|
criteria: z.ZodRecord<z.ZodEnum<{
|
|
62
|
-
|
|
63
|
-
|
|
221
|
+
excludedPersons: "excludedPersons";
|
|
222
|
+
includedPersons: "includedPersons";
|
|
223
|
+
positionId: "positionId";
|
|
224
|
+
referralId: "referralId";
|
|
225
|
+
locations: "locations";
|
|
226
|
+
personEmail: "personEmail";
|
|
227
|
+
personFullName: "personFullName";
|
|
228
|
+
personLinkedInUrl: "personLinkedInUrl";
|
|
229
|
+
personPhone: "personPhone";
|
|
230
|
+
personCity: "personCity";
|
|
231
|
+
personState: "personState";
|
|
232
|
+
personCountry: "personCountry";
|
|
233
|
+
personPostalCode: "personPostalCode";
|
|
234
|
+
personLat: "personLat";
|
|
235
|
+
personLon: "personLon";
|
|
236
|
+
referralSource: "referralSource";
|
|
237
|
+
positionName: "positionName";
|
|
238
|
+
positionCity: "positionCity";
|
|
239
|
+
positionState: "positionState";
|
|
240
|
+
positionCountry: "positionCountry";
|
|
241
|
+
positionEmploymentType: "positionEmploymentType";
|
|
242
|
+
positionIndustryId: "positionIndustryId";
|
|
243
|
+
positionJobFunctionId: "positionJobFunctionId";
|
|
244
|
+
candidacyStage: "candidacyStage";
|
|
245
|
+
referredPersonEmail: "referredPersonEmail";
|
|
246
|
+
referredPersonFirstName: "referredPersonFirstName";
|
|
247
|
+
referredPersonLastName: "referredPersonLastName";
|
|
248
|
+
referredPersonFullName: "referredPersonFullName";
|
|
249
|
+
referredPersonCity: "referredPersonCity";
|
|
250
|
+
referredPersonState: "referredPersonState";
|
|
251
|
+
referredPersonCountry: "referredPersonCountry";
|
|
252
|
+
referredPersonPostalCode: "referredPersonPostalCode";
|
|
253
|
+
referredPersonLat: "referredPersonLat";
|
|
254
|
+
referredPersonLon: "referredPersonLon";
|
|
255
|
+
referredPersonLinkedInUrl: "referredPersonLinkedInUrl";
|
|
256
|
+
referral_payout: "referral_payout";
|
|
257
|
+
personSkills: "personSkills";
|
|
258
|
+
personNetworks: "personNetworks";
|
|
259
|
+
personEvents: "personEvents";
|
|
260
|
+
personTags: "personTags";
|
|
261
|
+
personSchools: "personSchools";
|
|
262
|
+
personIndustries: "personIndustries";
|
|
263
|
+
personJobFunctions: "personJobFunctions";
|
|
264
|
+
personTitles: "personTitles";
|
|
265
|
+
referredPersonSkills: "referredPersonSkills";
|
|
266
|
+
referredPersonNetworks: "referredPersonNetworks";
|
|
267
|
+
referredPersonEvents: "referredPersonEvents";
|
|
268
|
+
referredPersonTags: "referredPersonTags";
|
|
269
|
+
referredPersonSchools: "referredPersonSchools";
|
|
270
|
+
referredPersonIndustries: "referredPersonIndustries";
|
|
271
|
+
referredPersonJobFunctions: "referredPersonJobFunctions";
|
|
272
|
+
referredPersonTitles: "referredPersonTitles";
|
|
273
|
+
referredIndustries: "referredIndustries";
|
|
274
|
+
referredJobFunctions: "referredJobFunctions";
|
|
275
|
+
}>, z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
64
276
|
city: z.ZodString;
|
|
65
277
|
state: z.ZodString;
|
|
66
278
|
lat: z.ZodNumber;
|
|
67
279
|
lon: z.ZodNumber;
|
|
68
280
|
radiusInMiles: z.ZodNumber;
|
|
69
|
-
}, z.core.$strip>]
|
|
281
|
+
}, z.core.$strip>]>>>>;
|
|
70
282
|
}, z.core.$strip>;
|
|
71
283
|
}, z.core.$strip>;
|
|
72
284
|
export type AdminMatchListPreviewQuery = z.infer<typeof AdminMatchListPreviewQuerySchema>;
|
|
@@ -36,7 +36,7 @@ exports.AdminMatchPreviewMetaSelectSchema = v4_1.z.object({
|
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
const AdminMatchListPreviewFilterSchema = v4_1.z.object({
|
|
39
|
-
criteria: v4_1.z.record(v4_1.z.enum(utils_2.filterFields), v4_1.z.array(v4_1.z.string().or(utils_2.LocationSchema)))
|
|
39
|
+
criteria: v4_1.z.record(v4_1.z.enum(utils_2.filterFields), v4_1.z.array(v4_1.z.string().or(utils_2.LocationSchema)).optional())
|
|
40
40
|
});
|
|
41
41
|
exports.AdminMatchListPreviewQuerySchema = utils_1.ListQuerySchema.extend({
|
|
42
42
|
filter: v4_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previews.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/previews.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAAmC;AACnC,0CAAmE;AACnE,+BAA0B;AAC1B,mCAAsD;AAEtD,eAAe;AAEF,QAAA,6BAA6B,GAAG,MAAC,CAAC,MAAM,CAAC;IACpD,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACjC,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC,KAAK;IACR,OAAO,EAAE,MAAC,CAAC,MAAM,CAAC;QAChB,KAAK,EAAE,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC;QAC3B,OAAO,EAAE,MAAC,CAAC,KAAK,CACd,MAAC;aACE,MAAM,CAAC;YACN,EAAE,EAAE,MAAC,CAAC,MAAM,EAAE;YACd,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;SACjB,CAAC;aACD,EAAE,CAAC,sBAAc,CAAC,CACtB;KACF,CAAC;CACH,CAAC,CAAA;AACW,QAAA,iCAAiC,GAAG,MAAC,CAAC,MAAM,CAAC;IACxD,OAAO,EAAE,MAAC,CAAC,MAAM,CACf,MAAC,CAAC,MAAM,EAAE,EACV,MAAC,CAAC,MAAM,CACN,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC,EACpB,MAAC,CAAC,MAAM,CAAC;QACP,mCAAmC;QACnC,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE;QACvB,aAAa,EAAE,MAAC,CAAC,MAAM,EAAE;KAC1B,CAAC,CACH,CACF;IACD,YAAY,EAAE,MAAC,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;QACjB,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;QACf,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE;KACxB,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,iCAAiC,GAAG,MAAC,CAAC,MAAM,CAAC;IACjD,QAAQ,EAAE,MAAC,CAAC,MAAM,CAChB,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC,EACpB,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,sBAAc,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"previews.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/previews.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAAmC;AACnC,0CAAmE;AACnE,+BAA0B;AAC1B,mCAAsD;AAEtD,eAAe;AAEF,QAAA,6BAA6B,GAAG,MAAC,CAAC,MAAM,CAAC;IACpD,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACjC,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC,KAAK;IACR,OAAO,EAAE,MAAC,CAAC,MAAM,CAAC;QAChB,KAAK,EAAE,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC;QAC3B,OAAO,EAAE,MAAC,CAAC,KAAK,CACd,MAAC;aACE,MAAM,CAAC;YACN,EAAE,EAAE,MAAC,CAAC,MAAM,EAAE;YACd,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;SACjB,CAAC;aACD,EAAE,CAAC,sBAAc,CAAC,CACtB;KACF,CAAC;CACH,CAAC,CAAA;AACW,QAAA,iCAAiC,GAAG,MAAC,CAAC,MAAM,CAAC;IACxD,OAAO,EAAE,MAAC,CAAC,MAAM,CACf,MAAC,CAAC,MAAM,EAAE,EACV,MAAC,CAAC,MAAM,CACN,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC,EACpB,MAAC,CAAC,MAAM,CAAC;QACP,mCAAmC;QACnC,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE;QACvB,aAAa,EAAE,MAAC,CAAC,MAAM,EAAE;KAC1B,CAAC,CACH,CACF;IACD,YAAY,EAAE,MAAC,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;QACjB,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;QACf,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE;KACxB,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,iCAAiC,GAAG,MAAC,CAAC,MAAM,CAAC;IACjD,QAAQ,EAAE,MAAC,CAAC,MAAM,CAChB,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC,EACpB,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,sBAAc,CAAC,CAAC,CAAC,QAAQ,EAAE,CAClD;CACF,CAAC,CAAA;AAEW,QAAA,gCAAgC,GAAG,uBAAe,CAAC,MAAM,CAAC;IACrE,MAAM,EAAE,MAAC,CAAC,MAAM,CAAC;QACf,GAAG,iCAAiC,CAAC,KAAK;QAC1C,MAAM,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9B,CAAC;CACH,CAAC,CAAA;AACW,QAAA,oCAAoC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC3D,MAAM,EAAE,iCAAiC;CAC1C,CAAC,CAAA","sourcesContent":["import { createSelectSchema } from 'drizzle-zod'\nimport { person } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\nimport { filterFields, LocationSchema } from './utils'\n\n//// validators\n\nexport const AdminMatchPreviewSelectSchema = z.object({\n ...createSelectSchema(person).pick({\n fullName: true,\n email: true,\n phone: true\n }).shape,\n matches: z.object({\n field: z.enum(filterFields),\n matches: z.array(\n z\n .object({\n id: z.string(),\n name: z.string()\n })\n .or(LocationSchema)\n )\n })\n})\nexport const AdminMatchPreviewMetaSelectSchema = z.object({\n filters: z.record(\n z.string(),\n z.record(\n z.enum(filterFields),\n z.object({\n // location fields -> location:[{}]\n personCount: z.number(),\n referrerCount: z.number()\n })\n )\n ),\n optOutCounts: z.object({\n email: z.number(),\n sms: z.number(),\n emailAndSms: z.number()\n })\n})\n\nconst AdminMatchListPreviewFilterSchema = z.object({\n criteria: z.record(\n z.enum(filterFields),\n z.array(z.string().or(LocationSchema)).optional()\n )\n})\n\nexport const AdminMatchListPreviewQuerySchema = ListQuerySchema.extend({\n filter: z.object({\n ...AdminMatchListPreviewFilterSchema.shape,\n search: z.string().optional()\n })\n})\nexport const AdminMatchListPreviewMetaQuerySchema = z.object({\n filter: AdminMatchListPreviewFilterSchema\n})\n\n//// types\n\n// list\nexport type AdminMatchListPreviewQuery = z.infer<\n typeof AdminMatchListPreviewQuerySchema\n>\nexport type AdminMatchListPreviewResult = ListResponse<\n z.infer<typeof AdminMatchPreviewSelectSchema>\n>\n\nexport type AdminMatchListPreviewMetaQuery = z.infer<\n typeof AdminMatchListPreviewMetaQuerySchema\n>\nexport type AdminMatchListPreviewMetaResult = z.infer<\n typeof AdminMatchPreviewMetaSelectSchema\n>\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
export declare const filterFields:
|
|
2
|
+
export declare const filterFields: readonly ["locations", "excludedPersons", "includedPersons", "personEmail", "personFullName", "personLinkedInUrl", "personPhone", "personCity", "personState", "personCountry", "personPostalCode", "personLat", "personLon", "referralId", "referralSource", "positionId", "positionName", "positionCity", "positionState", "positionCountry", "positionEmploymentType", "positionIndustryId", "positionJobFunctionId", "candidacyStage", "referredPersonEmail", "referredPersonFirstName", "referredPersonLastName", "referredPersonFullName", "referredPersonCity", "referredPersonState", "referredPersonCountry", "referredPersonPostalCode", "referredPersonLat", "referredPersonLon", "referredPersonLinkedInUrl", "referral_payout", "personSkills", "personNetworks", "personEvents", "personTags", "personSchools", "personIndustries", "personJobFunctions", "personTitles", "referredPersonSkills", "referredPersonNetworks", "referredPersonEvents", "referredPersonTags", "referredPersonSchools", "referredPersonIndustries", "referredPersonJobFunctions", "referredPersonTitles", "referredIndustries", "referredJobFunctions"];
|
|
3
3
|
export declare const LocationSchema: z.ZodObject<{
|
|
4
4
|
city: z.ZodString;
|
|
5
5
|
state: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/utils.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAEb,QAAA,YAAY,GAAG;IAC1B,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,aAAa;IACb,gBAAgB;IAChB,mBAAmB;IACnB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,eAAe;IACf,kBAAkB;IAClB,WAAW;IACX,WAAW;IACX,YAAY;IACZ,gBAAgB;IAChB,YAAY;IACZ,cAAc;IACd,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,wBAAwB;IACxB,oBAAoB;IACpB,uBAAuB;IACvB,gBAAgB;IAChB,qBAAqB;IACrB,yBAAyB;IACzB,wBAAwB;IACxB,wBAAwB;IACxB,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;IACvB,0BAA0B;IAC1B,mBAAmB;IACnB,mBAAmB;IACnB,2BAA2B;IAC3B,iBAAiB;IACjB,cAAc;IACd,gBAAgB;IAChB,cAAc;IACd,YAAY;IACZ,eAAe;IACf,kBAAkB;IAClB,oBAAoB;IACpB,cAAc;IACd,sBAAsB;IACtB,wBAAwB;IACxB,sBAAsB;IACtB,oBAAoB;IACpB,uBAAuB;IACvB,0BAA0B;IAC1B,4BAA4B;IAC5B,sBAAsB;IACtB,oBAAoB;IACpB,sBAAsB;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/utils.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAEb,QAAA,YAAY,GAAG;IAC1B,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,aAAa;IACb,gBAAgB;IAChB,mBAAmB;IACnB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,eAAe;IACf,kBAAkB;IAClB,WAAW;IACX,WAAW;IACX,YAAY;IACZ,gBAAgB;IAChB,YAAY;IACZ,cAAc;IACd,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,wBAAwB;IACxB,oBAAoB;IACpB,uBAAuB;IACvB,gBAAgB;IAChB,qBAAqB;IACrB,yBAAyB;IACzB,wBAAwB;IACxB,wBAAwB;IACxB,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;IACvB,0BAA0B;IAC1B,mBAAmB;IACnB,mBAAmB;IACnB,2BAA2B;IAC3B,iBAAiB;IACjB,cAAc;IACd,gBAAgB;IAChB,cAAc;IACd,YAAY;IACZ,eAAe;IACf,kBAAkB;IAClB,oBAAoB;IACpB,cAAc;IACd,sBAAsB;IACtB,wBAAwB;IACxB,sBAAsB;IACtB,oBAAoB;IACpB,uBAAuB;IACvB,0BAA0B;IAC1B,4BAA4B;IAC5B,sBAAsB;IACtB,oBAAoB;IACpB,sBAAsB;CACd,CAAA;AAEV,8BAA8B;AAEjB,QAAA,cAAc,GAAG,MAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,aAAa,EAAE,MAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\n\nexport const filterFields = [\n 'locations',\n 'excludedPersons',\n 'includedPersons',\n 'personEmail',\n 'personFullName',\n 'personLinkedInUrl',\n 'personPhone',\n 'personCity',\n 'personState',\n 'personCountry',\n 'personPostalCode',\n 'personLat',\n 'personLon',\n 'referralId',\n 'referralSource',\n 'positionId',\n 'positionName',\n 'positionCity',\n 'positionState',\n 'positionCountry',\n 'positionEmploymentType',\n 'positionIndustryId',\n 'positionJobFunctionId',\n 'candidacyStage',\n 'referredPersonEmail',\n 'referredPersonFirstName',\n 'referredPersonLastName',\n 'referredPersonFullName',\n 'referredPersonCity',\n 'referredPersonState',\n 'referredPersonCountry',\n 'referredPersonPostalCode',\n 'referredPersonLat',\n 'referredPersonLon',\n 'referredPersonLinkedInUrl',\n 'referral_payout',\n 'personSkills',\n 'personNetworks',\n 'personEvents',\n 'personTags',\n 'personSchools',\n 'personIndustries',\n 'personJobFunctions',\n 'personTitles',\n 'referredPersonSkills',\n 'referredPersonNetworks',\n 'referredPersonEvents',\n 'referredPersonTags',\n 'referredPersonSchools',\n 'referredPersonIndustries',\n 'referredPersonJobFunctions',\n 'referredPersonTitles',\n 'referredIndustries',\n 'referredJobFunctions'\n] as const\n\n// Need to make these optional\n\nexport const LocationSchema = z.object({\n city: z.string(),\n state: z.string(),\n lat: z.number(),\n lon: z.number(),\n radiusInMiles: z.number()\n})\n"]}
|